@almadar/ui 2.15.13 → 2.16.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.
Files changed (37) hide show
  1. package/dist/avl/index.cjs +1837 -0
  2. package/dist/avl/index.d.cts +312 -0
  3. package/dist/avl/index.d.ts +33 -0
  4. package/dist/avl/index.js +1801 -0
  5. package/dist/components/atoms/avl/AvlApplication.d.ts +8 -0
  6. package/dist/components/atoms/avl/AvlBinding.d.ts +12 -0
  7. package/dist/components/atoms/avl/AvlBindingRef.d.ts +7 -0
  8. package/dist/components/atoms/avl/AvlEffect.d.ts +8 -0
  9. package/dist/components/atoms/avl/AvlEntity.d.ts +9 -0
  10. package/dist/components/atoms/avl/AvlEvent.d.ts +7 -0
  11. package/dist/components/atoms/avl/AvlField.d.ts +10 -0
  12. package/dist/components/atoms/avl/AvlFieldType.d.ts +8 -0
  13. package/dist/components/atoms/avl/AvlGuard.d.ts +7 -0
  14. package/dist/components/atoms/avl/AvlLiteral.d.ts +7 -0
  15. package/dist/components/atoms/avl/AvlOperator.d.ts +8 -0
  16. package/dist/components/atoms/avl/AvlOrbital.d.ts +11 -0
  17. package/dist/components/atoms/avl/AvlPage.d.ts +7 -0
  18. package/dist/components/atoms/avl/AvlPersistence.d.ts +8 -0
  19. package/dist/components/atoms/avl/AvlSExpr.d.ts +8 -0
  20. package/dist/components/atoms/avl/AvlState.d.ts +10 -0
  21. package/dist/components/atoms/avl/AvlTrait.d.ts +13 -0
  22. package/dist/components/atoms/avl/AvlTransition.d.ts +18 -0
  23. package/dist/components/atoms/avl/index.d.ts +20 -0
  24. package/dist/components/atoms/avl/types.d.ts +19 -0
  25. package/dist/components/molecules/avl/AvlClosedCircuit.d.ts +20 -0
  26. package/dist/components/molecules/avl/AvlEmitListen.d.ts +16 -0
  27. package/dist/components/molecules/avl/AvlExprTree.d.ts +13 -0
  28. package/dist/components/molecules/avl/AvlOrbitalUnit.d.ts +20 -0
  29. package/dist/components/molecules/avl/AvlSlotMap.d.ts +17 -0
  30. package/dist/components/molecules/avl/AvlStateMachine.d.ts +22 -0
  31. package/dist/components/molecules/avl/avl-layout.d.ts +31 -0
  32. package/dist/components/molecules/avl/index.d.ts +7 -0
  33. package/dist/illustrations/index.cjs +1789 -20
  34. package/dist/illustrations/index.d.cts +276 -1
  35. package/dist/illustrations/index.d.ts +24 -0
  36. package/dist/illustrations/index.js +1765 -20
  37. package/package.json +6 -1
@@ -258,4 +258,279 @@ interface WorldModelProps {
258
258
  }
259
259
  declare const WorldModel: React.FC<WorldModelProps>;
260
260
 
