jaml-ui 4.2.5 → 4.2.6

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.
@@ -0,0 +1,8 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export type JimboTextSize = "micro" | "xs" | "sm" | "md" | "lg" | "xl" | "display";
3
+ export type JimboTextTone = "white" | "grey" | "gold" | "red" | "blue" | "green" | "orange" | "purple";
4
+ export interface JimboTextProps extends HTMLAttributes<HTMLSpanElement> {
5
+ size?: JimboTextSize;
6
+ tone?: JimboTextTone;
7
+ }
8
+ export declare function JimboText({ size, tone, className, children, ...rest }: JimboTextProps): import("react").JSX.Element;
@@ -0,0 +1,13 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ export type JimboTone = "red" | "blue" | "green" | "orange" | "purple" | "grey" | "gold" | "tarot" | "planet" | "spectral";
3
+ export { JimboButton } from './JimboButton.js';
4
+ export type JimboInnerPanelProps = HTMLAttributes<HTMLDivElement>;
5
+ export declare function JimboInnerPanel({ className, children, ...rest }: JimboInnerPanelProps): import("react").JSX.Element;
6
+ export interface JimboModalProps {
7
+ open: boolean;
8
+ onClose?: () => void;
9
+ title?: ReactNode;
10
+ className?: string;
11
+ children?: ReactNode;
12
+ }
13
+ export declare function JimboModal({ open, onClose, title, className, children }: JimboModalProps): import("react").JSX.Element | null;
@@ -0,0 +1,10 @@
1
+ import { CSSProperties } from 'react';
2
+ import { SpriteSheetType } from '../sprites/spriteMapper.js';
3
+ export interface JimboSpriteProps {
4
+ name: string;
5
+ sheet: SpriteSheetType;
6
+ width: number;
7
+ className?: string;
8
+ style?: CSSProperties;
9
+ }
10
+ export declare function JimboSprite({ name, sheet, width, className, style }: JimboSpriteProps): import("react").JSX.Element;
@@ -0,0 +1,12 @@
1
+ export type JamlPreviewSection = "must" | "should" | "mustNot";
2
+ export type JamlPreviewVisualType = "joker" | "consumable" | "voucher" | "tag" | "boss";
3
+ export interface JamlPreviewItem {
4
+ id: string;
5
+ section: JamlPreviewSection;
6
+ clauseKey: string;
7
+ visualType: JamlPreviewVisualType;
8
+ value: string;
9
+ source: string;
10
+ }
11
+ export type JamlPreviewGroups = Record<JamlPreviewSection, JamlPreviewItem[]>;
12
+ export declare function extractVisualJamlItems(jaml: string): JamlPreviewGroups;
@@ -0,0 +1,3 @@
1
+ import { JamlVisualFilter } from '../components/JamlIdeVisual.js';
2
+ export declare function jamlTextToVisualFilter(text: string): JamlVisualFilter;
3
+ export declare function visualFilterToJamlText(filter: JamlVisualFilter): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jaml-ui",
3
- "version": "4.2.5",
3
+ "version": "4.2.6",
4
4
  "description": "Zero-dependency json-render engine + Balatro card sprites for MCP Apps.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -77,6 +77,7 @@
77
77
  "author": "pifreak",
78
78
  "license": "MIT",
79
79
  "dependencies": {
80
+ "react-icons": "^5.7.0",
80
81
  "yaml": "^2.9.0"
81
82
  },
82
83
  "peerDependencies": {