@almadar/ui 2.20.1 → 2.20.7

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 (40) hide show
  1. package/LICENSE +72 -21
  2. package/dist/avl/index.cjs +1345 -1323
  3. package/dist/avl/index.d.cts +47 -47
  4. package/dist/avl/index.js +1321 -1299
  5. package/dist/components/atoms/avl/Avl3DLabel.d.ts +23 -0
  6. package/dist/components/atoms/avl/Avl3DTooltip.d.ts +25 -0
  7. package/dist/components/atoms/avl/index.d.ts +2 -0
  8. package/dist/components/index.cjs +3 -1
  9. package/dist/components/index.js +3 -1
  10. package/dist/components/molecules/avl/Avl3DCrossWire.d.ts +22 -0
  11. package/dist/components/molecules/avl/Avl3DEntityCore.d.ts +26 -0
  12. package/dist/components/molecules/avl/Avl3DExprTree.d.ts +21 -0
  13. package/dist/components/molecules/avl/Avl3DOrbitalNode.d.ts +29 -0
  14. package/dist/components/molecules/avl/Avl3DStateNode.d.ts +34 -0
  15. package/dist/components/molecules/avl/Avl3DTransitionArc.d.ts +38 -0
  16. package/dist/components/molecules/avl/index.d.ts +6 -0
  17. package/dist/components/organisms/avl/Avl3DApplicationScene.d.ts +19 -0
  18. package/dist/components/organisms/avl/Avl3DEffects.d.ts +18 -0
  19. package/dist/components/organisms/avl/Avl3DOrbitalScene.d.ts +23 -0
  20. package/dist/components/organisms/avl/Avl3DTraitScene.d.ts +19 -0
  21. package/dist/components/organisms/avl/Avl3DTransitionScene.d.ts +17 -0
  22. package/dist/components/organisms/avl/Avl3DViewer.d.ts +40 -0
  23. package/dist/components/organisms/avl/avl-3d-context.d.ts +32 -0
  24. package/dist/components/organisms/avl/avl-3d-layout.d.ts +116 -0
  25. package/dist/components/organisms/game/three/index.cjs +2549 -120
  26. package/dist/components/organisms/game/three/index.d.ts +8 -0
  27. package/dist/components/organisms/game/three/index.js +2419 -5
  28. package/dist/illustrations/index.cjs +2880 -109
  29. package/dist/illustrations/index.js +2879 -108
  30. package/dist/providers/OrbitalProvider.d.ts +4 -2
  31. package/dist/providers/index.cjs +263 -284
  32. package/dist/providers/index.js +189 -210
  33. package/dist/runtime/OrbPreview.d.ts +9 -6
  34. package/dist/runtime/ServerBridge.d.ts +23 -0
  35. package/dist/runtime/enrichFromResponse.d.ts +21 -0
  36. package/dist/runtime/index.cjs +31754 -2587
  37. package/dist/runtime/index.d.ts +2 -0
  38. package/dist/runtime/index.js +31735 -2571
  39. package/index.css +156 -0
  40. package/package.json +9 -5
