jaml-ui 4.2.8 → 4.2.9

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 (38) hide show
  1. package/dist/chunks/JimboMascot-DJAe76lw.js +771 -0
  2. package/dist/chunks/JimboMascot-DJAe76lw.js.map +1 -0
  3. package/dist/components/JamlCodeEditor.d.ts +1 -2
  4. package/dist/components/JamlyzerBulk.d.ts +6 -2
  5. package/dist/components/jamlyzer/JamlyzerAnteDetails.d.ts +14 -0
  6. package/dist/components/jamlyzer/JamlyzerErraticDeck.d.ts +8 -0
  7. package/dist/components/jamlyzer/JamlyzerEvents.d.ts +6 -0
  8. package/dist/components/jamlyzer/JamlyzerItemCard.d.ts +9 -0
  9. package/dist/components/jamlyzer/JamlyzerPackSection.d.ts +9 -0
  10. package/dist/components/jamlyzer/JamlyzerPulls.d.ts +8 -0
  11. package/dist/components/jamlyzer/JamlyzerRail.d.ts +14 -0
  12. package/dist/components/jamlyzer/highlight.d.ts +5 -0
  13. package/dist/components/jamlyzer/names.d.ts +8 -0
  14. package/dist/index.js +8811 -9507
  15. package/dist/index.js.map +1 -1
  16. package/dist/json-render/components/domain.d.ts +3 -2
  17. package/dist/json-render/components/layout.d.ts +2 -6
  18. package/dist/json-render/components/mascot.d.ts +10 -9
  19. package/dist/json-render/components/reference.d.ts +3 -2
  20. package/dist/lib/motely/jamlParse.d.ts +4 -0
  21. package/dist/ui/JimboButton.d.ts +1 -1
  22. package/dist/ui/JimboCodeSurface.d.ts +12 -0
  23. package/dist/ui/JimboDivider.d.ts +7 -0
  24. package/dist/ui/JimboErrorBlock.d.ts +8 -0
  25. package/dist/ui/JimboGrid.d.ts +14 -0
  26. package/dist/ui/JimboMascot.d.ts +12 -0
  27. package/dist/ui/JimboOrbitalMenu.d.ts +15 -0
  28. package/dist/ui/JimboSpacer.d.ts +7 -0
  29. package/dist/ui/JimboStatusPill.d.ts +8 -0
  30. package/dist/ui/jimbo.css +1 -1
  31. package/dist/ui/jimboTabs.d.ts +5 -0
  32. package/dist/ui/tokens.d.ts +0 -2
  33. package/dist/ui.d.ts +14 -0
  34. package/dist/ui.js +27 -11
  35. package/package.json +16 -16
  36. package/dist/chunks/JimboWordmark-ByO9yaAi.js +0 -284
  37. package/dist/chunks/JimboWordmark-ByO9yaAi.js.map +0 -1
  38. /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
- * These are Balatro-specific UI components used by the json-render system.
6
- * All use CSS tokens and the layout primitives above.
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
- * All components query the knowledge base and render rich info cards.
6
- * Zero external dependencies. Pure React + CSS tokens.
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;
@@ -0,0 +1,4 @@
1
+ import { MotelyJamlyzer } from 'motely-wasm';
2
+ type JamlConfig = Parameters<typeof MotelyJamlyzer.analyzeSeeds>[0];
3
+ export declare const fromJaml: (content: string) => JamlConfig;
4
+ export {};
@@ -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" | "grey";
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;