@almadar/core 10.111.0 → 10.113.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 +4 -4
- package/dist/builders.js +79 -9
- package/dist/builders.js.map +1 -1
- package/dist/{bus-DS-GzSrs.d.ts → bus-CJ7jZVcV.d.ts} +3 -1
- package/dist/{domain-Bf6sf9NR.d.ts → domain-CkvF0zvD.d.ts} +1863 -44
- package/dist/{effect-BD47AL48.d.ts → effect-BLZKE5PN.d.ts} +51 -3
- package/dist/{entityAccess-Dc6o3AYo.d.ts → entityAccess-utY3tRcQ.d.ts} +2 -2
- package/dist/factory/index.d.ts +4 -4
- package/dist/factory/index.js +1238 -72
- package/dist/factory/index.js.map +1 -1
- package/dist/factory-runtime/index.d.ts +4 -4
- package/dist/factory-runtime/index.js +79 -9
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/fixtures.d.ts +2 -2
- package/dist/fixtures.js.map +1 -1
- package/dist/i18n/index.js +37 -4
- package/dist/i18n/index.js.map +1 -1
- package/dist/{index-DgD_3g5F.d.ts → index-BiHNP9jd.d.ts} +14 -7
- package/dist/index.d.ts +68 -17
- package/dist/index.js +17878 -5337
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +5 -5
- package/dist/mock/index.js +12 -6
- package/dist/mock/index.js.map +1 -1
- package/dist/patterns/component-mapping.json +1 -1
- package/dist/patterns/event-contracts.json +1 -8
- package/dist/patterns/index.d.ts +2496 -185
- package/dist/patterns/index.js +1249 -83
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/patterns-registry.json +1239 -73
- package/dist/patterns/registry.json +1239 -73
- package/dist/{schema-B3GE83sz.d.ts → schema-BJGPvTln.d.ts} +3208 -283
- package/dist/themes/index.d.ts +1 -1
- package/dist/themes/index.js +16232 -4971
- package/dist/themes/index.js.map +1 -1
- package/dist/{trait-BNxIGRUF.d.ts → trait-DlZMxzEB.d.ts} +61 -53
- package/dist/types/index.d.ts +7 -7
- package/dist/types/index.js +86 -10
- package/dist/types/index.js.map +1 -1
- package/dist/{types-5IX1FGgd.d.ts → types-7d7mtx4j.d.ts} +2 -2
- package/fixtures/theme-tokens/every-key.json +2 -1
- package/package.json +2 -2
- package/themes/almadar-website.json +11 -2
- package/themes/almadar.json +20 -6
- package/themes/aqua.json +422 -0
- package/themes/arabesque.json +514 -0
- package/themes/art-deco.json +342 -0
- package/themes/art-nouveau.json +342 -0
- package/themes/atelier.json +47 -189
- package/themes/bauhaus.json +332 -0
- package/themes/bloomberg-dense.json +73 -215
- package/themes/blueprint.json +332 -0
- package/themes/clay.json +57 -190
- package/themes/comic.json +110 -147
- package/themes/constructivist.json +342 -0
- package/themes/corporate.json +66 -199
- package/themes/cyberpunk.json +420 -0
- package/themes/frutiger-aero.json +424 -0
- package/themes/game-adventure.json +48 -22
- package/themes/game-rpg.json +50 -23
- package/themes/game-sci-fi.json +49 -22
- package/themes/game-ui-pack.json +41 -18
- package/themes/gazette.json +54 -196
- package/themes/glass.json +82 -203
- package/themes/gothic.json +331 -0
- package/themes/ink-wash.json +514 -0
- package/themes/kawaii.json +514 -0
- package/themes/kiosk.json +74 -202
- package/themes/linear-clean.json +71 -204
- package/themes/luxury.json +324 -0
- package/themes/mac-classic.json +332 -0
- package/themes/material.json +330 -0
- package/themes/memphis.json +339 -0
- package/themes/mid-century.json +340 -0
- package/themes/minimalist.json +64 -206
- package/themes/mudcloth.json +514 -0
- package/themes/neon.json +55 -214
- package/themes/neumorphic.json +324 -0
- package/themes/newsprint.json +332 -0
- package/themes/notion-editorial.json +55 -188
- package/themes/pixel.json +323 -0
- package/themes/prism.json +70 -71
- package/themes/retro.json +129 -166
- package/themes/risograph.json +327 -0
- package/themes/scandi.json +514 -0
- package/themes/sketch.json +332 -0
- package/themes/solarpunk.json +514 -0
- package/themes/steampunk.json +329 -0
- package/themes/swiss.json +340 -0
- package/themes/terminal.json +89 -157
- package/themes/trait-wars.json +146 -185
- package/themes/ukiyo-e.json +514 -0
- package/themes/vaporwave.json +422 -0
- package/themes/victorian.json +339 -0
- package/themes/wabi-sabi.json +514 -0
- package/themes/win95.json +326 -0
- package/themes/wireframe.json +48 -181
- package/themes/zine.json +332 -0
package/dist/builders.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { I as IdentityLedger, A as AnyPatternConfig, U as UISlot, c as Effect, l as RenderBinding, m as RenderUIEffect, e as EntityId, f as Entity, E as EntityField, a as EntityPersistence, g as EntityRow } from './effect-
|
|
2
|
-
import { a as OrbitalDefinition, O as OrbitalSchema, U as UseDeclaration, E as EntityRef, b as ExpectDeclaration, P as PageRef, c as Page, d as PageRefObject } from './schema-
|
|
3
|
-
import { b as TraitConfig, h as Trait, T as TraitEventListener, i as CallSiteConfig, k as TraitEventContract, d as TraitRef, a as TraitReference } from './trait-
|
|
1
|
+
import { I as IdentityLedger, A as AnyPatternConfig, U as UISlot, c as Effect, l as RenderBinding, m as RenderUIEffect, e as EntityId, f as Entity, E as EntityField, a as EntityPersistence, g as EntityRow } from './effect-BLZKE5PN.js';
|
|
2
|
+
import { a as OrbitalDefinition, O as OrbitalSchema, U as UseDeclaration, E as EntityRef, b as ExpectDeclaration, P as PageRef, c as Page, d as PageRefObject } from './schema-BJGPvTln.js';
|
|
3
|
+
import { b as TraitConfig, h as Trait, T as TraitEventListener, i as CallSiteConfig, k as TraitEventContract, d as TraitRef, a as TraitReference } from './trait-DlZMxzEB.js';
|
|
4
4
|
import { S as SExpr } from './expression-Dz84kipC.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import './json-D8gmyK3l.js';
|
|
7
|
-
import './domain-
|
|
7
|
+
import './domain-CkvF0zvD.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Event Wiring
|
package/dist/builders.js
CHANGED
|
@@ -611,6 +611,7 @@ var ConfigFieldDeclarationSchema = z.object({
|
|
|
611
611
|
items: ConfigFieldItemsDeclarationSchema.optional(),
|
|
612
612
|
properties: z.lazy(() => z.record(TraitEntityFieldSchema)).optional(),
|
|
613
613
|
forwardedFrom: z.string().optional(),
|
|
614
|
+
nestedForwardedFrom: z.array(z.string()).optional(),
|
|
614
615
|
payloadFor: z.string().optional()
|
|
615
616
|
});
|
|
616
617
|
var DeclaredTraitConfigSchema = z.record(
|
|
@@ -1143,10 +1144,53 @@ var TypeIntentMapSchema = z.object({
|
|
|
1143
1144
|
caption: TypeIntentSchema.optional(),
|
|
1144
1145
|
numeric: TypeIntentSchema.optional()
|
|
1145
1146
|
});
|
|
1147
|
+
function isWellFormedFontStack(stack) {
|
|
1148
|
+
const items = [];
|
|
1149
|
+
let current = "";
|
|
1150
|
+
let quote = null;
|
|
1151
|
+
let depth = 0;
|
|
1152
|
+
for (const ch of stack) {
|
|
1153
|
+
if (quote) {
|
|
1154
|
+
current += ch;
|
|
1155
|
+
if (ch === quote) quote = null;
|
|
1156
|
+
continue;
|
|
1157
|
+
}
|
|
1158
|
+
if (ch === '"' || ch === "'") quote = ch;
|
|
1159
|
+
else if (ch === "(") depth++;
|
|
1160
|
+
else if (ch === ")") depth--;
|
|
1161
|
+
if (ch === "," && depth === 0) {
|
|
1162
|
+
items.push(current.trim());
|
|
1163
|
+
current = "";
|
|
1164
|
+
continue;
|
|
1165
|
+
}
|
|
1166
|
+
current += ch;
|
|
1167
|
+
}
|
|
1168
|
+
if (quote || depth !== 0) return false;
|
|
1169
|
+
items.push(current.trim());
|
|
1170
|
+
return items.every(
|
|
1171
|
+
(item) => /^"[^"]+"$/.test(item) || /^'[^']+'$/.test(item) || /^-?[A-Za-z][\w-]*( [A-Za-z0-9][\w-]*)*$/.test(item) || /^var\(--[\w-]+(,.*)?\)$/.test(item)
|
|
1172
|
+
);
|
|
1173
|
+
}
|
|
1174
|
+
var FontStackSchema = z.string().refine(isWellFormedFontStack, {
|
|
1175
|
+
message: "Malformed CSS font-family stack (each family must be comma-separated and fully quoted or bare)"
|
|
1176
|
+
});
|
|
1177
|
+
var LegacyTypographySchema = z.record(z.string(), z.string()).superRefine((map, ctx) => {
|
|
1178
|
+
for (const [key, value] of Object.entries(map)) {
|
|
1179
|
+
if (key.startsWith("font-family") && !isWellFormedFontStack(value)) {
|
|
1180
|
+
ctx.addIssue({ code: z.ZodIssueCode.custom, path: [key], message: `Malformed CSS font-family stack: ${value}` });
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
});
|
|
1146
1184
|
var TypeScaleTokensSchema = z.object({
|
|
1147
|
-
displayFamily:
|
|
1148
|
-
bodyFamily:
|
|
1149
|
-
monoFamily:
|
|
1185
|
+
displayFamily: FontStackSchema.optional(),
|
|
1186
|
+
bodyFamily: FontStackSchema.optional(),
|
|
1187
|
+
monoFamily: FontStackSchema.optional(),
|
|
1188
|
+
fontImport: z.string().optional(),
|
|
1189
|
+
headingWeight: z.string().optional(),
|
|
1190
|
+
headingTransform: z.string().optional(),
|
|
1191
|
+
headingTracking: z.string().optional(),
|
|
1192
|
+
headingStyle: z.string().optional(),
|
|
1193
|
+
headingShadow: z.string().optional(),
|
|
1150
1194
|
scale: TypeScaleSchema.optional(),
|
|
1151
1195
|
intents: TypeIntentMapSchema.optional()
|
|
1152
1196
|
});
|
|
@@ -1188,10 +1232,20 @@ var MotionIntentMapSchema = z.object({
|
|
|
1188
1232
|
expand: MotionIntentSchema.optional(),
|
|
1189
1233
|
transition: MotionIntentSchema.optional()
|
|
1190
1234
|
});
|
|
1235
|
+
var MotionShapeTokensSchema = z.object({
|
|
1236
|
+
modalEnter: z.string().optional(),
|
|
1237
|
+
modalExit: z.string().optional(),
|
|
1238
|
+
popoverEnter: z.string().optional(),
|
|
1239
|
+
popoverExit: z.string().optional(),
|
|
1240
|
+
toastEnter: z.string().optional(),
|
|
1241
|
+
toastExit: z.string().optional(),
|
|
1242
|
+
pageEnter: z.string().optional()
|
|
1243
|
+
});
|
|
1191
1244
|
var MotionTokensSchema = z.object({
|
|
1192
1245
|
durations: MotionDurationPaletteSchema.optional(),
|
|
1193
1246
|
easings: MotionEasingPaletteSchema.optional(),
|
|
1194
|
-
intents: MotionIntentMapSchema.optional()
|
|
1247
|
+
intents: MotionIntentMapSchema.optional(),
|
|
1248
|
+
shapes: MotionShapeTokensSchema.optional()
|
|
1195
1249
|
});
|
|
1196
1250
|
var IconFamilySchema = z.enum([
|
|
1197
1251
|
"lucide",
|
|
@@ -1210,7 +1264,9 @@ var ElevationTokensSchema = z.object({
|
|
|
1210
1264
|
cardElevation: z.string().optional(),
|
|
1211
1265
|
popoverElevation: z.string().optional(),
|
|
1212
1266
|
dialogElevation: z.string().optional(),
|
|
1213
|
-
toastElevation: z.string().optional()
|
|
1267
|
+
toastElevation: z.string().optional(),
|
|
1268
|
+
interactiveElevation: z.string().optional(),
|
|
1269
|
+
pressedElevation: z.string().optional()
|
|
1214
1270
|
});
|
|
1215
1271
|
var GeometryTokensSchema = z.object({
|
|
1216
1272
|
radiusContainer: z.string().optional(),
|
|
@@ -1218,7 +1274,17 @@ var GeometryTokensSchema = z.object({
|
|
|
1218
1274
|
radiusPill: z.string().optional(),
|
|
1219
1275
|
borderHairline: z.string().optional(),
|
|
1220
1276
|
borderStandard: z.string().optional(),
|
|
1221
|
-
borderHeavy: z.string().optional()
|
|
1277
|
+
borderHeavy: z.string().optional(),
|
|
1278
|
+
cornerShape: z.string().optional(),
|
|
1279
|
+
cornerShapePill: z.string().optional(),
|
|
1280
|
+
borderStyle: z.string().optional(),
|
|
1281
|
+
borderStyleInteractive: z.string().optional()
|
|
1282
|
+
});
|
|
1283
|
+
var SurfaceTokensSchema = z.object({
|
|
1284
|
+
backdrop: z.string().optional(),
|
|
1285
|
+
cardImage: z.string().optional(),
|
|
1286
|
+
pageImage: z.string().optional(),
|
|
1287
|
+
pageImageSize: z.string().optional()
|
|
1222
1288
|
});
|
|
1223
1289
|
var COLOR_TOKEN_KEY_LIST = [
|
|
1224
1290
|
"primary",
|
|
@@ -1252,7 +1318,8 @@ var COLOR_TOKEN_KEY_LIST = [
|
|
|
1252
1318
|
"tableRowHover",
|
|
1253
1319
|
"surfaceHover",
|
|
1254
1320
|
"borderHover",
|
|
1255
|
-
"placeholder"
|
|
1321
|
+
"placeholder",
|
|
1322
|
+
"scrim"
|
|
1256
1323
|
];
|
|
1257
1324
|
var COLOR_TOKEN_KEYS = COLOR_TOKEN_KEY_LIST;
|
|
1258
1325
|
var ColorTokensSchema = z.object(
|
|
@@ -1281,11 +1348,12 @@ var ThemeTokensSchema = z.object({
|
|
|
1281
1348
|
elevation: ElevationTokensSchema.optional(),
|
|
1282
1349
|
geometry: GeometryTokensSchema.optional(),
|
|
1283
1350
|
illustration: IllustrationTokensSchema.optional(),
|
|
1351
|
+
surface: SurfaceTokensSchema.optional(),
|
|
1284
1352
|
// Legacy
|
|
1285
1353
|
colors: z.record(z.string(), z.string()).optional(),
|
|
1286
1354
|
radii: z.record(z.string(), z.string()).optional(),
|
|
1287
1355
|
spacing: z.record(z.string(), z.string()).optional(),
|
|
1288
|
-
typography:
|
|
1356
|
+
typography: LegacyTypographySchema.optional(),
|
|
1289
1357
|
shadows: z.record(z.string(), z.string()).optional()
|
|
1290
1358
|
});
|
|
1291
1359
|
var ThemeVariantSchema = z.object({
|
|
@@ -1297,14 +1365,16 @@ var ThemeVariantSchema = z.object({
|
|
|
1297
1365
|
elevation: ElevationTokensSchema.optional(),
|
|
1298
1366
|
geometry: GeometryTokensSchema.optional(),
|
|
1299
1367
|
illustration: IllustrationTokensSchema.optional(),
|
|
1368
|
+
surface: SurfaceTokensSchema.optional(),
|
|
1300
1369
|
colors: z.record(z.string(), z.string()).optional(),
|
|
1301
1370
|
radii: z.record(z.string(), z.string()).optional(),
|
|
1302
1371
|
spacing: z.record(z.string(), z.string()).optional(),
|
|
1303
|
-
typography:
|
|
1372
|
+
typography: LegacyTypographySchema.optional(),
|
|
1304
1373
|
shadows: z.record(z.string(), z.string()).optional()
|
|
1305
1374
|
});
|
|
1306
1375
|
var ThemeDefinitionSchema = z.object({
|
|
1307
1376
|
name: z.string().min(1, "Theme name is required"),
|
|
1377
|
+
displayName: z.string().optional(),
|
|
1308
1378
|
tokens: ThemeTokensSchema,
|
|
1309
1379
|
variants: z.record(z.string(), ThemeVariantSchema).optional()
|
|
1310
1380
|
});
|