package/index.css ADDED
@@ -0,0 +1,156 @@
1
+ /**
2
+ * Design System Styles
3
+ */
4
+
5
+ /* Load Plus Jakarta Sans from Google Fonts (Track A: preferred UI font) */
6
+ @import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');
7
+
8
+ @tailwind base;
9
+ @tailwind components;
10
+ @tailwind utilities;
11
+
12
+ /**
13
+ * Default fallback theme (minimalist-light — UI/UX improved per Track A eval)
14
+ * Applied when no data-theme attribute is set.
15
+ */
16
+ :root:not([data-theme]) {
17
+ --shadow-main: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
18
+ --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
19
+ --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
20
+ --shadow-inner: inset 0 1px 2px rgba(0, 0, 0, 0.05);
21
+ --shadow-none: none;
22
+ /* Track A: more pronounced hover lift for interactive cards */
23
+ --shadow-hover: 0 8px 30px -8px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
24
+ --shadow-active: 0 1px 2px rgba(0, 0, 0, 0.05);
25
+
26
+ --radius-none: 0px;
27
+ --radius-sm: 6px;
28
+ /* Track A: bump radii from 8/12 → 10/14 for a more modern feel */
29
+ --radius-md: 10px;
30
+ --radius-lg: 14px;
31
+ --radius-xl: 18px;
32
+ --radius-full: 9999px;
33
+
34
+ --border-width: 1px;
35
+ --border-width-thin: 1px;
36
+ --border-width-thick: 2px;
37
+
38
+ --color-primary: #18181b;
39
+ --color-primary-hover: #27272a;
40
+ --color-primary-foreground: #fafafa;
41
+ --color-secondary: #fafafa;
42
+ --color-secondary-hover: #f4f4f5;
43
+ --color-secondary-foreground: #18181b;
44
+ --color-accent: #18181b;
45
+ --color-accent-foreground: #fafafa;
46
+ --color-muted: #f1f5f9;
47
+ /* Track A: slightly darker muted-foreground for legibility */
48
+ --color-muted-foreground: #64748b;
49
+ /* Track A: background ≠ card → natural surface elevation */
50
+ --color-background: #f8fafc;
51
+ --color-foreground: #0f172a;
52
+ --color-card: #ffffff;
53
+ --color-card-foreground: #0f172a;
54
+ --color-surface: #f1f5f9;
55
+ /* Track A: soften border — semi-transparent instead of solid gray */
56
+ --color-border: rgba(0, 0, 0, 0.08);
57
+ --color-input: #e2e8f0;
58
+ --color-ring: #18181b;
59
+
60
+ --color-error: #dc2626;
61
+ --color-error-foreground: #ffffff;
62
+ --color-success: #16a34a;
63
+ --color-success-foreground: #ffffff;
64
+ --color-warning: #ca8a04;
65
+ --color-warning-foreground: #000000;
66
+ --color-info: #2563eb;
67
+ --color-info-foreground: #ffffff;
68
+
69
+ /* Track A: Plus Jakarta Sans as first preference, Inter as fallback */
70
+ --font-family:
71
+ "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
72
+ --font-weight-normal: 400;
73
+ --font-weight-medium: 500;
74
+ --font-weight-bold: 600;
75
+ --letter-spacing: -0.015em;
76
+ --line-height: 1.6;
77
+
78
+ --icon-stroke-width: 1.5;
79
+ --icon-color: currentColor;
80
+
81
+ --transition-fast: 150ms;
82
+ --transition-normal: 250ms;
83
+ --transition-slow: 400ms;
84
+ --transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
85
+
86
+ --hover-scale: 1.01;
87
+ --hover-translate-y: -2px;
88
+ --hover-translate-x: 0;
89
+ --active-scale: 0.99;
90
+ --active-translate-y: 0;
91
+
92
+ --focus-ring-width: 2px;
93
+ --focus-ring-offset: 2px;
94
+ --focus-ring-color: #18181b;
95
+ }
96
+
97
+ html {
98
+ font-family: var(--font-family);
99
+ line-height: var(--line-height);
100
+ letter-spacing: var(--letter-spacing);
101
+ font-weight: var(--font-weight-normal);
102
+ color-scheme: light dark;
103
+ font-synthesis: none;
104
+ text-rendering: optimizeLegibility;
105
+ -webkit-font-smoothing: antialiased;
106
+ -moz-osx-font-smoothing: grayscale;
107
+ }
108
+
109
+ body {
110
+ margin: 0;
111
+ min-height: 100vh;
112
+ background-color: var(--color-background);
113
+ color: var(--color-foreground);
114
+ }
115
+
116
+ #root {
117
+ min-height: 100vh;
118
+ }
119
+
120
+ ::-webkit-scrollbar {
121
+ width: 8px;
122
+ height: 8px;
123
+ }
124
+
125
+ ::-webkit-scrollbar-track {
126
+ background: var(--color-muted);
127
+ }
128
+
129
+ ::-webkit-scrollbar-thumb {
130
+ background: var(--color-muted-foreground);
131
+ border-radius: var(--radius-sm);
132
+ }
133
+
134
+ ::-webkit-scrollbar-thumb:hover {
135
+ background: var(--color-foreground);
136
+ }
137
+
138
+ @layer utilities {
139
+ .shadow-theme { box-shadow: var(--shadow-main); }
140
+ .shadow-theme-sm { box-shadow: var(--shadow-sm); }
141
+ .shadow-theme-lg { box-shadow: var(--shadow-lg); }
142
+ .rounded-theme { border-radius: var(--radius-md); }
143
+ .rounded-theme-sm { border-radius: var(--radius-sm); }
144
+ .rounded-theme-lg { border-radius: var(--radius-lg); }
145
+ .border-theme { border-width: var(--border-width); border-color: var(--color-border); }
146
+ .bg-theme-primary { background-color: var(--color-primary); }
147
+ .bg-theme-secondary { background-color: var(--color-secondary); }
148
+ .bg-theme-background { background-color: var(--color-background); }
149
+ .bg-theme-card { background-color: var(--color-card); }
150
+ .text-theme-foreground { color: var(--color-foreground); }
151
+ .text-theme-muted { color: var(--color-muted-foreground); }
152
+ .text-theme-primary { color: var(--color-primary); }
153
+ .font-theme-normal { font-weight: var(--font-weight-normal); }
154
+ .font-theme-medium { font-weight: var(--font-weight-medium); }
155
+ .font-theme-bold { font-weight: var(--font-weight-bold); }
156
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "2.20.1",
3
+ "version": "2.20.7",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "main": "./dist/components/index.js",
@@ -103,6 +103,7 @@
103
103
  },
