@almadar/core 10.97.0 → 10.100.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 (101) hide show
  1. package/README.md +25 -0
  2. package/dist/builders.d.ts +5 -4
  3. package/dist/builders.js +62 -34
  4. package/dist/builders.js.map +1 -1
  5. package/dist/bus-D69s_77B.d.ts +588 -0
  6. package/dist/domain-Ds_7wZIL.d.ts +16213 -0
  7. package/dist/{effect-Bw8T4qh5.d.ts → effect-Hm_QDaSI.d.ts} +65 -4
  8. package/dist/{entityAccess-DfoXs9mc.d.ts → entityAccess-DdcKps16.d.ts} +3 -3
  9. package/dist/{expression-WfTp2arD.d.ts → expression-DRwzVnMu.d.ts} +5 -1
  10. package/dist/factory/index.d.ts +5 -5
  11. package/dist/factory/index.js +36 -1
  12. package/dist/factory/index.js.map +1 -1
  13. package/dist/factory-runtime/index.d.ts +5 -4
  14. package/dist/factory-runtime/index.js +189 -34
  15. package/dist/factory-runtime/index.js.map +1 -1
  16. package/dist/fixtures.d.ts +45 -0
  17. package/dist/fixtures.js +704 -0
  18. package/dist/fixtures.js.map +1 -0
  19. package/dist/{index-H0bOi9oP.d.ts → index-DPdJPQZe.d.ts} +8 -375
  20. package/dist/index.d.ts +19 -15
  21. package/dist/index.js +9112 -45
  22. package/dist/index.js.map +1 -1
  23. package/dist/mock/index.d.ts +6 -5
  24. package/dist/mock/index.js +14 -0
  25. package/dist/mock/index.js.map +1 -1
  26. package/dist/patterns/component-mapping.json +1 -1
  27. package/dist/patterns/event-contracts.json +1 -1
  28. package/dist/patterns/index.d.ts +44 -9
  29. package/dist/patterns/index.js +29 -5
  30. package/dist/patterns/index.js.map +1 -1
  31. package/dist/patterns/patterns-registry.json +15 -2
  32. package/dist/patterns/registry.json +15 -2
  33. package/dist/{schema-DPpES4qj.d.ts → schema-TqLV2wlK.d.ts} +411 -21713
  34. package/dist/state-machine/index.d.ts +1 -1
  35. package/dist/themes/index.d.ts +19 -0
  36. package/dist/themes/index.js +9251 -0
  37. package/dist/themes/index.js.map +1 -0
  38. package/dist/{trait-DXXRrRMP.d.ts → trait-YlNXc4H3.d.ts} +62 -26
  39. package/dist/types/index.d.ts +8 -6
  40. package/dist/types/index.js +236 -41
  41. package/dist/types/index.js.map +1 -1
  42. package/dist/{types-BMaTUGyk.d.ts → types-Ug92oza4.d.ts} +2 -2
  43. package/fixtures/events-wire/cascade-emitted-events/request.json +9 -0
  44. package/fixtures/events-wire/cascade-emitted-events/response.json +30 -0
  45. package/fixtures/events-wire/client-effects-by-trait/request.json +4 -0
  46. package/fixtures/events-wire/client-effects-by-trait/response.json +52 -0
  47. package/fixtures/events-wire/effect-results/request.json +9 -0
  48. package/fixtures/events-wire/effect-results/response.json +42 -0
  49. package/fixtures/events-wire/effect-results-every-kind/request.json +9 -0
  50. package/fixtures/events-wire/effect-results-every-kind/response.json +70 -0
  51. package/fixtures/events-wire/guard-rejected/request.json +6 -0
  52. package/fixtures/events-wire/guard-rejected/response.json +11 -0
  53. package/fixtures/events-wire/live-push/live-push.json +12 -0
  54. package/fixtures/events-wire/live-push/request.json +9 -0
  55. package/fixtures/events-wire/live-push/response.json +33 -0
  56. package/fixtures/events-wire/navigate-1/request.json +5 -0
  57. package/fixtures/events-wire/navigate-1/response.json +16 -0
  58. package/fixtures/events-wire/navigate-2/request.json +8 -0
  59. package/fixtures/events-wire/navigate-2/response.json +19 -0
  60. package/fixtures/events-wire/navigate-3/request.json +8 -0
  61. package/fixtures/events-wire/navigate-3/response.json +22 -0
  62. package/fixtures/events-wire/navigate-back/request.json +5 -0
  63. package/fixtures/events-wire/navigate-back/response.json +15 -0
  64. package/fixtures/events-wire/render-ui-3/request.json +5 -0
  65. package/fixtures/events-wire/render-ui-3/response.json +20 -0
  66. package/fixtures/events-wire/render-ui-4/request.json +5 -0
  67. package/fixtures/events-wire/render-ui-4/response.json +41 -0
  68. package/fixtures/events-wire/render-ui-5/request.json +9 -0
  69. package/fixtures/events-wire/render-ui-5/response.json +52 -0
  70. package/fixtures/events-wire/render-ui-clear/request.json +5 -0
  71. package/fixtures/events-wire/render-ui-clear/response.json +27 -0
  72. package/fixtures/events-wire/sse-stream/request.json +9 -0
  73. package/fixtures/events-wire/sse-stream/response.json +79 -0
  74. package/fixtures/events-wire/sse-stream/stream.json +131 -0
  75. package/fixtures/events-wire/stateless-traits/request.json +27 -0
  76. package/fixtures/events-wire/stateless-traits/response.json +15 -0
  77. package/fixtures/theme-tokens/every-key.json +43 -0
  78. package/package.json +18 -3
  79. package/themes/almadar-website.json +207 -0
  80. package/themes/almadar.json +203 -0
  81. package/themes/atelier.json +459 -0
  82. package/themes/bloomberg-dense.json +459 -0
  83. package/themes/clay.json +445 -0
  84. package/themes/comic.json +457 -0
  85. package/themes/corporate.json +445 -0
  86. package/themes/game-adventure.json +229 -0
  87. package/themes/game-rpg.json +230 -0
  88. package/themes/game-sci-fi.json +229 -0
  89. package/themes/game-ui-pack.json +230 -0
  90. package/themes/gazette.json +445 -0
  91. package/themes/glass.json +445 -0
  92. package/themes/kiosk.json +441 -0
  93. package/themes/linear-clean.json +459 -0
  94. package/themes/minimalist.json +445 -0
  95. package/themes/neon.json +445 -0
  96. package/themes/notion-editorial.json +459 -0
  97. package/themes/prism.json +203 -0
  98. package/themes/retro.json +445 -0
  99. package/themes/terminal.json +457 -0
  100. package/themes/trait-wars.json +493 -0
  101. package/themes/wireframe.json +445 -0