261
- export { AIGenerates, ClosedCircuit, CommunityOwnership, CompileAnywhere, ComposableModels, DescribeProveDeploy, DomainGrid, EventBus, OrbitalUnit, PlanVerifyRemember, ProveCorrect, ServiceLayers, SharedReality, StandardLibrary, StateMachine, SvgBranch, SvgConnection, SvgFlow, SvgGrid, SvgLobe, SvgMesh, SvgMorph, SvgNode, SvgPulse, SvgRing, SvgShield, SvgStack, WorldModel };
261
+ /**
262
+ * Almadar Visual Language (AVL) shared types.
263
+ *
264
+ * Every AVL atom renders a `<g>` element (not `<svg>`) and accepts
265
+ * AvlBaseProps for positioning and styling within a parent SVG.
266
+ */
267
+ interface AvlBaseProps {
268
+ x?: number;
269
+ y?: number;
270
+ color?: string;
271
+ opacity?: number;
272
+ className?: string;
273
+ }
274
+ type AvlEffectType = 'render-ui' | 'set' | 'persist' | 'fetch' | 'emit' | 'navigate' | 'notify' | 'call-service' | 'spawn' | 'despawn' | 'do' | 'if' | 'log';
275
+ type AvlFieldTypeKind = 'string' | 'number' | 'boolean' | 'date' | 'enum' | 'object' | 'array';
276
+ type AvlPersistenceKind = 'persistent' | 'runtime' | 'singleton' | 'instance';
277
+ type AvlOperatorNamespace = 'arithmetic' | 'comparison' | 'logic' | 'string' | 'collection' | 'time' | 'control' | 'async';
278
+
279
+ interface AvlOrbitalProps {
280
+ cx?: number;
281
+ cy?: number;
282
+ r?: number;
283
+ label?: string;
284
+ color?: string;
285
+ opacity?: number;
286
+ className?: string;
287
+ }
288
+ declare const AvlOrbital: React.FC<AvlOrbitalProps>;
289
+
290
+ interface AvlEntityProps extends AvlBaseProps {
291
+ r?: number;
292
+ fieldCount?: number;
293
+ persistence?: AvlPersistenceKind;
294
+ label?: string;
295
+ }
296
+ declare const AvlEntity: React.FC<AvlEntityProps>;
297
+
298
+ interface AvlTraitProps {
299
+ cx?: number;
300
+ cy?: number;
301
+ rx?: number;
302
+ ry?: number;
303
+ rotation?: number;
304
+ label?: string;
305
+ color?: string;
306
+ opacity?: number;
307
+ className?: string;
308
+ }
309
+ declare const AvlTrait: React.FC<AvlTraitProps>;
310
+
311
+ interface AvlPageProps extends AvlBaseProps {
312
+ size?: number;
313
+ label?: string;
314
+ }
315
+ declare const AvlPage: React.FC<AvlPageProps>;
316
+
317
+ interface AvlApplicationProps extends AvlBaseProps {
318
+ width?: number;
319
+ height?: number;
320
+ label?: string;
321
+ }
322
+ declare const AvlApplication: React.FC<AvlApplicationProps>;
323
+
324
+ interface AvlStateProps extends AvlBaseProps {
325
+ name?: string;
326
+ isInitial?: boolean;
327
+ isTerminal?: boolean;
328
+ width?: number;
329
+ height?: number;
330
+ }
331
+ declare const AvlState: React.FC<AvlStateProps>;
332
+
333
+ interface AvlTransitionProps {
334
+ x1: number;
335
+ y1: number;
336
+ x2: number;
337
+ y2: number;
338
+ curved?: boolean;
339
+ /** Center point to curve away from (curves outward if provided). */
340
+ curveAwayFrom?: {
341
+ x: number;
342
+ y: number;
343
+ };
344
+ label?: string;
345
+ color?: string;
346
+ opacity?: number;
347
+ className?: string;
348
+ }
349
+ declare const AvlTransition: React.FC<AvlTransitionProps>;
350
+
351
+ interface AvlEventProps extends AvlBaseProps {
352
+ size?: number;
353
+ label?: string;
354
+ }
355
+ declare const AvlEvent: React.FC<AvlEventProps>;
356
+
357
+ interface AvlGuardProps extends AvlBaseProps {
358
+ size?: number;
359
+ label?: string;
360
+ }
361
+ declare const AvlGuard: React.FC<AvlGuardProps>;
362
+
363
+ interface AvlEffectProps extends AvlBaseProps {
364
+ effectType: AvlEffectType;
365
+ size?: number;
366
+ label?: string;
367
+ }
368
+ declare const AvlEffect: React.FC<AvlEffectProps>;
369
+
370
+ interface AvlFieldProps extends AvlBaseProps {
371
+ /** Angle in radians from entity center. */
372
+ angle?: number;
373
+ length?: number;
374
+ required?: boolean;
375
+ label?: string;
376
+ }
377
+ declare const AvlField: React.FC<AvlFieldProps>;
378
+
379
+ interface AvlFieldTypeProps extends AvlBaseProps {
380
+ kind: AvlFieldTypeKind;
381
+ size?: number;
382
+ label?: string;
383
+ }
384
+ declare const AvlFieldType: React.FC<AvlFieldTypeProps>;
385
+
386
+ interface AvlBindingProps {
387
+ x1: number;
388
+ y1: number;
389
+ x2: number;
390
+ y2: number;
391
+ label?: string;
392
+ color?: string;
393
+ opacity?: number;
394
+ className?: string;
395
+ }
396
+ declare const AvlBinding: React.FC<AvlBindingProps>;
397
+
398
+ interface AvlPersistenceProps extends AvlBaseProps {
399
+ kind: AvlPersistenceKind;
400
+ size?: number;
401
+ label?: string;
402
+ }
403
+ declare const AvlPersistence: React.FC<AvlPersistenceProps>;
404
+
405
+ interface AvlOperatorProps extends AvlBaseProps {
406
+ name: string;
407
+ namespace?: AvlOperatorNamespace;
408
+ size?: number;
409
+ }
410
+ declare const AvlOperator: React.FC<AvlOperatorProps>;
411
+
412
+ interface AvlSExprProps extends AvlBaseProps {
413
+ width?: number;
414
+ height?: number;
415
+ label?: string;
416
+ }
417
+ declare const AvlSExpr: React.FC<AvlSExprProps>;
418
+
419
+ interface AvlLiteralProps extends AvlBaseProps {
420
+ value: string;
421
+ size?: number;
422
+ }
423
+ declare const AvlLiteral: React.FC<AvlLiteralProps>;
424
+
425
+ interface AvlBindingRefProps extends AvlBaseProps {
426
+ path: string;
427
+ size?: number;
428
+ }
429
+ declare const AvlBindingRef: React.FC<AvlBindingRefProps>;
430
+
431
+ interface AvlStateMachineState {
432
+ name: string;
433
+ isInitial?: boolean;
434
+ isTerminal?: boolean;
435
+ }
436
+ interface AvlStateMachineTransition {
437
+ from: string;
438
+ to: string;
439
+ event?: string;
440
+ guard?: string;
441
+ effects?: AvlEffectType[];
442
+ }
443
+ interface AvlStateMachineProps {
444
+ states: AvlStateMachineState[];
445
+ transitions: AvlStateMachineTransition[];
446
+ className?: string;
447
+ color?: string;
448
+ animated?: boolean;
449
+ }
450
+ declare const AvlStateMachine: React.FC<AvlStateMachineProps>;
451
+
452
+ interface AvlOrbitalUnitTrait {
453
+ name: string;
454
+ color?: string;
455
+ }
456
+ interface AvlOrbitalUnitPage {
457
+ name: string;
458
+ }
459
+ interface AvlOrbitalUnitProps {
460
+ entityName: string;
461
+ fields?: number;
462
+ persistence?: AvlPersistenceKind;
463
+ traits: AvlOrbitalUnitTrait[];
464
+ pages: AvlOrbitalUnitPage[];
465
+ className?: string;
466
+ color?: string;
467
+ animated?: boolean;
468
+ }
469
+ declare const AvlOrbitalUnit: React.FC<AvlOrbitalUnitProps>;
470
+
471
+ interface AvlClosedCircuitState {
472
+ name: string;
473
+ }
474
+ interface AvlClosedCircuitTransition {
475
+ from: string;
476
+ to: string;
477
+ event?: string;
478
+ guard?: string;
479
+ effects?: AvlEffectType[];
480
+ }
481
+ interface AvlClosedCircuitProps {
482
+ states: AvlClosedCircuitState[];
483
+ transitions: AvlClosedCircuitTransition[];
484
+ className?: string;
485
+ color?: string;
486
+ animated?: boolean;
487
+ }
488
+ declare const AvlClosedCircuit: React.FC<AvlClosedCircuitProps>;
489
+
490
+ interface AvlEmitListenProps {
491
+ emitter: {
492
+ name: string;
493
+ fields?: number;
494
+ };
495
+ listener: {
496
+ name: string;
497
+ fields?: number;
498
+ };
499
+ eventName?: string;
500
+ className?: string;
501
+ color?: string;
502
+ animated?: boolean;
503
+ }
504
+ declare const AvlEmitListen: React.FC<AvlEmitListenProps>;
505
+
506
+ interface AvlSlotMapSlot {
507
+ name: string;
508
+ x: number;
509
+ y: number;
510
+ width: number;
511
+ height: number;
512
+ }
513
+ interface AvlSlotMapProps {
514
+ slots: AvlSlotMapSlot[];
515
+ pageWidth?: number;
516
+ pageHeight?: number;
517
+ className?: string;
518
+ color?: string;
519
+ animated?: boolean;
520
+ }
521
+ declare const AvlSlotMap: React.FC<AvlSlotMapProps>;
522
+
523
+ interface AvlExprTreeNode {
524
+ label: string;
525
+ type: 'operator' | 'literal' | 'binding';
526
+ children?: AvlExprTreeNode[];
527
+ }
528
+ interface AvlExprTreeProps {
529
+ expression: AvlExprTreeNode;
530
+ className?: string;
531
+ color?: string;
532
+ animated?: boolean;
533
+ }
534
+ declare const AvlExprTree: React.FC<AvlExprTreeProps>;
535
+
536
+ export { AIGenerates, AvlApplication, AvlBinding, AvlBindingRef, AvlClosedCircuit, AvlEffect, AvlEmitListen, AvlEntity, AvlEvent, AvlExprTree, AvlField, AvlFieldType, AvlGuard, AvlLiteral, AvlOperator, AvlOrbital, AvlOrbitalUnit, AvlPage, AvlPersistence, AvlSExpr, AvlSlotMap, AvlState, AvlStateMachine, AvlTrait, AvlTransition, ClosedCircuit, CommunityOwnership, CompileAnywhere, ComposableModels, DescribeProveDeploy, DomainGrid, EventBus, OrbitalUnit, PlanVerifyRemember, ProveCorrect, ServiceLayers, SharedReality, StandardLibrary, StateMachine, SvgBranch, SvgConnection, SvgFlow, SvgGrid, SvgLobe, SvgMesh, SvgMorph, SvgNode, SvgPulse, SvgRing, SvgShield, SvgStack, WorldModel };
@@ -33,3 +33,27 @@ export { EventBus } from '../components/molecules/svg';
33
33
  export { StateMachine } from '../components/molecules/svg';
