@almadar/ui 5.25.1 → 5.26.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/dist/avl/index.cjs +2210 -2295
- package/dist/avl/index.js +1159 -1244
- package/dist/components/core/atoms/FlipContainer.d.ts +4 -4
- package/dist/components/core/atoms/Icon.d.ts +4 -2
- package/dist/components/core/atoms/ProgressBar.d.ts +1 -1
- package/dist/components/core/atoms/svg/SvgBranch.d.ts +6 -2
- package/dist/components/core/atoms/svg/SvgConnection.d.ts +8 -4
- package/dist/components/core/atoms/svg/SvgFlow.d.ts +5 -1
- package/dist/components/core/atoms/svg/SvgGrid.d.ts +6 -2
- package/dist/components/core/atoms/svg/SvgLobe.d.ts +6 -2
- package/dist/components/core/atoms/svg/SvgMesh.d.ts +6 -2
- package/dist/components/core/atoms/svg/SvgMorph.d.ts +6 -2
- package/dist/components/core/atoms/svg/SvgNode.d.ts +6 -2
- package/dist/components/core/atoms/svg/SvgPulse.d.ts +6 -2
- package/dist/components/core/atoms/svg/SvgRing.d.ts +6 -2
- package/dist/components/core/atoms/svg/SvgShield.d.ts +6 -2
- package/dist/components/core/atoms/svg/SvgStack.d.ts +6 -2
- package/dist/components/core/atoms/types.d.ts +6 -0
- package/dist/components/core/molecules/ArrayEditor.d.ts +15 -0
- package/dist/components/core/molecules/Carousel.d.ts +8 -2
- package/dist/components/core/molecules/Container.d.ts +4 -4
- package/dist/components/core/molecules/DateRangeSelector.d.ts +3 -4
- package/dist/components/core/molecules/DocSidebar.d.ts +4 -4
- package/dist/components/core/molecules/EdgeDecoration.d.ts +3 -2
- package/dist/components/core/molecules/Flex.d.ts +4 -4
- package/dist/components/core/molecules/FlipCard.d.ts +3 -4
- package/dist/components/core/molecules/GradientDivider.d.ts +3 -2
- package/dist/components/core/molecules/MapEditor.d.ts +16 -0
- package/dist/components/core/molecules/ObjectEditor.d.ts +15 -0
- package/dist/components/core/molecules/SidePanel.d.ts +4 -4
- package/dist/components/core/molecules/SortableList.d.ts +4 -5
- package/dist/components/core/molecules/ViolationAlert.d.ts +4 -9
- package/dist/components/core/molecules/index.d.ts +4 -3
- package/dist/components/core/molecules/markdown/CodeBlock.d.ts +44 -2
- package/dist/components/core/molecules/markdown/MarkdownContent.d.ts +2 -2
- package/dist/components/game/atoms/ResourceCounter.d.ts +3 -2
- package/dist/components/game/atoms/StateIndicator.d.ts +4 -5
- package/dist/components/game/atoms/StatusEffect.d.ts +2 -3
- package/dist/components/game/molecules/ActionButtons.d.ts +6 -0
- package/dist/components/game/molecules/GameHud.d.ts +2 -3
- package/dist/components/game/molecules/StatBadge.d.ts +6 -0
- package/dist/components/game/organisms/puzzles/state-architect/StateJsonView.d.ts +16 -0
- package/dist/components/game/organisms/puzzles/state-architect/index.d.ts +2 -2
- package/dist/components/index.cjs +2458 -2092
- package/dist/components/index.js +1558 -1192
- package/dist/docs/index.cjs +6021 -4606
- package/dist/docs/index.css +1252 -0
- package/dist/docs/index.d.cts +108 -16
- package/dist/docs/index.d.ts +2 -2
- package/dist/docs/index.js +5977 -4567
- package/dist/hooks/index.cjs +9 -2
- package/dist/hooks/index.js +9 -2
- package/dist/marketing/index.cjs +32 -9
- package/dist/marketing/index.d.cts +30 -20
- package/dist/marketing/index.js +32 -9
- package/dist/providers/index.cjs +2035 -2120
- package/dist/providers/index.js +1134 -1219
- package/dist/runtime/index.cjs +2075 -2160
- package/dist/runtime/index.js +1138 -1223
- package/package.json +1 -1
- package/dist/components/core/molecules/CodeViewer.d.ts +0 -70
- package/dist/components/core/molecules/DocCodeBlock.d.ts +0 -14
- package/dist/components/game/organisms/puzzles/state-architect/CodeView.d.ts +0 -24
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import type { ColorToken } from '../../core/atoms/types';
|
|
2
3
|
export interface ResourceCounterProps {
|
|
3
4
|
/** Icon component or emoji */
|
|
4
5
|
icon?: React.ReactNode;
|
|
@@ -8,8 +9,8 @@ export interface ResourceCounterProps {
|
|
|
8
9
|
value: number;
|
|
9
10
|
/** Maximum value */
|
|
10
11
|
max?: number;
|
|
11
|
-
/**
|
|
12
|
-
color?: string;
|
|
12
|
+
/** Semantic palette token or an arbitrary Tailwind color class. */
|
|
13
|
+
color?: ColorToken | string;
|
|
13
14
|
/** Size variant */
|
|
14
15
|
size?: 'sm' | 'md' | 'lg';
|
|
15
16
|
/** Additional CSS classes */
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* StateIndicator
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* the state styles via the `stateStyles` prop.
|
|
2
|
+
* StateIndicator — animated game-entity state pill (distinct from core Badge atom).
|
|
3
|
+
* Badge is a static text label. StateIndicator maps a state string (idle/active/
|
|
4
|
+
* moving/…) to icon + bg colour + optional pulse via a style registry that callers
|
|
5
|
+
* can extend. Use it in game HUDs where the entity state machine drives the display.
|
|
7
6
|
*/
|
|
8
7
|
import React from 'react';
|
|
9
8
|
export interface StateStyle {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
export interface StatusEffectProps {
|
|
3
|
-
/**
|
|
4
|
-
icon:
|
|
2
|
+
/** Lucide kebab-case icon name */
|
|
3
|
+
icon: string;
|
|
5
4
|
/** Label describing the effect */
|
|
6
5
|
label?: string;
|
|
7
6
|
/** Remaining duration in seconds */
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ActionButtons — configurable button-group molecule for game controls (distinct from ActionButton atom).
|
|
3
|
+
* ActionButton is a single button with cooldown overlay and hotkey badge.
|
|
4
|
+
* ActionButtons manages a *set* of ControlButtons, tracks press/release state,
|
|
5
|
+
* and supports horizontal/vertical/diamond layouts for gamepad-style UI.
|
|
6
|
+
*/
|
|
1
7
|
import * as React from 'react';
|
|
2
8
|
import type { EventEmit } from '@almadar/core';
|
|
3
9
|
export interface ActionButtonConfig {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
import { type StatBadgeProps } from "./StatBadge";
|
|
3
2
|
export interface GameHudStat extends Omit<StatBadgeProps, "size"> {
|
|
4
3
|
/** Data source entity name */
|
|
@@ -17,8 +16,8 @@ export interface GameHudElement {
|
|
|
17
16
|
label?: string;
|
|
18
17
|
/** Direct value (from compiled render-ui effects) */
|
|
19
18
|
value?: number | string;
|
|
20
|
-
/**
|
|
21
|
-
icon?:
|
|
19
|
+
/** Lucide kebab-case icon name */
|
|
20
|
+
icon?: string;
|
|
22
21
|
/** Display format */
|
|
23
22
|
format?: string;
|
|
24
23
|
/** Max value (for bars/hearts) */
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* StatBadge — game stat display molecule (distinct from core Badge atom).
|
|
4
|
+
* Badge shows a text label/status token. StatBadge shows a numeric value
|
|
5
|
+
* with optional HealthBar (hearts/bar) or ScoreDisplay (animated number) and
|
|
6
|
+
* a named label — purpose-built for HUD stat rows, not general status tags.
|
|
7
|
+
*/
|
|
2
8
|
export interface StatBadgeProps {
|
|
3
9
|
/** Stat label */
|
|
4
10
|
label: string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface StateJsonViewProps {
|
|
3
|
+
/** JSON data to display */
|
|
4
|
+
data: Record<string, unknown>;
|
|
5
|
+
/** Label */
|
|
6
|
+
label?: string;
|
|
7
|
+
/** Whether the code is expanded by default */
|
|
8
|
+
defaultExpanded?: boolean;
|
|
9
|
+
/** Additional CSS classes */
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function StateJsonView({ data, label, defaultExpanded, className, }: StateJsonViewProps): React.JSX.Element;
|
|
13
|
+
export declare namespace StateJsonView {
|
|
14
|
+
var displayName: string;
|
|
15
|
+
}
|
|
16
|
+
export default StateJsonView;
|
|
@@ -4,7 +4,7 @@ export { TransitionArrow } from './TransitionArrow';
|
|
|
4
4
|
export type { TransitionArrowProps } from './TransitionArrow';
|
|
5
5
|
export { VariablePanel } from './VariablePanel';
|
|
6
6
|
export type { VariablePanelProps } from './VariablePanel';
|
|
7
|
-
export {
|
|
8
|
-
export type {
|
|
7
|
+
export { StateJsonView } from './StateJsonView';
|
|
8
|
+
export type { StateJsonViewProps } from './StateJsonView';
|
|
9
9
|
export { StateArchitectBoard } from './StateArchitectBoard';
|
|
10
10
|
export type { StateArchitectBoardProps, StateArchitectTransition, TestCase, } from './StateArchitectBoard';
|