@almadar/core 10.110.0 → 10.112.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/builders.d.ts +5 -5
- package/dist/builders.js +78 -9
- package/dist/builders.js.map +1 -1
- package/dist/{bus-CuAsuaHW.d.ts → bus-BZ9ekDiD.d.ts} +4 -2
- package/dist/{domain-Bf6sf9NR.d.ts → domain-DV8lmH3r.d.ts} +1857 -39
- package/dist/{effect-2JoKc8Zj.d.ts → effect-B9nMpTKN.d.ts} +27 -3
- package/dist/{entityAccess-CuKaSX0N.d.ts → entityAccess-Ak_ZvGXZ.d.ts} +3 -3
- package/dist/{expression-DhTTuu2W.d.ts → expression-Dz84kipC.d.ts} +4 -2
- package/dist/factory/index.d.ts +81 -7
- package/dist/factory/index.js +560 -16
- package/dist/factory/index.js.map +1 -1
- package/dist/factory-runtime/index.d.ts +5 -5
- package/dist/factory-runtime/index.js +78 -9
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/fixtures.d.ts +3 -3
- package/dist/fixtures.js +1 -1
- package/dist/fixtures.js.map +1 -1
- package/dist/i18n/index.js +36 -4
- package/dist/i18n/index.js.map +1 -1
- package/dist/{index-bC0n_h8G.d.ts → index-DmkUMeXz.d.ts} +79 -10
- package/dist/index.d.ts +71 -20
- package/dist/index.js +17101 -5233
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +20 -7
- package/dist/mock/index.js +38 -11
- package/dist/mock/index.js.map +1 -1
- package/dist/patterns/component-mapping.json +1 -1
- package/dist/patterns/event-contracts.json +1 -1
- package/dist/patterns/index.d.ts +1042 -228
- package/dist/patterns/index.js +392 -13
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/patterns-registry.json +382 -10
- package/dist/patterns/registry.json +382 -10
- package/dist/{schema-DqBoP7Ab.d.ts → schema-C-HLTS_Q.d.ts} +2969 -44
- package/dist/state-machine/index.d.ts +1 -1
- package/dist/state-machine/index.js +32 -7
- package/dist/state-machine/index.js.map +1 -1
- package/dist/themes/index.d.ts +1 -1
- package/dist/themes/index.js +16303 -5151
- package/dist/themes/index.js.map +1 -1
- package/dist/{trait-S5uhI089.d.ts → trait-CRgDZSy_.d.ts} +10 -2
- package/dist/types/index.d.ts +8 -8
- package/dist/types/index.js +115 -10
- package/dist/types/index.js.map +1 -1
- package/dist/{types-2uS2WfIo.d.ts → types-C3nlpTDW.d.ts} +2 -2
- package/package.json +1 -1
- package/themes/almadar-website.json +7 -0
- package/themes/almadar.json +16 -4
- package/themes/aqua.json +420 -0
- package/themes/arabesque.json +512 -0
- package/themes/art-deco.json +340 -0
- package/themes/art-nouveau.json +340 -0
- package/themes/atelier.json +43 -187
- package/themes/bauhaus.json +330 -0
- package/themes/bloomberg-dense.json +69 -213
- package/themes/blueprint.json +330 -0
- package/themes/clay.json +53 -188
- package/themes/comic.json +107 -146
- package/themes/constructivist.json +340 -0
- package/themes/corporate.json +62 -197
- package/themes/cyberpunk.json +418 -0
- package/themes/frutiger-aero.json +422 -0
- package/themes/game-adventure.json +46 -21
- package/themes/game-rpg.json +48 -22
- package/themes/game-sci-fi.json +47 -21
- package/themes/game-ui-pack.json +39 -17
- package/themes/gazette.json +50 -194
- package/themes/glass.json +78 -201
- package/themes/gothic.json +329 -0
- package/themes/ink-wash.json +512 -0
- package/themes/kawaii.json +512 -0
- package/themes/kiosk.json +70 -200
- package/themes/linear-clean.json +67 -202
- package/themes/luxury.json +322 -0
- package/themes/mac-classic.json +330 -0
- package/themes/material.json +328 -0
- package/themes/memphis.json +337 -0
- package/themes/mid-century.json +338 -0
- package/themes/minimalist.json +60 -204
- package/themes/mudcloth.json +512 -0
- package/themes/neon.json +51 -212
- package/themes/neumorphic.json +322 -0
- package/themes/newsprint.json +330 -0
- package/themes/notion-editorial.json +51 -186
- package/themes/pixel.json +321 -0
- package/themes/prism.json +66 -69
- package/themes/retro.json +126 -165
- package/themes/risograph.json +325 -0
- package/themes/scandi.json +512 -0
- package/themes/sketch.json +330 -0
- package/themes/solarpunk.json +512 -0
- package/themes/steampunk.json +327 -0
- package/themes/swiss.json +338 -0
- package/themes/terminal.json +86 -156
- package/themes/trait-wars.json +143 -184
- package/themes/ukiyo-e.json +512 -0
- package/themes/vaporwave.json +420 -0
- package/themes/victorian.json +337 -0
- package/themes/wabi-sabi.json +512 -0
- package/themes/win95.json +324 -0
- package/themes/wireframe.json +44 -179
- package/themes/zine.json +330 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { O as OrbitalSchema, a as OrbitalDefinition } from '../schema-
|
|
2
|
-
import { g as TraitConfigValue, i as CallSiteConfig, j as CallSiteConfigEntry, h as Trait } from '../trait-
|
|
3
|
-
import { E as EntityField, a as EntityPersistence } from '../effect-
|
|
1
|
+
import { O as OrbitalSchema, a as OrbitalDefinition } from '../schema-C-HLTS_Q.js';
|
|
2
|
+
import { g as TraitConfigValue, i as CallSiteConfig, j as CallSiteConfigEntry, h as Trait } from '../trait-CRgDZSy_.js';
|
|
3
|
+
import { E as EntityField, a as EntityPersistence } from '../effect-B9nMpTKN.js';
|
|
4
4
|
import { MakeTraitRefOpts } from '../builders.js';
|
|
5
5
|
import '../json-D8gmyK3l.js';
|
|
6
|
-
import '../expression-
|
|
6
|
+
import '../expression-Dz84kipC.js';
|
|
7
7
|
import 'zod';
|
|
8
|
-
import '../domain-
|
|
8
|
+
import '../domain-DV8lmH3r.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Orbital factory manifest types — shared across all packages.
|
|
@@ -418,7 +418,7 @@ var SExprAtomSchema = z.union([
|
|
|
418
418
|
var SExprSchema = z.lazy(
|
|
419
419
|
() => z.union([
|
|
420
420
|
SExprAtomSchema,
|
|
421
|
-
z.array(
|
|
421
|
+
z.array(SExprDataSchema).min(1).refine(
|
|
422
422
|
(arr) => typeof arr[0] === "string",
|
|
423
423
|
{ message: "S-expression array must have a string operator as first element" }
|
|
424
424
|
)
|
|
@@ -652,6 +652,7 @@ var ConfigFieldDeclarationSchema = z.object({
|
|
|
652
652
|
items: ConfigFieldItemsDeclarationSchema.optional(),
|
|
653
653
|
properties: z.lazy(() => z.record(TraitEntityFieldSchema)).optional(),
|
|
654
654
|
forwardedFrom: z.string().optional(),
|
|
655
|
+
nestedForwardedFrom: z.array(z.string()).optional(),
|
|
655
656
|
payloadFor: z.string().optional()
|
|
656
657
|
});
|
|
657
658
|
var DeclaredTraitConfigSchema = z.record(
|
|
@@ -1181,10 +1182,53 @@ var TypeIntentMapSchema = z.object({
|
|
|
1181
1182
|
caption: TypeIntentSchema.optional(),
|
|
1182
1183
|
numeric: TypeIntentSchema.optional()
|
|
1183
1184
|
});
|
|
1185
|
+
function isWellFormedFontStack(stack) {
|
|
1186
|
+
const items = [];
|
|
1187
|
+
let current = "";
|
|
1188
|
+
let quote = null;
|
|
1189
|
+
let depth = 0;
|
|
1190
|
+
for (const ch of stack) {
|
|
1191
|
+
if (quote) {
|
|
1192
|
+
current += ch;
|
|
1193
|
+
if (ch === quote) quote = null;
|
|
1194
|
+
continue;
|
|
1195
|
+
}
|
|
1196
|
+
if (ch === '"' || ch === "'") quote = ch;
|
|
1197
|
+
else if (ch === "(") depth++;
|
|
1198
|
+
else if (ch === ")") depth--;
|
|
1199
|
+
if (ch === "," && depth === 0) {
|
|
1200
|
+
items.push(current.trim());
|
|
1201
|
+
current = "";
|
|
1202
|
+
continue;
|
|
1203
|
+
}
|
|
1204
|
+
current += ch;
|
|
1205
|
+
}
|
|
1206
|
+
if (quote || depth !== 0) return false;
|
|
1207
|
+
items.push(current.trim());
|
|
1208
|
+
return items.every(
|
|
1209
|
+
(item) => /^"[^"]+"$/.test(item) || /^'[^']+'$/.test(item) || /^-?[A-Za-z][\w-]*( [A-Za-z0-9][\w-]*)*$/.test(item) || /^var\(--[\w-]+(,.*)?\)$/.test(item)
|
|
1210
|
+
);
|
|
1211
|
+
}
|
|
1212
|
+
var FontStackSchema = z.string().refine(isWellFormedFontStack, {
|
|
1213
|
+
message: "Malformed CSS font-family stack (each family must be comma-separated and fully quoted or bare)"
|
|
1214
|
+
});
|
|
1215
|
+
var LegacyTypographySchema = z.record(z.string(), z.string()).superRefine((map, ctx) => {
|
|
1216
|
+
for (const [key, value] of Object.entries(map)) {
|
|
1217
|
+
if (key.startsWith("font-family") && !isWellFormedFontStack(value)) {
|
|
1218
|
+
ctx.addIssue({ code: z.ZodIssueCode.custom, path: [key], message: `Malformed CSS font-family stack: ${value}` });
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
});
|
|
1184
1222
|
var TypeScaleTokensSchema = z.object({
|
|
1185
|
-
displayFamily:
|
|
1186
|
-
bodyFamily:
|
|
1187
|
-
monoFamily:
|
|
1223
|
+
displayFamily: FontStackSchema.optional(),
|
|
1224
|
+
bodyFamily: FontStackSchema.optional(),
|
|
1225
|
+
monoFamily: FontStackSchema.optional(),
|
|
1226
|
+
fontImport: z.string().optional(),
|
|
1227
|
+
headingWeight: z.string().optional(),
|
|
1228
|
+
headingTransform: z.string().optional(),
|
|
1229
|
+
headingTracking: z.string().optional(),
|
|
1230
|
+
headingStyle: z.string().optional(),
|
|
1231
|
+
headingShadow: z.string().optional(),
|
|
1188
1232
|
scale: TypeScaleSchema.optional(),
|
|
1189
1233
|
intents: TypeIntentMapSchema.optional()
|
|
1190
1234
|
});
|
|
@@ -1226,10 +1270,20 @@ var MotionIntentMapSchema = z.object({
|
|
|
1226
1270
|
expand: MotionIntentSchema.optional(),
|
|
1227
1271
|
transition: MotionIntentSchema.optional()
|
|
1228
1272
|
});
|
|
1273
|
+
var MotionShapeTokensSchema = z.object({
|
|
1274
|
+
modalEnter: z.string().optional(),
|
|
1275
|
+
modalExit: z.string().optional(),
|
|
1276
|
+
popoverEnter: z.string().optional(),
|
|
1277
|
+
popoverExit: z.string().optional(),
|
|
1278
|
+
toastEnter: z.string().optional(),
|
|
1279
|
+
toastExit: z.string().optional(),
|
|
1280
|
+
pageEnter: z.string().optional()
|
|
1281
|
+
});
|
|
1229
1282
|
var MotionTokensSchema = z.object({
|
|
1230
1283
|
durations: MotionDurationPaletteSchema.optional(),
|
|
1231
1284
|
easings: MotionEasingPaletteSchema.optional(),
|
|
1232
|
-
intents: MotionIntentMapSchema.optional()
|
|
1285
|
+
intents: MotionIntentMapSchema.optional(),
|
|
1286
|
+
shapes: MotionShapeTokensSchema.optional()
|
|
1233
1287
|
});
|
|
1234
1288
|
var IconFamilySchema = z.enum([
|
|
1235
1289
|
"lucide",
|
|
@@ -1248,7 +1302,9 @@ var ElevationTokensSchema = z.object({
|
|
|
1248
1302
|
cardElevation: z.string().optional(),
|
|
1249
1303
|
popoverElevation: z.string().optional(),
|
|
1250
1304
|
dialogElevation: z.string().optional(),
|
|
1251
|
-
toastElevation: z.string().optional()
|
|
1305
|
+
toastElevation: z.string().optional(),
|
|
1306
|
+
interactiveElevation: z.string().optional(),
|
|
1307
|
+
pressedElevation: z.string().optional()
|
|
1252
1308
|
});
|
|
1253
1309
|
var GeometryTokensSchema = z.object({
|
|
1254
1310
|
radiusContainer: z.string().optional(),
|
|
@@ -1256,7 +1312,17 @@ var GeometryTokensSchema = z.object({
|
|
|
1256
1312
|
radiusPill: z.string().optional(),
|
|
1257
1313
|
borderHairline: z.string().optional(),
|
|
1258
1314
|
borderStandard: z.string().optional(),
|
|
1259
|
-
borderHeavy: z.string().optional()
|
|
1315
|
+
borderHeavy: z.string().optional(),
|
|
1316
|
+
cornerShape: z.string().optional(),
|
|
1317
|
+
cornerShapePill: z.string().optional(),
|
|
1318
|
+
borderStyle: z.string().optional(),
|
|
1319
|
+
borderStyleInteractive: z.string().optional()
|
|
1320
|
+
});
|
|
1321
|
+
var SurfaceTokensSchema = z.object({
|
|
1322
|
+
backdrop: z.string().optional(),
|
|
1323
|
+
cardImage: z.string().optional(),
|
|
1324
|
+
pageImage: z.string().optional(),
|
|
1325
|
+
pageImageSize: z.string().optional()
|
|
1260
1326
|
});
|
|
1261
1327
|
var COLOR_TOKEN_KEY_LIST = [
|
|
1262
1328
|
"primary",
|
|
@@ -1319,11 +1385,12 @@ var ThemeTokensSchema = z.object({
|
|
|
1319
1385
|
elevation: ElevationTokensSchema.optional(),
|
|
1320
1386
|
geometry: GeometryTokensSchema.optional(),
|
|
1321
1387
|
illustration: IllustrationTokensSchema.optional(),
|
|
1388
|
+
surface: SurfaceTokensSchema.optional(),
|
|
1322
1389
|
// Legacy
|
|
1323
1390
|
colors: z.record(z.string(), z.string()).optional(),
|
|
1324
1391
|
radii: z.record(z.string(), z.string()).optional(),
|
|
1325
1392
|
spacing: z.record(z.string(), z.string()).optional(),
|
|
1326
|
-
typography:
|
|
1393
|
+
typography: LegacyTypographySchema.optional(),
|
|
1327
1394
|
shadows: z.record(z.string(), z.string()).optional()
|
|
1328
1395
|
});
|
|
1329
1396
|
var ThemeVariantSchema = z.object({
|
|
@@ -1335,14 +1402,16 @@ var ThemeVariantSchema = z.object({
|
|
|
1335
1402
|
elevation: ElevationTokensSchema.optional(),
|
|
1336
1403
|
geometry: GeometryTokensSchema.optional(),
|
|
1337
1404
|
illustration: IllustrationTokensSchema.optional(),
|
|
1405
|
+
surface: SurfaceTokensSchema.optional(),
|
|
1338
1406
|
colors: z.record(z.string(), z.string()).optional(),
|
|
1339
1407
|
radii: z.record(z.string(), z.string()).optional(),
|
|
1340
1408
|
spacing: z.record(z.string(), z.string()).optional(),
|
|
1341
|
-
typography:
|
|
1409
|
+
typography: LegacyTypographySchema.optional(),
|
|
1342
1410
|
shadows: z.record(z.string(), z.string()).optional()
|
|
1343
1411
|
});
|
|
1344
1412
|
var ThemeDefinitionSchema = z.object({
|
|
1345
1413
|
name: z.string().min(1, "Theme name is required"),
|
|
1414
|
+
displayName: z.string().optional(),
|
|
1346
1415
|
tokens: ThemeTokensSchema,
|
|
1347
1416
|
variants: z.record(z.string(), ThemeVariantSchema).optional()
|
|
1348
1417
|
});
|