34
34
  export { OrbitalUnit } from '../components/molecules/svg';
35
35
  export { DomainGrid } from '../components/molecules/svg';
36
+ export { AvlState } from '../components/atoms/avl';
37
+ export { AvlTransition } from '../components/atoms/avl';
38
+ export { AvlEvent } from '../components/atoms/avl';
39
+ export { AvlGuard } from '../components/atoms/avl';
40
+ export { AvlEffect } from '../components/atoms/avl';
41
+ export { AvlEntity } from '../components/atoms/avl';
42
+ export { AvlTrait } from '../components/atoms/avl';
43
+ export { AvlPage } from '../components/atoms/avl';
44
+ export { AvlOrbital } from '../components/atoms/avl';
45
+ export { AvlApplication } from '../components/atoms/avl';
46
+ export { AvlField } from '../components/atoms/avl';
47
+ export { AvlFieldType } from '../components/atoms/avl';
48
+ export { AvlBinding } from '../components/atoms/avl';
49
+ export { AvlPersistence } from '../components/atoms/avl';
50
+ export { AvlOperator } from '../components/atoms/avl';
51
+ export { AvlSExpr } from '../components/atoms/avl';
52
+ export { AvlLiteral } from '../components/atoms/avl';
53
+ export { AvlBindingRef } from '../components/atoms/avl';
54
+ export { AvlStateMachine } from '../components/molecules/avl';
55
+ export { AvlOrbitalUnit } from '../components/molecules/avl';
56
+ export { AvlClosedCircuit } from '../components/molecules/avl';
57
+ export { AvlEmitListen } from '../components/molecules/avl';
58
+ export { AvlSlotMap } from '../components/molecules/avl';
59
+ export { AvlExprTree } from '../components/molecules/avl';