104
104
  "files": [
105
105
  "dist",
106
+ "index.css",
106
107
  "themes",
107
108
  "locales",
108
109
  "tailwind-preset.cjs"
@@ -112,9 +113,9 @@
112
113
  "access": "public"
113
114
  },
114
115
  "dependencies": {
115
- "@almadar/core": ">=2.1.0",
116
- "@almadar/evaluator": ">=2.0.0",
117
- "@almadar/patterns": ">=2.0.0",
116
+ "@almadar/core": ">=2.6.3",
117
+ "@almadar/evaluator": ">=2.5.4",
118
+ "@almadar/patterns": ">=2.8.7",
118
119
  "@almadar/runtime": ">=2.0.0",
119
120
  "clsx": "^2.1.0",
120
121
  "elkjs": "0.11.1",
@@ -131,6 +132,7 @@
131
132
  "peerDependencies": {
132
133
  "@react-three/drei": "^9.92.0 || ^10.0.0",
133
134
  "@react-three/fiber": "^9.0.0",
135
+ "@react-three/postprocessing": "^3.0.0",
134
136
  "@tanstack/react-query": "^5.0.0",
135
137
  "react": ">=18.0.0",
136
138
  "react-dom": ">=18.0.0",
@@ -139,6 +141,7 @@
139
141
  },
140
142
  "devDependencies": {
141
143
  "@almadar/eslint-plugin": ">=2.3.0",
144
+ "@react-three/postprocessing": "3.0.4",
142
145
  "@storybook/addon-docs": "^10.2.6",
143
146
  "@storybook/addon-links": "^10.2.6",
144
147
  "@storybook/addon-themes": "^10.2.6",
@@ -164,6 +167,7 @@
164
167
  "jsdom": "^24.0.0",
165
168
  "katex": "^0.16.0",
166
169
  "postcss": "^8.4.35",
170
+ "postprocessing": "6.39.0",
167
171
  "react": "^19.0.0",
168
172
  "react-compiler-runtime": "19.0.0-beta-af1b7da-20250417",
169
173
  "react-dom": "^19.0.0",
@@ -181,7 +185,7 @@
181
185
  "url": "https://github.com/almadar-io/almadar-ui.git",
182
186
  "directory": "docs/packages/ui"
183
187
  },
184
- "license": "MIT",
188
+ "license": "BSL-1.1",
185
189
  "keywords": [
186
190
  "almadar",
187
191
  "ui",