@almadar/ui 2.15.13 → 2.16.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 +1927 -0
- package/dist/avl/index.d.cts +314 -0
- package/dist/avl/index.d.ts +33 -0
- package/dist/avl/index.js +1891 -0
- package/dist/components/atoms/avl/AvlApplication.d.ts +8 -0
- package/dist/components/atoms/avl/AvlBinding.d.ts +12 -0
- package/dist/components/atoms/avl/AvlBindingRef.d.ts +7 -0
- package/dist/components/atoms/avl/AvlEffect.d.ts +8 -0
- package/dist/components/atoms/avl/AvlEntity.d.ts +9 -0
- package/dist/components/atoms/avl/AvlEvent.d.ts +7 -0
- package/dist/components/atoms/avl/AvlField.d.ts +10 -0
- package/dist/components/atoms/avl/AvlFieldType.d.ts +8 -0
- package/dist/components/atoms/avl/AvlGuard.d.ts +7 -0
- package/dist/components/atoms/avl/AvlLiteral.d.ts +7 -0
- package/dist/components/atoms/avl/AvlOperator.d.ts +8 -0
- package/dist/components/atoms/avl/AvlOrbital.d.ts +11 -0
- package/dist/components/atoms/avl/AvlPage.d.ts +7 -0
- package/dist/components/atoms/avl/AvlPersistence.d.ts +8 -0
- package/dist/components/atoms/avl/AvlSExpr.d.ts +8 -0
- package/dist/components/atoms/avl/AvlState.d.ts +10 -0
- package/dist/components/atoms/avl/AvlTrait.d.ts +13 -0
- package/dist/components/atoms/avl/AvlTransition.d.ts +18 -0
- package/dist/components/atoms/avl/index.d.ts +20 -0
- package/dist/components/atoms/avl/types.d.ts +19 -0
- package/dist/components/index.cjs +131 -2411
- package/dist/components/index.css +0 -508
- package/dist/components/index.js +132 -2411
- package/dist/components/molecules/avl/AvlClosedCircuit.d.ts +20 -0
- package/dist/components/molecules/avl/AvlEmitListen.d.ts +16 -0
- package/dist/components/molecules/avl/AvlExprTree.d.ts +13 -0
- package/dist/components/molecules/avl/AvlOrbitalUnit.d.ts +20 -0
- package/dist/components/molecules/avl/AvlSlotMap.d.ts +18 -0
- package/dist/components/molecules/avl/AvlStateMachine.d.ts +22 -0
- package/dist/components/molecules/avl/avl-layout.d.ts +32 -0
- package/dist/components/molecules/avl/index.d.ts +7 -0
- package/dist/components/organisms/component-registry.generated.d.ts +1 -1
- package/dist/components/organisms/game/three/index.cjs +1067 -0
- package/dist/components/organisms/game/three/index.css +192 -0
- package/dist/components/organisms/game/three/index.d.ts +4 -0
- package/dist/components/organisms/game/three/index.js +1068 -5
- package/dist/illustrations/index.cjs +1879 -20
- package/dist/illustrations/index.d.cts +277 -1
- package/dist/illustrations/index.d.ts +24 -0
- package/dist/illustrations/index.js +1855 -20
- package/dist/providers/index.cjs +152 -1521
- package/dist/providers/index.css +0 -508
- package/dist/providers/index.js +62 -1430
- package/dist/runtime/index.cjs +145 -1514
- package/dist/runtime/index.css +0 -508
- package/dist/runtime/index.js +63 -1431
- package/package.json +6 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { AvlEffectType } from '../../atoms/avl/types';
|
|
3
|
+
export interface AvlClosedCircuitState {
|
|
4
|
+
name: string;
|
|
5
|
+
}
|
|
6
|
+
export interface AvlClosedCircuitTransition {
|
|
7
|
+
from: string;
|
|
8
|
+
to: string;
|
|
9
|
+
event?: string;
|
|
10
|
+
guard?: string;
|
|
11
|
+
effects?: AvlEffectType[];
|
|
12
|
+
}
|
|
13
|
+
export interface AvlClosedCircuitProps {
|
|
14
|
+
states: AvlClosedCircuitState[];
|
|
15
|
+
transitions: AvlClosedCircuitTransition[];
|
|
16
|
+
className?: string;
|
|
17
|
+
color?: string;
|
|
18
|
+
animated?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare const AvlClosedCircuit: React.FC<AvlClosedCircuitProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface AvlEmitListenProps {
|
|
3
|
+
emitter: {
|
|
4
|
+
name: string;
|
|
5
|
+
fields?: number;
|
|
6
|
+
};
|
|
7
|
+
listener: {
|
|
8
|
+
name: string;
|
|
9
|
+
fields?: number;
|
|
10
|
+
};
|
|
11
|
+
eventName?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
color?: string;
|
|
14
|
+
animated?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const AvlEmitListen: React.FC<AvlEmitListenProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface AvlExprTreeNode {
|
|
3
|
+
label: string;
|
|
4
|
+
type: 'operator' | 'literal' | 'binding';
|
|
5
|
+
children?: AvlExprTreeNode[];
|
|
6
|
+
}
|
|
7
|
+
export interface AvlExprTreeProps {
|
|
8
|
+
expression: AvlExprTreeNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
color?: string;
|
|
11
|
+
animated?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const AvlExprTree: React.FC<AvlExprTreeProps>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { AvlPersistenceKind } from '../../atoms/avl/types';
|
|
3
|
+
export interface AvlOrbitalUnitTrait {
|
|
4
|
+
name: string;
|
|
5
|
+
color?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface AvlOrbitalUnitPage {
|
|
8
|
+
name: string;
|
|
9
|
+
}
|
|
10
|
+
export interface AvlOrbitalUnitProps {
|
|
11
|
+
entityName: string;
|
|
12
|
+
fields?: number;
|
|
13
|
+
persistence?: AvlPersistenceKind;
|
|
14
|
+
traits: AvlOrbitalUnitTrait[];
|
|
15
|
+
pages: AvlOrbitalUnitPage[];
|
|
16
|
+
className?: string;
|
|
17
|
+
color?: string;
|
|
18
|
+
animated?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare const AvlOrbitalUnit: React.FC<AvlOrbitalUnitProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface AvlSlotMapSlot {
|
|
3
|
+
name: string;
|
|
4
|
+
/** Manual position overrides. Omit for auto-layout. */
|
|
5
|
+
x?: number;
|
|
6
|
+
y?: number;
|
|
7
|
+
width?: number;
|
|
8
|
+
height?: number;
|
|
9
|
+
}
|
|
10
|
+
export interface AvlSlotMapProps {
|
|
11
|
+
slots: AvlSlotMapSlot[];
|
|
12
|
+
pageWidth?: number;
|
|
13
|
+
pageHeight?: number;
|
|
14
|
+
className?: string;
|
|
15
|
+
color?: string;
|
|
16
|
+
animated?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare const AvlSlotMap: React.FC<AvlSlotMapProps>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { AvlEffectType } from '../../atoms/avl/types';
|
|
3
|
+
export interface AvlStateMachineState {
|
|
4
|
+
name: string;
|
|
5
|
+
isInitial?: boolean;
|
|
6
|
+
isTerminal?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface AvlStateMachineTransition {
|
|
9
|
+
from: string;
|
|
10
|
+
to: string;
|
|
11
|
+
event?: string;
|
|
12
|
+
guard?: string;
|
|
13
|
+
effects?: AvlEffectType[];
|
|
14
|
+
}
|
|
15
|
+
export interface AvlStateMachineProps {
|
|
16
|
+
states: AvlStateMachineState[];
|
|
17
|
+
transitions: AvlStateMachineTransition[];
|
|
18
|
+
className?: string;
|
|
19
|
+
color?: string;
|
|
20
|
+
animated?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare const AvlStateMachine: React.FC<AvlStateMachineProps>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AVL layout utilities for positioning atoms in composed diagrams.
|
|
3
|
+
*/
|
|
4
|
+
/** Distribute N points evenly around a ring.
|
|
5
|
+
* Handles edge cases: 1 state (centered), 2 states (horizontal). */
|
|
6
|
+
export declare function ringPositions(cx: number, cy: number, r: number, count: number, startAngle?: number): Array<{
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
angle: number;
|
|
10
|
+
}>;
|
|
11
|
+
/** Create an SVG arc path between two angles on a circle. */
|
|
12
|
+
export declare function arcPath(cx: number, cy: number, r: number, startAngle: number, endAngle: number): string;
|
|
13
|
+
/** Distribute N points radially from a center. */
|
|
14
|
+
export declare function radialPositions(cx: number, cy: number, innerR: number, outerR: number, count: number, startAngle?: number): Array<{
|
|
15
|
+
x1: number;
|
|
16
|
+
y1: number;
|
|
17
|
+
x2: number;
|
|
18
|
+
y2: number;
|
|
19
|
+
angle: number;
|
|
20
|
+
}>;
|
|
21
|
+
/** Simple grid layout: position items in columns and rows. */
|
|
22
|
+
export declare function gridPositions(startX: number, startY: number, cols: number, cellWidth: number, cellHeight: number, count: number): Array<{
|
|
23
|
+
x: number;
|
|
24
|
+
y: number;
|
|
25
|
+
col: number;
|
|
26
|
+
row: number;
|
|
27
|
+
}>;
|
|
28
|
+
/** Compute a quadratic bezier control point offset perpendicular to the line. */
|
|
29
|
+
export declare function curveControlPoint(x1: number, y1: number, x2: number, y2: number, offset: number): {
|
|
30
|
+
cpx: number;
|
|
31
|
+
cpy: number;
|
|
32
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { AvlStateMachine, type AvlStateMachineProps, type AvlStateMachineState, type AvlStateMachineTransition } from './AvlStateMachine';
|
|
2
|
+
export { AvlOrbitalUnit, type AvlOrbitalUnitProps, type AvlOrbitalUnitTrait, type AvlOrbitalUnitPage } from './AvlOrbitalUnit';
|
|
3
|
+
export { AvlClosedCircuit, type AvlClosedCircuitProps, type AvlClosedCircuitState, type AvlClosedCircuitTransition } from './AvlClosedCircuit';
|
|
4
|
+
export { AvlEmitListen, type AvlEmitListenProps } from './AvlEmitListen';
|
|
5
|
+
export { AvlSlotMap, type AvlSlotMapProps, type AvlSlotMapSlot } from './AvlSlotMap';
|
|
6
|
+
export { AvlExprTree, type AvlExprTreeProps, type AvlExprTreeNode } from './AvlExprTree';
|
|
7
|
+
export { ringPositions, arcPath, radialPositions, gridPositions, curveControlPoint } from './avl-layout';
|