@almadar/ui 2.22.2 → 2.24.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/avl/index.cjs +699 -343
- package/dist/avl/index.d.cts +47 -10
- package/dist/avl/index.d.ts +2 -0
- package/dist/avl/index.js +696 -345
- package/dist/components/atoms/PatternTile.d.ts +41 -0
- package/dist/components/atoms/avl/AvlEffect.d.ts +2 -0
- package/dist/components/atoms/avl/AvlState.d.ts +5 -0
- package/dist/components/atoms/avl/index.d.ts +2 -0
- package/dist/components/atoms/avl/types.d.ts +34 -0
- package/dist/components/atoms/index.d.ts +1 -0
- package/dist/components/index.cjs +2136 -1124
- package/dist/components/index.js +1272 -264
- package/dist/components/molecules/EdgeDecoration.d.ts +35 -0
- package/dist/components/molecules/GeometricPattern.d.ts +33 -0
- package/dist/components/molecules/avl/AvlSwimLane.d.ts +10 -0
- package/dist/components/molecules/avl/AvlTransitionLane.d.ts +18 -0
- package/dist/components/molecules/avl/index.d.ts +2 -0
- package/dist/components/molecules/index.d.ts +2 -0
- package/dist/components/organisms/avl/AvlTraitScene.d.ts +3 -3
- package/dist/components/organisms/avl/AvlTransitionScene.d.ts +3 -6
- package/dist/docs/index.cjs +3 -3
- package/dist/docs/index.js +3 -3
- package/dist/illustrations/index.cjs +65 -12
- package/dist/illustrations/index.d.cts +7 -0
- package/dist/illustrations/index.js +65 -12
- package/dist/marketing/index.cjs +1035 -23
- package/dist/marketing/index.d.cts +112 -1
- package/dist/marketing/index.d.ts +6 -0
- package/dist/marketing/index.js +1034 -26
- package/dist/providers/index.cjs +125 -125
- package/dist/providers/index.js +37 -37
- package/dist/runtime/enrichFromResponse.d.ts +1 -1
- package/dist/runtime/index.cjs +1006 -998
- package/dist/runtime/index.js +247 -239
- package/package.json +1 -1
- package/themes/almadar-website.css +36 -34
package/dist/avl/index.d.cts
CHANGED
|
@@ -20,6 +20,40 @@ type AvlPersistenceKind = 'persistent' | 'runtime' | 'singleton' | 'instance';
|
|
|
20
20
|
type AvlOperatorNamespace = 'arithmetic' | 'comparison' | 'logic' | 'string' | 'collection' | 'time' | 'control' | 'async';
|
|
21
21
|
declare const AVL_OPERATOR_COLORS: Record<AvlOperatorNamespace, string>;
|
|
22
22
|
declare const AVL_FIELD_TYPE_SHAPES: Record<AvlFieldTypeKind, string>;
|
|
23
|
+
type StateRole = 'initial' | 'terminal' | 'hub' | 'error' | 'default';
|
|
24
|
+
declare const STATE_COLORS: Record<StateRole, {
|
|
25
|
+
fill: string;
|
|
26
|
+
border: string;
|
|
27
|
+
}>;
|
|
28
|
+
type EffectCategory = 'ui' | 'data' | 'communication' | 'lifecycle' | 'control';
|
|
29
|
+
declare const EFFECT_CATEGORY_COLORS: Record<EffectCategory, {
|
|
30
|
+
color: string;
|
|
31
|
+
bg: string;
|
|
32
|
+
}>;
|
|
33
|
+
declare const EFFECT_TYPE_TO_CATEGORY: Record<AvlEffectType, EffectCategory>;
|
|
34
|
+
declare const CONNECTION_COLORS: {
|
|
35
|
+
readonly forward: {
|
|
36
|
+
readonly color: "#1E293B";
|
|
37
|
+
readonly width: 2;
|
|
38
|
+
readonly dash: "none";
|
|
39
|
+
};
|
|
40
|
+
readonly backward: {
|
|
41
|
+
readonly color: "#94A3B8";
|
|
42
|
+
readonly width: 1.5;
|
|
43
|
+
readonly dash: "6 3";
|
|
44
|
+
};
|
|
45
|
+
readonly selfLoop: {
|
|
46
|
+
readonly color: "#CBD5E1";
|
|
47
|
+
readonly width: 1;
|
|
48
|
+
readonly dash: "3 2";
|
|
49
|
+
};
|
|
50
|
+
readonly emitListen: {
|
|
51
|
+
readonly color: "#F97316";
|
|
52
|
+
readonly width: 1.5;
|
|
53
|
+
readonly dash: "4 3";
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
declare function getStateRole(name: string, isInitial?: boolean, isTerminal?: boolean, transitionCount?: number, maxTransitionCount?: number): StateRole;
|
|
23
57
|
|
|
24
58
|
interface AvlOrbitalProps {
|
|
25
59
|
cx?: number;
|
|
@@ -72,6 +106,10 @@ interface AvlStateProps extends AvlBaseProps {
|
|
|
72
106
|
isTerminal?: boolean;
|
|
73
107
|
width?: number;
|
|
74
108
|
height?: number;
|
|
109
|
+
/** V2: Role-based fill color. When set, overrides monochrome rendering. */
|
|
110
|
+
role?: StateRole;
|
|
111
|
+
/** V2: Number of transitions touching this state. Drives proportional width. */
|
|
112
|
+
transitionCount?: number;
|
|
75
113
|
}
|
|
76
114
|
declare const AvlState: React.FC<AvlStateProps>;
|
|
77
115
|
|
|
@@ -109,6 +147,8 @@ interface AvlEffectProps extends AvlBaseProps {
|
|
|
109
147
|
effectType: AvlEffectType;
|
|
110
148
|
size?: number;
|
|
111
149
|
label?: string;
|
|
150
|
+
/** V2: Render a category-colored background circle behind the icon. */
|
|
151
|
+
showBackground?: boolean;
|
|
112
152
|
}
|
|
113
153
|
declare const AvlEffect: React.FC<AvlEffectProps>;
|
|
114
154
|
|
|
@@ -525,10 +565,10 @@ interface AvlOrbitalSceneProps {
|
|
|
525
565
|
declare const AvlOrbitalScene: React.FC<AvlOrbitalSceneProps>;
|
|
526
566
|
|
|
527
567
|
/**
|
|
528
|
-
* AvlTraitScene - Zoom Level 3
|
|
568
|
+
* AvlTraitScene V2 - Zoom Level 3
|
|
529
569
|
*
|
|
530
|
-
*
|
|
531
|
-
*
|
|
570
|
+
* Left-to-right horizontal flow with color-coded states,
|
|
571
|
+
* transition lanes, and swim lanes for emit/listen events.
|
|
532
572
|
*/
|
|
533
573
|
|
|
534
574
|
interface AvlTraitSceneProps {
|
|
@@ -542,13 +582,10 @@ interface AvlTraitSceneProps {
|
|
|
542
582
|
declare const AvlTraitScene: React.FC<AvlTraitSceneProps>;
|
|
543
583
|
|
|
544
584
|
/**
|
|
545
|
-
* AvlTransitionScene - Zoom Level 4
|
|
546
|
-
*
|
|
547
|
-
* Shows a single transition in detail as a vertical flow:
|
|
548
|
-
* FromState -> Event card -> Guard -> Effects -> ToState
|
|
585
|
+
* AvlTransitionScene V2 - Zoom Level 4
|
|
549
586
|
*
|
|
550
|
-
*
|
|
551
|
-
*
|
|
587
|
+
* Card layout replacing vertical waterfall.
|
|
588
|
+
* Reads like a spec card: from → to, trigger, guard, effects.
|
|
552
589
|
*/
|
|
553
590
|
|
|
554
591
|
interface AvlTransitionSceneProps {
|
|
@@ -589,4 +626,4 @@ interface AvlClickTargetProps {
|
|
|
589
626
|
}
|
|
590
627
|
declare const AvlClickTarget: React.FC<AvlClickTargetProps>;
|
|
591
628
|
|
|
592
|
-
export { AVL_FIELD_TYPE_SHAPES, AVL_OPERATOR_COLORS, type ApplicationLevelData, AvlApplication, type AvlApplicationProps, AvlApplicationScene, type AvlApplicationSceneProps, type AvlBaseProps, AvlBinding, type AvlBindingProps, AvlBindingRef, type AvlBindingRefProps, AvlClickTarget, type AvlClickTargetProps, AvlClosedCircuit, type AvlClosedCircuitProps, type AvlClosedCircuitState, type AvlClosedCircuitTransition, AvlCosmicZoom, type AvlCosmicZoomProps, AvlEffect, type AvlEffectProps, type AvlEffectType, AvlEmitListen, type AvlEmitListenProps, AvlEntity, type AvlEntityProps, AvlEvent, type AvlEventProps, AvlExprTree, type AvlExprTreeNode, type AvlExprTreeProps, AvlField, type AvlFieldProps, AvlFieldType, type AvlFieldTypeKind, type AvlFieldTypeProps, AvlGuard, type AvlGuardProps, AvlLiteral, type AvlLiteralProps, AvlOperator, type AvlOperatorNamespace, type AvlOperatorProps, AvlOrbital, type AvlOrbitalProps, AvlOrbitalScene, type AvlOrbitalSceneProps, AvlOrbitalUnit, type AvlOrbitalUnitPage, type AvlOrbitalUnitProps, type AvlOrbitalUnitTrait, AvlPage, type AvlPageProps, AvlPersistence, type AvlPersistenceKind, type AvlPersistenceProps, AvlSExpr, type AvlSExprProps, AvlSlotMap, type AvlSlotMapProps, type AvlSlotMapSlot, AvlState, AvlStateMachine, type AvlStateMachineProps, type AvlStateMachineState, type AvlStateMachineTransition, type AvlStateProps, AvlTrait, type AvlTraitProps, AvlTraitScene, type AvlTraitSceneProps, AvlTransition, type AvlTransitionProps, AvlTransitionScene, type AvlTransitionSceneProps, type CrossLink, type OrbitalLevelData, type TraitLevelData, type TransitionLevelData, type ZoomLevel, arcPath, curveControlPoint, gridPositions, parseApplicationLevel, parseOrbitalLevel, parseTraitLevel, parseTransitionLevel, radialPositions, ringPositions };
|
|
629
|
+
export { AVL_FIELD_TYPE_SHAPES, AVL_OPERATOR_COLORS, type ApplicationLevelData, AvlApplication, type AvlApplicationProps, AvlApplicationScene, type AvlApplicationSceneProps, type AvlBaseProps, AvlBinding, type AvlBindingProps, AvlBindingRef, type AvlBindingRefProps, AvlClickTarget, type AvlClickTargetProps, AvlClosedCircuit, type AvlClosedCircuitProps, type AvlClosedCircuitState, type AvlClosedCircuitTransition, AvlCosmicZoom, type AvlCosmicZoomProps, AvlEffect, type AvlEffectProps, type AvlEffectType, AvlEmitListen, type AvlEmitListenProps, AvlEntity, type AvlEntityProps, AvlEvent, type AvlEventProps, AvlExprTree, type AvlExprTreeNode, type AvlExprTreeProps, AvlField, type AvlFieldProps, AvlFieldType, type AvlFieldTypeKind, type AvlFieldTypeProps, AvlGuard, type AvlGuardProps, AvlLiteral, type AvlLiteralProps, AvlOperator, type AvlOperatorNamespace, type AvlOperatorProps, AvlOrbital, type AvlOrbitalProps, AvlOrbitalScene, type AvlOrbitalSceneProps, AvlOrbitalUnit, type AvlOrbitalUnitPage, type AvlOrbitalUnitProps, type AvlOrbitalUnitTrait, AvlPage, type AvlPageProps, AvlPersistence, type AvlPersistenceKind, type AvlPersistenceProps, AvlSExpr, type AvlSExprProps, AvlSlotMap, type AvlSlotMapProps, type AvlSlotMapSlot, AvlState, AvlStateMachine, type AvlStateMachineProps, type AvlStateMachineState, type AvlStateMachineTransition, type AvlStateProps, AvlTrait, type AvlTraitProps, AvlTraitScene, type AvlTraitSceneProps, AvlTransition, type AvlTransitionProps, AvlTransitionScene, type AvlTransitionSceneProps, CONNECTION_COLORS, type CrossLink, EFFECT_CATEGORY_COLORS, EFFECT_TYPE_TO_CATEGORY, type EffectCategory, type OrbitalLevelData, STATE_COLORS, type StateRole, type TraitLevelData, type TransitionLevelData, type ZoomLevel, arcPath, curveControlPoint, getStateRole, gridPositions, parseApplicationLevel, parseOrbitalLevel, parseTraitLevel, parseTransitionLevel, radialPositions, ringPositions };
|
package/dist/avl/index.d.ts
CHANGED
|
@@ -24,6 +24,8 @@ export { AvlLiteral, type AvlLiteralProps } from '../components/atoms/avl';
|
|
|
24
24
|
export { AvlBindingRef, type AvlBindingRefProps } from '../components/atoms/avl';
|
|
25
25
|
export type { AvlBaseProps, AvlEffectType, AvlFieldTypeKind, AvlPersistenceKind, AvlOperatorNamespace, } from '../components/atoms/avl';
|
|
26
26
|
export { AVL_OPERATOR_COLORS, AVL_FIELD_TYPE_SHAPES } from '../components/atoms/avl';
|
|
27
|
+
export type { StateRole, EffectCategory } from '../components/atoms/avl';
|
|
28
|
+
export { STATE_COLORS, EFFECT_CATEGORY_COLORS, EFFECT_TYPE_TO_CATEGORY, CONNECTION_COLORS, getStateRole } from '../components/atoms/avl';
|
|
27
29
|
export { AvlStateMachine, type AvlStateMachineProps, type AvlStateMachineState, type AvlStateMachineTransition } from '../components/molecules/avl';
|
|
28
30
|
export { AvlOrbitalUnit, type AvlOrbitalUnitProps, type AvlOrbitalUnitTrait, type AvlOrbitalUnitPage } from '../components/molecules/avl';
|
|
29
31
|
export { AvlClosedCircuit, type AvlClosedCircuitProps, type AvlClosedCircuitState, type AvlClosedCircuitTransition } from '../components/molecules/avl';
|