@@ -0,0 +1,459 @@
1
+ {
2
+ "name": "linear-clean",
3
+ "tokens": {
4
+ "density": {
5
+ "spacing": {
6
+ "space0": "0px",
7
+ "space1": "4px",
8
+ "space2": "8px",
9
+ "space3": "12px",
10
+ "space4": "16px",
11
+ "space5": "20px",
12
+ "space6": "24px",
13
+ "space7": "28px",
14
+ "space8": "32px",
15
+ "space9": "36px",
16
+ "space10": "40px",
17
+ "space11": "44px",
18
+ "space12": "48px"
19
+ },
20
+ "buttonHeightSm": "28px",
21
+ "buttonHeightMd": "32px",
22
+ "buttonHeightLg": "36px",
23
+ "inputHeightSm": "28px",
24
+ "inputHeightMd": "32px",
25
+ "inputHeightLg": "36px",
26
+ "rowHeightCompact": "32px",
27
+ "rowHeightNormal": "36px",
28
+ "rowHeightSpacious": "44px",
29
+ "cardPaddingSm": "12px",
30
+ "cardPaddingMd": "16px",
31
+ "cardPaddingLg": "20px",
32
+ "dialogPadding": "24px",
33
+ "sectionGap": "32px"
34
+ },
35
+ "typeScale": {
36
+ "displayFamily": "\"Inter\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif",
37
+ "bodyFamily": "\"Inter\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif",
38
+ "monoFamily": "\"JetBrains Mono\", ui-monospace, SFMono-Regular, Menlo, monospace",
39
+ "scale": {
40
+ "xs": {
41
+ "size": "11px",
42
+ "lineHeight": "14px"
43
+ },
44
+ "sm": {
45
+ "size": "13px",
46
+ "lineHeight": "18px"
47
+ },
48
+ "base": {
49
+ "size": "14px",
50
+ "lineHeight": "20px"
51
+ },
52
+ "lg": {
53
+ "size": "16px",
54
+ "lineHeight": "22px"
55
+ },
56
+ "xl": {
57
+ "size": "18px",
58
+ "lineHeight": "24px"
59
+ },
60
+ "2xl": {
61
+ "size": "22px",
62
+ "lineHeight": "28px"
63
+ },
64
+ "3xl": {
65
+ "size": "28px",
66
+ "lineHeight": "34px"
67
+ },
68
+ "4xl": {
69
+ "size": "34px",
70
+ "lineHeight": "40px"
71
+ },
72
+ "display-1": {
73
+ "size": "44px",
74
+ "lineHeight": "48px"
75
+ },
76
+ "display-2": {
77
+ "size": "56px",
78
+ "lineHeight": "60px"
79
+ }
80
+ },
81
+ "intents": {
82
+ "headingMajor": {
83
+ "slot": "display",
84
+ "size": "2xl",
85
+ "weight": "bold"
86
+ },
87
+ "headingMinor": {
88
+ "slot": "display",
89
+ "size": "lg",
90
+ "weight": "bold"
91
+ },
92
+ "bodyEmphasis": {
93
+ "slot": "body",
94
+ "size": "sm",
95
+ "weight": "medium"
96
+ },
97
+ "bodyDefault": {
98
+ "slot": "body",
99
+ "size": "sm",
100
+ "weight": "normal"
101
+ },
102
+ "bodyQuiet": {
103
+ "slot": "body",
104
+ "size": "xs",
105
+ "weight": "normal"
106
+ },
107
+ "caption": {
108
+ "slot": "body",
109
+ "size": "xs",
110
+ "weight": "medium"
111
+ },
112
+ "numeric": {
113
+ "slot": "mono",
114
+ "size": "sm",
115
+ "weight": "medium"
116
+ }
117
+ }
118
+ },
119
+ "motion": {
120
+ "durations": {
121
+ "instant": "0ms",
122
+ "fast": "80ms",
123
+ "normal": "120ms",
124
+ "slow": "180ms",
125
+ "dramatic": "240ms"
126
+ },
127
+ "easings": {
128
+ "linear": "linear",
129
+ "standard": "linear",
130
+ "emphasized": "linear",
131
+ "spring": "linear"
132
+ }
133
+ },
134
+ "iconography": {
135
+ "family": "lucide",
136
+ "strokeWidth": "1.5",
137
+ "defaultSize": "16px"
138
+ },
139
+ "elevation": {
140
+ "cardElevation": "none",
141
+ "popoverElevation": "none",
142
+ "dialogElevation": "none",
143
+ "toastElevation": "none"
144
+ },
145
+ "geometry": {
146
+ "radiusContainer": "8px",
147
+ "radiusInteractive": "6px",
148
+ "radiusPill": "9999px",
149
+ "borderHairline": "1px",
150
+ "borderStandard": "1px",
151
+ "borderHeavy": "1px"
152
+ },
153
+ "colors": {
154
+ "primary": "#0066ff",
155
+ "primary-hover": "#0052cc",
156
+ "primary-foreground": "#ffffff",
157
+ "secondary": "#f4f4f2",
158
+ "secondary-hover": "#ececea",
159
+ "secondary-foreground": "#0a0a0a",
160
+ "accent": "#0066ff",
161
+ "accent-foreground": "#ffffff",
162
+ "muted": "#f4f4f2",
163
+ "muted-foreground": "#6b6b66",
164
+ "background": "#fafafa",
165
+ "foreground": "#0a0a0a",
166
+ "card": "#ffffff",
167
+ "card-foreground": "#0a0a0a",
168
+ "surface": "#f7f7f5",
169
+ "border": "#e6e6e2",
170
+ "input": "#d8d8d4",
171
+ "ring": "#0066ff",
172
+ "table-header": "#f7f7f5",
173
+ "table-border": "#e6e6e2",
174
+ "table-row-hover": "#f4f4f2",
175
+ "surface-hover": "#ececea",
176
+ "border-hover": "#c9c9c4",
177
+ "placeholder": "#9a998f",
178
+ "error": "#d92d20",
179
+ "error-foreground": "#ffffff",
180
+ "success": "#067647",
181
+ "success-foreground": "#ffffff",
182
+ "warning": "#b54708",
183
+ "warning-foreground": "#ffffff",
184
+ "info": "#0066ff",
185
+ "info-foreground": "#ffffff"
186
+ },
187
+ "radii": {
188
+ "none": "0px",
189
+ "sm": "4px",
190
+ "md": "8px",
191
+ "lg": "12px",
192
+ "xl": "12px",
193
+ "full": "9999px"
194
+ },
195
+ "shadows": {
196
+ "none": "none",
197
+ "sm": "none",
198
+ "main": "none",
199
+ "lg": "none",
200
+ "inner": "none",
201
+ "hover": "none",
202
+ "active": "none"
203
+ },
204
+ "typography": {
205
+ "border-width": "1px",
206
+ "border-width-thin": "1px",
207
+ "border-width-thick": "1px",
208
+ "font-family": "\"Inter\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif",
209
+ "font-weight-normal": "400",
210
+ "font-weight-medium": "500",
211
+ "font-weight-bold": "600",
212
+ "letter-spacing": "-0.01em",
213
+ "line-height": "1.4",
214
+ "intent-numeric-family": "var(--font-family-mono)",
215
+ "icon-color": "currentColor",
216
+ "transition-fast": "80ms",
217
+ "transition-normal": "120ms",
218
+ "transition-slow": "180ms",
219
+ "transition-timing": "linear",
220
+ "hover-scale": "1",
221
+ "hover-translate-y": "0",
222
+ "hover-translate-x": "0",
223
+ "active-scale": "1",
224
+ "active-translate-y": "0",
225
+ "focus-ring-width": "2px",
226
+ "focus-ring-offset": "2px",
227
+ "focus-ring-color": "#0066ff"
228
+ }
229
+ },
230
+ "variants": {
231
+ "dark": {
232
+ "density": {
233
+ "spacing": {
234
+ "space0": "0px",
235
+ "space1": "4px",
236
+ "space2": "8px",
237
+ "space3": "12px",
238
+ "space4": "16px",
239
+ "space5": "20px",
240
+ "space6": "24px",
241
+ "space7": "28px",
242
+ "space8": "32px",
243
+ "space9": "36px",
244
+ "space10": "40px",
245
+ "space11": "44px",
246
+ "space12": "48px"
247
+ },
248
+ "buttonHeightSm": "28px",
249
+ "buttonHeightMd": "32px",
250
+ "buttonHeightLg": "36px",
251
+ "inputHeightSm": "28px",
252
+ "inputHeightMd": "32px",
253
+ "inputHeightLg": "36px",
254
+ "rowHeightCompact": "32px",
255
+ "rowHeightNormal": "36px",
256
+ "rowHeightSpacious": "44px",
257
+ "cardPaddingSm": "12px",
258
+ "cardPaddingMd": "16px",
259
+ "cardPaddingLg": "20px",
260
+ "dialogPadding": "24px",
261
+ "sectionGap": "32px"
262
+ },
263
+ "typeScale": {
264
+ "displayFamily": "\"Inter\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif",
265
+ "bodyFamily": "\"Inter\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif",
266
+ "monoFamily": "\"JetBrains Mono\", ui-monospace, SFMono-Regular, Menlo, monospace",
267
+ "scale": {
268
+ "xs": {
269
+ "size": "11px",
270
+ "lineHeight": "14px"
271
+ },
272
+ "sm": {
273
+ "size": "13px",
274
+ "lineHeight": "18px"
275
+ },
276
+ "base": {
277
+ "size": "14px",
278
+ "lineHeight": "20px"
279
+ },
280
+ "lg": {
281
+ "size": "16px",
282
+ "lineHeight": "22px"
283
+ },
284
+ "xl": {
285
+ "size": "18px",
286
+ "lineHeight": "24px"
287
+ },
288
+ "2xl": {
289
+ "size": "22px",
290
+ "lineHeight": "28px"
291
+ },
292
+ "3xl": {
293
+ "size": "28px",
294
+ "lineHeight": "34px"
295
+ },
296
+ "4xl": {
297
+ "size": "34px",
298
+ "lineHeight": "40px"
299
+ },
300
+ "display-1": {
301
+ "size": "44px",
302
+ "lineHeight": "48px"
303
+ },
304
+ "display-2": {
305
+ "size": "56px",
306
+ "lineHeight": "60px"
307
+ }
308
+ },
309
+ "intents": {
310
+ "headingMajor": {
311
+ "slot": "display",
312
+ "size": "2xl",
313
+ "weight": "bold"
314
+ },
315
+ "headingMinor": {
316
+ "slot": "display",
317
+ "size": "lg",
318
+ "weight": "bold"
319
+ },
320
+ "bodyEmphasis": {
321
+ "slot": "body",
322
+ "size": "sm",
323
+ "weight": "medium"
324
+ },
325
+ "bodyDefault": {
326
+ "slot": "body",
327
+ "size": "sm",
328
+ "weight": "normal"
329
+ },
330
+ "bodyQuiet": {
331
+ "slot": "body",
332
+ "size": "xs",
333
+ "weight": "normal"
334
+ },
335
+ "caption": {
336
+ "slot": "body",
337
+ "size": "xs",
338
+ "weight": "medium"
339
+ },
340
+ "numeric": {
341
+ "slot": "mono",
342
+ "size": "sm",
343
+ "weight": "medium"
344
+ }
345
+ }
346
+ },
347
+ "motion": {
348
+ "durations": {
349
+ "instant": "0ms",
350
+ "fast": "80ms",
351
+ "normal": "120ms",
352
+ "slow": "180ms",
353
+ "dramatic": "240ms"
354
+ },
355
+ "easings": {
356
+ "linear": "linear",
357
+ "standard": "linear",
358
+ "emphasized": "linear",
359
+ "spring": "linear"
360
+ }
361
+ },
362
+ "iconography": {
363
+ "family": "lucide",
364
+ "strokeWidth": "1.5",
365
+ "defaultSize": "16px"
366
+ },
367
+ "elevation": {
368
+ "cardElevation": "none",
369
+ "popoverElevation": "none",
370
+ "dialogElevation": "none",
371
+ "toastElevation": "none"
372
+ },
373
+ "geometry": {
374
+ "radiusContainer": "8px",
375
+ "radiusInteractive": "6px",
376
+ "radiusPill": "9999px",
377
+ "borderHairline": "1px",
378
+ "borderStandard": "1px",
379
+ "borderHeavy": "1px"
380
+ },
381
+ "colors": {
382
+ "primary": "#4d8bff",
383
+ "primary-hover": "#6ea2ff",
384
+ "primary-foreground": "#0a0a0c",
385
+ "secondary": "#18181b",
386
+ "secondary-hover": "#222226",
387
+ "secondary-foreground": "#fafafa",
388
+ "accent": "#4d8bff",
389
+ "accent-foreground": "#0a0a0c",
390
+ "muted": "#18181b",
391
+ "muted-foreground": "#8b8b90",
392
+ "background": "#0a0a0c",
393
+ "foreground": "#fafafa",
394
+ "card": "#121214",
395
+ "card-foreground": "#fafafa",
396
+ "surface": "#18181b",
397
+ "border": "#26262b",
398
+ "input": "#2e2e34",
399
+ "ring": "#4d8bff",
400
+ "table-header": "#18181b",
401
+ "table-border": "#26262b",
402
+ "table-row-hover": "#161618",
403
+ "surface-hover": "#222226",
404
+ "border-hover": "#3a3a40",
405
+ "placeholder": "#6b6b70",
406
+ "error": "#f97066",
407
+ "error-foreground": "#0a0a0c",
408
+ "success": "#47cd89",
409
+ "success-foreground": "#0a0a0c",
410
+ "warning": "#fdb022",
411
+ "warning-foreground": "#0a0a0c",
412
+ "info": "#4d8bff",
413
+ "info-foreground": "#0a0a0c"
414
+ },
415
+ "radii": {
416
+ "none": "0px",
417
+ "sm": "4px",
418
+ "md": "8px",
419
+ "lg": "12px",
420
+ "xl": "12px",
421
+ "full": "9999px"
422
+ },
423
+ "shadows": {
424
+ "none": "none",
425
+ "sm": "none",
426
+ "main": "none",
427
+ "lg": "none",
428
+ "inner": "none",
429
+ "hover": "none",
430
+ "active": "none"
431
+ },
432
+ "typography": {
433
+ "border-width": "1px",
434
+ "border-width-thin": "1px",
435
+ "border-width-thick": "1px",
436
+ "font-family": "\"Inter\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif",
437
+ "font-weight-normal": "400",
438
+ "font-weight-medium": "500",
439
+ "font-weight-bold": "600",
440
+ "letter-spacing": "-0.01em",
441
+ "line-height": "1.4",
442
+ "intent-numeric-family": "var(--font-family-mono)",
443
+ "icon-color": "currentColor",
444
+ "transition-fast": "80ms",
445
+ "transition-normal": "120ms",
446
+ "transition-slow": "180ms",
447
+ "transition-timing": "linear",
448
+ "hover-scale": "1",
449
+ "hover-translate-y": "0",
450
+ "hover-translate-x": "0",
451
+ "active-scale": "1",
452
+ "active-translate-y": "0",
453
+ "focus-ring-width": "2px",
454
+ "focus-ring-offset": "2px",
455
+ "focus-ring-color": "#4d8bff"
456
+ }
457
+ }
458
+ }
459
+ }