@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
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PatternTile Atom
|
|
3
|
+
*
|
|
4
|
+
* Mathematically correct Islamic geometric pattern tiles using the
|
|
5
|
+
* Polygons-in-Contact (PIC) method (Hankin 1925, formalized by Kaplan 2005).
|
|
6
|
+
*
|
|
7
|
+
* Construction: A regular polygon tiling is overlaid with star motifs.
|
|
8
|
+
* Each motif touches the enclosing polygon at EDGE MIDPOINTS only.
|
|
9
|
+
* Two rays emanate from each midpoint into the polygon at a specific
|
|
10
|
+
* CONTACT ANGLE (theta). Where rays from adjacent midpoints intersect,
|
|
11
|
+
* they form the star points. Gap tiles (squares, triangles) between
|
|
12
|
+
* polygons receive inferred geometry by extending boundary rays inward.
|
|
13
|
+
*
|
|
14
|
+
* Variants:
|
|
15
|
+
* star8 — 8-fold star-and-cross on 4.8.8 tiling (theta = 67.5 deg)
|
|
16
|
+
* star6 — 6-fold star on hexagonal tiling (theta = 60 deg)
|
|
17
|
+
* khatam — 8-fold rosette with interlocking kites (theta = 72 deg)
|
|
18
|
+
* star10 — 10-fold girih on decagonal tiling (theta = 72 deg)
|
|
19
|
+
* star12 — 12-fold on dodecagonal tiling (theta = 75 deg)
|
|
20
|
+
*
|
|
21
|
+
* All tiles use stroke only (no fill), rendering as transparent overlays.
|
|
22
|
+
*/
|
|
23
|
+
import React from 'react';
|
|
24
|
+
export type PatternVariant = 'star8' | 'star6' | 'khatam' | 'star10' | 'star12' | 'rosette-double' | 'rosette-filled' | 'seigaiha' | 'greek-key' | 'celtic-knot' | 'kolam' | 'arch' | 'arabesque-vine' | 'arabesque-net';
|
|
25
|
+
export interface PatternTileProps {
|
|
26
|
+
/** Which geometric pattern to render */
|
|
27
|
+
variant?: PatternVariant;
|
|
28
|
+
/** Tile unit size in SVG units */
|
|
29
|
+
size?: number;
|
|
30
|
+
/** Stroke color (CSS variable or hex) */
|
|
31
|
+
color?: string;
|
|
32
|
+
/** Line thickness */
|
|
33
|
+
strokeWidth?: number;
|
|
34
|
+
className?: string;
|
|
35
|
+
}
|
|
36
|
+
export declare const PatternTile: React.FC<PatternTileProps>;
|
|
37
|
+
/** Returns the tile dimensions for a given variant and size */
|
|
38
|
+
export declare function getTileDimensions(variant: PatternVariant, size: number): {
|
|
39
|
+
width: number;
|
|
40
|
+
height: number;
|
|
41
|
+
};
|
|
@@ -4,5 +4,7 @@ export interface AvlEffectProps extends AvlBaseProps {
|
|
|
4
4
|
effectType: AvlEffectType;
|
|
5
5
|
size?: number;
|
|
6
6
|
label?: string;
|
|
7
|
+
/** V2: Render a category-colored background circle behind the icon. */
|
|
8
|
+
showBackground?: boolean;
|
|
7
9
|
}
|
|
8
10
|
export declare const AvlEffect: React.FC<AvlEffectProps>;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { AvlBaseProps } from './types';
|
|
3
|
+
import { type StateRole } from './types';
|
|
3
4
|
export interface AvlStateProps extends AvlBaseProps {
|
|
4
5
|
name?: string;
|
|
5
6
|
isInitial?: boolean;
|
|
6
7
|
isTerminal?: boolean;
|
|
7
8
|
width?: number;
|
|
8
9
|
height?: number;
|
|
10
|
+
/** V2: Role-based fill color. When set, overrides monochrome rendering. */
|
|
11
|
+
role?: StateRole;
|
|
12
|
+
/** V2: Number of transitions touching this state. Drives proportional width. */
|
|
13
|
+
transitionCount?: number;
|
|
9
14
|
}
|
|
10
15
|
export declare const AvlState: React.FC<AvlStateProps>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export type { AvlBaseProps, AvlEffectType, AvlFieldTypeKind, AvlPersistenceKind, AvlOperatorNamespace, } from './types';
|
|
2
2
|
export { AVL_OPERATOR_COLORS, AVL_FIELD_TYPE_SHAPES } from './types';
|
|
3
|
+
export type { StateRole, EffectCategory } from './types';
|
|
4
|
+
export { STATE_COLORS, EFFECT_CATEGORY_COLORS, EFFECT_TYPE_TO_CATEGORY, CONNECTION_COLORS, getStateRole } from './types';
|
|
3
5
|
export { AvlOrbital, type AvlOrbitalProps } from './AvlOrbital';
|
|
4
6
|
export { AvlEntity, type AvlEntityProps } from './AvlEntity';
|
|
5
7
|
export { AvlTrait, type AvlTraitProps } from './AvlTrait';
|
|
@@ -17,3 +17,37 @@ export type AvlPersistenceKind = 'persistent' | 'runtime' | 'singleton' | 'insta
|
|
|
17
17
|
export type AvlOperatorNamespace = 'arithmetic' | 'comparison' | 'logic' | 'string' | 'collection' | 'time' | 'control' | 'async';
|
|
18
18
|
export declare const AVL_OPERATOR_COLORS: Record<AvlOperatorNamespace, string>;
|
|
19
19
|
export declare const AVL_FIELD_TYPE_SHAPES: Record<AvlFieldTypeKind, string>;
|
|
20
|
+
export type StateRole = 'initial' | 'terminal' | 'hub' | 'error' | 'default';
|
|
21
|
+
export declare const STATE_COLORS: Record<StateRole, {
|
|
22
|
+
fill: string;
|
|
23
|
+
border: string;
|
|
24
|
+
}>;
|
|
25
|
+
export type EffectCategory = 'ui' | 'data' | 'communication' | 'lifecycle' | 'control';
|
|
26
|
+
export declare const EFFECT_CATEGORY_COLORS: Record<EffectCategory, {
|
|
27
|
+
color: string;
|
|
28
|
+
bg: string;
|
|
29
|
+
}>;
|
|
30
|
+
export declare const EFFECT_TYPE_TO_CATEGORY: Record<AvlEffectType, EffectCategory>;
|
|
31
|
+
export declare const CONNECTION_COLORS: {
|
|
32
|
+
readonly forward: {
|
|
33
|
+
readonly color: "#1E293B";
|
|
34
|
+
readonly width: 2;
|
|
35
|
+
readonly dash: "none";
|
|
36
|
+
};
|
|
37
|
+
readonly backward: {
|
|
38
|
+
readonly color: "#94A3B8";
|
|
39
|
+
readonly width: 1.5;
|
|
40
|
+
readonly dash: "6 3";
|
|
41
|
+
};
|
|
42
|
+
readonly selfLoop: {
|
|
43
|
+
readonly color: "#CBD5E1";
|
|
44
|
+
readonly width: 1;
|
|
45
|
+
readonly dash: "3 2";
|
|
46
|
+
};
|
|
47
|
+
readonly emitListen: {
|
|
48
|
+
readonly color: "#F97316";
|
|
49
|
+
readonly width: 1.5;
|
|
50
|
+
readonly dash: "4 3";
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
export declare function getStateRole(name: string, isInitial?: boolean, isTerminal?: boolean, transitionCount?: number, maxTransitionCount?: number): StateRole;
|
|
@@ -37,4 +37,5 @@ export { TypewriterText, type TypewriterTextProps } from "./TypewriterText";
|
|
|
37
37
|
export { SectionHeader, type SectionHeaderProps } from "./SectionHeader";
|
|
38
38
|
export { MarketingStatCard, type StatCardProps as MarketingStatCardProps, type StatCardSize } from "./StatCard";
|
|
39
39
|
export { ContentSection, type ContentSectionProps, type ContentSectionBackground, type ContentSectionPadding, } from "./ContentSection";
|
|
40
|
+
export { PatternTile, getTileDimensions, type PatternTileProps, type PatternVariant } from "./PatternTile";
|
|
40
41
|
export * from "./game";
|