jaml-ui 2.5.1 → 3.0.1
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/README.md +38 -225
- package/dist/chunks/Layer-B5y9UIAt.js +19 -0
- package/dist/chunks/Layer-B5y9UIAt.js.map +1 -0
- package/dist/chunks/motelySprite-BYsaes3N.js +753 -0
- package/dist/chunks/motelySprite-BYsaes3N.js.map +1 -0
- package/dist/chunks/spriteMapper-BiDkbZrD.js +480 -0
- package/dist/chunks/spriteMapper-BiDkbZrD.js.map +1 -0
- package/dist/components/DeckSprite.d.ts +1 -1
- package/dist/components/GameCard.d.ts +5 -4
- package/dist/components/JamlyzerView.d.ts +9 -0
- package/dist/components/StandardCard.d.ts +4 -3
- package/dist/core.d.ts +0 -1
- package/dist/core.js +38 -26
- package/dist/core.js.map +1 -1
- package/dist/decode/motelyItemDecoder.d.ts +5 -0
- package/dist/index.d.ts +5 -28
- package/dist/index.js +3176 -27604
- package/dist/index.js.map +1 -1
- package/dist/json-render/catalog.d.ts +26 -1
- package/dist/json-render/components/domain.d.ts +8 -8
- package/dist/json-render/components/game.d.ts +3 -7
- package/dist/json-render/components/layout.d.ts +2 -1
- package/dist/json-render/components/mascot.d.ts +22 -0
- package/dist/json-render/components/reference.d.ts +7 -7
- package/dist/json-render/engine.d.ts +4 -4
- package/dist/json-render/index.d.ts +2 -0
- package/dist/motely.d.ts +2 -5
- package/dist/motely.js +22 -173
- package/dist/motely.js.map +1 -1
- package/dist/render/CanvasRenderer.d.ts +2 -1
- package/dist/render/useJamlCardRenderer.d.ts +15 -0
- package/dist/ui/jimbo.css +1 -2
- package/dist/ui.d.ts +0 -39
- package/dist/ui.js +58 -3
- package/dist/ui.js.map +1 -0
- package/package.json +13 -53
- package/dist/assets/searchPoolWorker-DA5uFkl3.js +0 -2
- package/dist/assets/searchPoolWorker-DA5uFkl3.js.map +0 -1
- package/dist/chunks/jamlSeeds-CRthre97.js +0 -69
- package/dist/chunks/jamlSeeds-CRthre97.js.map +0 -1
- package/dist/chunks/runtime-D7eHq1kP.js +0 -2060
- package/dist/chunks/runtime-D7eHq1kP.js.map +0 -1
- package/dist/chunks/searchPoolWorker-649yzf3l.js +0 -11
- package/dist/chunks/searchPoolWorker-649yzf3l.js.map +0 -1
- package/dist/chunks/spriteMapper-BqG15k6f.js +0 -2496
- package/dist/chunks/spriteMapper-BqG15k6f.js.map +0 -1
- package/dist/chunks/ui-DwggmAYr.js +0 -3399
- package/dist/chunks/ui-DwggmAYr.js.map +0 -1
- package/dist/components/CardFan.d.ts +0 -13
- package/dist/components/JamlAestheticSelector.d.ts +0 -12
- package/dist/components/JamlCodeEditor.d.ts +0 -7
- package/dist/components/JamlCurator.d.ts +0 -1
- package/dist/components/JamlIde.d.ts +0 -44
- package/dist/components/JamlIdeToolbar.d.ts +0 -14
- package/dist/components/JamlIdeVisual.d.ts +0 -30
- package/dist/components/JamlMapPreview.d.ts +0 -11
- package/dist/components/JamlSeedInput.d.ts +0 -24
- package/dist/components/JamlSeedSpinner.d.ts +0 -9
- package/dist/components/JamlSpeedometer.d.ts +0 -16
- package/dist/components/Jamlyzer.d.ts +0 -8
- package/dist/components/JimmolateEditor.d.ts +0 -47
- package/dist/components/MotelyHello.d.ts +0 -5
- package/dist/components/MotelyVersionBadge.d.ts +0 -28
- package/dist/components/PaginatedFilterBrowser.d.ts +0 -26
- package/dist/components/RunConfigModal.d.ts +0 -8
- package/dist/components/SeedFinderApp.d.ts +0 -7
- package/dist/components/jamlMap/CategoryPicker.d.ts +0 -32
- package/dist/components/jamlMap/JamlMapEditor.d.ts +0 -14
- package/dist/components/jamlMap/JokerPicker.d.ts +0 -8
- package/dist/components/jamlMap/MysterySlot.d.ts +0 -37
- package/dist/components/jamlMap/index.d.ts +0 -4
- package/dist/components/jamlMap/jokerRarity.d.ts +0 -6
- package/dist/components/jamlSeedUtils.d.ts +0 -1
- package/dist/hooks/searchPoolWorker.d.ts +0 -61
- package/dist/hooks/searchWorker.d.ts +0 -1
- package/dist/hooks/useAnalyzer.d.ts +0 -10
- package/dist/hooks/useIntersectionObserver.d.ts +0 -14
- package/dist/hooks/useJamlLibrary.d.ts +0 -13
- package/dist/hooks/useSearch.d.ts +0 -31
- package/dist/hooks/useSearchPool.d.ts +0 -43
- package/dist/hooks/useShopStream.d.ts +0 -22
- package/dist/lib/SpriteMapper.d.ts +0 -10
- package/dist/lib/cardParser.d.ts +0 -8
- package/dist/lib/classes/BuyMetaData.d.ts +0 -11
- package/dist/lib/config.d.ts +0 -13
- package/dist/lib/const.d.ts +0 -70
- package/dist/lib/data/constants.d.ts +0 -11
- package/dist/lib/hooks/useDragScroll.d.ts +0 -4
- package/dist/lib/hooks/useJamlFilter.d.ts +0 -48
- package/dist/lib/hooks/useSeedAnalyzer.d.ts +0 -5
- package/dist/lib/jaml/jamlCompletion.d.ts +0 -12
- package/dist/lib/jaml/jamlData.d.ts +0 -4
- package/dist/lib/jaml/jamlLangCodemirror.d.ts +0 -13
- package/dist/lib/jaml/jamlObjectives.d.ts +0 -13
- package/dist/lib/jaml/jamlParser.d.ts +0 -14
- package/dist/lib/jaml/jamlPresets.d.ts +0 -8
- package/dist/lib/jaml/jamlSchema.d.ts +0 -19
- package/dist/lib/jaml/jamlSeeds.d.ts +0 -7
- package/dist/lib/motely/runtime.d.ts +0 -40
- package/dist/lib/parseDailyRitual.d.ts +0 -45
- package/dist/lib/tts/getRevealPos.d.ts +0 -5
- package/dist/lib/tts/splitTtsDisplay.d.ts +0 -19
- package/dist/lib/types.d.ts +0 -122
- package/dist/lib/utils.d.ts +0 -2
- package/dist/motelyDisplay.d.ts +0 -10
- package/dist/ui/JimboBadge.d.ts +0 -12
- package/dist/ui/JimboBalatroFooter.d.ts +0 -16
- package/dist/ui/JimboCopyButton.d.ts +0 -27
- package/dist/ui/JimboDeckAndStakeSelectorModal.d.ts +0 -30
- package/dist/ui/JimboDualChip.d.ts +0 -17
- package/dist/ui/JimboIconButton.d.ts +0 -15
- package/dist/ui/JimboInlineEdit.d.ts +0 -16
- package/dist/ui/JimboInputModal.d.ts +0 -13
- package/dist/ui/JimboListItem.d.ts +0 -11
- package/dist/ui/JimboPanelSpinner.d.ts +0 -15
- package/dist/ui/JimboPanelSplitter.d.ts +0 -8
- package/dist/ui/JimboPicker.d.ts +0 -28
- package/dist/ui/JimboSeedCopyChip.d.ts +0 -16
- package/dist/ui/JimboSelect.d.ts +0 -30
- package/dist/ui/JimboSlider.d.ts +0 -11
- package/dist/ui/JimboSpinner.d.ts +0 -18
- package/dist/ui/JimboStepper.d.ts +0 -22
- package/dist/ui/JimboTextInput.d.ts +0 -5
- package/dist/ui/JimboToggleList.d.ts +0 -12
- package/dist/ui/JimboValueBadge.d.ts +0 -19
- package/dist/ui/codeBlock.d.ts +0 -11
- package/dist/ui/hooks.d.ts +0 -126
- package/dist/ui/ide/JamlEditor.d.ts +0 -7
- package/dist/ui/jimboApp.d.ts +0 -9
- package/dist/ui/jimboBackground.d.ts +0 -17
- package/dist/ui/jimboCopyRow.d.ts +0 -9
- package/dist/ui/jimboFilterBar.d.ts +0 -22
- package/dist/ui/jimboFlankNav.d.ts +0 -17
- package/dist/ui/jimboInfoCard.d.ts +0 -31
- package/dist/ui/jimboInset.d.ts +0 -9
- package/dist/ui/jimboLayout.d.ts +0 -25
- package/dist/ui/jimboLink.d.ts +0 -12
- package/dist/ui/jimboSectionHeader.d.ts +0 -11
- package/dist/ui/jimboStatGrid.d.ts +0 -13
- package/dist/ui/jimboTabs.d.ts +0 -21
- package/dist/ui/jimboText.d.ts +0 -25
- package/dist/ui/jimboTooltip.d.ts +0 -33
- package/dist/ui/jimboWordmark.d.ts +0 -10
- package/dist/ui/mascot/JammySpeechBox.d.ts +0 -9
- package/dist/ui/mascot/SeedMascot.d.ts +0 -37
- package/dist/ui/mascot/index.d.ts +0 -3
- package/dist/ui/mascot/menuConfig.d.ts +0 -102
- package/dist/ui/panel.d.ts +0 -32
- package/dist/ui/radial/RadialBadge.d.ts +0 -16
- package/dist/ui/radial/RadialBreadcrumb.d.ts +0 -12
- package/dist/ui/radial/RadialButton.d.ts +0 -60
- package/dist/ui/radial/RadialMenu.d.ts +0 -38
- package/dist/ui/radial/RadialPill.d.ts +0 -17
- package/dist/ui/radial/index.d.ts +0 -16
- package/dist/ui/radial/radialMenuStore.d.ts +0 -31
- package/dist/ui/radial/radialMenuViewport.d.ts +0 -6
- package/dist/ui/radial/useRadialMenu.d.ts +0 -35
- package/dist/ui/showcase.d.ts +0 -38
- package/dist/ui/sprites.d.ts +0 -25
- package/dist/utils/jamlMapPreview.d.ts +0 -12
- package/dist/utils/jamlVisualFilter.d.ts +0 -3
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export type JimboDualChipTone = 'blue' | 'red' | 'green' | 'gold' | 'dark';
|
|
3
|
-
export interface JimboDualChipHalf {
|
|
4
|
-
value: React.ReactNode;
|
|
5
|
-
tone: JimboDualChipTone;
|
|
6
|
-
label?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface JimboDualChipProps {
|
|
9
|
-
left: JimboDualChipHalf;
|
|
10
|
-
right: JimboDualChipHalf;
|
|
11
|
-
className?: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Two stat halves joined into one pill. Used for the `0 × 0` Hands × Discards
|
|
15
|
-
* chip on Balatro's run-info side panel.
|
|
16
|
-
*/
|
|
17
|
-
export declare function JimboDualChip({ left, right, className }: JimboDualChipProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export type JimboIconButtonTone = "default" | "destructive";
|
|
3
|
-
export interface JimboIconButtonProps {
|
|
4
|
-
"aria-label"?: string;
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
8
|
-
/** Pass-through for drag-start guards (e.g. stopPropagation inside draggable rows). */
|
|
9
|
-
onMouseDown?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
10
|
-
onTouchStart?: (e: React.TouchEvent<HTMLButtonElement>) => void;
|
|
11
|
-
size?: "xs" | "sm" | "md";
|
|
12
|
-
tone?: JimboIconButtonTone;
|
|
13
|
-
title?: string;
|
|
14
|
-
}
|
|
15
|
-
export declare function JimboIconButton({ onClick, onMouseDown, onTouchStart, title, "aria-label": ariaLabel, disabled, size, tone, children, }: JimboIconButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export type JimboInlineEditSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
3
|
-
export type JimboInlineEditTone = 'white' | 'gold' | 'grey';
|
|
4
|
-
export interface JimboInlineEditProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
5
|
-
/** Visual size — echoes JimboText size scale. */
|
|
6
|
-
size?: JimboInlineEditSize;
|
|
7
|
-
tone?: JimboInlineEditTone;
|
|
8
|
-
/** Render at reduced opacity (e.g. description-style sub-text). */
|
|
9
|
-
dim?: boolean;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Borderless transparent input that reads as inline text until focused —
|
|
13
|
-
* for editable titles, bylines, or descriptions inside cards/panels.
|
|
14
|
-
* Focus chrome only shows on keyboard navigation so mouse use stays clean.
|
|
15
|
-
*/
|
|
16
|
-
export declare const JimboInlineEdit: React.ForwardRefExoticComponent<JimboInlineEditProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface JimboInputModalProps {
|
|
2
|
-
cancelLabel?: string;
|
|
3
|
-
confirmLabel?: string;
|
|
4
|
-
initialValue?: string;
|
|
5
|
-
message?: string;
|
|
6
|
-
onCancel: () => void;
|
|
7
|
-
onConfirm: (value: string) => void;
|
|
8
|
-
open: boolean;
|
|
9
|
-
placeholder?: string;
|
|
10
|
-
title: string;
|
|
11
|
-
validate?: (value: string) => string | null;
|
|
12
|
-
}
|
|
13
|
-
export declare function JimboInputModal({ open, title, message, placeholder, initialValue, confirmLabel, cancelLabel, validate, onConfirm, onCancel, }: JimboInputModalProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface JimboListItemProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
|
-
/** Visual + a11y active state. Renders the selected/hover palette. */
|
|
4
|
-
active?: boolean;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Clickable list row. Use anywhere a vertical stack of selectable rows is
|
|
8
|
-
* needed — filter browsers, seed lists, saved-search picker, etc. Composes
|
|
9
|
-
* `.j-list-item` from jimbo.css; pass extra layout inside via children.
|
|
10
|
-
*/
|
|
11
|
-
export declare const JimboListItem: React.ForwardRefExoticComponent<JimboListItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface JimboPanelSpinnerProps {
|
|
3
|
-
label?: React.ReactNode;
|
|
4
|
-
title: React.ReactNode;
|
|
5
|
-
description?: React.ReactNode;
|
|
6
|
-
media?: React.ReactNode;
|
|
7
|
-
meta?: React.ReactNode;
|
|
8
|
-
className?: string;
|
|
9
|
-
style?: React.CSSProperties;
|
|
10
|
-
onPrev?: () => void;
|
|
11
|
-
onNext?: () => void;
|
|
12
|
-
prevDisabled?: boolean;
|
|
13
|
-
nextDisabled?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare function JimboPanelSpinner({ label, title, description, media, meta, className, style, onPrev, onNext, prevDisabled, nextDisabled, }: JimboPanelSpinnerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export interface JimboPanelSplitterProps {
|
|
2
|
-
"aria-label"?: string;
|
|
3
|
-
className?: string;
|
|
4
|
-
onDrag: (delta: number) => void;
|
|
5
|
-
onKeyAdjust?: (delta: number) => void;
|
|
6
|
-
orientation?: "vertical" | "horizontal";
|
|
7
|
-
}
|
|
8
|
-
export declare function JimboPanelSplitter({ orientation, onDrag, onKeyAdjust, className, "aria-label": ariaLabel, }: JimboPanelSplitterProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/ui/JimboPicker.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export type JimboPickerProps = React.HTMLAttributes<HTMLDivElement>;
|
|
3
|
-
/** The picker shell — vertical stack of sections/search/grid. */
|
|
4
|
-
export declare function JimboPicker({ className, ...props }: JimboPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
/** A titled grouping within a picker (e.g. the Legendary row). */
|
|
6
|
-
export declare function JimboPickerSection({ className, ...props }: JimboPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export interface JimboPickerGridProps extends JimboPickerProps {
|
|
8
|
-
/** Wider cells for the legendary row. */
|
|
9
|
-
legendary?: boolean;
|
|
10
|
-
/** Scrollable body with hidden scrollbar. */
|
|
11
|
-
scroll?: boolean;
|
|
12
|
-
}
|
|
13
|
-
/** The sprite grid. */
|
|
14
|
-
export declare function JimboPickerGrid({ legendary, scroll, className, ...props }: JimboPickerGridProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export interface JimboPickerItemProps extends JimboPickerProps {
|
|
16
|
-
/** Dimmed (e.g. filtered-out half of a voucher pair). */
|
|
17
|
-
muted?: boolean;
|
|
18
|
-
}
|
|
19
|
-
/** A single clickable sprite cell. */
|
|
20
|
-
export declare function JimboPickerItem({ muted, className, ...props }: JimboPickerItemProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
/** Wrapper for the search field row. */
|
|
22
|
-
export declare function JimboPickerSearch({ className, ...props }: JimboPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
/** A base/upgrade pair cell (vouchers). */
|
|
24
|
-
export declare function JimboPickerPair({ className, ...props }: JimboPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
/** Empty / no-matches state inside the grid. */
|
|
26
|
-
export declare function JimboPickerEmpty({ className, ...props }: JimboPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
/** Recessed hint panel above a grid. */
|
|
28
|
-
export declare function JimboPickerHint({ className, ...props }: JimboPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface JimboSeedCopyChipProps {
|
|
3
|
-
value: string;
|
|
4
|
-
placeholder?: string;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
copiedLabel?: string;
|
|
7
|
-
copiedDurationMs?: number;
|
|
8
|
-
onCopy?: (value: string) => void;
|
|
9
|
-
className?: string;
|
|
10
|
-
style?: React.CSSProperties;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Harvested from WeeJoker SeedCard — tap-to-copy seed row with icon + value.
|
|
14
|
-
* Idle: copy icon + seed. Copied: green check + brief confirmation label.
|
|
15
|
-
*/
|
|
16
|
-
export declare function JimboSeedCopyChip({ value, placeholder, disabled, copiedLabel, copiedDurationMs, onCopy, className, style, }: JimboSeedCopyChipProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/ui/JimboSelect.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface JimboSelectOption {
|
|
3
|
-
disabled?: boolean;
|
|
4
|
-
label?: string;
|
|
5
|
-
value: string;
|
|
6
|
-
}
|
|
7
|
-
export interface JimboSelectProps {
|
|
8
|
-
'aria-label'?: string;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
fullWidth?: boolean;
|
|
11
|
-
onChange: (value: string) => void;
|
|
12
|
-
options: JimboSelectOption[] | string[];
|
|
13
|
-
placeholder?: string;
|
|
14
|
-
size?: 'sm' | 'md';
|
|
15
|
-
style?: React.CSSProperties;
|
|
16
|
-
value: string;
|
|
17
|
-
label?: string;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Select one of N values. There is no native `<select>` in the Balatro UI
|
|
21
|
-
* language — options are cycled with arrows, not via an OS dropdown. So
|
|
22
|
-
* JimboSelect is a `< value >` JimboSpinner that cycles through the options
|
|
23
|
-
* list. If `value` isn't in `options`, we land on the first option.
|
|
24
|
-
*
|
|
25
|
-
* Was previously a raw `<select>` element with hand-painted gold-arrow CSS
|
|
26
|
-
* gradients. That was off-brand on every axis (native control, gold control
|
|
27
|
-
* affordance, no JimboButton). Rewritten to compose JimboSpinner so it
|
|
28
|
-
* behaves like every other selector in the design system.
|
|
29
|
-
*/
|
|
30
|
-
export declare function JimboSelect({ value, options, onChange, disabled, label, 'aria-label': ariaLabel, style, }: JimboSelectProps): import("react/jsx-runtime").JSX.Element | null;
|
package/dist/ui/JimboSlider.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface JimboSliderProps {
|
|
2
|
-
value: number;
|
|
3
|
-
min?: number;
|
|
4
|
-
max?: number;
|
|
5
|
-
step?: number;
|
|
6
|
-
label?: string;
|
|
7
|
-
onChange?: (value: number) => void;
|
|
8
|
-
className?: string;
|
|
9
|
-
id?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare function JimboSlider({ value, min, max, step, label, onChange, className, id, }: JimboSliderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export interface JimboSpinnerProps {
|
|
2
|
-
value: string | number;
|
|
3
|
-
label?: string;
|
|
4
|
-
onPrev?: () => void;
|
|
5
|
-
onNext?: () => void;
|
|
6
|
-
canPrev?: boolean;
|
|
7
|
-
canNext?: boolean;
|
|
8
|
-
className?: string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Two-state-or-more value spinner: red `<` button + value chip + red `>` button.
|
|
12
|
-
* This is the canonical Balatro on/off control (IMG_3678: `Shadows < OFF >`)
|
|
13
|
-
* AND the canonical option-cycler (deck/stake/aesthetic picker).
|
|
14
|
-
*
|
|
15
|
-
* Note: previously named JimboStepper — that was a misnomer. A stepper is a
|
|
16
|
-
* page-dot indicator (see JimboStepper). This is a spinner.
|
|
17
|
-
*/
|
|
18
|
-
export declare function JimboSpinner({ value, label, onPrev, onNext, canPrev, canNext, className, }: JimboSpinnerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface JimboStepperProps {
|
|
3
|
-
/** Total number of pages/steps. */
|
|
4
|
-
count: number;
|
|
5
|
-
/** Current page index (0-based). */
|
|
6
|
-
index: number;
|
|
7
|
-
/** Optional click handler to jump to a specific page. */
|
|
8
|
-
onIndexChange?: (i: number) => void;
|
|
9
|
-
/** Label for screen readers describing what the dots track. */
|
|
10
|
-
ariaLabel?: string;
|
|
11
|
-
className?: string;
|
|
12
|
-
style?: React.CSSProperties;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Page-dot indicator. A row of small circles: the active page is a filled
|
|
16
|
-
* white dot; the others are dim grey dots. Matches Balatro's carousel page
|
|
17
|
-
* indicator pattern (deck picker, blind preview, etc.).
|
|
18
|
-
*
|
|
19
|
-
* For the value spinner pattern (`< OFF >`) see JimboSpinner — different
|
|
20
|
-
* component, despite the previous misnomer.
|
|
21
|
-
*/
|
|
22
|
-
export declare function JimboStepper({ count, index, onIndexChange, ariaLabel, className, style, }: JimboStepperProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface JimboTextInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
3
|
-
invalid?: boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare const JimboTextInput: React.ForwardRefExoticComponent<JimboTextInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface ToggleItem {
|
|
2
|
-
id: string;
|
|
3
|
-
label: string;
|
|
4
|
-
on: boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface JimboToggleListProps {
|
|
7
|
-
items: ToggleItem[];
|
|
8
|
-
onToggle: (id: string) => void;
|
|
9
|
-
title?: string;
|
|
10
|
-
variant?: 'row' | 'stacked';
|
|
11
|
-
}
|
|
12
|
-
export declare function JimboToggleList({ items, onToggle, title, variant }: JimboToggleListProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface JimboValueBadgeProps {
|
|
3
|
-
value: number;
|
|
4
|
-
onChange?: (value: number) => void;
|
|
5
|
-
min?: number;
|
|
6
|
-
max?: number;
|
|
7
|
-
step?: number;
|
|
8
|
-
unit?: string;
|
|
9
|
-
/** Disables click-to-edit; renders as a read-only display badge. */
|
|
10
|
-
readOnly?: boolean;
|
|
11
|
-
className?: string;
|
|
12
|
-
style?: React.CSSProperties;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Red pill displaying a numeric value. Click to edit inline; Enter or blur
|
|
16
|
-
* commits (clamped to [min, max] and snapped to `step`); Escape cancels.
|
|
17
|
-
* Used as the thumb on JimboSlider and as a standalone numeric chip in panels.
|
|
18
|
-
*/
|
|
19
|
-
export declare function JimboValueBadge({ value, onChange, min, max, step, unit, readOnly, className, style, }: JimboValueBadgeProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/ui/codeBlock.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface JimboCodeBlockProps {
|
|
2
|
-
code: string;
|
|
3
|
-
language?: string;
|
|
4
|
-
filename?: string;
|
|
5
|
-
className?: string;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Code block with filename + language chip + JimboCopyButton. Pure Jimbo
|
|
9
|
-
* primitives end to end; the copy logic lives in JimboCopyButton.
|
|
10
|
-
*/
|
|
11
|
-
export declare function JimboCodeBlock({ code, language, filename, className }: JimboCodeBlockProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/ui/hooks.d.ts
DELETED
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { JamlVisualClause, JamlVisualFilter, JamlZone } from '../components/JamlIdeVisual.js';
|
|
3
|
-
import { Layer } from '../render/Layer.js';
|
|
4
|
-
/**
|
|
5
|
-
* Sway animation for Balatro-style UI elements.
|
|
6
|
-
*/
|
|
7
|
-
export declare function useSway(active: boolean): React.RefObject<HTMLDivElement | null>;
|
|
8
|
-
/**
|
|
9
|
-
* Handles delayed visibility for transitions (e.g. modals).
|
|
10
|
-
*/
|
|
11
|
-
export declare function useDelayedVisibility(open: boolean, delay: number): {
|
|
12
|
-
visible: boolean;
|
|
13
|
-
opacity: number;
|
|
14
|
-
};
|
|
15
|
-
export type JimboBackgroundColor = string | [number, number, number];
|
|
16
|
-
export interface JimboBackgroundConfig {
|
|
17
|
-
/** Three palette colors. Each can be `#RRGGBB` / `#RGB` or `[r,g,b]` in 0..1. */
|
|
18
|
-
primary?: JimboBackgroundColor;
|
|
19
|
-
secondary?: JimboBackgroundColor;
|
|
20
|
-
dark?: JimboBackgroundColor;
|
|
21
|
-
/** Animation speed multiplier on top of the base SPIN_SPEED. Default 1. */
|
|
22
|
-
speed?: number;
|
|
23
|
-
/** Twirl rotation seed (default -2). */
|
|
24
|
-
spinRotation?: number;
|
|
25
|
-
/** How much the twirl warps the field, 0..1ish (default 0.35). */
|
|
26
|
-
spinAmount?: number;
|
|
27
|
-
/** Pixelation. Higher = finer pixels (default ~244 = 740*0.33). */
|
|
28
|
-
pixelFilter?: number;
|
|
29
|
-
/** Contrast multiplier (default 4.5). */
|
|
30
|
-
contrast?: number;
|
|
31
|
-
/** Bright lighting amount (default 0.5). */
|
|
32
|
-
lighting?: number;
|
|
33
|
-
/** Color transition duration in ms when palette changes. Default 800. */
|
|
34
|
-
transitionMs?: number;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Hook for the Balatro hypnotic swirl background.
|
|
38
|
-
* Manages WebGL context, shader compilation, and animation loop.
|
|
39
|
-
*
|
|
40
|
-
* All shader constants are exposed as uniforms so they can be tuned at
|
|
41
|
-
* runtime. Palette and scalar uniforms (pixelFilter, contrast, spin, etc.)
|
|
42
|
-
* interpolate over `transitionMs` so control changes fade smoothly.
|
|
43
|
-
*/
|
|
44
|
-
export declare function useBalatroBackground(config?: JimboBackgroundConfig): React.RefObject<HTMLCanvasElement | null>;
|
|
45
|
-
export type JimboTooltipMode = 'snap' | 'mouse';
|
|
46
|
-
export type JimboTooltipPlacement = 'top' | 'bottom' | 'auto';
|
|
47
|
-
/**
|
|
48
|
-
* Hook for managing JimboTooltip state and positioning.
|
|
49
|
-
*/
|
|
50
|
-
export declare function useJimboTooltip({ mode, placement, delay, disabled, }: {
|
|
51
|
-
mode?: JimboTooltipMode;
|
|
52
|
-
placement?: JimboTooltipPlacement;
|
|
53
|
-
delay?: number;
|
|
54
|
-
disabled?: boolean;
|
|
55
|
-
}): {
|
|
56
|
-
visible: boolean;
|
|
57
|
-
pos: {
|
|
58
|
-
left: number;
|
|
59
|
-
top: number;
|
|
60
|
-
align: "top" | "bottom";
|
|
61
|
-
} | null;
|
|
62
|
-
targetRef: React.RefObject<HTMLElement | null>;
|
|
63
|
-
tooltipRef: React.RefObject<HTMLDivElement | null>;
|
|
64
|
-
show: () => void;
|
|
65
|
-
hide: () => void;
|
|
66
|
-
handleMouseMove: (e: React.MouseEvent | React.PointerEvent) => void;
|
|
67
|
-
};
|
|
68
|
-
/**
|
|
69
|
-
* Hook for managing the JamlCardRenderer logic.
|
|
70
|
-
*/
|
|
71
|
-
export declare function useJamlCardRenderer({ layers, invert, hoverTilt, }: {
|
|
72
|
-
layers: Layer[];
|
|
73
|
-
invert?: boolean;
|
|
74
|
-
hoverTilt?: boolean;
|
|
75
|
-
}): {
|
|
76
|
-
canvasRef: React.RefObject<HTMLCanvasElement | null>;
|
|
77
|
-
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
78
|
-
ratio: number;
|
|
79
|
-
handlers: {
|
|
80
|
-
onPointerEnter: ((event: React.PointerEvent) => void) | undefined;
|
|
81
|
-
onPointerLeave: (() => void) | undefined;
|
|
82
|
-
onPointerMove: ((event: React.PointerEvent<HTMLDivElement>) => void) | undefined;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
/**
|
|
86
|
-
* Tracks which 'ante' section is currently most visible in a scrollable container.
|
|
87
|
-
*/
|
|
88
|
-
export declare function useAnteTracker(antes: {
|
|
89
|
-
ante: number;
|
|
90
|
-
}[], options?: {
|
|
91
|
-
threshold?: number[];
|
|
92
|
-
}): {
|
|
93
|
-
currentAnte: number;
|
|
94
|
-
scrollRef: React.RefObject<HTMLDivElement | null>;
|
|
95
|
-
scrollToAnte: (ante: number) => void;
|
|
96
|
-
registerAnteRef: (ante: number, el: HTMLElement | null) => void;
|
|
97
|
-
};
|
|
98
|
-
export interface DragState {
|
|
99
|
-
clause: JamlVisualClause;
|
|
100
|
-
fromZone: JamlZone;
|
|
101
|
-
x: number;
|
|
102
|
-
y: number;
|
|
103
|
-
offX: number;
|
|
104
|
-
offY: number;
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* Manages drag-and-drop state for the Jaml IDE visual filter editor.
|
|
108
|
-
*/
|
|
109
|
-
export declare function useJamlIdeDrag(filter: JamlVisualFilter, onChange: (filter: JamlVisualFilter) => void, rootRef: React.RefObject<HTMLDivElement | null>): {
|
|
110
|
-
drag: DragState | null;
|
|
111
|
-
hoverZone: string | null;
|
|
112
|
-
onDragStart: (e: React.MouseEvent | React.TouchEvent, clause: JamlVisualClause, fromZone: JamlZone) => void;
|
|
113
|
-
};
|
|
114
|
-
/**
|
|
115
|
-
* Provides a magnetic 3D tilt effect for DOM elements, replicating the hover-follow
|
|
116
|
-
* of Balatro cards. Continuous (tracks the cursor). Pure CSS transform — no 3D deps.
|
|
117
|
-
*/
|
|
118
|
-
export declare function useDOMMagneticTilt(enabled?: boolean): {
|
|
119
|
-
handlers: {
|
|
120
|
-
onPointerEnter: ((event: React.PointerEvent) => void) | undefined;
|
|
121
|
-
onPointerLeave: (() => void) | undefined;
|
|
122
|
-
onPointerMove: ((event: React.PointerEvent) => void) | undefined;
|
|
123
|
-
};
|
|
124
|
-
tiltStyle: React.CSSProperties;
|
|
125
|
-
isHovered: boolean;
|
|
126
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
interface InteractiveJamlEditorProps {
|
|
2
|
-
initialJaml?: string;
|
|
3
|
-
onJamlChange?: (jamlYaml: string, parsed: unknown, isValid: boolean) => void;
|
|
4
|
-
className?: string;
|
|
5
|
-
}
|
|
6
|
-
export default function JamlEditor({ initialJaml, onJamlChange, className }: InteractiveJamlEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
package/dist/ui/jimboApp.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface JimboAppProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
}
|
|
5
|
-
export declare function JimboApp({ children, className, ...props }: JimboAppProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
/** Scrollable content area inside JimboApp. Hidden scrollbar, snap-friendly. */
|
|
7
|
-
export declare function JimboAppScroll({ children, className, ...props }: JimboAppProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
/** Sticky bottom action area inside JimboApp. Thumb zone. */
|
|
9
|
-
export declare function JimboAppFooter({ children, className, ...props }: JimboAppProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { JimboBackgroundConfig } from './hooks.js';
|
|
2
|
-
export type { JimboBackgroundConfig } from './hooks.js';
|
|
3
|
-
export type JimboBackgroundProps = JimboBackgroundConfig;
|
|
4
|
-
/**
|
|
5
|
-
* Fullscreen WebGL CRT/spin background — the authentic Balatro hypnotic
|
|
6
|
-
* swirl, pixelated and animated. Aesthetic only; the legally-required
|
|
7
|
-
* attribution footer lives in JimboApp.
|
|
8
|
-
*
|
|
9
|
-
* All shader parameters are exposed as props (`primary`, `secondary`,
|
|
10
|
-
* `dark`, `speed`, `spinRotation`, `spinAmount`, `pixelFilter`, `contrast`,
|
|
11
|
-
* `lighting`, `transitionMs`). Palette and shader scalars ease over
|
|
12
|
-
* `transitionMs` when props change. Defaults reproduce the canonical swirl.
|
|
13
|
-
*
|
|
14
|
-
* <JimboBackground primary="#ff3344" secondary="#0088ff" speed={1.2} />
|
|
15
|
-
* <YourAppContent />
|
|
16
|
-
*/
|
|
17
|
-
export declare function JimboBackground(config: JimboBackgroundProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export interface JimboCopyRowProps {
|
|
2
|
-
value: string;
|
|
3
|
-
label?: string;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Label + WeeJoker-style seed copy chip. Use JimboSeedCopyChip directly when
|
|
7
|
-
* no label is needed.
|
|
8
|
-
*/
|
|
9
|
-
export declare function JimboCopyRow({ value, label }: JimboCopyRowProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface JimboFilterSortOption {
|
|
3
|
-
value: string;
|
|
4
|
-
label: string;
|
|
5
|
-
}
|
|
6
|
-
export interface JimboFilterBarProps {
|
|
7
|
-
search?: string;
|
|
8
|
-
onSearchChange?: (query: string) => void;
|
|
9
|
-
searchPlaceholder?: string;
|
|
10
|
-
searchLabel?: string;
|
|
11
|
-
sort?: string;
|
|
12
|
-
onSortChange?: (value: string) => void;
|
|
13
|
-
sortLabel?: string;
|
|
14
|
-
sortOptions?: JimboFilterSortOption[];
|
|
15
|
-
className?: string;
|
|
16
|
-
style?: React.CSSProperties;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Generic Balatro-styled filter row: search input with floating pill label
|
|
20
|
-
* + optional sort dropdown with floating pill label.
|
|
21
|
-
*/
|
|
22
|
-
export declare function JimboFilterBar({ search, onSearchChange, searchPlaceholder, searchLabel, sort, onSortChange, sortLabel, sortOptions, className, style, }: JimboFilterBarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface JimboFlankNavProps {
|
|
3
|
-
onPrev: () => void;
|
|
4
|
-
onNext: () => void;
|
|
5
|
-
canPrev?: boolean;
|
|
6
|
-
canNext?: boolean;
|
|
7
|
-
prevLabel?: string;
|
|
8
|
-
nextLabel?: string;
|
|
9
|
-
children: React.ReactNode;
|
|
10
|
-
className?: string;
|
|
11
|
-
style?: React.CSSProperties;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Prev/next navigation with flanking buttons around a central stage.
|
|
15
|
-
* No hardcoded labels, no lucide dep (inline chevron SVGs).
|
|
16
|
-
*/
|
|
17
|
-
export declare function JimboFlankNav({ onPrev, onNext, canPrev, canNext, prevLabel, nextLabel, children, className, style, }: JimboFlankNavProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export type JimboInfoCardTone = 'red' | 'blue' | 'green' | 'gold' | 'orange' | 'purple';
|
|
3
|
-
export interface JimboInfoCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
tone?: JimboInfoCardTone;
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Generic clickable row card — used for filter lists, seed lists, etc.
|
|
9
|
-
* Border color set via tone. All styling via jimbo.css `.j-info-card`.
|
|
10
|
-
*/
|
|
11
|
-
export declare function JimboInfoCard({ tone, children, className, ...props }: JimboInfoCardProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
/** Main body area inside an InfoCard (flex: 1, overflow-safe). */
|
|
13
|
-
export declare function JimboInfoCardBody({ children, className }: {
|
|
14
|
-
children: React.ReactNode;
|
|
15
|
-
className?: string;
|
|
16
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
/** Title line inside an InfoCard body. */
|
|
18
|
-
export declare function JimboInfoCardTitle({ children, className }: {
|
|
19
|
-
children: React.ReactNode;
|
|
20
|
-
className?: string;
|
|
21
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
/** Subtitle line inside an InfoCard body. */
|
|
23
|
-
export declare function JimboInfoCardSub({ children, className }: {
|
|
24
|
-
children: React.ReactNode;
|
|
25
|
-
className?: string;
|
|
26
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
/** Right-side aside area inside an InfoCard. */
|
|
28
|
-
export declare function JimboInfoCardAside({ children, className }: {
|
|
29
|
-
children: React.ReactNode;
|
|
30
|
-
className?: string;
|
|
31
|
-
}): import("react/jsx-runtime").JSX.Element;
|
package/dist/ui/jimboInset.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface JimboInsetProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Recessed dark content area. Use for log output, recent finds,
|
|
7
|
-
* console-like streams. All styling via `.j-inset` in jimbo.css.
|
|
8
|
-
*/
|
|
9
|
-
export declare function JimboInset({ children, className, ...props }: JimboInsetProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/ui/jimboLayout.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export type JimboLayoutGap = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
3
|
-
export type JimboLayoutAlign = 'start' | 'center' | 'end' | 'stretch';
|
|
4
|
-
export type JimboLayoutJustify = 'start' | 'center' | 'end' | 'between';
|
|
5
|
-
interface BaseLayoutProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
-
gap?: JimboLayoutGap;
|
|
7
|
-
align?: JimboLayoutAlign;
|
|
8
|
-
justify?: JimboLayoutJustify;
|
|
9
|
-
}
|
|
10
|
-
export type JimboStackProps = BaseLayoutProps;
|
|
11
|
-
/**
|
|
12
|
-
* Vertical stack — CSS grid column-flow with token-aligned gap.
|
|
13
|
-
* Grid (not flex) because the 320×568 canvas is fixed: we compose with named
|
|
14
|
-
* tracks instead of guess-and-checking flexbox flow.
|
|
15
|
-
*/
|
|
16
|
-
export declare function JimboStack({ gap, align, justify, className, ...props }: JimboStackProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export interface JimboRowProps extends BaseLayoutProps {
|
|
18
|
-
wrap?: boolean;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Horizontal row — CSS grid row-flow with token-aligned gap.
|
|
22
|
-
* Grid (not flex) for the same reason as JimboStack — composition over flow.
|
|
23
|
-
*/
|
|
24
|
-
export declare function JimboRow({ gap, align, justify, wrap, className, ...props }: JimboRowProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
export {};
|
package/dist/ui/jimboLink.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface JimboLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
3
|
-
/** External link: opens in new tab with rel="noopener noreferrer". Default: true. */
|
|
4
|
-
external?: boolean;
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Canonical Jimbo link primitive. The only sanctioned way to render an anchor
|
|
9
|
-
* inside any Jimbo* / Jaml* component. Default styling matches the gold
|
|
10
|
-
* Balatro link colour from `.j-link` in jimbo.css.
|
|
11
|
-
*/
|
|
12
|
-
export declare function JimboLink({ external, className, children, ...anchorProps }: JimboLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export type JimboSectionTone = 'red' | 'blue' | 'green' | 'gold' | 'orange' | 'purple';
|
|
2
|
-
export interface JimboSectionHeaderProps {
|
|
3
|
-
label: string;
|
|
4
|
-
tone?: JimboSectionTone;
|
|
5
|
-
className?: string;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Colored tag + horizontal rule — reusable section divider.
|
|
9
|
-
* All styling via jimbo.css `.j-section-header` classes + tone utilities.
|
|
10
|
-
*/
|
|
11
|
-
export declare function JimboSectionHeader({ label, tone, className }: JimboSectionHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface JimboStatItem {
|
|
3
|
-
value: string | number;
|
|
4
|
-
label: string;
|
|
5
|
-
}
|
|
6
|
-
export interface JimboStatGridProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
7
|
-
items: JimboStatItem[];
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* 3-column stat bar — value on top, label below.
|
|
11
|
-
* All styling via jimbo.css `.j-stat-grid` classes.
|
|
12
|
-
*/
|
|
13
|
-
export declare function JimboStatGrid({ items, className, ...props }: JimboStatGridProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/ui/jimboTabs.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface JimboTabItem {
|
|
3
|
-
id: string;
|
|
4
|
-
label: string;
|
|
5
|
-
}
|
|
6
|
-
export interface JimboTabsProps {
|
|
7
|
-
tabs: JimboTabItem[];
|
|
8
|
-
activeTab: string;
|
|
9
|
-
onTabChange: (tabId: string) => void;
|
|
10
|
-
className?: string;
|
|
11
|
-
style?: React.CSSProperties;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Horizontal tabs = a row of red JimboButtons. The active tab gets a red
|
|
15
|
-
* triangle above it that bounces on the Y axis with gravity easing. Only
|
|
16
|
-
* the indicator arrow animates; the buttons themselves hold still and look
|
|
17
|
-
* identical (the bouncing arrow IS the active-state signal).
|
|
18
|
-
*
|
|
19
|
-
* Every tab is a JimboButton — no custom button shells, no raw `<button>`.
|
|
20
|
-
*/
|
|
21
|
-
export declare function JimboTabs({ tabs, activeTab, onTabChange, className, style }: JimboTabsProps): import("react/jsx-runtime").JSX.Element;
|