jaml-ui 0.10.0 → 0.11.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 (152) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +135 -135
  3. package/assets/8BitDeck.png +0 -0
  4. package/assets/Balatro Seed Curator (DesignsV2)/.design-canvas.state.json +1 -0
  5. package/assets/Balatro Seed Curator (DesignsV2)/Assets/BlindChips.png +0 -0
  6. package/assets/Balatro Seed Curator (DesignsV2)/Assets/Boosters/Boosters.json +303 -0
  7. package/assets/Balatro Seed Curator (DesignsV2)/Assets/Boosters/boosters.png +0 -0
  8. package/assets/Balatro Seed Curator (DesignsV2)/Assets/Boosters.png +0 -0
  9. package/assets/Balatro Seed Curator (DesignsV2)/Assets/Bosses/BlindChips.png +0 -0
  10. package/assets/Balatro Seed Curator (DesignsV2)/Assets/Bosses/blinds_metadata.json +51 -0
  11. package/assets/Balatro Seed Curator (DesignsV2)/Assets/Decks/8BitDeck.png +0 -0
  12. package/assets/Balatro Seed Curator (DesignsV2)/Assets/Decks/Enhancers.png +0 -0
  13. package/assets/Balatro Seed Curator (DesignsV2)/Assets/Decks/balatro-stake-chips.png +0 -0
  14. package/assets/Balatro Seed Curator (DesignsV2)/Assets/Decks/enhancers_metadata.json +52 -0
  15. package/assets/Balatro Seed Curator (DesignsV2)/Assets/Decks/playing_cards_metadata.json +74 -0
  16. package/assets/Balatro Seed Curator (DesignsV2)/Assets/Decks/stakes.json +19 -0
  17. package/assets/Balatro Seed Curator (DesignsV2)/Assets/Editions.png +0 -0
  18. package/assets/Balatro Seed Curator (DesignsV2)/Assets/Enhancers.png +0 -0
  19. package/assets/Balatro Seed Curator (DesignsV2)/Assets/Jokers/Editions.png +0 -0
  20. package/assets/Balatro Seed Curator (DesignsV2)/Assets/Jokers/Jokers.png +0 -0
  21. package/assets/Balatro Seed Curator (DesignsV2)/Assets/Jokers/jokers.json +1087 -0
  22. package/assets/Balatro Seed Curator (DesignsV2)/Assets/Jokers/stickers.png +0 -0
  23. package/assets/Balatro Seed Curator (DesignsV2)/Assets/Jokers/stickers_metadata.json +25 -0
  24. package/assets/Balatro Seed Curator (DesignsV2)/Assets/Jokers.png +0 -0
  25. package/assets/Balatro Seed Curator (DesignsV2)/Assets/Tags/tags.json +191 -0
  26. package/assets/Balatro Seed Curator (DesignsV2)/Assets/Tags/tags.png +0 -0
  27. package/assets/Balatro Seed Curator (DesignsV2)/Assets/Tarots/Tarots.png +0 -0
  28. package/assets/Balatro Seed Curator (DesignsV2)/Assets/Tarots/planets.json +15 -0
  29. package/assets/Balatro Seed Curator (DesignsV2)/Assets/Tarots/spectrals.json +21 -0
  30. package/assets/Balatro Seed Curator (DesignsV2)/Assets/Tarots/tarots.json +163 -0
  31. package/assets/Balatro Seed Curator (DesignsV2)/Assets/Tarots.png +0 -0
  32. package/assets/Balatro Seed Curator (DesignsV2)/Assets/Vouchers/Vouchers.png +0 -0
  33. package/assets/Balatro Seed Curator (DesignsV2)/Assets/Vouchers/vouchers.json +130 -0
  34. package/assets/Balatro Seed Curator (DesignsV2)/Assets/Vouchers.png +0 -0
  35. package/assets/Balatro Seed Curator (DesignsV2)/Assets/blinds.json +51 -0
  36. package/assets/Balatro Seed Curator (DesignsV2)/Assets/boosters.json +303 -0
  37. package/assets/Balatro Seed Curator (DesignsV2)/Assets/fonts/m6x11plusplus.otf +0 -0
  38. package/assets/Balatro Seed Curator (DesignsV2)/Assets/jokers.json +1087 -0
  39. package/assets/Balatro Seed Curator (DesignsV2)/Assets/planets.json +15 -0
  40. package/assets/Balatro Seed Curator (DesignsV2)/Assets/spectrals.json +21 -0
  41. package/assets/Balatro Seed Curator (DesignsV2)/Assets/stakes.png +0 -0
  42. package/assets/Balatro Seed Curator (DesignsV2)/Assets/stickers.png +0 -0
  43. package/assets/Balatro Seed Curator (DesignsV2)/Assets/tags.json +191 -0
  44. package/assets/Balatro Seed Curator (DesignsV2)/Assets/tags.png +0 -0
  45. package/assets/Balatro Seed Curator (DesignsV2)/Assets/tarots.json +163 -0
  46. package/assets/Balatro Seed Curator (DesignsV2)/Assets/vouchers.json +130 -0
  47. package/assets/Balatro Seed Curator (DesignsV2)/Seed Detail v2.html +40 -0
  48. package/assets/Balatro Seed Curator (DesignsV2)/Seed Detail.html +34 -0
  49. package/assets/Balatro Seed Curator (DesignsV2)/public/fonts/m6x11plusplus.otf +0 -0
  50. package/assets/Balatro Seed Curator (DesignsV2)/src/AntePage.jsx +228 -0
  51. package/assets/Balatro Seed Curator (DesignsV2)/src/SeedDetail.jsx +222 -0
  52. package/assets/Balatro Seed Curator (DesignsV2)/src/app.jsx +35 -0
  53. package/assets/Balatro Seed Curator (DesignsV2)/src/mockData.js +185 -0
  54. package/assets/Balatro Seed Curator (DesignsV2)/src/sprites.jsx +259 -0
  55. package/assets/Balatro Seed Curator (DesignsV2)/src/tokens.js +49 -0
  56. package/assets/Balatro Seed Curator (DesignsV2)/src/v2/AntePageV2.jsx +290 -0
  57. package/assets/Balatro Seed Curator (DesignsV2)/src/v2/BalButton.jsx +107 -0
  58. package/assets/Balatro Seed Curator (DesignsV2)/src/v2/JamlBuilderV2.jsx +594 -0
  59. package/assets/Balatro Seed Curator (DesignsV2)/src/v2/JamlIde.jsx +302 -0
  60. package/assets/Balatro Seed Curator (DesignsV2)/src/v2/SearchResultsV2.jsx +286 -0
  61. package/assets/Balatro Seed Curator (DesignsV2)/src/v2/SeedDetailV2.jsx +336 -0
  62. package/assets/Balatro Seed Curator (DesignsV2)/src/v2/SeedOGCard.jsx +251 -0
  63. package/assets/Balatro Seed Curator (DesignsV2)/src/v2/Showcase.jsx +131 -0
  64. package/assets/Balatro Seed Curator (DesignsV2)/src/v2/app.jsx +55 -0
  65. package/assets/Balatro Seed Curator (DesignsV2)/src/v2/data.js +296 -0
  66. package/assets/Balatro Seed Curator (DesignsV2)/starters/design-canvas.jsx +622 -0
  67. package/assets/Balatro Seed Curator (DesignsV2)/uploads/8BitDeck.png +0 -0
  68. package/assets/Balatro Seed Curator (DesignsV2)/uploads/BlindChips.png +0 -0
  69. package/assets/Balatro Seed Curator (DesignsV2)/uploads/Boosters.png +0 -0
  70. package/assets/Balatro Seed Curator (DesignsV2)/uploads/Editions.png +0 -0
  71. package/assets/Balatro Seed Curator (DesignsV2)/uploads/Enhancers.png +0 -0
  72. package/assets/Balatro Seed Curator (DesignsV2)/uploads/Jokers.png +0 -0
  73. package/assets/Balatro Seed Curator (DesignsV2)/uploads/Tarots.png +0 -0
  74. package/assets/Balatro Seed Curator (DesignsV2)/uploads/pasted-1776749540653-0.png +0 -0
  75. package/assets/Balatro Seed Curator (DesignsV2)/uploads/pasted-1776749644934-0.png +0 -0
  76. package/assets/Balatro Seed Curator (DesignsV2)/uploads/pasted-1776749661871-0.png +0 -0
  77. package/assets/Balatro Seed Curator (DesignsV2)/uploads/pasted-1776749674748-0.png +0 -0
  78. package/assets/Balatro Seed Curator (DesignsV2)/uploads/pasted-1776749703076-0.png +0 -0
  79. package/assets/Balatro Seed Curator (DesignsV2)/uploads/pasted-1776749882759-0.png +0 -0
  80. package/assets/Balatro Seed Curator (DesignsV2)/uploads/pasted-1776750354200-0.png +0 -0
  81. package/assets/Balatro Seed Curator (DesignsV2)/uploads/pasted-1776750733265-0.png +0 -0
  82. package/assets/Balatro Seed Curator (DesignsV2)/uploads/pasted-1776751928925-0.png +0 -0
  83. package/assets/Balatro Seed Curator (DesignsV2)/uploads/pasted-1776800975060-0.png +0 -0
  84. package/assets/Balatro Seed Curator (DesignsV2)/uploads/stickers.png +0 -0
  85. package/assets/Balatro Seed Curator (DesignsV2)/uploads/tags.png +0 -0
  86. package/assets/BlindChips.png +0 -0
  87. package/assets/Boosters.png +0 -0
  88. package/assets/Editions.png +0 -0
  89. package/assets/Enhancers.png +0 -0
  90. package/assets/Jokers.png +0 -0
  91. package/assets/Tarots.png +0 -0
  92. package/assets/Vouchers.png +0 -0
  93. package/assets/fonts/m6x11plusplus.otf +0 -0
  94. package/assets/stickers.png +0 -0
  95. package/assets/tags.png +0 -0
  96. package/dist/assets.js +10 -13
  97. package/dist/components/GameCard.js +7 -5
  98. package/dist/components/JamlCodeEditor.js +28 -16
  99. package/dist/components/JamlIdeVisual.d.ts +5 -3
  100. package/dist/components/JamlIdeVisual.js +194 -36
  101. package/dist/components/JamlMapPreview.d.ts +1 -5
  102. package/dist/components/JamlMapPreview.js +67 -107
  103. package/dist/components/PlayingCard.js +15 -50
  104. package/dist/data/balatro-jokers.json +1241 -0
  105. package/dist/decode/motelyItemDecoder.js +1 -1
  106. package/dist/hooks/searchWorkerCode.js +59 -59
  107. package/dist/hooks/useAnalyzer.d.ts +1 -0
  108. package/dist/hooks/useAnalyzer.js +5 -1
  109. package/dist/hooks/useSearch.d.ts +1 -0
  110. package/dist/hooks/useSearch.js +4 -1
  111. package/dist/index.d.ts +1 -0
  112. package/dist/index.js +1 -0
  113. package/dist/motelyDisplay.js +2 -0
  114. package/dist/r3f/BalatroJokerMesh3D.d.ts +8 -0
  115. package/dist/r3f/BalatroJokerMesh3D.js +98 -0
  116. package/dist/r3f/BalatroJokerPreview3D.d.ts +14 -0
  117. package/dist/r3f/BalatroJokerPreview3D.js +30 -0
  118. package/dist/r3f/BalatroPlayingCard3D.d.ts +22 -0
  119. package/dist/r3f/BalatroPlayingCard3D.js +62 -0
  120. package/dist/r3f/cardConstants.d.ts +16 -0
  121. package/dist/r3f/cardConstants.js +14 -0
  122. package/dist/r3f/compositedAtlas.d.ts +5 -0
  123. package/dist/r3f/compositedAtlas.js +56 -0
  124. package/dist/r3f/gridUV.d.ts +22 -0
  125. package/dist/r3f/gridUV.js +30 -0
  126. package/dist/r3f/index.d.ts +12 -0
  127. package/dist/r3f/index.js +13 -0
  128. package/dist/r3f/jokerRegistry.d.ts +28 -0
  129. package/dist/r3f/jokerRegistry.js +40 -0
  130. package/dist/r3f/jokerTilt.d.ts +8 -0
  131. package/dist/r3f/jokerTilt.js +41 -0
  132. package/dist/r3f/magneticTilt.d.ts +18 -0
  133. package/dist/r3f/magneticTilt.js +34 -0
  134. package/dist/r3f/playingCardTypes.d.ts +24 -0
  135. package/dist/r3f/playingCardTypes.js +32 -0
  136. package/dist/r3f/playingCardVisuals.d.ts +7 -0
  137. package/dist/r3f/playingCardVisuals.js +45 -0
  138. package/dist/r3f/usePlayingCardTexture.d.ts +7 -0
  139. package/dist/r3f/usePlayingCardTexture.js +92 -0
  140. package/dist/sprites/spriteMapper.d.ts +1 -1
  141. package/dist/sprites/spriteMapper.js +14 -33
  142. package/dist/ui/footer.js +5 -5
  143. package/dist/ui/jimboBackground.js +55 -55
  144. package/dist/ui/jimboCopyRow.d.ts +5 -0
  145. package/dist/ui/jimboCopyRow.js +36 -0
  146. package/dist/ui/jimboTabs.js +5 -5
  147. package/dist/ui.d.ts +1 -0
  148. package/dist/ui.js +1 -0
  149. package/dist/utils/gameCardUtils.d.ts +4 -12
  150. package/dist/utils/gameCardUtils.js +9 -43
  151. package/fonts.css +5 -5
  152. package/package.json +4 -3
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 pifreak
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 pifreak
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,135 +1,135 @@
1
- # jaml-ui
2
-
3
- React components, UI tokens, sprites, and utilities for Balatro/JAML apps.
4
-
5
- ## Install
6
-
7
- ```bash
8
- npm install jaml-ui react react-dom
9
- ```
10
-
11
- ## Package exports
12
-
13
- | Entry | Contents |
14
- |-------|----------|
15
- | `jaml-ui` | Game card components, JAML IDE, Analyzer Explorer, hooks |
16
- | `jaml-ui/ui` | Jimbo design system — JimboPanel, JimboButton, JimboModal, tokens |
17
- | `jaml-ui/core` | Pure asset helpers, sprite metadata, decode utilities (no React) |
18
- | `jaml-ui/motely` | motely-wasm decode helpers (requires `motely-wasm` peer) |
19
- | `jaml-ui/r3f` | 3D card component via React Three Fiber (requires r3f peers) |
20
-
21
- ## Quick start
22
-
23
- ```tsx
24
- import { JamlGameCard, AnalyzerExplorer, JamlIde } from "jaml-ui";
25
- import { JimboPanel, JimboButton } from "jaml-ui/ui";
26
- ```
27
-
28
- ### Game card
29
-
30
- ```tsx
31
- import { JamlGameCard } from "jaml-ui";
32
-
33
- <JamlGameCard
34
- type="joker"
35
- card={{ name: "Blueprint", edition: "Foil", isEternal: true, scale: 1.5 }}
36
- />
37
- ```
38
-
39
- ### Jimbo UI (Balatro design system)
40
-
41
- ```tsx
42
- import { JimboPanel, JimboButton, JimboModal } from "jaml-ui/ui";
43
- import { JimboColorOption } from "jaml-ui/ui";
44
-
45
- <JimboPanel sway onBack={() => setOpen(false)}>
46
- <JimboButton variant="primary" onClick={handleSearch}>Search</JimboButton>
47
- </JimboPanel>
48
- ```
49
-
50
- Available variants: `primary`, `secondary`, `danger`, `back`, `ghost`
51
-
52
- ### JAML IDE
53
-
54
- ```tsx
55
- import { JamlIde } from "jaml-ui";
56
-
57
- <JamlIde
58
- jaml={jaml}
59
- onChange={setJaml}
60
- searchResults={results}
61
- onSearch={handleSearch}
62
- isSearching={isSearching}
63
- />
64
- ```
65
-
66
- ### Analyzer Explorer
67
-
68
- ```tsx
69
- import { AnalyzerExplorer } from "jaml-ui";
70
-
71
- // antes: AnalyzerAnteView[] — stream from motely-wasm createSearchContext
72
- <AnalyzerExplorer antes={antes} totalAntes={8} highlights={highlights} />
73
- ```
74
-
75
- ### JAML Map Preview
76
-
77
- ```tsx
78
- import { JamlMapPreview } from "jaml-ui";
79
-
80
- <JamlMapPreview jaml={jaml} />
81
- ```
82
-
83
- ## Asset handling
84
-
85
- By default sprites resolve from the package `assets/` directory via `import.meta.url`.
86
-
87
- Override at app startup:
88
-
89
- ```ts
90
- import { setJamlAssetBaseUrl, clearJamlAssetBaseUrl } from "jaml-ui";
91
-
92
- setJamlAssetBaseUrl("/vendor/jaml-ui/"); // custom CDN
93
- clearJamlAssetBaseUrl(); // back to default
94
- ```
95
-
96
- ## Core utilities
97
-
98
- ```ts
99
- import { SPRITE_SHEETS, getSpriteData, resolveJamlAssetUrl } from "jaml-ui/core";
100
- ```
101
-
102
- ## Motely decode helpers
103
-
104
- ```ts
105
- import { decodeMotelyItemName, motelyItemTypeName } from "jaml-ui/motely";
106
- ```
107
-
108
- ## 3D card (optional)
109
-
110
- ```bash
111
- npm install three @react-three/fiber @react-three/drei @react-spring/three
112
- ```
113
-
114
- ```tsx
115
- import { Card3D } from "jaml-ui/r3f";
116
-
117
- <Card3D itemName="Blueprint" />
118
- ```
119
-
120
- ## Next.js
121
-
122
- Import pure helpers from `jaml-ui/core` for server components. For local workspace installs add:
123
-
124
- ```ts
125
- // next.config.ts
126
- const nextConfig = { transpilePackages: ["jaml-ui"] };
127
- ```
128
-
129
- ## Peer dependencies
130
-
131
- | Peer | Required for |
132
- |------|-------------|
133
- | `react`, `react-dom` | All components |
134
- | `motely-wasm ^10 \|\| ^11 \|\| ^12` | `jaml-ui/motely`, `AnalyzerExplorer` data |
135
- | `three`, `@react-three/fiber`, `@react-three/drei`, `@react-spring/three` | `jaml-ui/r3f` only |
1
+ # jaml-ui
2
+
3
+ React components, UI tokens, sprites, and utilities for Balatro/JAML apps.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install jaml-ui react react-dom
9
+ ```
10
+
11
+ ## Package exports
12
+
13
+ | Entry | Contents |
14
+ |-------|----------|
15
+ | `jaml-ui` | Game card components, JAML IDE, Analyzer Explorer, hooks |
16
+ | `jaml-ui/ui` | Jimbo design system — JimboPanel, JimboButton, JimboModal, tokens |
17
+ | `jaml-ui/core` | Pure asset helpers, sprite metadata, decode utilities (no React) |
18
+ | `jaml-ui/motely` | motely-wasm decode helpers (requires `motely-wasm` peer) |
19
+ | `jaml-ui/r3f` | 3D card component via React Three Fiber (requires r3f peers) |
20
+
21
+ ## Quick start
22
+
23
+ ```tsx
24
+ import { JamlGameCard, AnalyzerExplorer, JamlIde } from "jaml-ui";
25
+ import { JimboPanel, JimboButton } from "jaml-ui/ui";
26
+ ```
27
+
28
+ ### Game card
29
+
30
+ ```tsx
31
+ import { JamlGameCard } from "jaml-ui";
32
+
33
+ <JamlGameCard
34
+ type="joker"
35
+ card={{ name: "Blueprint", edition: "Foil", isEternal: true, scale: 1.5 }}
36
+ />
37
+ ```
38
+
39
+ ### Jimbo UI (Balatro design system)
40
+
41
+ ```tsx
42
+ import { JimboPanel, JimboButton, JimboModal } from "jaml-ui/ui";
43
+ import { JimboColorOption } from "jaml-ui/ui";
44
+
45
+ <JimboPanel sway onBack={() => setOpen(false)}>
46
+ <JimboButton variant="primary" onClick={handleSearch}>Search</JimboButton>
47
+ </JimboPanel>
48
+ ```
49
+
50
+ Available variants: `primary`, `secondary`, `danger`, `back`, `ghost`
51
+
52
+ ### JAML IDE
53
+
54
+ ```tsx
55
+ import { JamlIde } from "jaml-ui";
56
+
57
+ <JamlIde
58
+ jaml={jaml}
59
+ onChange={setJaml}
60
+ searchResults={results}
61
+ onSearch={handleSearch}
62
+ isSearching={isSearching}
63
+ />
64
+ ```
65
+
66
+ ### Analyzer Explorer
67
+
68
+ ```tsx
69
+ import { AnalyzerExplorer } from "jaml-ui";
70
+
71
+ // antes: AnalyzerAnteView[] — stream from motely-wasm createSearchContext
72
+ <AnalyzerExplorer antes={antes} totalAntes={8} highlights={highlights} />
73
+ ```
74
+
75
+ ### JAML Map Preview
76
+
77
+ ```tsx
78
+ import { JamlMapPreview } from "jaml-ui";
79
+
80
+ <JamlMapPreview jaml={jaml} />
81
+ ```
82
+
83
+ ## Asset handling
84
+
85
+ By default sprites resolve from the package `assets/` directory via `import.meta.url`.
86
+
87
+ Override at app startup:
88
+
89
+ ```ts
90
+ import { setJamlAssetBaseUrl, clearJamlAssetBaseUrl } from "jaml-ui";
91
+
92
+ setJamlAssetBaseUrl("/vendor/jaml-ui/"); // custom CDN
93
+ clearJamlAssetBaseUrl(); // back to default
94
+ ```
95
+
96
+ ## Core utilities
97
+
98
+ ```ts
99
+ import { SPRITE_SHEETS, getSpriteData, resolveJamlAssetUrl } from "jaml-ui/core";
100
+ ```
101
+
102
+ ## Motely decode helpers
103
+
104
+ ```ts
105
+ import { decodeMotelyItemName, motelyItemTypeName } from "jaml-ui/motely";
106
+ ```
107
+
108
+ ## 3D card (optional)
109
+
110
+ ```bash
111
+ npm install three @react-three/fiber @react-three/drei @react-spring/three
112
+ ```
113
+
114
+ ```tsx
115
+ import { Card3D } from "jaml-ui/r3f";
116
+
117
+ <Card3D itemName="Blueprint" />
118
+ ```
119
+
120
+ ## Next.js
121
+
122
+ Import pure helpers from `jaml-ui/core` for server components. For local workspace installs add:
123
+
124
+ ```ts
125
+ // next.config.ts
126
+ const nextConfig = { transpilePackages: ["jaml-ui"] };
127
+ ```
128
+
129
+ ## Peer dependencies
130
+
131
+ | Peer | Required for |
132
+ |------|-------------|
133
+ | `react`, `react-dom` | All components |
134
+ | `motely-wasm ^10 \|\| ^11 \|\| ^12` | `jaml-ui/motely`, `AnalyzerExplorer` data |
135
+ | `three`, `@react-three/fiber`, `@react-three/drei`, `@react-spring/three` | `jaml-ui/r3f` only |
Binary file
@@ -0,0 +1 @@
1
+ {"sections":{"seed-detail":{"labels":{"hifi":"Hi-fi · Balatro native"}}}}
@@ -0,0 +1,303 @@
1
+ [
2
+ {
3
+ "name": "arcanapack",
4
+ "pos": {
5
+ "x": 0,
6
+ "y": 0
7
+ }
8
+ },
9
+ {
10
+ "name": "arcanapack1",
11
+ "pos": {
12
+ "x": 0,
13
+ "y": 0
14
+ }
15
+ },
16
+ {
17
+ "name": "arcanapack2",
18
+ "pos": {
19
+ "x": 1,
20
+ "y": 0
21
+ }
22
+ },
23
+ {
24
+ "name": "arcanapack3",
25
+ "pos": {
26
+ "x": 2,
27
+ "y": 0
28
+ }
29
+ },
30
+ {
31
+ "name": "arcanapack4",
32
+ "pos": {
33
+ "x": 3,
34
+ "y": 0
35
+ }
36
+ },
37
+ {
38
+ "name": "celestialpack",
39
+ "pos": {
40
+ "x": 0,
41
+ "y": 1
42
+ }
43
+ },
44
+ {
45
+ "name": "celestialpack1",
46
+ "pos": {
47
+ "x": 0,
48
+ "y": 1
49
+ }
50
+ },
51
+ {
52
+ "name": "celestialpack2",
53
+ "pos": {
54
+ "x": 1,
55
+ "y": 1
56
+ }
57
+ },
58
+ {
59
+ "name": "celestialpack3",
60
+ "pos": {
61
+ "x": 2,
62
+ "y": 1
63
+ }
64
+ },
65
+ {
66
+ "name": "celestialpack4",
67
+ "pos": {
68
+ "x": 3,
69
+ "y": 1
70
+ }
71
+ },
72
+ {
73
+ "name": "jumboarcanapack",
74
+ "pos": {
75
+ "x": 0,
76
+ "y": 2
77
+ }
78
+ },
79
+ {
80
+ "name": "jumboarcanapack1",
81
+ "pos": {
82
+ "x": 0,
83
+ "y": 2
84
+ }
85
+ },
86
+ {
87
+ "name": "jumboarcanapack2",
88
+ "pos": {
89
+ "x": 1,
90
+ "y": 2
91
+ }
92
+ },
93
+ {
94
+ "name": "megaarcanapack",
95
+ "pos": {
96
+ "x": 2,
97
+ "y": 2
98
+ }
99
+ },
100
+ {
101
+ "name": "megaarcanapack1",
102
+ "pos": {
103
+ "x": 2,
104
+ "y": 2
105
+ }
106
+ },
107
+ {
108
+ "name": "megaarcanapack2",
109
+ "pos": {
110
+ "x": 3,
111
+ "y": 2
112
+ }
113
+ },
114
+ {
115
+ "name": "jumbocelestialpack",
116
+ "pos": {
117
+ "x": 0,
118
+ "y": 3
119
+ }
120
+ },
121
+ {
122
+ "name": "jumbocelestialpack1",
123
+ "pos": {
124
+ "x": 0,
125
+ "y": 3
126
+ }
127
+ },
128
+ {
129
+ "name": "jumbocelestialpack2",
130
+ "pos": {
131
+ "x": 1,
132
+ "y": 3
133
+ }
134
+ },
135
+ {
136
+ "name": "megacelestialpack",
137
+ "pos": {
138
+ "x": 2,
139
+ "y": 3
140
+ }
141
+ },
142
+ {
143
+ "name": "megacelestialpack1",
144
+ "pos": {
145
+ "x": 2,
146
+ "y": 3
147
+ }
148
+ },
149
+ {
150
+ "name": "megacelestialpack2",
151
+ "pos": {
152
+ "x": 3,
153
+ "y": 3
154
+ }
155
+ },
156
+ {
157
+ "name": "spectralpack",
158
+ "pos": {
159
+ "x": 0,
160
+ "y": 4
161
+ }
162
+ },
163
+ {
164
+ "name": "spectralpack1",
165
+ "pos": {
166
+ "x": 0,
167
+ "y": 4
168
+ }
169
+ },
170
+ {
171
+ "name": "spectralpack2",
172
+ "pos": {
173
+ "x": 1,
174
+ "y": 4
175
+ }
176
+ },
177
+ {
178
+ "name": "jumbospectralpack",
179
+ "pos": {
180
+ "x": 2,
181
+ "y": 4
182
+ }
183
+ },
184
+ {
185
+ "name": "megaspectralpack",
186
+ "pos": {
187
+ "x": 3,
188
+ "y": 4
189
+ }
190
+ },
191
+ {
192
+ "name": "blanktemplatepack",
193
+ "pos": {
194
+ "x": 0,
195
+ "y": 5
196
+ }
197
+ },
198
+ {
199
+ "name": "standard",
200
+ "pos": {
201
+ "x": 1,
202
+ "y": 5
203
+ }
204
+ },
205
+ {
206
+ "name": "standardpack",
207
+ "pos": {
208
+ "x": 1,
209
+ "y": 5
210
+ }
211
+ },
212
+ {
213
+ "name": "standardpack1",
214
+ "pos": {
215
+ "x": 1,
216
+ "y": 5
217
+ }
218
+ },
219
+ {
220
+ "name": "buffoon",
221
+ "pos": {
222
+ "x": 2,
223
+ "y": 5
224
+ }
225
+ },
226
+ {
227
+ "name": "buffoonpack",
228
+ "pos": {
229
+ "x": 2,
230
+ "y": 5
231
+ }
232
+ },
233
+ {
234
+ "name": "buffoonpack1",
235
+ "pos": {
236
+ "x": 2,
237
+ "y": 5
238
+ }
239
+ },
240
+ {
241
+ "name": "arcana",
242
+ "pos": {
243
+ "x": 0,
244
+ "y": 0
245
+ }
246
+ },
247
+ {
248
+ "name": "celestial",
249
+ "pos": {
250
+ "x": 0,
251
+ "y": 1
252
+ }
253
+ },
254
+ {
255
+ "name": "spectral",
256
+ "pos": {
257
+ "x": 0,
258
+ "y": 4
259
+ }
260
+ },
261
+ {
262
+ "name": "jumboarcana",
263
+ "pos": {
264
+ "x": 0,
265
+ "y": 2
266
+ }
267
+ },
268
+ {
269
+ "name": "jumbocelestial",
270
+ "pos": {
271
+ "x": 0,
272
+ "y": 3
273
+ }
274
+ },
275
+ {
276
+ "name": "jumbospectral",
277
+ "pos": {
278
+ "x": 2,
279
+ "y": 4
280
+ }
281
+ },
282
+ {
283
+ "name": "megaarcana",
284
+ "pos": {
285
+ "x": 2,
286
+ "y": 2
287
+ }
288
+ },
289
+ {
290
+ "name": "megacelestial",
291
+ "pos": {
292
+ "x": 2,
293
+ "y": 3
294
+ }
295
+ },
296
+ {
297
+ "name": "megaspectral",
298
+ "pos": {
299
+ "x": 3,
300
+ "y": 4
301
+ }
302
+ }
303
+ ]
@@ -0,0 +1,51 @@
1
+ {
2
+ "spriteSheet": "BlindChips.png",
3
+ "spriteWidth": 68,
4
+ "spriteHeight": 68,
5
+ "columns": 21,
6
+ "rows": 31,
7
+ "animated": true,
8
+ "framesPerAnimation": 21,
9
+ "description": "Boss blind chips with animations",
10
+ "sprites": {
11
+ "blinds": {
12
+ "SmallBlind": { "x": 0, "y": 0, "description": "Small blind chip" },
13
+ "BigBlind": { "x": 0, "y": 1, "description": "Big blind chip" }
14
+ },
15
+ "bosses": {
16
+ "TheOx": { "x": 0, "y": 2 },
17
+ "TheHouse": { "x": 0, "y": 3 },
18
+ "TheClub": { "x": 0, "y": 4 },
19
+ "TheFish": { "x": 0, "y": 5 },
20
+ "TheWindow": { "x": 0, "y": 6 },
21
+ "TheHook": { "x": 0, "y": 7 },
22
+ "TheManacle": { "x": 0, "y": 8 },
23
+ "TheWall": { "x": 0, "y": 9 },
24
+ "TheWheel": { "x": 0, "y": 10 },
25
+ "TheArm": { "x": 0, "y": 11 },
26
+ "ThePsychic": { "x": 0, "y": 12 },
27
+ "TheGoad": { "x": 0, "y": 13 },
28
+ "TheWater": { "x": 0, "y": 14 },
29
+ "TheSerpent": { "x": 0, "y": 15 },
30
+ "ThePillar": { "x": 0, "y": 16 },
31
+ "TheEye": { "x": 0, "y": 17 },
32
+ "TheMouth": { "x": 0, "y": 18 },
33
+ "ThePlant": { "x": 0, "y": 19 },
34
+ "TheNeedle": { "x": 0, "y": 20 },
35
+ "TheHead": { "x": 0, "y": 21 },
36
+ "TheTooth": { "x": 0, "y": 22 },
37
+ "TheMark": { "x": 0, "y": 23 },
38
+ "TheFlint": { "x": 0, "y": 24 }
39
+ },
40
+ "finisherBosses": {
41
+ "CrimsonHeart": { "x": 0, "y": 25, "description": "Ante 8/16 finisher boss" },
42
+ "CeruleanBell": { "x": 0, "y": 26, "description": "Ante 8/16 finisher boss" },
43
+ "AmberAcorn": { "x": 0, "y": 27, "description": "Ante 8/16 finisher boss" },
44
+ "VerdantLeaf": { "x": 0, "y": 28, "description": "Ante 8/16 finisher boss" },
45
+ "VioletVessel": { "x": 0, "y": 29, "description": "Ante 8/16 finisher boss" }
46
+ },
47
+ "special": {
48
+ "MysteryBoss": { "x": 0, "y": 30, "description": "Mystery boss icon" }
49
+ }
50
+ }
51
+ }