jaml-ui 6.0.1 → 6.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/DeckSprite.d.ts +13 -0
- package/dist/decode/motelyItemDecoder.d.ts +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3157 -3132
- package/dist/index.js.map +1 -1
- package/dist/motely.js +353 -74
- package/dist/motely.js.map +1 -1
- package/dist/ui/jimbo.css +1 -1
- package/package.json +1 -1
|
@@ -24,3 +24,16 @@ export interface DeckSpriteProps {
|
|
|
24
24
|
* `resolveJamlAssetUrl` so consumers can override the asset base URL.
|
|
25
25
|
*/
|
|
26
26
|
export declare function DeckSprite({ deck, stake, size, className, style }: DeckSpriteProps): React.JSX.Element;
|
|
27
|
+
export interface StakeSpriteProps {
|
|
28
|
+
/** Stake name (e.g. "White", "Red", "Green", "Gold Stake"). */
|
|
29
|
+
stake: string;
|
|
30
|
+
/** Rendered width & height in pixels (1:1 sticker chip). */
|
|
31
|
+
size?: number;
|
|
32
|
+
className?: string;
|
|
33
|
+
style?: React.CSSProperties;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Balatro stake sticker chip (White, Red, Green, Blue, Black, Purple, Orange, Gold).
|
|
37
|
+
* Draws the isolated stake sticker directly from stickers.png.
|
|
38
|
+
*/
|
|
39
|
+
export declare function StakeSprite({ stake, size, className, style }: StakeSpriteProps): React.JSX.Element;
|
|
@@ -58,3 +58,4 @@ export declare function motelyStandardcardSuitName(input: MotelyItemInput): "Clu
|
|
|
58
58
|
export declare function decodeMotelyItemName(input: MotelyItemInput): string;
|
|
59
59
|
export declare function decodeMotelyItem(input: MotelyItemInput): DecodedMotelyItem | null;
|
|
60
60
|
export declare function decodeMotelyItemToJamlCard(input: MotelyItemInput, scale?: number): MotelyJamlCard | null;
|
|
61
|
+
export * from './motelySprite.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -14,7 +14,8 @@ export { type DailyRitual, parseRitual } from './lib/daily/ritual.js';
|
|
|
14
14
|
export { parseJaml, type JamlClause, type JamlClauseKind, type JamlItemType, type JamlFilter, matchClauseToItem, matchClauseToAnte, matchMotelyItemToClause, } from './lib/jaml/jaml.js';
|
|
15
15
|
export { estimateJamlRarity, estimateEtaSeconds, formatOneIn, formatEta, type JamlRarityEstimate, type ClauseRarityEstimate, type RarityFlag, type RaritySeverity, type RarityClauseKind, } from './lib/jaml/rarity.js';
|
|
16
16
|
export { RARITY_DATA, type RarityData } from './lib/jaml/rarityData.generated.js';
|
|
17
|
-
export { DeckSprite, DECK_SPRITE_POS, STAKE_SPRITE_POS, type DeckSpriteProps, } from './components/DeckSprite.js';
|
|
17
|
+
export { DeckSprite, StakeSprite, DECK_SPRITE_POS, STAKE_SPRITE_POS, type DeckSpriteProps, type StakeSpriteProps, } from './components/DeckSprite.js';
|
|
18
|
+
export { motelyItemTypeToSprite, motelyItemToSprite, type MotelySpriteCell, } from './decode/motelySprite.js';
|
|
18
19
|
export { DeckStakePicker, DECK_PICKER_NAMES, STAKE_PICKER_NAMES, type DeckStakePickerProps, } from './components/DeckStakePicker.js';
|
|
19
20
|
export { StandardCard } from './components/StandardCard.js';
|
|
20
21
|
export { CardSuit, CardRank, CardEnhancement, CardSeal, CardEdition, } from './components/cardEnums.js';
|