@ankhorage/zora 21.0.22 → 21.1.0

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.
Files changed (639) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +40 -184
  3. package/dist/features/authoring/allowedChildren.d.ts +5 -2
  4. package/dist/features/authoring/allowedChildren.d.ts.map +1 -1
  5. package/dist/features/authoring/allowedChildren.js +13 -2
  6. package/dist/features/authoring/allowedChildren.js.map +1 -1
  7. package/dist/features/authoring/componentMeta.d.ts.map +1 -1
  8. package/dist/features/authoring/componentMeta.js +21 -0
  9. package/dist/features/authoring/componentMeta.js.map +1 -1
  10. package/dist/features/authoring/constants.d.ts +3 -0
  11. package/dist/features/authoring/constants.d.ts.map +1 -1
  12. package/dist/features/authoring/constants.js +3 -0
  13. package/dist/features/authoring/constants.js.map +1 -1
  14. package/dist/features/button/adapters/inbound/Button.d.ts +0 -4
  15. package/dist/features/button/adapters/inbound/Button.d.ts.map +1 -1
  16. package/dist/features/button/adapters/inbound/Button.js +0 -4
  17. package/dist/features/button/adapters/inbound/Button.js.map +1 -1
  18. package/dist/features/card/adapters/inbound/Card.d.ts +0 -4
  19. package/dist/features/card/adapters/inbound/Card.d.ts.map +1 -1
  20. package/dist/features/card/adapters/inbound/Card.js +0 -4
  21. package/dist/features/card/adapters/inbound/Card.js.map +1 -1
  22. package/dist/features/card/cardMeta.d.ts +1 -1
  23. package/dist/features/card/cardMeta.d.ts.map +1 -1
  24. package/dist/features/card/cardMeta.js +7 -2
  25. package/dist/features/card/cardMeta.js.map +1 -1
  26. package/dist/features/chess/adapters/inbound/ChessBoard.d.ts +5 -0
  27. package/dist/features/chess/adapters/inbound/ChessBoard.d.ts.map +1 -0
  28. package/dist/features/chess/adapters/inbound/ChessBoard.js +119 -0
  29. package/dist/features/chess/adapters/inbound/ChessBoard.js.map +1 -0
  30. package/dist/features/chess/adapters/inbound/OpeningBook.d.ts +5 -0
  31. package/dist/features/chess/adapters/inbound/OpeningBook.d.ts.map +1 -0
  32. package/dist/features/chess/adapters/inbound/OpeningBook.js +94 -0
  33. package/dist/features/chess/adapters/inbound/OpeningBook.js.map +1 -0
  34. package/dist/features/chess/meta.d.ts +219 -0
  35. package/dist/features/chess/meta.d.ts.map +1 -0
  36. package/dist/features/chess/meta.js +165 -0
  37. package/dist/features/chess/meta.js.map +1 -0
  38. package/dist/features/chess/public.d.ts +12 -0
  39. package/dist/features/chess/public.d.ts.map +1 -0
  40. package/dist/features/chess/public.js +10 -0
  41. package/dist/features/chess/public.js.map +1 -0
  42. package/dist/features/chess/utils/chessSquares.d.ts +4 -0
  43. package/dist/features/chess/utils/chessSquares.d.ts.map +1 -0
  44. package/dist/features/chess/utils/chessSquares.js +3 -0
  45. package/dist/features/chess/utils/chessSquares.js.map +1 -0
  46. package/dist/features/chess/utils/createBoardSquares.d.ts +4 -0
  47. package/dist/features/chess/utils/createBoardSquares.d.ts.map +1 -0
  48. package/dist/features/chess/utils/createBoardSquares.js +9 -0
  49. package/dist/features/chess/utils/createBoardSquares.js.map +1 -0
  50. package/dist/features/chess/utils/createChessBoardColorScheme.d.ts +35 -0
  51. package/dist/features/chess/utils/createChessBoardColorScheme.d.ts.map +1 -0
  52. package/dist/features/chess/utils/createChessBoardColorScheme.js +26 -0
  53. package/dist/features/chess/utils/createChessBoardColorScheme.js.map +1 -0
  54. package/dist/features/chess/utils/createOpeningBookColorScheme.d.ts +11 -0
  55. package/dist/features/chess/utils/createOpeningBookColorScheme.d.ts.map +1 -0
  56. package/dist/features/chess/utils/createOpeningBookColorScheme.js +21 -0
  57. package/dist/features/chess/utils/createOpeningBookColorScheme.js.map +1 -0
  58. package/dist/features/chess/utils/getSquareFile.d.ts +4 -0
  59. package/dist/features/chess/utils/getSquareFile.d.ts.map +1 -0
  60. package/dist/features/chess/utils/getSquareFile.js +5 -0
  61. package/dist/features/chess/utils/getSquareFile.js.map +1 -0
  62. package/dist/features/chess/utils/getSquareRank.d.ts +4 -0
  63. package/dist/features/chess/utils/getSquareRank.d.ts.map +1 -0
  64. package/dist/features/chess/utils/getSquareRank.js +5 -0
  65. package/dist/features/chess/utils/getSquareRank.js.map +1 -0
  66. package/dist/features/chess/utils/isLightSquare.d.ts +4 -0
  67. package/dist/features/chess/utils/isLightSquare.d.ts.map +1 -0
  68. package/dist/features/chess/utils/isLightSquare.js +6 -0
  69. package/dist/features/chess/utils/isLightSquare.js.map +1 -0
  70. package/dist/features/empty-state/adapters/inbound/EmptyState.d.ts +0 -4
  71. package/dist/features/empty-state/adapters/inbound/EmptyState.d.ts.map +1 -1
  72. package/dist/features/empty-state/adapters/inbound/EmptyState.js +0 -4
  73. package/dist/features/empty-state/adapters/inbound/EmptyState.js.map +1 -1
  74. package/dist/features/form/text-input/adapters/inbound/TextInput.d.ts +0 -4
  75. package/dist/features/form/text-input/adapters/inbound/TextInput.d.ts.map +1 -1
  76. package/dist/features/form/text-input/adapters/inbound/TextInput.js +0 -4
  77. package/dist/features/form/text-input/adapters/inbound/TextInput.js.map +1 -1
  78. package/dist/features/game/adapters/inbound/Game.d.ts +5 -0
  79. package/dist/features/game/adapters/inbound/Game.d.ts.map +1 -0
  80. package/dist/features/game/adapters/inbound/Game.js +24 -0
  81. package/dist/features/game/adapters/inbound/Game.js.map +1 -0
  82. package/dist/features/game/adapters/inbound/GameEntity.d.ts +5 -0
  83. package/dist/features/game/adapters/inbound/GameEntity.d.ts.map +1 -0
  84. package/dist/features/game/adapters/inbound/GameEntity.js +29 -0
  85. package/dist/features/game/adapters/inbound/GameEntity.js.map +1 -0
  86. package/dist/features/game/adapters/inbound/GameField.d.ts +4 -0
  87. package/dist/features/game/adapters/inbound/GameField.d.ts.map +1 -0
  88. package/dist/features/game/adapters/inbound/GameField.js +32 -0
  89. package/dist/features/game/adapters/inbound/GameField.js.map +1 -0
  90. package/dist/features/game/adapters/inbound/GameInputZone.d.ts +4 -0
  91. package/dist/features/game/adapters/inbound/GameInputZone.d.ts.map +1 -0
  92. package/dist/features/game/adapters/inbound/GameInputZone.js +50 -0
  93. package/dist/features/game/adapters/inbound/GameInputZone.js.map +1 -0
  94. package/dist/features/game/adapters/inbound/GameMeasurementProbe.d.ts +4 -0
  95. package/dist/features/game/adapters/inbound/GameMeasurementProbe.d.ts.map +1 -0
  96. package/dist/features/game/adapters/inbound/GameMeasurementProbe.js +54 -0
  97. package/dist/features/game/adapters/inbound/GameMeasurementProbe.js.map +1 -0
  98. package/dist/features/game/adapters/inbound/GameOverlay.d.ts +4 -0
  99. package/dist/features/game/adapters/inbound/GameOverlay.d.ts.map +1 -0
  100. package/dist/features/game/adapters/inbound/GameOverlay.js +39 -0
  101. package/dist/features/game/adapters/inbound/GameOverlay.js.map +1 -0
  102. package/dist/features/game/adapters/inbound/createGameKeyboardEvent.d.ts +16 -0
  103. package/dist/features/game/adapters/inbound/createGameKeyboardEvent.d.ts.map +1 -0
  104. package/dist/features/game/adapters/inbound/createGameKeyboardEvent.js +16 -0
  105. package/dist/features/game/adapters/inbound/createGameKeyboardEvent.js.map +1 -0
  106. package/dist/features/game/adapters/inbound/createGameMeasurementEvent.d.ts +14 -0
  107. package/dist/features/game/adapters/inbound/createGameMeasurementEvent.d.ts.map +1 -0
  108. package/dist/features/game/adapters/inbound/createGameMeasurementEvent.js +25 -0
  109. package/dist/features/game/adapters/inbound/createGameMeasurementEvent.js.map +1 -0
  110. package/dist/features/game/adapters/inbound/createGamePointerEvent.d.ts +17 -0
  111. package/dist/features/game/adapters/inbound/createGamePointerEvent.d.ts.map +1 -0
  112. package/dist/features/game/adapters/inbound/createGamePointerEvent.js +20 -0
  113. package/dist/features/game/adapters/inbound/createGamePointerEvent.js.map +1 -0
  114. package/dist/features/game/adapters/inbound/measureGameEntity.d.ts +5 -0
  115. package/dist/features/game/adapters/inbound/measureGameEntity.d.ts.map +1 -0
  116. package/dist/features/game/adapters/inbound/measureGameEntity.js +22 -0
  117. package/dist/features/game/adapters/inbound/measureGameEntity.js.map +1 -0
  118. package/dist/features/game/adapters/inbound/useGameInputZoneResponder.d.ts +15 -0
  119. package/dist/features/game/adapters/inbound/useGameInputZoneResponder.d.ts.map +1 -0
  120. package/dist/features/game/adapters/inbound/useGameInputZoneResponder.js +67 -0
  121. package/dist/features/game/adapters/inbound/useGameInputZoneResponder.js.map +1 -0
  122. package/dist/features/game/composition/GameRuntimeContext.d.ts +5 -0
  123. package/dist/features/game/composition/GameRuntimeContext.d.ts.map +1 -0
  124. package/dist/features/game/composition/GameRuntimeContext.js +4 -0
  125. package/dist/features/game/composition/GameRuntimeContext.js.map +1 -0
  126. package/dist/features/game/composition/createGameBindingContext.d.ts +4 -0
  127. package/dist/features/game/composition/createGameBindingContext.d.ts.map +1 -0
  128. package/dist/features/game/composition/createGameBindingContext.js +10 -0
  129. package/dist/features/game/composition/createGameBindingContext.js.map +1 -0
  130. package/dist/features/game/composition/createGameMeasurementRegistry.d.ts +4 -0
  131. package/dist/features/game/composition/createGameMeasurementRegistry.d.ts.map +1 -0
  132. package/dist/features/game/composition/createGameMeasurementRegistry.js +15 -0
  133. package/dist/features/game/composition/createGameMeasurementRegistry.js.map +1 -0
  134. package/dist/features/game/composition/useGameRuntime.d.ts +5 -0
  135. package/dist/features/game/composition/useGameRuntime.d.ts.map +1 -0
  136. package/dist/features/game/composition/useGameRuntime.js +117 -0
  137. package/dist/features/game/composition/useGameRuntime.js.map +1 -0
  138. package/dist/features/game/composition/useGameScheduledEffects.d.ts +17 -0
  139. package/dist/features/game/composition/useGameScheduledEffects.d.ts.map +1 -0
  140. package/dist/features/game/composition/useGameScheduledEffects.js +40 -0
  141. package/dist/features/game/composition/useGameScheduledEffects.js.map +1 -0
  142. package/dist/features/game/meta/gameEntityMeta.d.ts +403 -0
  143. package/dist/features/game/meta/gameEntityMeta.d.ts.map +1 -0
  144. package/dist/features/game/meta/gameEntityMeta.js +224 -0
  145. package/dist/features/game/meta/gameEntityMeta.js.map +1 -0
  146. package/dist/features/game/meta/gameFieldMeta.d.ts +61 -0
  147. package/dist/features/game/meta/gameFieldMeta.d.ts.map +1 -0
  148. package/dist/features/game/meta/gameFieldMeta.js +48 -0
  149. package/dist/features/game/meta/gameFieldMeta.js.map +1 -0
  150. package/dist/features/game/meta/gameInputZoneMeta.d.ts +163 -0
  151. package/dist/features/game/meta/gameInputZoneMeta.d.ts.map +1 -0
  152. package/dist/features/game/meta/gameInputZoneMeta.js +138 -0
  153. package/dist/features/game/meta/gameInputZoneMeta.js.map +1 -0
  154. package/dist/features/game/meta/gameMeasurementProbeMeta.d.ts +112 -0
  155. package/dist/features/game/meta/gameMeasurementProbeMeta.d.ts.map +1 -0
  156. package/dist/features/game/meta/gameMeasurementProbeMeta.js +70 -0
  157. package/dist/features/game/meta/gameMeasurementProbeMeta.js.map +1 -0
  158. package/dist/features/game/meta/gameMeta.d.ts +130 -0
  159. package/dist/features/game/meta/gameMeta.d.ts.map +1 -0
  160. package/dist/features/game/meta/gameMeta.js +113 -0
  161. package/dist/features/game/meta/gameMeta.js.map +1 -0
  162. package/dist/features/game/meta/gameOverlayMeta.d.ts +55 -0
  163. package/dist/features/game/meta/gameOverlayMeta.d.ts.map +1 -0
  164. package/dist/features/game/meta/gameOverlayMeta.js +65 -0
  165. package/dist/features/game/meta/gameOverlayMeta.js.map +1 -0
  166. package/dist/features/game/public.d.ts +8 -0
  167. package/dist/features/game/public.d.ts.map +1 -0
  168. package/dist/features/game/public.js +7 -0
  169. package/dist/features/game/public.js.map +1 -0
  170. package/dist/features/game/utils/clampGamePercentage.d.ts +3 -0
  171. package/dist/features/game/utils/clampGamePercentage.d.ts.map +1 -0
  172. package/dist/features/game/utils/clampGamePercentage.js +5 -0
  173. package/dist/features/game/utils/clampGamePercentage.js.map +1 -0
  174. package/dist/features/game/utils/resolveGameEntityMotionPlan.d.ts +15 -0
  175. package/dist/features/game/utils/resolveGameEntityMotionPlan.d.ts.map +1 -0
  176. package/dist/features/game/utils/resolveGameEntityMotionPlan.js +31 -0
  177. package/dist/features/game/utils/resolveGameEntityMotionPlan.js.map +1 -0
  178. package/dist/features/game/utils/toGamePercentage.d.ts +3 -0
  179. package/dist/features/game/utils/toGamePercentage.d.ts.map +1 -0
  180. package/dist/features/game/utils/toGamePercentage.js +6 -0
  181. package/dist/features/game/utils/toGamePercentage.js.map +1 -0
  182. package/dist/features/game/utils/useAnimatedGameEntityValue.d.ts +5 -0
  183. package/dist/features/game/utils/useAnimatedGameEntityValue.d.ts.map +1 -0
  184. package/dist/features/game/utils/useAnimatedGameEntityValue.js +33 -0
  185. package/dist/features/game/utils/useAnimatedGameEntityValue.js.map +1 -0
  186. package/dist/features/game/utils/useGameEntityAnimatedStyle.d.ts +16 -0
  187. package/dist/features/game/utils/useGameEntityAnimatedStyle.d.ts.map +1 -0
  188. package/dist/features/game/utils/useGameEntityAnimatedStyle.js +52 -0
  189. package/dist/features/game/utils/useGameEntityAnimatedStyle.js.map +1 -0
  190. package/dist/features/game/utils/useGameEntityMeasurement.d.ts +5 -0
  191. package/dist/features/game/utils/useGameEntityMeasurement.d.ts.map +1 -0
  192. package/dist/features/game/utils/useGameEntityMeasurement.js +14 -0
  193. package/dist/features/game/utils/useGameEntityMeasurement.js.map +1 -0
  194. package/dist/features/game/utils/useGameEntityMotionProgress.d.ts +5 -0
  195. package/dist/features/game/utils/useGameEntityMotionProgress.d.ts.map +1 -0
  196. package/dist/features/game/utils/useGameEntityMotionProgress.js +87 -0
  197. package/dist/features/game/utils/useGameEntityMotionProgress.js.map +1 -0
  198. package/dist/features/game/utils/useGameReducedMotion.d.ts +3 -0
  199. package/dist/features/game/utils/useGameReducedMotion.d.ts.map +1 -0
  200. package/dist/features/game/utils/useGameReducedMotion.js +13 -0
  201. package/dist/features/game/utils/useGameReducedMotion.js.map +1 -0
  202. package/dist/features/graph-view/adapters/inbound/web-artifact/GraphView.d.ts +5 -5
  203. package/dist/features/graph-view/adapters/inbound/web-artifact/GraphView.js +5 -5
  204. package/dist/features/graph-view/adapters/inbound/web-artifact/GraphView.js.map +1 -1
  205. package/dist/features/graph-view/adapters/inbound/web-artifact/compactGraphSpacing.d.ts +1 -1
  206. package/dist/features/graph-view/adapters/inbound/web-artifact/compactGraphSpacing.js +1 -1
  207. package/dist/features/graph-view/adapters/inbound/web-artifact/compactGraphSpacing.js.map +1 -1
  208. package/dist/features/graph-view/adapters/inbound/web-artifact/createGraphController.js +1 -1
  209. package/dist/features/graph-view/adapters/inbound/web-artifact/createGraphController.js.map +1 -1
  210. package/dist/features/graph-view/adapters/inbound/web-artifact/createGraphLoopSizer.d.ts +1 -1
  211. package/dist/features/graph-view/adapters/inbound/web-artifact/createGraphLoopSizer.js +1 -1
  212. package/dist/features/graph-view/adapters/inbound/web-artifact/createGraphLoopSizer.js.map +1 -1
  213. package/dist/features/graph-view/adapters/inbound/web-artifact/createGraphRuntime.js +7 -7
  214. package/dist/features/graph-view/adapters/inbound/web-artifact/createGraphRuntime.js.map +1 -1
  215. package/dist/features/graph-view/adapters/inbound/web-artifact/getGraphGeometryKey.d.ts +0 -1
  216. package/dist/features/graph-view/adapters/inbound/web-artifact/getGraphGeometryKey.d.ts.map +1 -1
  217. package/dist/features/graph-view/adapters/inbound/web-artifact/getGraphGeometryKey.js +0 -1
  218. package/dist/features/graph-view/adapters/inbound/web-artifact/getGraphGeometryKey.js.map +1 -1
  219. package/dist/features/graph-view/adapters/inbound/web-artifact/getGraphTopologyKey.d.ts +1 -1
  220. package/dist/features/graph-view/adapters/inbound/web-artifact/getGraphTopologyKey.js +1 -1
  221. package/dist/features/graph-view/adapters/inbound/web-artifact/getGraphTopologyKey.js.map +1 -1
  222. package/dist/features/graph-view/adapters/inbound/web-artifact/hasGraphLayoutChanged.d.ts +0 -1
  223. package/dist/features/graph-view/adapters/inbound/web-artifact/hasGraphLayoutChanged.d.ts.map +1 -1
  224. package/dist/features/graph-view/adapters/inbound/web-artifact/hasGraphLayoutChanged.js +0 -1
  225. package/dist/features/graph-view/adapters/inbound/web-artifact/hasGraphLayoutChanged.js.map +1 -1
  226. package/dist/features/graph-view/adapters/inbound/web-artifact/runDetachedGraphLayout.d.ts +1 -1
  227. package/dist/features/graph-view/adapters/inbound/web-artifact/runDetachedGraphLayout.js +1 -1
  228. package/dist/features/graph-view/adapters/inbound/web-artifact/runDetachedGraphLayout.js.map +1 -1
  229. package/dist/features/graph-view/adapters/inbound/web-artifact/sizeGraphNodesToLabels.d.ts +1 -1
  230. package/dist/features/graph-view/adapters/inbound/web-artifact/sizeGraphNodesToLabels.js +1 -1
  231. package/dist/features/graph-view/adapters/inbound/web-artifact/sizeGraphNodesToLabels.js.map +1 -1
  232. package/dist/features/graph-view/adapters/inbound/web-artifact/syncGraphElements.d.ts +0 -1
  233. package/dist/features/graph-view/adapters/inbound/web-artifact/syncGraphElements.d.ts.map +1 -1
  234. package/dist/features/graph-view/adapters/inbound/web-artifact/syncGraphElements.js +0 -1
  235. package/dist/features/graph-view/adapters/inbound/web-artifact/syncGraphElements.js.map +1 -1
  236. package/dist/features/layout/gridMeta.d.ts +1 -1
  237. package/dist/features/layout/gridMeta.d.ts.map +1 -1
  238. package/dist/features/layout/gridMeta.js +7 -2
  239. package/dist/features/layout/gridMeta.js.map +1 -1
  240. package/dist/features/layout/screenMeta.d.ts +1 -1
  241. package/dist/features/layout/viewMeta.d.ts +1 -1
  242. package/dist/features/layout/viewMeta.d.ts.map +1 -1
  243. package/dist/features/layout/viewMeta.js +6 -2
  244. package/dist/features/layout/viewMeta.js.map +1 -1
  245. package/dist/features/registry/ZORA_COMPONENT_REGISTRY.d.ts.map +1 -1
  246. package/dist/features/registry/ZORA_COMPONENT_REGISTRY.js +16 -0
  247. package/dist/features/registry/ZORA_COMPONENT_REGISTRY.js.map +1 -1
  248. package/dist/features/section/screenSectionMeta.d.ts +1 -1
  249. package/dist/features/tabletop/adapters/inbound/CardBack.d.ts +5 -0
  250. package/dist/features/tabletop/adapters/inbound/CardBack.d.ts.map +1 -0
  251. package/dist/features/tabletop/adapters/inbound/CardBack.js +47 -0
  252. package/dist/features/tabletop/adapters/inbound/CardBack.js.map +1 -0
  253. package/dist/features/tabletop/adapters/inbound/CardHand.d.ts +5 -0
  254. package/dist/features/tabletop/adapters/inbound/CardHand.d.ts.map +1 -0
  255. package/dist/features/tabletop/adapters/inbound/CardHand.js +28 -0
  256. package/dist/features/tabletop/adapters/inbound/CardHand.js.map +1 -0
  257. package/dist/features/tabletop/adapters/inbound/PlayingCard.d.ts +5 -0
  258. package/dist/features/tabletop/adapters/inbound/PlayingCard.d.ts.map +1 -0
  259. package/dist/features/tabletop/adapters/inbound/PlayingCard.js +64 -0
  260. package/dist/features/tabletop/adapters/inbound/PlayingCard.js.map +1 -0
  261. package/dist/features/tabletop/adapters/inbound/PokerTrainingTable.d.ts +5 -0
  262. package/dist/features/tabletop/adapters/inbound/PokerTrainingTable.d.ts.map +1 -0
  263. package/dist/features/tabletop/adapters/inbound/PokerTrainingTable.js +12 -0
  264. package/dist/features/tabletop/adapters/inbound/PokerTrainingTable.js.map +1 -0
  265. package/dist/features/tabletop/adapters/inbound/TabletopTable.d.ts +5 -0
  266. package/dist/features/tabletop/adapters/inbound/TabletopTable.d.ts.map +1 -0
  267. package/dist/features/tabletop/adapters/inbound/TabletopTable.js +206 -0
  268. package/dist/features/tabletop/adapters/inbound/TabletopTable.js.map +1 -0
  269. package/dist/features/tabletop/meta.d.ts +353 -0
  270. package/dist/features/tabletop/meta.d.ts.map +1 -0
  271. package/dist/features/tabletop/meta.js +252 -0
  272. package/dist/features/tabletop/meta.js.map +1 -0
  273. package/dist/features/tabletop/public.d.ts +10 -0
  274. package/dist/features/tabletop/public.d.ts.map +1 -0
  275. package/dist/features/tabletop/public.js +9 -0
  276. package/dist/features/tabletop/public.js.map +1 -0
  277. package/dist/features/tabletop/utils/createPokerTrainingTableState.d.ts +13 -0
  278. package/dist/features/tabletop/utils/createPokerTrainingTableState.d.ts.map +1 -0
  279. package/dist/features/tabletop/utils/createPokerTrainingTableState.js +112 -0
  280. package/dist/features/tabletop/utils/createPokerTrainingTableState.js.map +1 -0
  281. package/dist/features/tabletop/utils/createTabletopColorScheme.d.ts +36 -0
  282. package/dist/features/tabletop/utils/createTabletopColorScheme.d.ts.map +1 -0
  283. package/dist/features/tabletop/utils/createTabletopColorScheme.js +144 -0
  284. package/dist/features/tabletop/utils/createTabletopColorScheme.js.map +1 -0
  285. package/dist/features/tabletop/utils/createTabletopGameSeats.d.ts +13 -0
  286. package/dist/features/tabletop/utils/createTabletopGameSeats.d.ts.map +1 -0
  287. package/dist/features/tabletop/utils/createTabletopGameSeats.js +22 -0
  288. package/dist/features/tabletop/utils/createTabletopGameSeats.js.map +1 -0
  289. package/dist/features/tabletop/utils/getPlayingCardLabel.d.ts +4 -0
  290. package/dist/features/tabletop/utils/getPlayingCardLabel.d.ts.map +1 -0
  291. package/dist/features/tabletop/utils/getPlayingCardLabel.js +6 -0
  292. package/dist/features/tabletop/utils/getPlayingCardLabel.js.map +1 -0
  293. package/dist/features/tabletop/utils/getTabletopCardDimensions.d.ts +12 -0
  294. package/dist/features/tabletop/utils/getTabletopCardDimensions.d.ts.map +1 -0
  295. package/dist/features/tabletop/utils/getTabletopCardDimensions.js +35 -0
  296. package/dist/features/tabletop/utils/getTabletopCardDimensions.js.map +1 -0
  297. package/dist/features/tabletop/utils/getTabletopSeatPosition.d.ts +9 -0
  298. package/dist/features/tabletop/utils/getTabletopSeatPosition.d.ts.map +1 -0
  299. package/dist/features/tabletop/utils/getTabletopSeatPosition.js +88 -0
  300. package/dist/features/tabletop/utils/getTabletopSeatPosition.js.map +1 -0
  301. package/dist/features/tree-view/adapters/inbound/TreeView.d.ts +1 -1
  302. package/dist/features/tree-view/adapters/inbound/TreeView.js +1 -1
  303. package/dist/features/tree-view/adapters/inbound/TreeView.js.map +1 -1
  304. package/dist/features/tree-view/adapters/inbound/web-artifact/TreeView.d.ts +1 -1
  305. package/dist/features/tree-view/adapters/inbound/web-artifact/TreeView.js +1 -1
  306. package/dist/features/tree-view/adapters/inbound/web-artifact/TreeView.js.map +1 -1
  307. package/dist/features/typography/adapters/inbound/Heading.d.ts +0 -4
  308. package/dist/features/typography/adapters/inbound/Heading.d.ts.map +1 -1
  309. package/dist/features/typography/adapters/inbound/Heading.js +0 -4
  310. package/dist/features/typography/adapters/inbound/Heading.js.map +1 -1
  311. package/dist/features/typography/adapters/inbound/Text.d.ts +0 -4
  312. package/dist/features/typography/adapters/inbound/Text.d.ts.map +1 -1
  313. package/dist/features/typography/adapters/inbound/Text.js +0 -4
  314. package/dist/features/typography/adapters/inbound/Text.js.map +1 -1
  315. package/dist/index.d.ts +8 -0
  316. package/dist/index.d.ts.map +1 -1
  317. package/dist/index.js +4 -0
  318. package/dist/index.js.map +1 -1
  319. package/dist/types/chess.d.ts +83 -0
  320. package/dist/types/chess.d.ts.map +1 -0
  321. package/dist/types/chess.js +2 -0
  322. package/dist/types/chess.js.map +1 -0
  323. package/dist/types/gamePresentation.d.ts +94 -0
  324. package/dist/types/gamePresentation.d.ts.map +1 -0
  325. package/dist/types/gamePresentation.js +2 -0
  326. package/dist/types/gamePresentation.js.map +1 -0
  327. package/dist/types/gameRuntime.d.ts +29 -0
  328. package/dist/types/gameRuntime.d.ts.map +1 -0
  329. package/dist/types/gameRuntime.js +2 -0
  330. package/dist/types/gameRuntime.js.map +1 -0
  331. package/dist/types/tabletop.d.ts +129 -0
  332. package/dist/types/tabletop.d.ts.map +1 -0
  333. package/dist/types/tabletop.js +2 -0
  334. package/dist/types/tabletop.js.map +1 -0
  335. package/package.json +6 -7
  336. package/src/features/authoring/allowedChildren.ts +15 -2
  337. package/src/features/authoring/componentMeta.test.ts +93 -0
  338. package/src/features/authoring/componentMeta.ts +27 -0
  339. package/src/features/authoring/constants.ts +3 -0
  340. package/src/features/button/adapters/inbound/Button.tsx +0 -4
  341. package/src/features/card/adapters/inbound/Card.tsx +0 -4
  342. package/src/features/card/cardMeta.ts +12 -2
  343. package/src/features/chess/adapters/inbound/ChessBoard.tsx +169 -0
  344. package/src/features/chess/adapters/inbound/OpeningBook.tsx +131 -0
  345. package/src/features/chess/meta.ts +168 -0
  346. package/src/features/chess/public.test.tsx +165 -0
  347. package/src/features/chess/public.ts +27 -0
  348. package/src/features/chess/utils/chessSquares.ts +6 -0
  349. package/src/features/chess/utils/createBoardSquares.ts +13 -0
  350. package/src/features/chess/utils/createChessBoardColorScheme.ts +55 -0
  351. package/src/features/chess/utils/createOpeningBookColorScheme.ts +26 -0
  352. package/src/features/chess/utils/getSquareFile.ts +6 -0
  353. package/src/features/chess/utils/getSquareRank.ts +6 -0
  354. package/src/features/chess/utils/isLightSquare.ts +8 -0
  355. package/src/features/chessTabletopOwnership.test.ts +71 -0
  356. package/src/features/empty-state/adapters/inbound/EmptyState.tsx +0 -4
  357. package/src/features/form/text-input/adapters/inbound/TextInput.tsx +0 -4
  358. package/src/features/game/adapters/inbound/Game.tsx +43 -0
  359. package/src/features/game/adapters/inbound/GameEntity.tsx +44 -0
  360. package/src/features/game/adapters/inbound/GameField.tsx +52 -0
  361. package/src/features/game/adapters/inbound/GameInputZone.tsx +99 -0
  362. package/src/features/game/adapters/inbound/GameMeasurementProbe.tsx +83 -0
  363. package/src/features/game/adapters/inbound/GameOverlay.tsx +58 -0
  364. package/src/features/game/adapters/inbound/createGameKeyboardEvent.test.ts +51 -0
  365. package/src/features/game/adapters/inbound/createGameKeyboardEvent.ts +33 -0
  366. package/src/features/game/adapters/inbound/createGameMeasurementEvent.test.ts +56 -0
  367. package/src/features/game/adapters/inbound/createGameMeasurementEvent.ts +38 -0
  368. package/src/features/game/adapters/inbound/createGamePointerEvent.test.ts +56 -0
  369. package/src/features/game/adapters/inbound/createGamePointerEvent.ts +39 -0
  370. package/src/features/game/adapters/inbound/measureGameEntity.ts +28 -0
  371. package/src/features/game/adapters/inbound/useGameInputZoneResponder.ts +85 -0
  372. package/src/features/game/composition/GameRuntimeContext.ts +6 -0
  373. package/src/features/game/composition/createGameBindingContext.test.ts +66 -0
  374. package/src/features/game/composition/createGameBindingContext.ts +11 -0
  375. package/src/features/game/composition/createGameMeasurementRegistry.test.ts +35 -0
  376. package/src/features/game/composition/createGameMeasurementRegistry.ts +16 -0
  377. package/src/features/game/composition/useGameRuntime.test.tsx +173 -0
  378. package/src/features/game/composition/useGameRuntime.ts +200 -0
  379. package/src/features/game/composition/useGameScheduledEffects.ts +85 -0
  380. package/src/features/game/meta/gameEntityMeta.ts +226 -0
  381. package/src/features/game/meta/gameFieldMeta.ts +49 -0
  382. package/src/features/game/meta/gameInputZoneMeta.ts +140 -0
  383. package/src/features/game/meta/gameMeasurementProbeMeta.ts +72 -0
  384. package/src/features/game/meta/gameMeta.ts +115 -0
  385. package/src/features/game/meta/gameOverlayMeta.ts +66 -0
  386. package/src/features/game/public.test.tsx +64 -0
  387. package/src/features/game/public.ts +19 -0
  388. package/src/features/game/utils/clampGamePercentage.ts +4 -0
  389. package/src/features/game/utils/resolveGameEntityMotionPlan.test.ts +63 -0
  390. package/src/features/game/utils/resolveGameEntityMotionPlan.ts +53 -0
  391. package/src/features/game/utils/toGamePercentage.ts +6 -0
  392. package/src/features/game/utils/useAnimatedGameEntityValue.ts +41 -0
  393. package/src/features/game/utils/useGameEntityAnimatedStyle.ts +87 -0
  394. package/src/features/game/utils/useGameEntityMeasurement.ts +19 -0
  395. package/src/features/game/utils/useGameEntityMotionProgress.ts +114 -0
  396. package/src/features/game/utils/useGameReducedMotion.ts +15 -0
  397. package/src/features/graph-view/adapters/inbound/web-artifact/GraphView.tsx +5 -5
  398. package/src/features/graph-view/adapters/inbound/web-artifact/compactGraphSpacing.ts +1 -1
  399. package/src/features/graph-view/adapters/inbound/web-artifact/createGraphController.ts +1 -1
  400. package/src/features/graph-view/adapters/inbound/web-artifact/createGraphLoopSizer.ts +1 -1
  401. package/src/features/graph-view/adapters/inbound/web-artifact/createGraphRuntime.ts +7 -7
  402. package/src/features/graph-view/adapters/inbound/web-artifact/getGraphGeometryKey.ts +0 -1
  403. package/src/features/graph-view/adapters/inbound/web-artifact/getGraphTopologyKey.ts +1 -1
  404. package/src/features/graph-view/adapters/inbound/web-artifact/hasGraphLayoutChanged.ts +0 -1
  405. package/src/features/graph-view/adapters/inbound/web-artifact/runDetachedGraphLayout.ts +1 -1
  406. package/src/features/graph-view/adapters/inbound/web-artifact/sizeGraphNodesToLabels.ts +1 -1
  407. package/src/features/graph-view/adapters/inbound/web-artifact/syncGraphElements.ts +0 -1
  408. package/src/features/layout/gridMeta.ts +12 -2
  409. package/src/features/layout/viewMeta.ts +10 -2
  410. package/src/features/registry/ZORA_COMPONENT_REGISTRY.ts +29 -0
  411. package/src/features/tabletop/adapters/inbound/CardBack.tsx +70 -0
  412. package/src/features/tabletop/adapters/inbound/CardHand.tsx +61 -0
  413. package/src/features/tabletop/adapters/inbound/PlayingCard.tsx +95 -0
  414. package/src/features/tabletop/adapters/inbound/PokerTrainingTable.tsx +34 -0
  415. package/src/features/tabletop/adapters/inbound/TabletopTable.tsx +264 -0
  416. package/src/features/tabletop/meta.ts +254 -0
  417. package/src/features/tabletop/public.test.tsx +127 -0
  418. package/src/features/tabletop/public.ts +32 -0
  419. package/src/features/tabletop/utils/createPokerTrainingTableState.ts +152 -0
  420. package/src/features/tabletop/utils/createTabletopColorScheme.ts +232 -0
  421. package/src/features/tabletop/utils/createTabletopGameSeats.ts +31 -0
  422. package/src/features/tabletop/utils/getPlayingCardLabel.ts +8 -0
  423. package/src/features/tabletop/utils/getTabletopCardDimensions.ts +45 -0
  424. package/src/features/tabletop/utils/getTabletopSeatPosition.ts +100 -0
  425. package/src/features/tree-view/adapters/inbound/TreeView.tsx +1 -1
  426. package/src/features/tree-view/adapters/inbound/web-artifact/TreeView.tsx +1 -1
  427. package/src/features/typography/adapters/inbound/Heading.tsx +0 -4
  428. package/src/features/typography/adapters/inbound/Text.tsx +0 -4
  429. package/src/index.ts +83 -0
  430. package/src/types/chess.ts +95 -0
  431. package/src/types/gamePresentation.ts +103 -0
  432. package/src/types/gameRuntime.ts +34 -0
  433. package/src/types/tabletop.ts +131 -0
  434. package/web-dist/chunks/{Accordion-cscmtcn8.js → Accordion-0txegc16.js} +1 -1
  435. package/web-dist/chunks/{Accordion-06588rzn.js → Accordion-10xw59gm.js} +1 -1
  436. package/web-dist/chunks/{Accordion-8kgtg62g.js → Accordion-2zh15wt9.js} +6 -6
  437. package/web-dist/chunks/{Accordion-pkqj4g3r.js → Accordion-481bknsd.js} +5 -5
  438. package/web-dist/chunks/{Accordion-grfbz6f2.js → Accordion-4fkjn6r5.js} +1 -1
  439. package/web-dist/chunks/{Accordion-ftjkdjqs.js → Accordion-4gx45mn0.js} +3 -3
  440. package/web-dist/chunks/{Accordion-fjnck2tg.js → Accordion-4s69xvqy.js} +6 -6
  441. package/web-dist/chunks/{Accordion-jh7nxehr.js → Accordion-50jz5nhg.js} +1 -1
  442. package/web-dist/chunks/{Accordion-t6sdgmbz.js → Accordion-52xke54s.js} +1 -1
  443. package/web-dist/chunks/{Accordion-far6szrp.js → Accordion-6npzmbgk.js} +5 -5
  444. package/web-dist/chunks/{Accordion-q7c1ryf2.js → Accordion-6z4npcgf.js} +4 -4
  445. package/web-dist/chunks/{Accordion-gbba10rg.js → Accordion-8gw5tkfw.js} +6 -6
  446. package/web-dist/chunks/{Accordion-fmxygyb6.js → Accordion-8qteyww0.js} +4 -4
  447. package/web-dist/chunks/{Accordion-1pp37dtg.js → Accordion-9h5dx3ck.js} +4 -4
  448. package/web-dist/chunks/{Accordion-paha5aje.js → Accordion-9mmqf3wr.js} +2 -2
  449. package/web-dist/chunks/{Accordion-f5swy5bs.js → Accordion-b21zrnzj.js} +1 -1
  450. package/web-dist/chunks/{Accordion-ars389m1.js → Accordion-b8qd23hr.js} +3 -3
  451. package/web-dist/chunks/{Accordion-hxfa71g9.js → Accordion-c79y8g44.js} +7 -7
  452. package/web-dist/chunks/Accordion-ca2csh5r.js +321 -0
  453. package/web-dist/chunks/{Accordion-49gf1zb8.js → Accordion-cjht9dyv.js} +1 -1
  454. package/web-dist/chunks/{Accordion-sz21xsf4.js → Accordion-cq6hn45r.js} +1 -1
  455. package/web-dist/chunks/{Accordion-33rd76r7.js → Accordion-d90g9wcb.js} +8 -8
  456. package/web-dist/chunks/{Accordion-crx58d5n.js → Accordion-f5jb299b.js} +2 -2
  457. package/web-dist/chunks/{Accordion-h95wvyn5.js → Accordion-fe6vmbpf.js} +2 -2
  458. package/web-dist/chunks/{Accordion-jzbq36ec.js → Accordion-fqm027n3.js} +8 -8
  459. package/web-dist/chunks/{Accordion-0jkm3y3w.js → Accordion-gpccarct.js} +1 -1
  460. package/web-dist/chunks/{Accordion-v6ykq9hv.js → Accordion-h95h3xdb.js} +10 -10
  461. package/web-dist/chunks/{Accordion-t3p4ykg7.js → Accordion-j8ab9k8k.js} +8 -8
  462. package/web-dist/chunks/{Accordion-qpwhmqzd.js → Accordion-k5z591wx.js} +13 -13
  463. package/web-dist/chunks/{Accordion-rrpej6sv.js → Accordion-kdncjvc7.js} +7 -7
  464. package/web-dist/chunks/{Accordion-f05a7r28.js → Accordion-ks4a1c6w.js} +5 -5
  465. package/web-dist/chunks/{Accordion-x0j8b2by.js → Accordion-ma1sfe5z.js} +5 -5
  466. package/web-dist/chunks/{Accordion-2dws3778.js → Accordion-mhtyce1k.js} +4 -4
  467. package/web-dist/chunks/{Accordion-1vewf8aa.js → Accordion-n7gtb5ec.js} +2 -2
  468. package/web-dist/chunks/{Accordion-0psdn97s.js → Accordion-p42mm8rr.js} +1 -1
  469. package/web-dist/chunks/{Accordion-3404tth9.js → Accordion-panw5f0q.js} +7 -7
  470. package/web-dist/chunks/{Accordion-4a6wj3ez.js → Accordion-pxq8gfgg.js} +9 -9
  471. package/web-dist/chunks/{Accordion-xshn7k8f.js → Accordion-qwbshc4s.js} +4 -4
  472. package/web-dist/chunks/{Accordion-395r3wra.js → Accordion-r51wsmvy.js} +2 -2
  473. package/web-dist/chunks/Accordion-rt13cqr7.js +830 -0
  474. package/web-dist/chunks/{Accordion-hz4xaqjf.js → Accordion-s1f9hb5a.js} +9 -9
  475. package/web-dist/chunks/{Accordion-7ja4mtbz.js → Accordion-sv87mbqa.js} +1 -1
  476. package/web-dist/chunks/{Accordion-r4c9k9y7.js → Accordion-t4k9egq6.js} +2 -2
  477. package/web-dist/chunks/{Accordion-96cqeekv.js → Accordion-t64m1kca.js} +5 -5
  478. package/web-dist/chunks/Accordion-wg31jkvp.js +1559 -0
  479. package/web-dist/chunks/{Accordion-ch67q4t0.js → Accordion-y9zr4x2x.js} +4 -4
  480. package/web-dist/chunks/{Accordion-31aeqxak.js → Accordion-ye3k55r7.js} +3 -3
  481. package/web-dist/chunks/{Accordion-s42wwh6m.js → Accordion-z29agann.js} +6 -6
  482. package/web-dist/chunks/{Accordion-f1h2f05v.js → Accordion-ze26effy.js} +5 -5
  483. package/web-dist/chunks/{Accordion-tx78txec.js → Accordion-zqzcagxz.js} +5 -5
  484. package/web-dist/components/accordion/Accordion.js +12 -12
  485. package/web-dist/components/accordion-item/AccordionItem.js +12 -12
  486. package/web-dist/components/activity-indicator/ActivityIndicator.js +3 -3
  487. package/web-dist/components/app-bar/AppBar.js +19 -19
  488. package/web-dist/components/app-shell/AppShell.js +6 -6
  489. package/web-dist/components/avatar/Avatar.js +12 -12
  490. package/web-dist/components/avatar-group/AvatarGroup.js +12 -12
  491. package/web-dist/components/badge/Badge.js +7 -7
  492. package/web-dist/components/barcode-scanner-view/BarcodeScannerView.js +20 -20
  493. package/web-dist/components/bottom-sheet/BottomSheet.js +8 -8
  494. package/web-dist/components/bottom-sheet-flat-list/BottomSheetFlatList.js +8 -8
  495. package/web-dist/components/bottom-sheet-scroll-view/BottomSheetScrollView.js +8 -8
  496. package/web-dist/components/bottom-sheet-section-list/BottomSheetSectionList.js +8 -8
  497. package/web-dist/components/bottom-sheet-view/BottomSheetView.js +8 -8
  498. package/web-dist/components/bottom-sheet-virtualized-list/BottomSheetVirtualizedList.js +8 -8
  499. package/web-dist/components/breadcrumbs/Breadcrumbs.js +15 -15
  500. package/web-dist/components/button/Button.js +12 -12
  501. package/web-dist/components/button-group/ButtonGroup.js +12 -12
  502. package/web-dist/components/camera-permission-view/CameraPermissionView.js +20 -20
  503. package/web-dist/components/card/Card.js +19 -19
  504. package/web-dist/components/card-back/CardBack.d.ts +7 -0
  505. package/web-dist/components/card-back/CardBack.js +19 -0
  506. package/web-dist/components/card-back/index.d.ts +1 -0
  507. package/web-dist/components/card-back/index.js +2 -0
  508. package/web-dist/components/card-hand/CardHand.d.ts +7 -0
  509. package/web-dist/components/card-hand/CardHand.js +19 -0
  510. package/web-dist/components/card-hand/index.d.ts +1 -0
  511. package/web-dist/components/card-hand/index.js +2 -0
  512. package/web-dist/components/chat-list-item/ChatListItem.js +16 -16
  513. package/web-dist/components/checkbox/Checkbox.js +12 -12
  514. package/web-dist/components/checkbox-group/CheckboxGroup.js +12 -12
  515. package/web-dist/components/chess-board/ChessBoard.d.ts +4 -0
  516. package/web-dist/components/chess-board/ChessBoard.js +13 -0
  517. package/web-dist/components/chess-board/index.d.ts +1 -0
  518. package/web-dist/components/chess-board/index.js +2 -0
  519. package/web-dist/components/chip/Chip.js +13 -13
  520. package/web-dist/components/chip-group/ChipGroup.js +13 -13
  521. package/web-dist/components/collection-editor/CollectionEditor.js +19 -19
  522. package/web-dist/components/content-rail/ContentRail.js +13 -13
  523. package/web-dist/components/data-table/DataTable.js +26 -26
  524. package/web-dist/components/date-picker/DatePicker.js +17 -17
  525. package/web-dist/components/dialog/Dialog.js +12 -12
  526. package/web-dist/components/divider/Divider.js +6 -6
  527. package/web-dist/components/empty-state/EmptyState.js +20 -20
  528. package/web-dist/components/field/Field.js +12 -12
  529. package/web-dist/components/flat-list/FlatList.js +13 -13
  530. package/web-dist/components/forgot-password-form/ForgotPasswordForm.js +18 -18
  531. package/web-dist/components/form/Form.js +16 -16
  532. package/web-dist/components/form-actions/FormActions.js +16 -16
  533. package/web-dist/components/form-error/FormError.js +16 -16
  534. package/web-dist/components/game/Game.d.ts +8 -0
  535. package/web-dist/components/game/Game.js +25 -0
  536. package/web-dist/components/game/index.d.ts +1 -0
  537. package/web-dist/components/game/index.js +2 -0
  538. package/web-dist/components/game-entity/GameEntity.d.ts +8 -0
  539. package/web-dist/components/game-entity/GameEntity.js +25 -0
  540. package/web-dist/components/game-entity/index.d.ts +1 -0
  541. package/web-dist/components/game-entity/index.js +2 -0
  542. package/web-dist/components/game-field/GameField.d.ts +8 -0
  543. package/web-dist/components/game-field/GameField.js +25 -0
  544. package/web-dist/components/game-field/index.d.ts +1 -0
  545. package/web-dist/components/game-field/index.js +2 -0
  546. package/web-dist/components/game-input-zone/GameInputZone.d.ts +8 -0
  547. package/web-dist/components/game-input-zone/GameInputZone.js +25 -0
  548. package/web-dist/components/game-input-zone/index.d.ts +1 -0
  549. package/web-dist/components/game-input-zone/index.js +2 -0
  550. package/web-dist/components/game-measurement-probe/GameMeasurementProbe.d.ts +8 -0
  551. package/web-dist/components/game-measurement-probe/GameMeasurementProbe.js +25 -0
  552. package/web-dist/components/game-measurement-probe/index.d.ts +1 -0
  553. package/web-dist/components/game-measurement-probe/index.js +2 -0
  554. package/web-dist/components/game-overlay/GameOverlay.d.ts +8 -0
  555. package/web-dist/components/game-overlay/GameOverlay.js +25 -0
  556. package/web-dist/components/game-overlay/index.d.ts +1 -0
  557. package/web-dist/components/game-overlay/index.js +2 -0
  558. package/web-dist/components/gradient/Gradient.js +7 -7
  559. package/web-dist/components/gradient-renderer-provider/GradientRendererProvider.js +7 -7
  560. package/web-dist/components/graph-view/GraphView.d.ts +5 -5
  561. package/web-dist/components/grid/Grid.js +6 -6
  562. package/web-dist/components/heading/Heading.js +6 -6
  563. package/web-dist/components/hero/Hero.js +19 -19
  564. package/web-dist/components/icon/Icon.js +4 -4
  565. package/web-dist/components/icon-button/IconButton.js +12 -12
  566. package/web-dist/components/image/Image.js +10 -10
  567. package/web-dist/components/keyboard-avoiding-view/KeyboardAvoidingView.js +2 -2
  568. package/web-dist/components/list/List.js +13 -13
  569. package/web-dist/components/list-item/ListItem.js +13 -13
  570. package/web-dist/components/list-section/ListSection.js +13 -13
  571. package/web-dist/components/media-card/MediaCard.js +19 -19
  572. package/web-dist/components/message-bubble/MessageBubble.js +16 -16
  573. package/web-dist/components/metric-card/MetricCard.js +19 -19
  574. package/web-dist/components/missing-element/MissingElement.js +11 -11
  575. package/web-dist/components/o-auth-provider-button/OAuthProviderButton.js +18 -18
  576. package/web-dist/components/o-auth-provider-list/OAuthProviderList.js +18 -18
  577. package/web-dist/components/opening-book/OpeningBook.d.ts +4 -0
  578. package/web-dist/components/opening-book/OpeningBook.js +13 -0
  579. package/web-dist/components/opening-book/index.d.ts +1 -0
  580. package/web-dist/components/opening-book/index.js +2 -0
  581. package/web-dist/components/otp-form/OtpForm.js +18 -18
  582. package/web-dist/components/pagination/Pagination.js +13 -13
  583. package/web-dist/components/palette-item/PaletteItem.js +19 -19
  584. package/web-dist/components/playing-card/PlayingCard.d.ts +7 -0
  585. package/web-dist/components/playing-card/PlayingCard.js +19 -0
  586. package/web-dist/components/playing-card/index.d.ts +1 -0
  587. package/web-dist/components/playing-card/index.js +2 -0
  588. package/web-dist/components/poker-training-table/PokerTrainingTable.d.ts +7 -0
  589. package/web-dist/components/poker-training-table/PokerTrainingTable.js +19 -0
  590. package/web-dist/components/poker-training-table/index.d.ts +1 -0
  591. package/web-dist/components/poker-training-table/index.js +2 -0
  592. package/web-dist/components/popover-menu/PopoverMenu.js +14 -14
  593. package/web-dist/components/post-card/PostCard.js +19 -19
  594. package/web-dist/components/product-card/ProductCard.js +19 -19
  595. package/web-dist/components/progress/Progress.js +10 -10
  596. package/web-dist/components/progress-ring/ProgressRing.js +10 -10
  597. package/web-dist/components/radio/Radio.js +14 -14
  598. package/web-dist/components/radio-group/RadioGroup.js +14 -14
  599. package/web-dist/components/rating/Rating.js +9 -9
  600. package/web-dist/components/reader-surface/ReaderSurface.js +21 -21
  601. package/web-dist/components/scan-overlay/ScanOverlay.js +20 -20
  602. package/web-dist/components/screen/Screen.js +6 -6
  603. package/web-dist/components/screen-section/ScreenSection.js +10 -10
  604. package/web-dist/components/scroll-view/ScrollView.js +6 -6
  605. package/web-dist/components/search-input/SearchInput.js +13 -13
  606. package/web-dist/components/section-header/SectionHeader.js +10 -10
  607. package/web-dist/components/section-list/SectionList.js +13 -13
  608. package/web-dist/components/select/Select.js +16 -16
  609. package/web-dist/components/selectable-item/SelectableItem.js +5 -5
  610. package/web-dist/components/selection-provider/SelectionProvider.js +5 -5
  611. package/web-dist/components/sign-in-form/SignInForm.js +18 -18
  612. package/web-dist/components/sign-up-form/SignUpForm.js +18 -18
  613. package/web-dist/components/skeleton/Skeleton.js +22 -22
  614. package/web-dist/components/skeleton-card/SkeletonCard.js +22 -22
  615. package/web-dist/components/skeleton-list/SkeletonList.js +22 -22
  616. package/web-dist/components/skeleton-text/SkeletonText.js +22 -22
  617. package/web-dist/components/surface/Surface.js +7 -7
  618. package/web-dist/components/switch/Switch.js +7 -7
  619. package/web-dist/components/tab/Tab.js +7 -7
  620. package/web-dist/components/tab-list/TabList.js +7 -7
  621. package/web-dist/components/tab-panel/TabPanel.js +7 -7
  622. package/web-dist/components/tabletop-table/TabletopTable.d.ts +7 -0
  623. package/web-dist/components/tabletop-table/TabletopTable.js +19 -0
  624. package/web-dist/components/tabletop-table/index.d.ts +1 -0
  625. package/web-dist/components/tabletop-table/index.js +2 -0
  626. package/web-dist/components/tabs/Tabs.js +7 -7
  627. package/web-dist/components/text/Text.js +6 -6
  628. package/web-dist/components/text-input/TextInput.js +13 -13
  629. package/web-dist/components/time-picker/TimePicker.js +17 -17
  630. package/web-dist/components/timeline/Timeline.js +11 -11
  631. package/web-dist/components/toast/Toast.js +9 -9
  632. package/web-dist/components/toast-provider/ToastProvider.js +9 -9
  633. package/web-dist/components/toolbar/Toolbar.js +19 -19
  634. package/web-dist/components/tree-item/TreeItem.js +16 -16
  635. package/web-dist/components/tree-view/TreeView.d.ts +1 -1
  636. package/web-dist/components/uploader/Uploader.js +22 -22
  637. package/web-dist/components/view/View.js +6 -6
  638. package/web-dist/manifest.json +1650 -1379
  639. package/web-dist/runtime/ZoraProvider.js +8 -8
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import type { TreeViewProps } from '../../../../types/tree-view';
3
3
  /***
4
4
  * Tree view pattern for hierarchical navigation and expandable lists.
5
- * @config expansionIndicator Select `folder` (default) or `chevron` for leading expansion controls.
5
+ * expansionIndicator Select `folder` (default) or `chevron` for leading expansion controls.
6
6
  * Expansion controls are separate from row selection, including when rendering custom row content.
7
7
  */
