@almadar/core 9.0.0 → 9.0.1
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 +2 -2
- package/dist/builders.js +63 -10
- package/dist/builders.js.map +1 -1
- package/dist/{compose-behaviors-9ZKmnI0e.d.ts → compose-behaviors-EFvCpOGu.d.ts} +1 -1
- package/dist/factory/index.d.ts +17 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +73 -11
- package/dist/index.js.map +1 -1
- package/dist/{schema-B9mHgRPp.d.ts → schema-Dp3KfQHm.d.ts} +10555 -638
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +73 -11
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
package/dist/builders.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { bP as UISlot, u as Effect, bk as Trait, aF as RenderUIEffect, bw as TraitEventContract, z as Entity, by as TraitEventListener, bn as TraitConfig, F as EntityField, I as EntityPersistence, M as EntityRow, bB as TraitRef, bD as TraitReference } from './trait-C23jbaBB.js';
|
|
2
|
-
import {
|
|
2
|
+
import { bC as UseDeclaration, Q as EntityRef, aT as PageRef, aD as OrbitalDefinition, aL as OrbitalSchema, aS as Page, aU as PageRefObject } from './schema-Dp3KfQHm.js';
|
|
3
3
|
import { S as SExpr } from './expression-BVRFm0sV.js';
|
|
4
|
-
export { C as ComposeBehaviorsInput, a as ComposeBehaviorsResult, E as EventWiringEntry, L as LayoutStrategy, b as applyEventWiring, c as composeBehaviors, d as detectLayoutStrategy } from './compose-behaviors-
|
|
4
|
+
export { C as ComposeBehaviorsInput, a as ComposeBehaviorsResult, E as EventWiringEntry, L as LayoutStrategy, b as applyEventWiring, c as composeBehaviors, d as detectLayoutStrategy } from './compose-behaviors-EFvCpOGu.js';
|
|
5
5
|
import { AnyPatternConfig } from '@almadar/patterns';
|
|
6
6
|
import 'zod';
|
|
7
7
|
|
package/dist/builders.js
CHANGED
|
@@ -811,31 +811,84 @@ var GeometryTokensSchema = z.object({
|
|
|
811
811
|
borderStandard: z.string().optional(),
|
|
812
812
|
borderHeavy: z.string().optional()
|
|
813
813
|
});
|
|
814
|
+
var ColorTokensSchema = z.object({
|
|
815
|
+
primary: z.string().optional(),
|
|
816
|
+
primaryHover: z.string().optional(),
|
|
817
|
+
primaryForeground: z.string().optional(),
|
|
818
|
+
secondary: z.string().optional(),
|
|
819
|
+
secondaryHover: z.string().optional(),
|
|
820
|
+
secondaryForeground: z.string().optional(),
|
|
821
|
+
accent: z.string().optional(),
|
|
822
|
+
accentForeground: z.string().optional(),
|
|
823
|
+
muted: z.string().optional(),
|
|
824
|
+
mutedForeground: z.string().optional(),
|
|
825
|
+
background: z.string().optional(),
|
|
826
|
+
foreground: z.string().optional(),
|
|
827
|
+
card: z.string().optional(),
|
|
828
|
+
cardForeground: z.string().optional(),
|
|
829
|
+
surface: z.string().optional(),
|
|
830
|
+
border: z.string().optional(),
|
|
831
|
+
input: z.string().optional(),
|
|
832
|
+
ring: z.string().optional(),
|
|
833
|
+
error: z.string().optional(),
|
|
834
|
+
errorForeground: z.string().optional(),
|
|
835
|
+
success: z.string().optional(),
|
|
836
|
+
successForeground: z.string().optional(),
|
|
837
|
+
warning: z.string().optional(),
|
|
838
|
+
warningForeground: z.string().optional(),
|
|
839
|
+
info: z.string().optional(),
|
|
840
|
+
infoForeground: z.string().optional(),
|
|
841
|
+
tableHeader: z.string().optional(),
|
|
842
|
+
tableBorder: z.string().optional(),
|
|
843
|
+
tableRowHover: z.string().optional(),
|
|
844
|
+
surfaceHover: z.string().optional(),
|
|
845
|
+
borderHover: z.string().optional(),
|
|
846
|
+
placeholder: z.string().optional()
|
|
847
|
+
});
|
|
848
|
+
var IllustrationStyleSchema = z.enum([
|
|
849
|
+
"minimal",
|
|
850
|
+
"illustrated",
|
|
851
|
+
"photo",
|
|
852
|
+
"text-only",
|
|
853
|
+
"mascot"
|
|
854
|
+
]);
|
|
855
|
+
var IllustrationTokensSchema = z.object({
|
|
856
|
+
style: IllustrationStyleSchema.optional(),
|
|
857
|
+
emptyAsset: z.string().optional(),
|
|
858
|
+
loadingAsset: z.string().optional(),
|
|
859
|
+
errorAsset: z.string().optional(),
|
|
860
|
+
onboardingAsset: z.string().optional()
|
|
861
|
+
});
|
|
814
862
|
var ThemeTokensSchema = z.object({
|
|
815
|
-
|
|
816
|
-
radii: z.record(z.string(), z.string()).optional(),
|
|
817
|
-
spacing: z.record(z.string(), z.string()).optional(),
|
|
818
|
-
typography: z.record(z.string(), z.string()).optional(),
|
|
819
|
-
shadows: z.record(z.string(), z.string()).optional(),
|
|
863
|
+
color: ColorTokensSchema.optional(),
|
|
820
864
|
density: DensityTokensSchema.optional(),
|
|
821
865
|
typeScale: TypeScaleTokensSchema.optional(),
|
|
822
866
|
motion: MotionTokensSchema.optional(),
|
|
823
867
|
iconography: IconographyTokensSchema.optional(),
|
|
824
868
|
elevation: ElevationTokensSchema.optional(),
|
|
825
|
-
geometry: GeometryTokensSchema.optional()
|
|
826
|
-
|
|
827
|
-
|
|
869
|
+
geometry: GeometryTokensSchema.optional(),
|
|
870
|
+
illustration: IllustrationTokensSchema.optional(),
|
|
871
|
+
// Legacy
|
|
828
872
|
colors: z.record(z.string(), z.string()).optional(),
|
|
829
873
|
radii: z.record(z.string(), z.string()).optional(),
|
|
830
874
|
spacing: z.record(z.string(), z.string()).optional(),
|
|
831
875
|
typography: z.record(z.string(), z.string()).optional(),
|
|
832
|
-
shadows: z.record(z.string(), z.string()).optional()
|
|
876
|
+
shadows: z.record(z.string(), z.string()).optional()
|
|
877
|
+
});
|
|
878
|
+
var ThemeVariantSchema = z.object({
|
|
879
|
+
color: ColorTokensSchema.optional(),
|
|
833
880
|
density: DensityTokensSchema.optional(),
|
|
834
881
|
typeScale: TypeScaleTokensSchema.optional(),
|
|
835
882
|
motion: MotionTokensSchema.optional(),
|
|
836
883
|
iconography: IconographyTokensSchema.optional(),
|
|
837
884
|
elevation: ElevationTokensSchema.optional(),
|
|
838
|
-
geometry: GeometryTokensSchema.optional()
|
|
885
|
+
geometry: GeometryTokensSchema.optional(),
|
|
886
|
+
illustration: IllustrationTokensSchema.optional(),
|
|
887
|
+
colors: z.record(z.string(), z.string()).optional(),
|
|
888
|
+
radii: z.record(z.string(), z.string()).optional(),
|
|
889
|
+
spacing: z.record(z.string(), z.string()).optional(),
|
|
890
|
+
typography: z.record(z.string(), z.string()).optional(),
|
|
891
|
+
shadows: z.record(z.string(), z.string()).optional()
|
|
839
892
|
});
|
|
840
893
|
var ThemeDefinitionSchema = z.object({
|
|
841
894
|
name: z.string().min(1, "Theme name is required"),
|