jaml-ui 4.2.8 → 4.3.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.
- package/dist/chunks/JimboMascot-DJAe76lw.js +771 -0
- package/dist/chunks/JimboMascot-DJAe76lw.js.map +1 -0
- package/dist/components/JamlCodeEditor.d.ts +1 -2
- package/dist/components/JamlyzerBulk.d.ts +6 -2
- package/dist/components/jamlyzer/JamlyzerAnteDetails.d.ts +14 -0
- package/dist/components/jamlyzer/JamlyzerErraticDeck.d.ts +8 -0
- package/dist/components/jamlyzer/JamlyzerEvents.d.ts +6 -0
- package/dist/components/jamlyzer/JamlyzerItemCard.d.ts +9 -0
- package/dist/components/jamlyzer/JamlyzerPackSection.d.ts +9 -0
- package/dist/components/jamlyzer/JamlyzerPulls.d.ts +8 -0
- package/dist/components/jamlyzer/JamlyzerRail.d.ts +14 -0
- package/dist/components/jamlyzer/highlight.d.ts +5 -0
- package/dist/components/jamlyzer/names.d.ts +8 -0
- package/dist/index.js +9919 -10788
- package/dist/index.js.map +1 -1
- package/dist/json-render/components/domain.d.ts +3 -2
- package/dist/json-render/components/layout.d.ts +2 -6
- package/dist/json-render/components/mascot.d.ts +10 -9
- package/dist/json-render/components/reference.d.ts +3 -2
- package/dist/lib/motely/jamlParse.d.ts +4 -0
- package/dist/ui/JimboButton.d.ts +1 -1
- package/dist/ui/JimboCodeSurface.d.ts +12 -0
- package/dist/ui/JimboDivider.d.ts +7 -0
- package/dist/ui/JimboErrorBlock.d.ts +8 -0
- package/dist/ui/JimboGrid.d.ts +14 -0
- package/dist/ui/JimboMascot.d.ts +12 -0
- package/dist/ui/JimboOrbitalMenu.d.ts +15 -0
- package/dist/ui/JimboSpacer.d.ts +7 -0
- package/dist/ui/JimboStatusPill.d.ts +8 -0
- package/dist/ui/jimbo.css +1 -1
- package/dist/ui/jimboTabs.d.ts +5 -0
- package/dist/ui/tokens.d.ts +0 -2
- package/dist/ui.d.ts +14 -0
- package/dist/ui.js +27 -11
- package/package.json +22 -20
- package/dist/chunks/JimboWordmark-ByO9yaAi.js +0 -284
- package/dist/chunks/JimboWordmark-ByO9yaAi.js.map +0 -1
- package/dist/lib/motely/motelyCompatEnums.d.ts +0 -310
- /package/dist/{json-render/components → ui}/jammySeedMascotImage.d.ts +0 -0
|
@@ -2,8 +2,9 @@ import { FC } from 'react';
|
|
|
2
2
|
/**
|
|
3
3
|
* Domain components — SearchStats, ErrorBanner, LoadingPulse, SeedCard, etc.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* Balatro-specific json-render nodes, composed from Jimbo primitives.
|
|
6
|
+
* Interactive controls are the real Jimbo button primitives; status, error,
|
|
7
|
+
* and layout chrome come from src/ui/ so there is one grammar, not two.
|
|
7
8
|
*/
|
|
8
9
|
export interface SearchStatsProps {
|
|
9
10
|
status: "idle" | "running" | "completed" | "error";
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
* Layout primitives — Panel, Stack, Grid, Text, Spacer, Divider, Badge.
|
|
4
|
-
*
|
|
5
|
-
* All use CSS custom properties from jimbo-tokens.css.
|
|
6
|
-
* No external classes. No BEM. Just inline styles + tokens.
|
|
7
|
-
*/
|
|
2
|
+
import { JimboBadgeTone } from '../../ui/JimboBadge.js';
|
|
8
3
|
export interface PanelProps {
|
|
9
4
|
title?: string;
|
|
10
5
|
subtitle?: string;
|
|
@@ -48,4 +43,5 @@ export interface BadgeProps {
|
|
|
48
43
|
tone?: BadgeTone;
|
|
49
44
|
className?: string;
|
|
50
45
|
}
|
|
46
|
+
export declare function badgeToneToJimbo(tone: BadgeTone): JimboBadgeTone;
|
|
51
47
|
export declare const Badge: React.FC<BadgeProps>;
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
+
import { JimboMascotProps } from '../../ui/JimboMascot.js';
|
|
3
|
+
import { JimboOrbitalMenuProps } from '../../ui/JimboOrbitalMenu.js';
|
|
2
4
|
import { BadgeTone } from './layout.js';
|
|
5
|
+
/**
|
|
6
|
+
* json-render mascot nodes — thin adapters over the JimboMascot /
|
|
7
|
+
* JimboOrbitalMenu primitives in src/ui/. The adapter exists so json-render
|
|
8
|
+
* schemas can keep using the badge-tone vocabulary ("gold" included) while
|
|
9
|
+
* the primitive speaks real Jimbo tones.
|
|
10
|
+
*/
|
|
3
11
|
export interface JammyOrbitalMenuItem {
|
|
4
12
|
label: string;
|
|
5
13
|
action: string;
|
|
6
14
|
tone?: BadgeTone;
|
|
7
15
|
}
|
|
8
|
-
export interface JammyOrbitalMenuProps {
|
|
16
|
+
export interface JammyOrbitalMenuProps extends Omit<JimboOrbitalMenuProps, "items"> {
|
|
9
17
|
items: JammyOrbitalMenuItem[];
|
|
10
|
-
onAction?: (action: string) => void;
|
|
11
|
-
radius?: number;
|
|
12
|
-
className?: string;
|
|
13
18
|
}
|
|
14
19
|
export declare const JammyOrbitalMenu: FC<JammyOrbitalMenuProps>;
|
|
15
|
-
export interface JammyMascotProps {
|
|
16
|
-
mood?: "idle" | "happy" | "surprised";
|
|
17
|
-
size?: number;
|
|
20
|
+
export interface JammyMascotProps extends Omit<JimboMascotProps, "menuItems"> {
|
|
18
21
|
menuItems?: JammyOrbitalMenuItem[];
|
|
19
|
-
onMenuAction?: (action: string) => void;
|
|
20
|
-
className?: string;
|
|
21
22
|
}
|
|
22
23
|
export declare const JammyMascot: FC<JammyMascotProps>;
|
|
@@ -2,8 +2,9 @@ import { FC } from 'react';
|
|
|
2
2
|
/**
|
|
3
3
|
* Reference Components — Encyclopedia UI for Balatro entities.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* Composed from Jimbo primitives: JimboRow (between / wrap) for header and
|
|
6
|
+
* pill rows, JimboInnerPanel for the code snippet, Panel/Stack/Text/Badge/
|
|
7
|
+
* Divider from the layout adapters.
|
|
7
8
|
*/
|
|
8
9
|
export interface JokerCardProps {
|
|
9
10
|
name: string;
|
package/dist/ui/JimboButton.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes } from 'react';
|
|
2
2
|
export interface JimboButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
3
|
size?: "xs" | "sm" | "md" | "lg";
|
|
4
|
-
tone?: "orange" | "red" | "blue" | "green"
|
|
4
|
+
tone?: "orange" | "red" | "blue" | "green";
|
|
5
5
|
fullWidth?: boolean;
|
|
6
6
|
label?: string;
|
|
7
7
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HTMLAttributes, Ref } from 'react';
|
|
2
|
+
export type JimboCodeSurfaceProps = Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
3
|
+
ref?: Ref<HTMLDivElement>;
|
|
4
|
+
/** Floor height in px for the surface before the view has content. */
|
|
5
|
+
minHeight?: number;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Mount point for an externally-managed editor view (CodeMirror, etc.).
|
|
9
|
+
* Owns the sunken code background and the height floor; the view that attaches
|
|
10
|
+
* to the ref owns everything inside it.
|
|
11
|
+
*/
|
|
12
|
+
export declare function JimboCodeSurface({ className, minHeight, style, ref, ...rest }: JimboCodeSurfaceProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export interface JimboDividerProps extends HTMLAttributes<HTMLHRElement> {
|
|
3
|
+
/** Vertical rule for use inside a JimboRow. */
|
|
4
|
+
vert?: boolean;
|
|
5
|
+
}
|
|
6
|
+
/** Thin hairline rule — the missing React half of `.j-divider`. */
|
|
7
|
+
export declare function JimboDivider({ vert, className, ...rest }: JimboDividerProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface JimboErrorBlockProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
3
|
+
title?: ReactNode;
|
|
4
|
+
/** Render a destructive dismiss button; hides the block when pressed. */
|
|
5
|
+
onDismiss?: () => void;
|
|
6
|
+
}
|
|
7
|
+
/** Red error callout — the missing React half of `.j-error-block`. */
|
|
8
|
+
export declare function JimboErrorBlock({ title, onDismiss, className, children, ...rest }: JimboErrorBlockProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { JimboGap } from './JimboLayout.js';
|
|
3
|
+
export interface JimboGridProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/** Fixed column count (default 3). Ignored when `minColWidth` is set. */
|
|
5
|
+
columns?: number;
|
|
6
|
+
/** Auto-fit as many columns of at least this many px as the width allows. */
|
|
7
|
+
minColWidth?: number;
|
|
8
|
+
gap?: JimboGap;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Multi-column grid container. Grid is deterministic across host iframes
|
|
12
|
+
* (unlike flex), so this is the only sanctioned multi-column layout.
|
|
13
|
+
*/
|
|
14
|
+
export declare function JimboGrid({ columns, minColWidth, gap, style, ...rest }: JimboGridProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { JimboOrbitalMenuItem } from './JimboOrbitalMenu.js';
|
|
3
|
+
export interface JimboMascotProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
mood?: "idle" | "happy" | "surprised";
|
|
5
|
+
/** Box size in px. Default 96. */
|
|
6
|
+
size?: number;
|
|
7
|
+
/** When present, tapping the mascot toggles a radial action menu. */
|
|
8
|
+
menuItems?: JimboOrbitalMenuItem[];
|
|
9
|
+
onMenuAction?: (action: string) => void;
|
|
10
|
+
}
|
|
11
|
+
/** Jammy, the seed mascot — bounces, shakes, and hosts a radial menu. */
|
|
12
|
+
export declare function JimboMascot({ mood, size, menuItems, onMenuAction, className, ...rest }: JimboMascotProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { JimboBadgeTone } from './JimboBadge.js';
|
|
3
|
+
export interface JimboOrbitalMenuItem {
|
|
4
|
+
label: string;
|
|
5
|
+
action: string;
|
|
6
|
+
tone?: JimboBadgeTone;
|
|
7
|
+
}
|
|
8
|
+
export interface JimboOrbitalMenuProps extends HTMLAttributes<HTMLDivElement> {
|
|
9
|
+
items: JimboOrbitalMenuItem[];
|
|
10
|
+
onAction?: (action: string) => void;
|
|
11
|
+
/** Orbit radius in px. Default 90. */
|
|
12
|
+
radius?: number;
|
|
13
|
+
}
|
|
14
|
+
/** Badges arranged on a circle around a center point (mascot radial menu). */
|
|
15
|
+
export declare function JimboOrbitalMenu({ items, onAction, radius, className, ...rest }: JimboOrbitalMenuProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export interface JimboSpacerProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/** Vertical space in px. Default 16. */
|
|
4
|
+
size?: number;
|
|
5
|
+
}
|
|
6
|
+
/** Empty vertical breathing room between stacks of content. */
|
|
7
|
+
export declare function JimboSpacer({ size, style, ...rest }: JimboSpacerProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export type JimboStatus = "idle" | "running" | "ok" | "error" | "paused";
|
|
3
|
+
export interface JimboStatusPillProps extends HTMLAttributes<HTMLSpanElement> {
|
|
4
|
+
status?: JimboStatus;
|
|
5
|
+
label?: string;
|
|
6
|
+
}
|
|
7
|
+
/** Short single-word state indicator — the missing React half of `.j-status-pill`. */
|
|
8
|
+
export declare function JimboStatusPill({ status, label, className, children, ...rest }: JimboStatusPillProps): import("react").JSX.Element;
|