8
8
  export declare const TreeView: <TId extends string = string>(props: TreeViewProps<TId>) => React.ReactElement | null;
@@ -23,7 +23,7 @@ function TreeViewInner({ themeId: _themeId, mode: _mode, nodes, selectedId, expa
23
23
  }
24
24
  /***
25
25
  * Tree view pattern for hierarchical navigation and expandable lists.
26
- * @config expansionIndicator Select `folder` (default) or `chevron` for leading expansion controls.
26
+ * expansionIndicator Select `folder` (default) or `chevron` for leading expansion controls.
27
27
  * Expansion controls are separate from row selection, including when rendering custom row content.
28
28
  */
29
29
  export const TreeView = withZoraThemeScope(TreeViewInner);
@@ -1 +1 @@
1
- {"version":3,"file":"TreeView.js","sourceRoot":"","sources":["../../../../../src/features/tree-view/adapters/inbound/TreeView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,2FAA2F;AAC3F,SAAS,aAAa,CAA8B,EAClD,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,KAAK,EACL,UAAU,EACV,WAAW,EAAE,qBAAqB,EAClC,kBAAkB,EAClB,QAAQ,EACR,gBAAgB,EAChB,UAAU,EACV,kBAAkB,GAAG,QAAQ,EAC7B,MAAM,EACN,iBAAiB,GACE;IAC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AM,QAAQ,GAAG,kBAAkB,CAAC,aAAa,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport type { TreeViewProps } from '../../../../types/tree-view';\nimport { View } from '../../../layout/public';\nimport { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';\nimport { toggleExpandedIds } from '../../utils/toggleExpandedIds';\nimport { TreeItem } from './TreeItem';\n\n/*** Render the themed TreeView while supporting controlled or internal expansion state. */\nfunction TreeViewInner<TId extends string = string>({\n themeId: _themeId,\n mode: _mode,\n nodes,\n selectedId,\n expandedIds: controlledExpandedIds,\n defaultExpandedIds,\n onSelect,\n onExpandedChange,\n renderItem,\n expansionIndicator = 'folder',\n testID,\n interactionPolicy,\n}: TreeViewProps<TId>) {\n const [internalExpandedIds, setInternalExpandedIds] = React.useState<readonly TId[]>(\n defaultExpandedIds ?? [],\n );\n\n const isControlled = controlledExpandedIds !== undefined;\n const expandedIds = isControlled ? controlledExpandedIds : internalExpandedIds;\n\n const handleToggleExpand = (id: TId) => {\n if (interactionPolicy === 'passive') return;\n const nextExpandedIds = toggleExpandedIds(expandedIds, id);\n\n if (!isControlled) {\n setInternalExpandedIds(nextExpandedIds);\n }\n onExpandedChange?.(nextExpandedIds);\n };\n\n return (\n <View gap=\"none\" testID={testID}>\n {nodes.map((node) => (\n <TreeItem\n key={node.id}\n depth={0}\n expandedIds={expandedIds}\n expansionIndicator={expansionIndicator}\n node={node}\n onSelect={onSelect}\n onToggleExpand={handleToggleExpand}\n renderItem={renderItem}\n selectedId={selectedId}\n interactionPolicy={interactionPolicy}\n />\n ))}\n </View>\n );\n}\n\n/***\n * Tree view pattern for hierarchical navigation and expandable lists.\n * @config expansionIndicator Select `folder` (default) or `chevron` for leading expansion controls.\n * Expansion controls are separate from row selection, including when rendering custom row content.\n */\nexport const TreeView = withZoraThemeScope(TreeViewInner);\n"]}
1
+ {"version":3,"file":"TreeView.js","sourceRoot":"","sources":["../../../../../src/features/tree-view/adapters/inbound/TreeView.tsx"],"names":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CACnB,CAAC,QAAQ,CACP,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CACb,KAAK,CAAC,CAAC,CAAC,CAAC,CACT,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,kBAAkB,CAAC,CAAC,kBAAkB,CAAC,CACvC,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,cAAc,CAAC,CAAC,kBAAkB,CAAC,CACnC,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,EACrC,CACH,CAAC,CACJ;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,kBAAkB,CAAC,aAAa,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport type { TreeViewProps } from '../../../../types/tree-view';\nimport { View } from '../../../layout/public';\nimport { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';\nimport { toggleExpandedIds } from '../../utils/toggleExpandedIds';\nimport { TreeItem } from './TreeItem';\n\n/*** Render the themed TreeView while supporting controlled or internal expansion state. */\nfunction TreeViewInner<TId extends string = string>({\n themeId: _themeId,\n mode: _mode,\n nodes,\n selectedId,\n expandedIds: controlledExpandedIds,\n defaultExpandedIds,\n onSelect,\n onExpandedChange,\n renderItem,\n expansionIndicator = 'folder',\n testID,\n interactionPolicy,\n}: TreeViewProps<TId>) {\n const [internalExpandedIds, setInternalExpandedIds] = React.useState<readonly TId[]>(\n defaultExpandedIds ?? [],\n );\n\n const isControlled = controlledExpandedIds !== undefined;\n const expandedIds = isControlled ? controlledExpandedIds : internalExpandedIds;\n\n const handleToggleExpand = (id: TId) => {\n if (interactionPolicy === 'passive') return;\n const nextExpandedIds = toggleExpandedIds(expandedIds, id);\n\n if (!isControlled) {\n setInternalExpandedIds(nextExpandedIds);\n }\n onExpandedChange?.(nextExpandedIds);\n };\n\n return (\n <View gap=\"none\" testID={testID}>\n {nodes.map((node) => (\n <TreeItem\n key={node.id}\n depth={0}\n expandedIds={expandedIds}\n expansionIndicator={expansionIndicator}\n node={node}\n onSelect={onSelect}\n onToggleExpand={handleToggleExpand}\n renderItem={renderItem}\n selectedId={selectedId}\n interactionPolicy={interactionPolicy}\n />\n ))}\n </View>\n );\n}\n\n/***\n * Tree view pattern for hierarchical navigation and expandable lists.\n * expansionIndicator Select `folder` (default) or `chevron` for leading expansion controls.\n * Expansion controls are separate from row selection, including when rendering custom row content.\n */\nexport const TreeView = withZoraThemeScope(TreeViewInner);\n"]}
@@ -30,7 +30,7 @@ export interface TreeViewProps<TId extends string = string> {
30
30
  }
31
31
  /***
32
32
  * Render the standalone browser TreeView artifact without React Native runtime dependencies.
33
- * @config expansionIndicator Use `chevron` beside custom node icons, or `folder` (default) for
33
+ * expansionIndicator Use `chevron` beside custom node icons, or `folder` (default) for
34
34
  * built-in folder/file indicators. Expansion is leading and independent from row selection.
35
35
  */
36
36
  export declare function TreeView<TId extends string = string>({ nodes, selectedId, expandedIds: controlledExpandedIds, defaultExpandedIds, onSelect, onExpandedChange, renderItem, expansionIndicator, className, style, ariaLabel, }: TreeViewProps<TId>): React.JSX.Element;
@@ -3,7 +3,7 @@ import { toggleExpandedIds } from '../../../utils/toggleExpandedIds';
3
3
  import { TreeItemRow } from './TreeItemRow';
4
4
  /***
5
5
  * Render the standalone browser TreeView artifact without React Native runtime dependencies.
6
- * @config expansionIndicator Use `chevron` beside custom node icons, or `folder` (default) for
6
+ * expansionIndicator Use `chevron` beside custom node icons, or `folder` (default) for
7
7
  * built-in folder/file indicators. Expansion is leading and independent from row selection.
8
8
  */
9
9
  export function TreeView({ nodes, selectedId, expandedIds: controlledExpandedIds, defaultExpandedIds, onSelect, onExpandedChange, renderItem, expansionIndicator = 'folder', className, style, ariaLabel = 'Tree', }) {
@@ -1 +1 @@
1
- {"version":3,"file":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MAAA,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACnB,CAAC,WAAW,CACV,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CACb,KAAK,CAAC,CAAC,CAAC,CAAC,CACT,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,kBAAkB,CAAC,CAAC,kBAAkB,CAAC,CACvC,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,cAAc,CAAC,CAAC,kBAAkB,CAAC,CACnC,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,UAAU,CAAC,CAAC,UAAU,CAAC,EACvB,CACH,CAAC,CACJ;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,GAAG;IACjB,OAAO,EAAE,MAAM;IACf,aAAa,EAAE,QAAQ;IACvB,QAAQ,EAAE,CAAC;CAC2B,CAAC","sourcesContent":["import React from 'react';\n\nimport { toggleExpandedIds } from '../../../utils/toggleExpandedIds';\nimport { TreeItemRow } from './TreeItemRow';\n\nexport interface TreeItemNode<TId extends string = string> {\n readonly id: TId;\n readonly label: React.ReactNode;\n readonly icon?: React.ReactNode;\n readonly children?: readonly TreeItemNode<TId>[];\n readonly disabled?: boolean;\n readonly meta?: React.ReactNode;\n readonly actions?: React.ReactNode;\n}\n\nexport interface TreeItemRenderProps<TId extends string = string> {\n readonly node: TreeItemNode<TId>;\n readonly depth: number;\n readonly selected: boolean;\n readonly expanded: boolean;\n readonly hasChildren: boolean;\n}\n\nexport interface TreeViewProps<TId extends string = string> {\n readonly nodes: readonly TreeItemNode<TId>[];\n readonly selectedId?: TId;\n readonly expandedIds?: readonly TId[];\n readonly defaultExpandedIds?: readonly TId[];\n readonly onSelect?: (id: TId) => void;\n readonly onExpandedChange?: (ids: readonly TId[]) => void;\n readonly renderItem?: (props: TreeItemRenderProps<TId>) => React.ReactNode;\n readonly expansionIndicator?: 'chevron' | 'folder';\n readonly className?: string;\n readonly style?: React.CSSProperties;\n readonly ariaLabel?: string;\n}\n\n/***\n * Render the standalone browser TreeView artifact without React Native runtime dependencies.\n * @config expansionIndicator Use `chevron` beside custom node icons, or `folder` (default) for\n * built-in folder/file indicators. Expansion is leading and independent from row selection.\n */\nexport function TreeView<TId extends string = string>({\n nodes,\n selectedId,\n expandedIds: controlledExpandedIds,\n defaultExpandedIds,\n onSelect,\n onExpandedChange,\n renderItem,\n expansionIndicator = 'folder',\n className,\n style,\n ariaLabel = 'Tree',\n}: TreeViewProps<TId>) {\n const [internalExpandedIds, setInternalExpandedIds] = React.useState<readonly TId[]>(\n defaultExpandedIds ?? [],\n );\n const isControlled = controlledExpandedIds !== undefined;\n const expandedIds = isControlled ? controlledExpandedIds : internalExpandedIds;\n const handleToggleExpand = React.useCallback(\n (id: TId) => {\n const nextExpandedIds = toggleExpandedIds(expandedIds, id);\n if (!isControlled) setInternalExpandedIds(nextExpandedIds);\n onExpandedChange?.(nextExpandedIds);\n },\n [expandedIds, isControlled, onExpandedChange],\n );\n\n return (\n <div\n aria-label={ariaLabel}\n className={className}\n role=\"tree\"\n style={{ ...TREE_STYLE, ...style }}\n >\n {nodes.map((node) => (\n <TreeItemRow\n key={node.id}\n depth={0}\n expandedIds={expandedIds}\n expansionIndicator={expansionIndicator}\n node={node}\n onSelect={onSelect}\n onToggleExpand={handleToggleExpand}\n renderItem={renderItem}\n selectedId={selectedId}\n />\n ))}\n </div>\n );\n}\n\nconst TREE_STYLE = {\n display: 'flex',\n flexDirection: 'column',\n minWidth: 0,\n} as const satisfies React.CSSProperties;\n"]}
1
+ {"version":3,"file":"TreeView.js","sourceRoot":"","sources":["../../../../../../src/features/tree-view/adapters/inbound/web-artifact/TreeView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,WAAW,EAA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zB,kBAAkB,CAAC,CAAC,kBAAkB,CAAC,CACvC,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,cAAc,CAAC,CAAC,kBAAkB,CAAC,CACnC,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,UAAU,CAAC,CAAC,UAAU,CAAC,EACvB,CACH,CAAC,CACJ;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,GAAG;IACjB,OAAO,EAAE,MAAM;IACf,aAAa,EAAE,QAAQ;IACvB,QAAQ,EAAE,CAAC;CAC2B,CAAC","sourcesContent":["import React from 'react';\n\nimport { toggleExpandedIds } from '../../../utils/toggleExpandedIds';\nimport { TreeItemRow } from './TreeItemRow';\n\nexport interface TreeItemNode<TId extends string = string> {\n readonly id: TId;\n readonly label: React.ReactNode;\n readonly icon?: React.ReactNode;\n readonly children?: readonly TreeItemNode<TId>[];\n readonly disabled?: boolean;\n readonly meta?: React.ReactNode;\n readonly actions?: React.ReactNode;\n}\n\nexport interface TreeItemRenderProps<TId extends string = string> {\n readonly node: TreeItemNode<TId>;\n readonly depth: number;\n readonly selected: boolean;\n readonly expanded: boolean;\n readonly hasChildren: boolean;\n}\n\nexport interface TreeViewProps<TId extends string = string> {\n readonly nodes: readonly TreeItemNode<TId>[];\n readonly selectedId?: TId;\n readonly expandedIds?: readonly TId[];\n readonly defaultExpandedIds?: readonly TId[];\n readonly onSelect?: (id: TId) => void;\n readonly onExpandedChange?: (ids: readonly TId[]) => void;\n readonly renderItem?: (props: TreeItemRenderProps<TId>) => React.ReactNode;\n readonly expansionIndicator?: 'chevron' | 'folder';\n readonly className?: string;\n readonly style?: React.CSSProperties;\n readonly ariaLabel?: string;\n}\n\n/***\n * Render the standalone browser TreeView artifact without React Native runtime dependencies.\n * expansionIndicator Use `chevron` beside custom node icons, or `folder` (default) for\n * built-in folder/file indicators. Expansion is leading and independent from row selection.\n */\nexport function TreeView<TId extends string = string>({\n nodes,\n selectedId,\n expandedIds: controlledExpandedIds,\n defaultExpandedIds,\n onSelect,\n onExpandedChange,\n renderItem,\n expansionIndicator = 'folder',\n className,\n style,\n ariaLabel = 'Tree',\n}: TreeViewProps<TId>) {\n const [internalExpandedIds, setInternalExpandedIds] = React.useState<readonly TId[]>(\n defaultExpandedIds ?? [],\n );\n const isControlled = controlledExpandedIds !== undefined;\n const expandedIds = isControlled ? controlledExpandedIds : internalExpandedIds;\n const handleToggleExpand = React.useCallback(\n (id: TId) => {\n const nextExpandedIds = toggleExpandedIds(expandedIds, id);\n if (!isControlled) setInternalExpandedIds(nextExpandedIds);\n onExpandedChange?.(nextExpandedIds);\n },\n [expandedIds, isControlled, onExpandedChange],\n );\n\n return (\n <div\n aria-label={ariaLabel}\n className={className}\n role=\"tree\"\n style={{ ...TREE_STYLE, ...style }}\n >\n {nodes.map((node) => (\n <TreeItemRow\n key={node.id}\n depth={0}\n expandedIds={expandedIds}\n expansionIndicator={expansionIndicator}\n node={node}\n onSelect={onSelect}\n onToggleExpand={handleToggleExpand}\n renderItem={renderItem}\n selectedId={selectedId}\n />\n ))}\n </div>\n );\n}\n\nconst TREE_STYLE = {\n display: 'flex',\n flexDirection: 'column',\n minWidth: 0,\n} as const satisfies React.CSSProperties;\n"]}
@@ -6,10 +6,6 @@ import type { HeadingProps } from '../../../../types/heading';
6
6
  * `Heading` gives consumers a ZORA-owned title API with semantic levels,
7
7
  * responsive sizes, and theme-aware emphasis while preserving header semantics.
8
8
  *
9
- * @example Section title
10
- * ```tsx
11
- * <Heading level={2} size="xl">Account settings</Heading>
12
- * ```
13
9
  */
14
10
  export declare const Heading: (props: HeadingProps) => React.ReactElement | null;
15
11
  //# sourceMappingURL=Heading.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../../../../src/features/typography/adapters/inbound/Heading.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAO9D;;;;;;;;;;GAUG;AACH,eAAO,MAAM,OAAO,oDAAmC,CAAC"}
1
+ {"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../../../../src/features/typography/adapters/inbound/Heading.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAO9D;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,oDAAmC,CAAC"}
@@ -13,10 +13,6 @@ import { resolveHeadingThemeRecipe } from '../../utils/resolveHeadingThemeRecipe
13
13
  * `Heading` gives consumers a ZORA-owned title API with semantic levels,
14
14
  * responsive sizes, and theme-aware emphasis while preserving header semantics.
15
15
  *
16
- * @example Section title
17
- * ```tsx
18
- * <Heading level={2} size="xl">Account settings</Heading>
19
- * ```
20
16
  */
21
17
  export const Heading = withZoraThemeScope(HeadingInner);
22
18
  const headingLayoutStyle = {
@@ -1 +1 @@
1
- {"version":3,"file":"Heading.js","sourceRoot":"","sources":["../../../../../src/features/typography/adapters/inbound/Heading.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,IAAI,IAAI,eAAe,EAAkB,MAAM,cAAc,CAAC;AAGjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAE,yBAAyB,EAAE,MAAM,u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AAE,gBAAgB;gBAC1B,MAAM,EAAE,cAAc;aACvB,CAAC;YACF,KAAK;SACN,CAAC,CAEF;MAAA,CAAC,OAAO,CACV;IAAA,EAAE,eAAe,CAAC,CACnB,CAAC;AACJ,CAAC","sourcesContent":["import { resolveResponsive, useResponsiveRuntime } from '@ankhorage/surface';\nimport React from 'react';\nimport { Platform, Text as ReactNativeText, type TextStyle } from 'react-native';\n\nimport type { HeadingProps } from '../../../../types/heading';\nimport { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';\nimport { useZoraTheme } from '../../../theme/composition/useZoraTheme';\nimport { useZoraThemeRecipe } from '../../../theme/composition/useZoraThemeRecipe';\nimport { resolveHeadingRecipe } from '../../utils/resolveHeadingRecipe';\nimport { resolveHeadingSizeFromLevel } from '../../utils/resolveHeadingSizeFromLevel';\nimport { resolveHeadingThemeRecipe } from '../../utils/resolveHeadingThemeRecipe';\n/***\n * Structured title primitive for accessible page, section, and card headings.\n *\n * `Heading` gives consumers a ZORA-owned title API with semantic levels,\n * responsive sizes, and theme-aware emphasis while preserving header semantics.\n *\n * @example Section title\n * ```tsx\n * <Heading level={2} size=\"xl\">Account settings</Heading>\n * ```\n */\nexport const Heading = withZoraThemeScope(HeadingInner);\n\nconst headingLayoutStyle: TextStyle = {\n flexShrink: 1,\n maxWidth: '100%',\n minWidth: 0,\n ...(Platform.OS === 'web'\n ? {\n overflowWrap: 'break-word',\n whiteSpace: 'normal',\n wordBreak: 'normal',\n }\n : null),\n};\n\nfunction resolveHeadingContent({\n children,\n text,\n i18nKey,\n}: Pick<HeadingProps, 'children' | 'text' | 'i18nKey'>) {\n if (children !== undefined) return children;\n if (text !== undefined) return text;\n if (i18nKey === undefined || i18nKey === '') return null;\n return i18nKey;\n}\n\nfunction HeadingInner({\n themeId: _themeId,\n mode: _mode,\n children,\n text,\n i18nKey,\n level = 2,\n size,\n color,\n emphasis,\n align,\n weight,\n italic,\n numberOfLines,\n ellipsizeMode,\n selectable,\n style,\n accessibilityLabel,\n accessibilityHint,\n accessibilityRole,\n nativeID,\n testID,\n interactionPolicy: _interactionPolicy,\n}: HeadingProps) {\n const { theme } = useZoraTheme();\n const { breakpoint } = useResponsiveRuntime();\n const themeRecipe = resolveHeadingThemeRecipe(useZoraThemeRecipe('Heading'));\n const content = resolveHeadingContent({ children, text, i18nKey });\n const resolvedSize =\n resolveResponsive(size ?? themeRecipe.size, breakpoint) ?? resolveHeadingSizeFromLevel(level);\n const resolvedColor = resolveResponsive(color ?? themeRecipe.color, breakpoint);\n const resolvedEmphasis =\n resolveResponsive(emphasis ?? themeRecipe.emphasis, breakpoint) ?? 'default';\n const resolvedAlign = resolveResponsive(align ?? themeRecipe.align, breakpoint);\n const resolvedWeight = resolveResponsive(weight ?? themeRecipe.weight, breakpoint);\n\n if (content === null) return null;\n\n return (\n <ReactNativeText\n accessibilityHint={accessibilityHint}\n accessibilityLabel={accessibilityLabel}\n accessibilityRole={accessibilityRole ?? 'header'}\n ellipsizeMode={ellipsizeMode}\n nativeID={nativeID}\n numberOfLines={numberOfLines}\n selectable={selectable}\n testID={testID}\n style={[\n headingLayoutStyle,\n resolveHeadingRecipe(theme, {\n align: resolvedAlign,\n italic: italic ?? themeRecipe.italic ?? false,\n level,\n size: resolvedSize,\n color: resolvedColor,\n emphasis: resolvedEmphasis,\n weight: resolvedWeight,\n }),\n style,\n ]}\n >\n {content}\n </ReactNativeText>\n );\n}\n"]}
1
+ {"version":3,"file":"Heading.js","sourceRoot":"","sources":["../../../../../src/features/typography/adapters/inbound/Heading.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,IAAI,IAAI,eAAe,EAAkB,MAAM,cAAc,CAAC;AAGjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,EAAE,YAAY,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,CAAC;YACL,kBAAkB;YAClB,oBAAoB,CAAC,KAAK,EAAE;gBAC1B,KAAK,EAAE,aAAa;gBACpB,MAAM,EAAE,MAAM,IAAI,WAAW,CAAC,MAAM,IAAI,KAAK;gBAC7C,KAAK;gBACL,IAAI,EAAE,YAAY;gBAClB,KAAK,EAAE,aAAa;gBACpB,QAAQ,EAAE,gBAAgB;gBAC1B,MAAM,EAAE,cAAc;aACvB,CAAC;YACF,KAAK;SACN,CAAC,CAEF;MAAA,CAAC,OAAO,CACV;IAAA,EAAE,eAAe,CAAC,CACnB,CAAC;AACJ,CAAC","sourcesContent":["import { resolveResponsive, useResponsiveRuntime } from '@ankhorage/surface';\nimport React from 'react';\nimport { Platform, Text as ReactNativeText, type TextStyle } from 'react-native';\n\nimport type { HeadingProps } from '../../../../types/heading';\nimport { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';\nimport { useZoraTheme } from '../../../theme/composition/useZoraTheme';\nimport { useZoraThemeRecipe } from '../../../theme/composition/useZoraThemeRecipe';\nimport { resolveHeadingRecipe } from '../../utils/resolveHeadingRecipe';\nimport { resolveHeadingSizeFromLevel } from '../../utils/resolveHeadingSizeFromLevel';\nimport { resolveHeadingThemeRecipe } from '../../utils/resolveHeadingThemeRecipe';\n/***\n * Structured title primitive for accessible page, section, and card headings.\n *\n * `Heading` gives consumers a ZORA-owned title API with semantic levels,\n * responsive sizes, and theme-aware emphasis while preserving header semantics.\n *\n */\nexport const Heading = withZoraThemeScope(HeadingInner);\n\nconst headingLayoutStyle: TextStyle = {\n flexShrink: 1,\n maxWidth: '100%',\n minWidth: 0,\n ...(Platform.OS === 'web'\n ? {\n overflowWrap: 'break-word',\n whiteSpace: 'normal',\n wordBreak: 'normal',\n }\n : null),\n};\n\nfunction resolveHeadingContent({\n children,\n text,\n i18nKey,\n}: Pick<HeadingProps, 'children' | 'text' | 'i18nKey'>) {\n if (children !== undefined) return children;\n if (text !== undefined) return text;\n if (i18nKey === undefined || i18nKey === '') return null;\n return i18nKey;\n}\n\nfunction HeadingInner({\n themeId: _themeId,\n mode: _mode,\n children,\n text,\n i18nKey,\n level = 2,\n size,\n color,\n emphasis,\n align,\n weight,\n italic,\n numberOfLines,\n ellipsizeMode,\n selectable,\n style,\n accessibilityLabel,\n accessibilityHint,\n accessibilityRole,\n nativeID,\n testID,\n interactionPolicy: _interactionPolicy,\n}: HeadingProps) {\n const { theme } = useZoraTheme();\n const { breakpoint } = useResponsiveRuntime();\n const themeRecipe = resolveHeadingThemeRecipe(useZoraThemeRecipe('Heading'));\n const content = resolveHeadingContent({ children, text, i18nKey });\n const resolvedSize =\n resolveResponsive(size ?? themeRecipe.size, breakpoint) ?? resolveHeadingSizeFromLevel(level);\n const resolvedColor = resolveResponsive(color ?? themeRecipe.color, breakpoint);\n const resolvedEmphasis =\n resolveResponsive(emphasis ?? themeRecipe.emphasis, breakpoint) ?? 'default';\n const resolvedAlign = resolveResponsive(align ?? themeRecipe.align, breakpoint);\n const resolvedWeight = resolveResponsive(weight ?? themeRecipe.weight, breakpoint);\n\n if (content === null) return null;\n\n return (\n <ReactNativeText\n accessibilityHint={accessibilityHint}\n accessibilityLabel={accessibilityLabel}\n accessibilityRole={accessibilityRole ?? 'header'}\n ellipsizeMode={ellipsizeMode}\n nativeID={nativeID}\n numberOfLines={numberOfLines}\n selectable={selectable}\n testID={testID}\n style={[\n headingLayoutStyle,\n resolveHeadingRecipe(theme, {\n align: resolvedAlign,\n italic: italic ?? themeRecipe.italic ?? false,\n level,\n size: resolvedSize,\n color: resolvedColor,\n emphasis: resolvedEmphasis,\n weight: resolvedWeight,\n }),\n style,\n ]}\n >\n {content}\n </ReactNativeText>\n );\n}\n"]}
@@ -6,10 +6,6 @@ import type { TextProps } from '../../../../types/text';
6
6
  * `Text` owns normal body, caption, label, code, and supporting-copy variants so
7
7
  * consumers do not need to import lower-level Surface typography directly.
8
8
  *
9
- * @example Muted supporting copy
10
- * ```tsx
11
- * <Text variant="bodySmall" emphasis="muted">Updated just now</Text>
12
- * ```
13
9
  */
14
10
  export declare const Text: (props: TextProps) => React.ReactElement | null;
15
11
  //# sourceMappingURL=Text.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../../src/features/typography/adapters/inbound/Text.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAMxD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,IAAI,iDAAgC,CAAC"}
1
+ {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../../src/features/typography/adapters/inbound/Text.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAMxD;;;;;;GAMG;AACH,eAAO,MAAM,IAAI,iDAAgC,CAAC"}
@@ -12,10 +12,6 @@ import { resolveTextThemeRecipe } from '../../utils/resolveTextThemeRecipe';
12
12
  * `Text` owns normal body, caption, label, code, and supporting-copy variants so
13
13
  * consumers do not need to import lower-level Surface typography directly.
14
14
  *
15
- * @example Muted supporting copy
16
- * ```tsx
17
- * <Text variant="bodySmall" emphasis="muted">Updated just now</Text>
18
- * ```
19
15
  */
20
16
  export const Text = withZoraThemeScope(TextInner);
21
17
  const textLayoutStyle = {
@@ -1 +1 @@
1
- {"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../../../src/features/typography/adapters/inbound/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,IAAI,IAAI,eAAe,EAAkB,MAAM,cAAc,CAAC;AAGjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,EAAE,Y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C,CAE/C;MAAA,CAAC,OAAO,CACV;IAAA,EAAE,eAAe,CAAC,CACnB,CAAC;AACJ,CAAC","sourcesContent":["import { resolveResponsive, useResponsiveRuntime } from '@ankhorage/surface';\nimport React from 'react';\nimport { Platform, Text as ReactNativeText, type TextStyle } from 'react-native';\n\nimport type { TextProps } from '../../../../types/text';\nimport { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';\nimport { useZoraTheme } from '../../../theme/composition/useZoraTheme';\nimport { useZoraThemeRecipe } from '../../../theme/composition/useZoraThemeRecipe';\nimport { resolveTextStyle } from '../../utils/resolveTextStyle';\nimport { resolveTextThemeRecipe } from '../../utils/resolveTextThemeRecipe';\n/***\n * Structured copy primitive for theme-aware app text.\n *\n * `Text` owns normal body, caption, label, code, and supporting-copy variants so\n * consumers do not need to import lower-level Surface typography directly.\n *\n * @example Muted supporting copy\n * ```tsx\n * <Text variant=\"bodySmall\" emphasis=\"muted\">Updated just now</Text>\n * ```\n */\nexport const Text = withZoraThemeScope(TextInner);\n\nconst textLayoutStyle: TextStyle = {\n flexShrink: 1,\n maxWidth: '100%',\n minWidth: 0,\n ...(Platform.OS === 'web'\n ? {\n overflowWrap: 'break-word',\n whiteSpace: 'normal',\n wordBreak: 'normal',\n }\n : null),\n};\n\nfunction resolveTextContent({\n children,\n text,\n i18nKey,\n}: {\n children: TextProps['children'];\n text: TextProps['text'];\n i18nKey: TextProps['i18nKey'];\n}): React.ReactNode {\n if (children !== undefined) return children;\n if (text !== undefined) return text;\n if (i18nKey === undefined || i18nKey === '') return null;\n return i18nKey;\n}\n\nfunction TextInner({\n themeId: _themeId,\n mode: _mode,\n children,\n text,\n i18nKey,\n variant,\n color,\n emphasis,\n align,\n weight,\n italic,\n numberOfLines,\n ellipsizeMode,\n selectable,\n style,\n accessibilityLabel,\n accessibilityHint,\n accessibilityRole,\n accessibilityLiveRegion,\n nativeID,\n testID,\n interactionPolicy: _interactionPolicy,\n}: TextProps) {\n const { theme } = useZoraTheme();\n const { breakpoint } = useResponsiveRuntime();\n const themeRecipe = resolveTextThemeRecipe(useZoraThemeRecipe('Text'));\n const content = resolveTextContent({ children, text, i18nKey });\n const resolvedVariant = resolveResponsive(variant ?? themeRecipe.variant, breakpoint) ?? 'body';\n const resolvedStyle = resolveTextStyle({\n theme,\n breakpoint,\n variant: resolvedVariant,\n color: color ?? themeRecipe.color,\n emphasis: emphasis ?? themeRecipe.emphasis,\n align: align ?? themeRecipe.align,\n weight: weight ?? themeRecipe.weight,\n italic: italic ?? themeRecipe.italic ?? false,\n });\n\n if (content === null || content === undefined) return null;\n\n return (\n <ReactNativeText\n accessibilityHint={accessibilityHint}\n accessibilityLabel={accessibilityLabel}\n accessibilityLiveRegion={accessibilityLiveRegion}\n accessibilityRole={accessibilityRole}\n ellipsizeMode={ellipsizeMode}\n nativeID={nativeID}\n numberOfLines={numberOfLines}\n selectable={selectable}\n testID={testID}\n style={[textLayoutStyle, resolvedStyle, style]}\n >\n {content}\n </ReactNativeText>\n );\n}\n"]}
1
+ {"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../../../src/features/typography/adapters/inbound/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,IAAI,IAAI,eAAe,EAAkB,MAAM,cAAc,CAAC;AAGjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACnF,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,kBAAkB,CAAC,SA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iBAAiB,CAAC,OAAO,IAAI,WAAW,CAAC,OAAO,EAAE,UAAU,CAAC,IAAI,MAAM,CAAC;IAChG,MAAM,aAAa,GAAG,gBAAgB,CAAC;QACrC,KAAK;QACL,UAAU;QACV,OAAO,EAAE,eAAe;QACxB,KAAK,EAAE,KAAK,IAAI,WAAW,CAAC,KAAK;QACjC,QAAQ,EAAE,QAAQ,IAAI,WAAW,CAAC,QAAQ;QAC1C,KAAK,EAAE,KAAK,IAAI,WAAW,CAAC,KAAK;QACjC,MAAM,EAAE,MAAM,IAAI,WAAW,CAAC,MAAM;QACpC,MAAM,EAAE,MAAM,IAAI,WAAW,CAAC,MAAM,IAAI,KAAK;KAC9C,CAAC,CAAC;IAEH,IAAI,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,SAAS;QAAE,OAAO,IAAI,CAAC;IAE3D,OAAO,CACL,CAAC,eAAe,CACd,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CACrC,kBAAkB,CAAC,CAAC,kBAAkB,CAAC,CACvC,uBAAuB,CAAC,CAAC,uBAAuB,CAAC,CACjD,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CACrC,aAAa,CAAC,CAAC,aAAa,CAAC,CAC7B,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,aAAa,CAAC,CAAC,aAAa,CAAC,CAC7B,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,KAAK,CAAC,CAAC,CAAC,eAAe,EAAE,aAAa,EAAE,KAAK,CAAC,CAAC,CAE/C;MAAA,CAAC,OAAO,CACV;IAAA,EAAE,eAAe,CAAC,CACnB,CAAC;AACJ,CAAC","sourcesContent":["import { resolveResponsive, useResponsiveRuntime } from '@ankhorage/surface';\nimport React from 'react';\nimport { Platform, Text as ReactNativeText, type TextStyle } from 'react-native';\n\nimport type { TextProps } from '../../../../types/text';\nimport { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';\nimport { useZoraTheme } from '../../../theme/composition/useZoraTheme';\nimport { useZoraThemeRecipe } from '../../../theme/composition/useZoraThemeRecipe';\nimport { resolveTextStyle } from '../../utils/resolveTextStyle';\nimport { resolveTextThemeRecipe } from '../../utils/resolveTextThemeRecipe';\n/***\n * Structured copy primitive for theme-aware app text.\n *\n * `Text` owns normal body, caption, label, code, and supporting-copy variants so\n * consumers do not need to import lower-level Surface typography directly.\n *\n */\nexport const Text = withZoraThemeScope(TextInner);\n\nconst textLayoutStyle: TextStyle = {\n flexShrink: 1,\n maxWidth: '100%',\n minWidth: 0,\n ...(Platform.OS === 'web'\n ? {\n overflowWrap: 'break-word',\n whiteSpace: 'normal',\n wordBreak: 'normal',\n }\n : null),\n};\n\nfunction resolveTextContent({\n children,\n text,\n i18nKey,\n}: {\n children: TextProps['children'];\n text: TextProps['text'];\n i18nKey: TextProps['i18nKey'];\n}): React.ReactNode {\n if (children !== undefined) return children;\n if (text !== undefined) return text;\n if (i18nKey === undefined || i18nKey === '') return null;\n return i18nKey;\n}\n\nfunction TextInner({\n themeId: _themeId,\n mode: _mode,\n children,\n text,\n i18nKey,\n variant,\n color,\n emphasis,\n align,\n weight,\n italic,\n numberOfLines,\n ellipsizeMode,\n selectable,\n style,\n accessibilityLabel,\n accessibilityHint,\n accessibilityRole,\n accessibilityLiveRegion,\n nativeID,\n testID,\n interactionPolicy: _interactionPolicy,\n}: TextProps) {\n const { theme } = useZoraTheme();\n const { breakpoint } = useResponsiveRuntime();\n const themeRecipe = resolveTextThemeRecipe(useZoraThemeRecipe('Text'));\n const content = resolveTextContent({ children, text, i18nKey });\n const resolvedVariant = resolveResponsive(variant ?? themeRecipe.variant, breakpoint) ?? 'body';\n const resolvedStyle = resolveTextStyle({\n theme,\n breakpoint,\n variant: resolvedVariant,\n color: color ?? themeRecipe.color,\n emphasis: emphasis ?? themeRecipe.emphasis,\n align: align ?? themeRecipe.align,\n weight: weight ?? themeRecipe.weight,\n italic: italic ?? themeRecipe.italic ?? false,\n });\n\n if (content === null || content === undefined) return null;\n\n return (\n <ReactNativeText\n accessibilityHint={accessibilityHint}\n accessibilityLabel={accessibilityLabel}\n accessibilityLiveRegion={accessibilityLiveRegion}\n accessibilityRole={accessibilityRole}\n ellipsizeMode={ellipsizeMode}\n nativeID={nativeID}\n numberOfLines={numberOfLines}\n selectable={selectable}\n testID={testID}\n style={[textLayoutStyle, resolvedStyle, style]}\n >\n {content}\n </ReactNativeText>\n );\n}\n"]}
package/dist/index.d.ts CHANGED
@@ -33,6 +33,10 @@ export { PostCard } from './features/card/public';
33
33
  export { ProductCard } from './features/card/public';
34
34
  export type { ChatListAvatar, ChatListItemProps, MessageBubbleAuthor, MessageBubbleAvatar, MessageBubbleDirection, MessageBubbleProps, MessageBubbleStatus, } from './features/chat/public';
35
35
  export { ChatListItem, MessageBubble } from './features/chat/public';
36
+ export type { ChessBoardColorOverrides, ChessBoardColorScheme, ChessBoardOrientation, ChessBoardProps, ChessMoveAttempt, ChessPieceCode, ChessPieceRenderContext, ChessPieceRenderer, ChessPieceState, ChessPromotionPiece, ChessSquareId, OpeningBookColorOverrides, OpeningBookColorScheme, OpeningBookMove, OpeningBookProps, } from './features/chess/public';
37
+ export type { ChessColorThemeShape } from './features/chess/public';
38
+ export { ChessBoard, OpeningBook } from './features/chess/public';
39
+ export { chessSquares, createBoardSquares, createChessBoardColorScheme, createOpeningBookColorScheme, getSquareFile, getSquareRank, isLightSquare, } from './features/chess/public';
36
40
  export type { ChipProps } from './features/chip/public';
37
41
  export type { ChipGroupItem, ChipGroupProps } from './features/chip/public';
38
42
  export { Chip } from './features/chip/public';
@@ -54,6 +58,8 @@ export { SearchInput, type SearchInputProps } from './features/form/search-input
54
58
  export { Select, type SelectOption, type SelectProps } from './features/form/select/public';
55
59
  export { Switch, type SwitchProps } from './features/form/switch/public';
56
60
  export { TextInput, type TextInputProps, type TextInputTrailingAction, } from './features/form/text-input/public';
61
+ export type { GameEntityEasing, GameEntityMotionProps, GameEntityProps, GameFieldProps, GameInputZoneProps, GameKeyboardBinding, GameMeasurementProbeProps, GameOverlayPlacement, GameOverlayProps, GamePointerEvents, GameProps, } from './features/game/public';
62
+ export { Game, GameEntity, GameField, GameInputZone, GameMeasurementProbe, GameOverlay, } from './features/game/public';
57
63
  export type { GradientColor, GradientColors, GradientLocations, GradientPoint, GradientProps, GradientRenderer, GradientRendererProps, GradientRendererProviderProps, } from './features/gradient/public';
58
64
  export { Gradient, GradientRendererProvider } from './features/gradient/public';
59
65
  export { Hero, type HeroAction, type HeroAlign, type HeroLayout, type HeroProps, type HeroTone, } from './features/hero/public';
@@ -88,6 +94,8 @@ export { SelectableItem, SelectionProvider, useSelection } from './features/sele
88
94
  export { Skeleton, SkeletonCard, type SkeletonCardProps, type SkeletonDimension, SkeletonList, type SkeletonListProps, type SkeletonListVariant, type SkeletonProps, type SkeletonRadius, SkeletonText, type SkeletonTextProps, } from './features/skeleton/public';
89
95
  export type { SurfaceProps, SurfaceVariant } from './features/surface/public';
90
96
  export { Surface } from './features/surface/public';
97
+ export type { CardBackProps, CardHandProps, CreatePokerTrainingTableStateOptions, CreateTabletopGameSeatsInput, PlayingCardProps, PlayingCardSuit, PlayingCardValue, PokerTrainingPlayer, PokerTrainingTableProps, PokerTrainingTableSize, PokerTrainingTableState, PokerTrainingTaskTableData, TabletopCardSize, TabletopColorOverrides, TabletopColorScheme, TabletopGameParticipantState, TabletopGameSeatDefinition, TabletopGameSeatPresentation, TabletopSeatCount, TabletopSeatState, TabletopShape, TabletopTableProps, } from './features/tabletop/public';
98
+ export { CardBack, CardHand, createPokerTrainingTableState, createTabletopColorScheme, createTabletopGameSeats, PlayingCard, PokerTrainingTable, TabletopTable, } from './features/tabletop/public';
91
99
  export { Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Tabs, type TabsProps, } from './features/tabs/public';
92
100
  export type { ZoraColor, ZoraEmphasis, ZoraPaletteColor, ZoraStatusColor, } from './features/theme/colorModel';
93
101
  export { ZORA_COLORS, ZORA_EMPHASES, ZORA_PALETTE_COLORS, ZORA_STATUS_COLORS, } from './features/theme/colorModel';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,aAAa,EACb,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EACnB,KAAK,oBAAoB,GAC1B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,iBAAiB,EACjB,KAAK,sBAAsB,GAC5B,MAAM,sCAAsC,CAAC;AAC9C,YAAY,EAAE,UAAU,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7F,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,YAAY,EACV,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,wBAAwB,EACxB,wBAAwB,EACxB,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,sBAAsB,EACtB,YAAY,EACZ,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,gBAAgB,GACjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,4BAA4B,EAC5B,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,OAAO,EACP,wBAAwB,EACxB,yBAAyB,EACzB,UAAU,EACV,UAAU,GACX,MAAM,wBAAwB,CAAC;AAChC,YAAY,EACV,yBAAyB,EACzB,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,kCAAkC,EAClC,kCAAkC,EAClC,6BAA6B,EAC7B,qBAAqB,EACrB,2BAA2B,EAC3B,iBAAiB,EACjB,yBAAyB,EACzB,gCAAgC,EAChC,0BAA0B,EAC1B,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,qBAAqB,EACrB,+BAA+B,EAC/B,8BAA8B,EAC9B,wBAAwB,EACxB,mBAAmB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BAA6B,CAAC;AACjE,YAAY,EACV,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,aAAa,GACd,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACV,SAAS,EACT,SAAS,EACT,YAAY,EACZ,SAAS,EACT,WAAW,EACX,UAAU,GACX,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,YAAY,EACV,WAAW,EACX,eAAe,EACf,aAAa,EACb,qBAAqB,EACrB,UAAU,EACV,wBAAwB,GACzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,YAAY,EACV,yBAAyB,EACzB,iCAAiC,EACjC,8BAA8B,EAC9B,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC"}
package/dist/index.js CHANGED
@@ -17,6 +17,8 @@ export { MetricCard } from './features/card/public';
17
17
  export { PostCard } from './features/card/public';
18
18
  export { ProductCard } from './features/card/public';
19
19
  export { ChatListItem, MessageBubble } from './features/chat/public';
20
+ export { ChessBoard, OpeningBook } from './features/chess/public';
21
+ export { chessSquares, createBoardSquares, createChessBoardColorScheme, createOpeningBookColorScheme, getSquareFile, getSquareRank, isLightSquare, } from './features/chess/public';
20
22
  export { Chip } from './features/chip/public';
21
23
  export { ChipGroup } from './features/chip/public';
22
24
  export { CollectionEditor } from './features/collection-editor/public';
@@ -32,6 +34,7 @@ export { SearchInput } from './features/form/search-input/public';
32
34
  export { Select } from './features/form/select/public';
33
35
  export { Switch } from './features/form/switch/public';
34
36
  export { TextInput, } from './features/form/text-input/public';
37
+ export { Game, GameEntity, GameField, GameInputZone, GameMeasurementProbe, GameOverlay, } from './features/game/public';
35
38
  export { Gradient, GradientRendererProvider } from './features/gradient/public';
36
39
  export { Hero, } from './features/hero/public';
37
40
  export { Icon } from './features/icon/public';
@@ -55,6 +58,7 @@ export { ScreenSection, SectionHeader, } from './features/section/public';
55
58
  export { SelectableItem, SelectionProvider, useSelection } from './features/selection/public';
56
59
  export { Skeleton, SkeletonCard, SkeletonList, SkeletonText, } from './features/skeleton/public';
57
60
  export { Surface } from './features/surface/public';
61
+ export { CardBack, CardHand, createPokerTrainingTableState, createTabletopColorScheme, createTabletopGameSeats, PlayingCard, PokerTrainingTable, TabletopTable, } from './features/tabletop/public';
58
62
  export { Tab, TabList, TabPanel, Tabs, } from './features/tabs/public';
59
63
  export { ZORA_COLORS, ZORA_EMPHASES, ZORA_PALETTE_COLORS, ZORA_STATUS_COLORS, } from './features/theme/colorModel';
60
64
  export * from './features/theme/public';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,aAAa,GAMd,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,iBAAiB,GAElB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAmBnD,OAAO,EACL,4BAA4B,EAC5B,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,OAAO,EACP,wBAAwB,EACxB,yBAAyB,EACzB,UAAU,EACV,UAAU,GACX,MAAM,wBAAwB,CAAC;AA4BhC,OAAO,EACL,4BAA4B,EAC5B,mBAAmB,EACnB,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;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leProps,\n type AccordionProps,\n type AccordionSingleProps,\n} from './features/accordion/public';\nexport {\n ActivityIndicator,\n type ActivityIndicatorProps,\n} from './features/activity-indicator/public';\nexport type { AppBarMode, AppBarOverflowMenu, AppBarProps } from './features/app-bar/public';\nexport { AppBar } from './features/app-bar/public';\nexport type {\n AuthFormBaseProps,\n AuthIdentifierKind,\n ForgotPasswordFormProps,\n ForgotPasswordFormValues,\n OAuthProviderButtonProps,\n OAuthProviderIconSpec,\n OAuthProviderItem,\n OAuthProviderListLayout,\n OAuthProviderListProps,\n OtpFormProps,\n OtpFormValues,\n SignInFormProps,\n SignInFormValues,\n SignUpFormField,\n SignUpFormProps,\n SignUpFormValues,\n} from './features/auth/public';\nexport {\n DEFAULT_OAUTH_PROVIDER_ICONS,\n ForgotPasswordForm,\n OAuthProviderButton,\n OAuthProviderList,\n OtpForm,\n resolveOAuthProviderIcon,\n resolveOAuthProviderLabel,\n SignInForm,\n SignUpForm,\n} from './features/auth/public';\nexport type {\n ZoraBindableComponentType,\n ZoraComponentBlueprint,\n ZoraComponentCategory,\n ZoraComponentEventMeta,\n ZoraComponentEventPayloadFieldMeta,\n ZoraComponentEventPayloadFieldType,\n ZoraComponentEventPayloadKind,\n ZoraComponentI18nMeta,\n ZoraComponentManifestPolicy,\n ZoraComponentMeta,\n ZoraComponentMetaRegistry,\n ZoraComponentPropArrayItemSchema,\n ZoraComponentPropAuthoring,\n ZoraComponentPropSchema,\n ZoraComponentPropType,\n ZoraComponentPropValue,\n ZoraComponentSlotMeta,\n ZoraThemeRecipeBooleanFieldMeta,\n ZoraThemeRecipeChoiceFieldMeta,\n ZoraThemeRecipeFieldMeta,\n ZoraThemeRecipeKind,\n ZoraThemeRecipeMeta,\n ZoraThemeRecipeMetaRegistry,\n ZoraThemeRecipeTokenFieldMeta,\n ZoraThemeTokenFamily,\n} from './features/authoring';\nexport {\n ZORA_BINDABLE_COMPONENT_META,\n ZORA_COMPONENT_META,\n ZORA_THEME_RECIPE_META,\n ZORA_THEME_TOKEN_FAMILIES,\n} from './features/authoring';\nexport type { AvatarProps, AvatarShape, AvatarSize } from './features/avatar/public';\nexport type { AvatarGroupItem, AvatarGroupProps } from './features/avatar/public';\nexport { Avatar, resolveAvatarInitials } from './features/avatar/public';\nexport { AvatarGroup } from './features/avatar/public';\nexport type { BadgeProps } from './features/badge/public';\nexport { Badge } from './features/badge/public';\nexport type { BottomSheetProps } from './features/bottom-sheet/public';\nexport { BottomSheet } from './features/bottom-sheet/public';\nexport {\n type BreadcrumbItem,\n type BreadcrumbPressEvent,\n Breadcrumbs,\n type BreadcrumbsProps,\n} from './features/breadcrumbs/public';\nexport type { ButtonProps } from './features/button/public';\nexport type {\n ButtonGroupAlign,\n ButtonGroupOrientation,\n ButtonGroupProps,\n} from './features/button/public';\nexport type { IconButtonProps } from './features/button/public';\nexport { Button } from './features/button/public';\nexport { ButtonGroup } from './features/button/public';\nexport { IconButton } from './features/button/public';\nexport type { CardProps } from './features/card/public';\nexport type { MediaCardImageProps, MediaCardProps } from './features/card/public';\nexport type { MetricCardProps } from './features/card/public';\nexport type {\n PostAction,\n PostAuthor,\n PostAuthorAvatar,\n PostCardMedia,\n PostCardProps,\n} from './features/card/public';\nexport type { ProductCardProps } from './features/card/public';\nexport { Card } from './features/card/public';\nexport { MediaCard } from './features/card/public';\nexport { MetricCard } from './features/card/public';\nexport { PostCard } from './features/card/public';\nexport { ProductCard } from './features/card/public';\nexport type {\n ChatListAvatar,\n ChatListItemProps,\n MessageBubbleAuthor,\n MessageBubbleAvatar,\n MessageBubbleDirection,\n MessageBubbleProps,\n MessageBubbleStatus,\n} from './features/chat/public';\nexport { ChatListItem, MessageBubble } from './features/chat/public';\nexport type { ChipProps } from './features/chip/public';\nexport type { ChipGroupItem, ChipGroupProps } from './features/chip/public';\nexport { Chip } from './features/chip/public';\nexport { ChipGroup } from './features/chip/public';\nexport type {\n CollectionEditorProps,\n CollectionEditorRenderItemProps,\n} from './features/collection-editor/public';\nexport { CollectionEditor } from './features/collection-editor/public';\nexport type {\n ContentRailControlPressEvent,\n ContentRailDirection,\n ContentRailItemSize,\n ContentRailMotion,\n ContentRailProps,\n ContentRailSpacing,\n ContentRailVisibleRangeChangeEvent,\n} from './features/content-rail/public';\nexport { ContentRail } from './features/content-rail/public';\nexport type {\n DataTableCellContext,\n DataTableColumn,\n DataTableColumnAlign,\n DataTableDensity,\n DataTableProps,\n DataTableRowAction,\n DataTableSortDirection,\n DataTableSortState,\n} from './features/data-table/public';\nexport { DataTable } from './features/data-table/public';\nexport {\n DatePicker,\n type DatePickerProps,\n type DatePickerValue,\n} from './features/date-picker/public';\nexport { Dialog, type DialogProps } from './features/dialog/public';\nexport {\n EmptyState,\n type EmptyStateAction,\n type EmptyStateProps,\n} from './features/empty-state/public';\nexport {\n Checkbox,\n CheckboxGroup,\n type CheckboxGroupOption,\n type CheckboxGroupProps,\n type CheckboxProps,\n} from './features/form/checkbox/public';\nexport type {\n FieldProps,\n FormActionsProps,\n FormErrorProps,\n FormErrors,\n FormFieldConfig,\n FormFieldInputType,\n FormProps,\n FormValidationErrors,\n FormValidationResult,\n FormValues,\n UseFormControllerOptions,\n UseFormControllerResult,\n ValidationRule,\n} from './features/form/public';\nexport {\n Field,\n Form,\n FormActions,\n FormError,\n hasRequiredRule,\n useFormController,\n validateField,\n validateFields,\n validateValue,\n} from './features/form/public';\nexport {\n Radio,\n RadioGroup,\n type RadioGroupOption,\n type RadioGroupProps,\n type RadioProps,\n} from './features/form/radio/public';\nexport { SearchInput, type SearchInputProps } from './features/form/search-input/public';\nexport { Select, type SelectOption, type SelectProps } from './features/form/select/public';\nexport { Switch, type SwitchProps } from './features/form/switch/public';\nexport {\n TextInput,\n type TextInputProps,\n type TextInputTrailingAction,\n} from './features/form/text-input/public';\nexport type {\n GradientColor,\n GradientColors,\n GradientLocations,\n GradientPoint,\n GradientProps,\n GradientRenderer,\n GradientRendererProps,\n GradientRendererProviderProps,\n} from './features/gradient/public';\nexport { Gradient, GradientRendererProvider } from './features/gradient/public';\nexport {\n Hero,\n type HeroAction,\n type HeroAlign,\n type HeroLayout,\n type HeroProps,\n type HeroTone,\n} from './features/hero/public';\nexport type { IconProps } from './features/icon/public';\nexport { Icon } from './features/icon/public';\nexport type { ImageFit, ImageProps, SurfaceImageSource } from './features/image/public';\nexport { Image } from './features/image/public';\nexport {\n KeyboardAvoidingView,\n type KeyboardAvoidingViewBehavior,\n type KeyboardAvoidingViewProps,\n} from './features/keyboard-avoiding-view/public';\nexport type {\n AppShellProps,\n DividerProps,\n GridProps,\n ScreenProps,\n ScrollViewProps,\n ViewProps,\n} from './features/layout/public';\nexport { AppShell, Divider, Grid, Screen, ScrollView, View } from './features/layout/public';\nexport type {\n ManifestListProps,\n ManifestListSection,\n ManifestSectionListProps,\n} from './features/list/public';\nexport type {\n ListChildrenProps,\n ListItemProps,\n ListItemsProps,\n ListItemVariant,\n ListProps,\n ListSectionProps,\n} from './features/list/public';\nexport { FlatList, SectionList } from './features/list/public';\nexport { List, ListItem, ListSection } from './features/list/public';\nexport { MissingElement, type MissingElementProps } from './features/missing-element/public';\nexport { Pagination, type PaginationProps } from './features/pagination/public';\nexport type { PaletteItemProps } from './features/palette-item/public';\nexport { PaletteItem } from './features/palette-item/public';\nexport {\n composeZoraPluginMetadata,\n ZORA_CORE_PLUGIN_METADATA,\n ZoraPluginCompositionError,\n} from './features/plugin/public';\nexport { composeZoraPlugins, ZORA_CORE_PLUGIN } from './features/plugin/runtime';\nexport {\n PopoverMenu,\n type PopoverMenuAction,\n type PopoverMenuActionIntent,\n type PopoverMenuProps,\n} from './features/popover-menu/public';\nexport {\n Progress,\n type ProgressProps,\n ProgressRing,\n type ProgressRingProps,\n} from './features/progress/public';\nexport { Rating, type RatingProps } from './features/rating/public';\nexport type {\n ReaderColorScheme,\n ReaderDocumentFormat,\n ReaderErrorCode,\n ReaderErrorEvent,\n ReaderExternalLinkEvent,\n ReaderLineHeight,\n ReaderLocationChangeEvent,\n ReaderNavigationTrigger,\n ReaderResolvedSource,\n ReaderStatus,\n ReaderSurfaceProps,\n} from './features/reader/public';\nexport { ReaderSurface, resolveReaderProgress } from './features/reader/public';\nexport { ZORA_COMPONENT_REGISTRY } from './features/registry/public';\nexport type {\n BarcodeScannerViewProps,\n BarcodeScanResult,\n CameraPermissionStatus,\n CameraPermissionViewProps,\n ScanOverlayProps,\n} from './features/scanner/public';\nexport { BarcodeScannerView, CameraPermissionView, ScanOverlay } from './features/scanner/public';\nexport {\n ScreenSection,\n type ScreenSectionProps,\n SectionHeader,\n type SectionHeaderProps,\n} from './features/section/public';\nexport type {\n SelectableItemProps,\n SelectableItemState,\n SelectionMode,\n SelectionProviderProps,\n SelectionTrigger,\n UseSelectionResult,\n} from './features/selection/public';\nexport { SelectableItem, SelectionProvider, useSelection } from './features/selection/public';\nexport {\n Skeleton,\n SkeletonCard,\n type SkeletonCardProps,\n type SkeletonDimension,\n SkeletonList,\n type SkeletonListProps,\n type SkeletonListVariant,\n type SkeletonProps,\n type SkeletonRadius,\n SkeletonText,\n type SkeletonTextProps,\n} from './features/skeleton/public';\nexport type { SurfaceProps, SurfaceVariant } from './features/surface/public';\nexport { Surface } from './features/surface/public';\nexport {\n Tab,\n TabList,\n type TabListProps,\n TabPanel,\n type TabPanelProps,\n type TabProps,\n Tabs,\n type TabsProps,\n} from './features/tabs/public';\nexport type {\n ZoraColor,\n ZoraEmphasis,\n ZoraPaletteColor,\n ZoraStatusColor,\n} from './features/theme/colorModel';\nexport {\n ZORA_COLORS,\n ZORA_EMPHASES,\n ZORA_PALETTE_COLORS,\n ZORA_STATUS_COLORS,\n} from './features/theme/colorModel';\nexport * from './features/theme/public';\nexport * from './features/theme/runtime';\nexport {\n TimePicker,\n type TimePickerProps,\n type TimePickerValue,\n} from './features/time-picker/public';\nexport type { TimelineItem, TimelineProps } from './features/timeline/public';\nexport { Timeline } from './features/timeline/public';\nexport type {\n ToastController,\n ToastOptions,\n ToastProps,\n ToastProviderProps,\n ToastStatus,\n} from './features/toast/public';\nexport { Toast, ToastProvider, useToast } from './features/toast/public';\nexport { Toolbar, type ToolbarProps } from './features/toolbar/public';\nexport type { TreeItemNode, TreeItemRenderProps, TreeViewProps } from './features/tree-view/public';\nexport { TreeItem, TreeView } from './features/tree-view/public';\nexport type {\n HeadingAlign,\n HeadingColor,\n HeadingEmphasis,\n HeadingLevel,\n HeadingProps,\n HeadingSize,\n HeadingWeight,\n} from './features/typography/public';\nexport type {\n TextAlign,\n TextColor,\n TextEmphasis,\n TextProps,\n TextVariant,\n TextWeight,\n} from './features/typography/public';\nexport { Heading } from './features/typography/public';\nexport { Text } from './features/typography/public';\nexport type {\n UploadAsset,\n UploadAssetBase,\n UploaderProps,\n UploadProgressContext,\n UploadType,\n ValidateUploadAssetInput,\n} from './features/uploader/public';\nexport { Uploader, validateUploadAsset } from './features/uploader/public';\nexport type {\n ComposedZoraPluginCatalog,\n ComposedZoraPluginMetadataCatalog,\n ZoraPluginCompositionErrorCode,\n ZoraPluginDescriptor,\n ZoraPluginMetadata,\n ZoraPluginPlacement,\n} from './types/plugin';\nexport type { ZoraComponentRegistry } from './types/registry';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,aAAa,GAMd,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,iBAAiB,GAElB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAmBnD,OAAO,EACL,4BAA4B,EAC5B,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,OAAO,EACP,wBAAwB,EACxB,yBAAyB,EACzB,UAAU,EACV,UAAU,GACX,MAAM,wBAAwB,CAAC;AA4BhC,OAAO,EACL,4BAA4B,EAC5B,mBAAmB,EACnB,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,0BA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C,cAAc,0BAA0B,CAAC;AACzC,OAAO,EACL,UAAU,GAGX,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAQtD,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAE,OAAO,EAAqB,MAAM,2BAA2B,CAAC;AAEvE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAkBjE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AASpD,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC","sourcesContent":["export {\n Accordion,\n AccordionItem,\n type AccordionItemProps,\n type AccordionMode,\n type AccordionMultipleProps,\n type AccordionProps,\n type AccordionSingleProps,\n} from './features/accordion/public';\nexport {\n ActivityIndicator,\n type ActivityIndicatorProps,\n} from './features/activity-indicator/public';\nexport type { AppBarMode, AppBarOverflowMenu, AppBarProps } from './features/app-bar/public';\nexport { AppBar } from './features/app-bar/public';\nexport type {\n AuthFormBaseProps,\n AuthIdentifierKind,\n ForgotPasswordFormProps,\n ForgotPasswordFormValues,\n OAuthProviderButtonProps,\n OAuthProviderIconSpec,\n OAuthProviderItem,\n OAuthProviderListLayout,\n OAuthProviderListProps,\n OtpFormProps,\n OtpFormValues,\n SignInFormProps,\n SignInFormValues,\n SignUpFormField,\n SignUpFormProps,\n SignUpFormValues,\n} from './features/auth/public';\nexport {\n DEFAULT_OAUTH_PROVIDER_ICONS,\n ForgotPasswordForm,\n OAuthProviderButton,\n OAuthProviderList,\n OtpForm,\n resolveOAuthProviderIcon,\n resolveOAuthProviderLabel,\n SignInForm,\n SignUpForm,\n} from './features/auth/public';\nexport type {\n ZoraBindableComponentType,\n ZoraComponentBlueprint,\n ZoraComponentCategory,\n ZoraComponentEventMeta,\n ZoraComponentEventPayloadFieldMeta,\n ZoraComponentEventPayloadFieldType,\n ZoraComponentEventPayloadKind,\n ZoraComponentI18nMeta,\n ZoraComponentManifestPolicy,\n ZoraComponentMeta,\n ZoraComponentMetaRegistry,\n ZoraComponentPropArrayItemSchema,\n ZoraComponentPropAuthoring,\n ZoraComponentPropSchema,\n ZoraComponentPropType,\n ZoraComponentPropValue,\n ZoraComponentSlotMeta,\n ZoraThemeRecipeBooleanFieldMeta,\n ZoraThemeRecipeChoiceFieldMeta,\n ZoraThemeRecipeFieldMeta,\n ZoraThemeRecipeKind,\n ZoraThemeRecipeMeta,\n ZoraThemeRecipeMetaRegistry,\n ZoraThemeRecipeTokenFieldMeta,\n ZoraThemeTokenFamily,\n} from './features/authoring';\nexport {\n ZORA_BINDABLE_COMPONENT_META,\n ZORA_COMPONENT_META,\n ZORA_THEME_RECIPE_META,\n ZORA_THEME_TOKEN_FAMILIES,\n} from './features/authoring';\nexport type { AvatarProps, AvatarShape, AvatarSize } from './features/avatar/public';\nexport type { AvatarGroupItem, AvatarGroupProps } from './features/avatar/public';\nexport { Avatar, resolveAvatarInitials } from './features/avatar/public';\nexport { AvatarGroup } from './features/avatar/public';\nexport type { BadgeProps } from './features/badge/public';\nexport { Badge } from './features/badge/public';\nexport type { BottomSheetProps } from './features/bottom-sheet/public';\nexport { BottomSheet } from './features/bottom-sheet/public';\nexport {\n type BreadcrumbItem,\n type BreadcrumbPressEvent,\n Breadcrumbs,\n type BreadcrumbsProps,\n} from './features/breadcrumbs/public';\nexport type { ButtonProps } from './features/button/public';\nexport type {\n ButtonGroupAlign,\n ButtonGroupOrientation,\n ButtonGroupProps,\n} from './features/button/public';\nexport type { IconButtonProps } from './features/button/public';\nexport { Button } from './features/button/public';\nexport { ButtonGroup } from './features/button/public';\nexport { IconButton } from './features/button/public';\nexport type { CardProps } from './features/card/public';\nexport type { MediaCardImageProps, MediaCardProps } from './features/card/public';\nexport type { MetricCardProps } from './features/card/public';\nexport type {\n PostAction,\n PostAuthor,\n PostAuthorAvatar,\n PostCardMedia,\n PostCardProps,\n} from './features/card/public';\nexport type { ProductCardProps } from './features/card/public';\nexport { Card } from './features/card/public';\nexport { MediaCard } from './features/card/public';\nexport { MetricCard } from './features/card/public';\nexport { PostCard } from './features/card/public';\nexport { ProductCard } from './features/card/public';\nexport type {\n ChatListAvatar,\n ChatListItemProps,\n MessageBubbleAuthor,\n MessageBubbleAvatar,\n MessageBubbleDirection,\n MessageBubbleProps,\n MessageBubbleStatus,\n} from './features/chat/public';\nexport { ChatListItem, MessageBubble } from './features/chat/public';\nexport type {\n ChessBoardColorOverrides,\n ChessBoardColorScheme,\n ChessBoardOrientation,\n ChessBoardProps,\n ChessMoveAttempt,\n ChessPieceCode,\n ChessPieceRenderContext,\n ChessPieceRenderer,\n ChessPieceState,\n ChessPromotionPiece,\n ChessSquareId,\n OpeningBookColorOverrides,\n OpeningBookColorScheme,\n OpeningBookMove,\n OpeningBookProps,\n} from './features/chess/public';\nexport type { ChessColorThemeShape } from './features/chess/public';\nexport { ChessBoard, OpeningBook } from './features/chess/public';\nexport {\n chessSquares,\n createBoardSquares,\n createChessBoardColorScheme,\n createOpeningBookColorScheme,\n getSquareFile,\n getSquareRank,\n isLightSquare,\n} from './features/chess/public';\nexport type { ChipProps } from './features/chip/public';\nexport type { ChipGroupItem, ChipGroupProps } from './features/chip/public';\nexport { Chip } from './features/chip/public';\nexport { ChipGroup } from './features/chip/public';\nexport type {\n CollectionEditorProps,\n CollectionEditorRenderItemProps,\n} from './features/collection-editor/public';\nexport { CollectionEditor } from './features/collection-editor/public';\nexport type {\n ContentRailControlPressEvent,\n ContentRailDirection,\n ContentRailItemSize,\n ContentRailMotion,\n ContentRailProps,\n ContentRailSpacing,\n ContentRailVisibleRangeChangeEvent,\n} from './features/content-rail/public';\nexport { ContentRail } from './features/content-rail/public';\nexport type {\n DataTableCellContext,\n DataTableColumn,\n DataTableColumnAlign,\n DataTableDensity,\n DataTableProps,\n DataTableRowAction,\n DataTableSortDirection,\n DataTableSortState,\n} from './features/data-table/public';\nexport { DataTable } from './features/data-table/public';\nexport {\n DatePicker,\n type DatePickerProps,\n type DatePickerValue,\n} from './features/date-picker/public';\nexport { Dialog, type DialogProps } from './features/dialog/public';\nexport {\n EmptyState,\n type EmptyStateAction,\n type EmptyStateProps,\n} from './features/empty-state/public';\nexport {\n Checkbox,\n CheckboxGroup,\n type CheckboxGroupOption,\n type CheckboxGroupProps,\n type CheckboxProps,\n} from './features/form/checkbox/public';\nexport type {\n FieldProps,\n FormActionsProps,\n FormErrorProps,\n FormErrors,\n FormFieldConfig,\n FormFieldInputType,\n FormProps,\n FormValidationErrors,\n FormValidationResult,\n FormValues,\n UseFormControllerOptions,\n UseFormControllerResult,\n ValidationRule,\n} from './features/form/public';\nexport {\n Field,\n Form,\n FormActions,\n FormError,\n hasRequiredRule,\n useFormController,\n validateField,\n validateFields,\n validateValue,\n} from './features/form/public';\nexport {\n Radio,\n RadioGroup,\n type RadioGroupOption,\n type RadioGroupProps,\n type RadioProps,\n} from './features/form/radio/public';\nexport { SearchInput, type SearchInputProps } from './features/form/search-input/public';\nexport { Select, type SelectOption, type SelectProps } from './features/form/select/public';\nexport { Switch, type SwitchProps } from './features/form/switch/public';\nexport {\n TextInput,\n type TextInputProps,\n type TextInputTrailingAction,\n} from './features/form/text-input/public';\nexport type {\n GameEntityEasing,\n GameEntityMotionProps,\n GameEntityProps,\n GameFieldProps,\n GameInputZoneProps,\n GameKeyboardBinding,\n GameMeasurementProbeProps,\n GameOverlayPlacement,\n GameOverlayProps,\n GamePointerEvents,\n GameProps,\n} from './features/game/public';\nexport {\n Game,\n GameEntity,\n GameField,\n GameInputZone,\n GameMeasurementProbe,\n GameOverlay,\n} from './features/game/public';\nexport type {\n GradientColor,\n GradientColors,\n GradientLocations,\n GradientPoint,\n GradientProps,\n GradientRenderer,\n GradientRendererProps,\n GradientRendererProviderProps,\n} from './features/gradient/public';\nexport { Gradient, GradientRendererProvider } from './features/gradient/public';\nexport {\n Hero,\n type HeroAction,\n type HeroAlign,\n type HeroLayout,\n type HeroProps,\n type HeroTone,\n} from './features/hero/public';\nexport type { IconProps } from './features/icon/public';\nexport { Icon } from './features/icon/public';\nexport type { ImageFit, ImageProps, SurfaceImageSource } from './features/image/public';\nexport { Image } from './features/image/public';\nexport {\n KeyboardAvoidingView,\n type KeyboardAvoidingViewBehavior,\n type KeyboardAvoidingViewProps,\n} from './features/keyboard-avoiding-view/public';\nexport type {\n AppShellProps,\n DividerProps,\n GridProps,\n ScreenProps,\n ScrollViewProps,\n ViewProps,\n} from './features/layout/public';\nexport { AppShell, Divider, Grid, Screen, ScrollView, View } from './features/layout/public';\nexport type {\n ManifestListProps,\n ManifestListSection,\n ManifestSectionListProps,\n} from './features/list/public';\nexport type {\n ListChildrenProps,\n ListItemProps,\n ListItemsProps,\n ListItemVariant,\n ListProps,\n ListSectionProps,\n} from './features/list/public';\nexport { FlatList, SectionList } from './features/list/public';\nexport { List, ListItem, ListSection } from './features/list/public';\nexport { MissingElement, type MissingElementProps } from './features/missing-element/public';\nexport { Pagination, type PaginationProps } from './features/pagination/public';\nexport type { PaletteItemProps } from './features/palette-item/public';\nexport { PaletteItem } from './features/palette-item/public';\nexport {\n composeZoraPluginMetadata,\n ZORA_CORE_PLUGIN_METADATA,\n ZoraPluginCompositionError,\n} from './features/plugin/public';\nexport { composeZoraPlugins, ZORA_CORE_PLUGIN } from './features/plugin/runtime';\nexport {\n PopoverMenu,\n type PopoverMenuAction,\n type PopoverMenuActionIntent,\n type PopoverMenuProps,\n} from './features/popover-menu/public';\nexport {\n Progress,\n type ProgressProps,\n ProgressRing,\n type ProgressRingProps,\n} from './features/progress/public';\nexport { Rating, type RatingProps } from './features/rating/public';\nexport type {\n ReaderColorScheme,\n ReaderDocumentFormat,\n ReaderErrorCode,\n ReaderErrorEvent,\n ReaderExternalLinkEvent,\n ReaderLineHeight,\n ReaderLocationChangeEvent,\n ReaderNavigationTrigger,\n ReaderResolvedSource,\n ReaderStatus,\n ReaderSurfaceProps,\n} from './features/reader/public';\nexport { ReaderSurface, resolveReaderProgress } from './features/reader/public';\nexport { ZORA_COMPONENT_REGISTRY } from './features/registry/public';\nexport type {\n BarcodeScannerViewProps,\n BarcodeScanResult,\n CameraPermissionStatus,\n CameraPermissionViewProps,\n ScanOverlayProps,\n} from './features/scanner/public';\nexport { BarcodeScannerView, CameraPermissionView, ScanOverlay } from './features/scanner/public';\nexport {\n ScreenSection,\n type ScreenSectionProps,\n SectionHeader,\n type SectionHeaderProps,\n} from './features/section/public';\nexport type {\n SelectableItemProps,\n SelectableItemState,\n SelectionMode,\n SelectionProviderProps,\n SelectionTrigger,\n UseSelectionResult,\n} from './features/selection/public';\nexport { SelectableItem, SelectionProvider, useSelection } from './features/selection/public';\nexport {\n Skeleton,\n SkeletonCard,\n type SkeletonCardProps,\n type SkeletonDimension,\n SkeletonList,\n type SkeletonListProps,\n type SkeletonListVariant,\n type SkeletonProps,\n type SkeletonRadius,\n SkeletonText,\n type SkeletonTextProps,\n} from './features/skeleton/public';\nexport type { SurfaceProps, SurfaceVariant } from './features/surface/public';\nexport { Surface } from './features/surface/public';\nexport type {\n CardBackProps,\n CardHandProps,\n CreatePokerTrainingTableStateOptions,\n CreateTabletopGameSeatsInput,\n PlayingCardProps,\n PlayingCardSuit,\n PlayingCardValue,\n PokerTrainingPlayer,\n PokerTrainingTableProps,\n PokerTrainingTableSize,\n PokerTrainingTableState,\n PokerTrainingTaskTableData,\n TabletopCardSize,\n TabletopColorOverrides,\n TabletopColorScheme,\n TabletopGameParticipantState,\n TabletopGameSeatDefinition,\n TabletopGameSeatPresentation,\n TabletopSeatCount,\n TabletopSeatState,\n TabletopShape,\n TabletopTableProps,\n} from './features/tabletop/public';\nexport {\n CardBack,\n CardHand,\n createPokerTrainingTableState,\n createTabletopColorScheme,\n createTabletopGameSeats,\n PlayingCard,\n PokerTrainingTable,\n TabletopTable,\n} from './features/tabletop/public';\nexport {\n Tab,\n TabList,\n type TabListProps,\n TabPanel,\n type TabPanelProps,\n type TabProps,\n Tabs,\n type TabsProps,\n} from './features/tabs/public';\nexport type {\n ZoraColor,\n ZoraEmphasis,\n ZoraPaletteColor,\n ZoraStatusColor,\n} from './features/theme/colorModel';\nexport {\n ZORA_COLORS,\n ZORA_EMPHASES,\n ZORA_PALETTE_COLORS,\n ZORA_STATUS_COLORS,\n} from './features/theme/colorModel';\nexport * from './features/theme/public';\nexport * from './features/theme/runtime';\nexport {\n TimePicker,\n type TimePickerProps,\n type TimePickerValue,\n} from './features/time-picker/public';\nexport type { TimelineItem, TimelineProps } from './features/timeline/public';\nexport { Timeline } from './features/timeline/public';\nexport type {\n ToastController,\n ToastOptions,\n ToastProps,\n ToastProviderProps,\n ToastStatus,\n} from './features/toast/public';\nexport { Toast, ToastProvider, useToast } from './features/toast/public';\nexport { Toolbar, type ToolbarProps } from './features/toolbar/public';\nexport type { TreeItemNode, TreeItemRenderProps, TreeViewProps } from './features/tree-view/public';\nexport { TreeItem, TreeView } from './features/tree-view/public';\nexport type {\n HeadingAlign,\n HeadingColor,\n HeadingEmphasis,\n HeadingLevel,\n HeadingProps,\n HeadingSize,\n HeadingWeight,\n} from './features/typography/public';\nexport type {\n TextAlign,\n TextColor,\n TextEmphasis,\n TextProps,\n TextVariant,\n TextWeight,\n} from './features/typography/public';\nexport { Heading } from './features/typography/public';\nexport { Text } from './features/typography/public';\nexport type {\n UploadAsset,\n UploadAssetBase,\n UploaderProps,\n UploadProgressContext,\n UploadType,\n ValidateUploadAssetInput,\n} from './features/uploader/public';\nexport { Uploader, validateUploadAsset } from './features/uploader/public';\nexport type {\n ComposedZoraPluginCatalog,\n ComposedZoraPluginMetadataCatalog,\n ZoraPluginCompositionErrorCode,\n ZoraPluginDescriptor,\n ZoraPluginMetadata,\n ZoraPluginPlacement,\n} from './types/plugin';\nexport type { ZoraComponentRegistry } from './types/registry';\n"]}
@@ -0,0 +1,83 @@
1
+ import type React from 'react';
2
+ import type { ZoraBaseProps } from './base';
3
+ export type ChessBoardOrientation = 'white' | 'black';
4
+ export type ChessPieceCode = string;
5
+ export type ChessSquareId = `${'a' | 'b' | 'c' | 'd' | 'e' | 'f' | 'g' | 'h'}${1 | 2 | 3 | 4 | 5 | 6 | 7 | 8}`;
6
+ export type ChessPromotionPiece = 'q' | 'r' | 'b' | 'n';
7
+ export interface ChessMoveAttempt {
8
+ readonly from: ChessSquareId;
9
+ readonly to: ChessSquareId;
10
+ readonly promotion?: ChessPromotionPiece;
11
+ }
12
+ export interface ChessPieceState {
13
+ readonly color: 'black' | 'white';
14
+ readonly piece: ChessPieceCode;
15
+ readonly square: ChessSquareId;
16
+ }
17
+ export interface ChessPieceRenderContext {
18
+ readonly color: string;
19
+ readonly piece: ChessPieceCode;
20
+ readonly square: ChessSquareId;
21
+ }
22
+ export type ChessPieceRenderer = (context: ChessPieceRenderContext) => React.ReactNode;
23
+ export interface ChessBoardColorScheme {
24
+ readonly lightSquare: string;
25
+ readonly darkSquare: string;
26
+ readonly lightSquareText: string;
27
+ readonly darkSquareText: string;
28
+ readonly selectedSquare: string;
29
+ readonly legalTarget: string;
30
+ readonly lastMoveFrom: string;
31
+ readonly lastMoveTo: string;
32
+ readonly border: string;
33
+ readonly coordinateText: string;
34
+ readonly lightPiece: string;
35
+ readonly darkPiece: string;
36
+ }
37
+ export type ChessBoardColorOverrides = Partial<ChessBoardColorScheme>;
38
+ export interface OpeningBookColorScheme {
39
+ readonly border: string;
40
+ readonly surface: string;
41
+ readonly surfaceHover: string;
42
+ readonly selectedSurface: string;
43
+ readonly titleText: string;
44
+ readonly primaryText: string;
45
+ readonly secondaryText: string;
46
+ readonly metricSurface: string;
47
+ }
48
+ export type OpeningBookColorOverrides = Partial<OpeningBookColorScheme>;
49
+ export interface ChessBoardProps extends ZoraBaseProps {
50
+ readonly pieces?: readonly ChessPieceState[];
51
+ readonly orientation?: ChessBoardOrientation;
52
+ readonly selectedSquare?: ChessSquareId | null;
53
+ readonly legalTargets?: readonly ChessSquareId[];
54
+ readonly lastMove?: ChessMoveAttempt | null;
55
+ readonly disabled?: boolean;
56
+ readonly showCoordinates?: boolean;
57
+ readonly colorScheme?: ChessBoardColorOverrides;
58
+ readonly onSquarePress?: (square: ChessSquareId) => void;
59
+ readonly onMoveAttempt?: (move: ChessMoveAttempt) => void;
60
+ readonly renderPiece?: ChessPieceRenderer;
61
+ }
62
+ export interface OpeningBookMove {
63
+ readonly san: string;
64
+ readonly uci?: string;
65
+ readonly fen?: string;
66
+ readonly name?: string;
67
+ readonly eco?: string;
68
+ readonly games?: number;
69
+ readonly whiteWinRate?: number;
70
+ readonly drawRate?: number;
71
+ readonly blackWinRate?: number;
72
+ }
73
+ export interface OpeningBookProps extends ZoraBaseProps {
74
+ readonly moves?: readonly OpeningBookMove[];
75
+ readonly title?: string;
76
+ readonly loading?: boolean;
77
+ readonly errorText?: string;
78
+ readonly emptyText?: string;
79
+ readonly selectedMove?: string | null;
80
+ readonly colorScheme?: OpeningBookColorOverrides;
81
+ readonly onMovePress?: (move: OpeningBookMove) => void;
82
+ }
83
+ //# sourceMappingURL=chess.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chess.d.ts","sourceRoot":"","sources":["../../src/types/chess.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE5C,MAAM,MAAM,qBAAqB,GAAG,OAAO,GAAG,OAAO,CAAC;AACtD,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AACpC,MAAM,MAAM,aAAa,GACvB,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;AACrF,MAAM,MA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AAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,gBAAiB,SAAQ,aAAa;IACrD,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,eAAe,EAAE,CAAC;IAC5C,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,QAAQ,CAAC,WAAW,CAAC,EAAE,yBAAyB,CAAC;IACjD,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;CACxD"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=chess.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chess.js","sourceRoot":"","sources":["../../src/types/chess.ts"],"names":[],"mappings":"","sourcesContent":["import type React from 'react';\n\nimport type { ZoraBaseProps } from './base';\n\nexport type ChessBoardOrientation = 'white' | 'black';\nexport type ChessPieceCode = string;\nexport type ChessSquareId =\n `${'a' | 'b' | 'c' | 'd' | 'e' | 'f' | 'g' | 'h'}${1 | 2 | 3 | 4 | 5 | 6 | 7 | 8}`;\nexport type ChessPromotionPiece = 'q' | 'r' | 'b' | 'n';\n\nexport interface ChessMoveAttempt {\n readonly from: ChessSquareId;\n readonly to: ChessSquareId;\n readonly promotion?: ChessPromotionPiece;\n}\n\nexport interface ChessPieceState {\n readonly color: 'black' | 'white';\n readonly piece: ChessPieceCode;\n readonly square: ChessSquareId;\n}\n\nexport interface ChessPieceRenderContext {\n readonly color: string;\n readonly piece: ChessPieceCode;\n readonly square: ChessSquareId;\n}\n\nexport type ChessPieceRenderer = (context: ChessPieceRenderContext) => React.ReactNode;\n\nexport interface ChessBoardColorScheme {\n readonly lightSquare: string;\n readonly darkSquare: string;\n readonly lightSquareText: string;\n readonly darkSquareText: string;\n readonly selectedSquare: string;\n readonly legalTarget: string;\n readonly lastMoveFrom: string;\n readonly lastMoveTo: string;\n readonly border: string;\n readonly coordinateText: string;\n readonly lightPiece: string;\n readonly darkPiece: string;\n}\n\nexport type ChessBoardColorOverrides = Partial<ChessBoardColorScheme>;\n\nexport interface OpeningBookColorScheme {\n readonly border: string;\n readonly surface: string;\n readonly surfaceHover: string;\n readonly selectedSurface: string;\n readonly titleText: string;\n readonly primaryText: string;\n readonly secondaryText: string;\n readonly metricSurface: string;\n}\nexport type OpeningBookColorOverrides = Partial<OpeningBookColorScheme>;\n\nexport interface ChessBoardProps extends ZoraBaseProps {\n readonly pieces?: readonly ChessPieceState[];\n readonly orientation?: ChessBoardOrientation;\n readonly selectedSquare?: ChessSquareId | null;\n readonly legalTargets?: readonly ChessSquareId[];\n readonly lastMove?: ChessMoveAttempt | null;\n readonly disabled?: boolean;\n readonly showCoordinates?: boolean;\n readonly colorScheme?: ChessBoardColorOverrides;\n readonly onSquarePress?: (square: ChessSquareId) => void;\n readonly onMoveAttempt?: (move: ChessMoveAttempt) => void;\n readonly renderPiece?: ChessPieceRenderer;\n}\n\nexport interface OpeningBookMove {\n readonly san: string;\n readonly uci?: string;\n readonly fen?: string;\n readonly name?: string;\n readonly eco?: string;\n readonly games?: number;\n readonly whiteWinRate?: number;\n readonly drawRate?: number;\n readonly blackWinRate?: number;\n}\n\nexport interface OpeningBookProps extends ZoraBaseProps {\n readonly moves?: readonly OpeningBookMove[];\n readonly title?: string;\n readonly loading?: boolean;\n readonly errorText?: string;\n readonly emptyText?: string;\n readonly selectedMove?: string | null;\n readonly colorScheme?: OpeningBookColorOverrides;\n readonly onMovePress?: (move: OpeningBookMove) => void;\n}\n"]}