@almadar/core 8.8.2 → 9.0.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 +3 -3
- package/dist/builders.js +167 -2
- package/dist/builders.js.map +1 -1
- package/dist/{compose-behaviors-5X8HNONp.d.ts → compose-behaviors-9ZKmnI0e.d.ts} +1 -1
- package/dist/factory/index.d.ts +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +168 -3
- package/dist/index.js.map +1 -1
- package/dist/schema-B9mHgRPp.d.ts +47624 -0
- package/dist/types/index.d.ts +6 -6
- package/dist/types/index.js +168 -3
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/schema-mcIpWPzS.d.ts +0 -19771
- package/dist/{trait-BVLBQ9uk.d.ts → trait-C23jbaBB.d.ts} +24 -24
package/dist/builders.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
2
|
-
import {
|
|
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 { be as UseDeclaration, I as EntityRef, az as PageRef, aj as OrbitalDefinition, ar as OrbitalSchema, ay as Page, aA as PageRefObject } from './schema-B9mHgRPp.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-9ZKmnI0e.js';
|
|
5
5
|
import { AnyPatternConfig } from '@almadar/patterns';
|
|
6
6
|
import 'zod';
|
|
7
7
|
|
package/dist/builders.js
CHANGED
|
@@ -658,19 +658,184 @@ var DesignPreferencesSchema = z.object({
|
|
|
658
658
|
darkMode: z.boolean().optional(),
|
|
659
659
|
uxHints: UXHintsSchema.optional()
|
|
660
660
|
});
|
|
661
|
+
var SpacingScaleSchema = z.object({
|
|
662
|
+
space0: z.string().optional(),
|
|
663
|
+
space1: z.string().optional(),
|
|
664
|
+
space2: z.string().optional(),
|
|
665
|
+
space3: z.string().optional(),
|
|
666
|
+
space4: z.string().optional(),
|
|
667
|
+
space5: z.string().optional(),
|
|
668
|
+
space6: z.string().optional(),
|
|
669
|
+
space7: z.string().optional(),
|
|
670
|
+
space8: z.string().optional(),
|
|
671
|
+
space9: z.string().optional(),
|
|
672
|
+
space10: z.string().optional(),
|
|
673
|
+
space11: z.string().optional(),
|
|
674
|
+
space12: z.string().optional()
|
|
675
|
+
});
|
|
676
|
+
var DensityTokensSchema = z.object({
|
|
677
|
+
spacing: SpacingScaleSchema.optional(),
|
|
678
|
+
buttonHeightSm: z.string().optional(),
|
|
679
|
+
buttonHeightMd: z.string().optional(),
|
|
680
|
+
buttonHeightLg: z.string().optional(),
|
|
681
|
+
inputHeightSm: z.string().optional(),
|
|
682
|
+
inputHeightMd: z.string().optional(),
|
|
683
|
+
inputHeightLg: z.string().optional(),
|
|
684
|
+
rowHeightCompact: z.string().optional(),
|
|
685
|
+
rowHeightNormal: z.string().optional(),
|
|
686
|
+
rowHeightSpacious: z.string().optional(),
|
|
687
|
+
cardPaddingSm: z.string().optional(),
|
|
688
|
+
cardPaddingMd: z.string().optional(),
|
|
689
|
+
cardPaddingLg: z.string().optional(),
|
|
690
|
+
dialogPadding: z.string().optional(),
|
|
691
|
+
sectionGap: z.string().optional()
|
|
692
|
+
});
|
|
693
|
+
var TypeScaleEntrySchema = z.object({
|
|
694
|
+
size: z.string(),
|
|
695
|
+
lineHeight: z.string()
|
|
696
|
+
});
|
|
697
|
+
var TypeSlotSchema = z.enum(["display", "body", "mono"]);
|
|
698
|
+
var TypeSizeKeySchema = z.enum([
|
|
699
|
+
"xs",
|
|
700
|
+
"sm",
|
|
701
|
+
"base",
|
|
702
|
+
"lg",
|
|
703
|
+
"xl",
|
|
704
|
+
"2xl",
|
|
705
|
+
"3xl",
|
|
706
|
+
"4xl",
|
|
707
|
+
"display-1",
|
|
708
|
+
"display-2"
|
|
709
|
+
]);
|
|
710
|
+
var TypeWeightSchema = z.enum(["normal", "medium", "bold"]);
|
|
711
|
+
var TypeIntentSchema = z.object({
|
|
712
|
+
slot: TypeSlotSchema,
|
|
713
|
+
size: TypeSizeKeySchema,
|
|
714
|
+
weight: TypeWeightSchema
|
|
715
|
+
});
|
|
716
|
+
var TypeScaleSchema = z.object({
|
|
717
|
+
xs: TypeScaleEntrySchema.optional(),
|
|
718
|
+
sm: TypeScaleEntrySchema.optional(),
|
|
719
|
+
base: TypeScaleEntrySchema.optional(),
|
|
720
|
+
lg: TypeScaleEntrySchema.optional(),
|
|
721
|
+
xl: TypeScaleEntrySchema.optional(),
|
|
722
|
+
"2xl": TypeScaleEntrySchema.optional(),
|
|
723
|
+
"3xl": TypeScaleEntrySchema.optional(),
|
|
724
|
+
"4xl": TypeScaleEntrySchema.optional(),
|
|
725
|
+
"display-1": TypeScaleEntrySchema.optional(),
|
|
726
|
+
"display-2": TypeScaleEntrySchema.optional()
|
|
727
|
+
});
|
|
728
|
+
var TypeIntentMapSchema = z.object({
|
|
729
|
+
headingMajor: TypeIntentSchema.optional(),
|
|
730
|
+
headingMinor: TypeIntentSchema.optional(),
|
|
731
|
+
bodyEmphasis: TypeIntentSchema.optional(),
|
|
732
|
+
bodyDefault: TypeIntentSchema.optional(),
|
|
733
|
+
bodyQuiet: TypeIntentSchema.optional(),
|
|
734
|
+
caption: TypeIntentSchema.optional(),
|
|
735
|
+
numeric: TypeIntentSchema.optional()
|
|
736
|
+
});
|
|
737
|
+
var TypeScaleTokensSchema = z.object({
|
|
738
|
+
displayFamily: z.string().optional(),
|
|
739
|
+
bodyFamily: z.string().optional(),
|
|
740
|
+
monoFamily: z.string().optional(),
|
|
741
|
+
scale: TypeScaleSchema.optional(),
|
|
742
|
+
intents: TypeIntentMapSchema.optional()
|
|
743
|
+
});
|
|
744
|
+
var MotionDurationKeySchema = z.enum([
|
|
745
|
+
"instant",
|
|
746
|
+
"fast",
|
|
747
|
+
"normal",
|
|
748
|
+
"slow",
|
|
749
|
+
"dramatic"
|
|
750
|
+
]);
|
|
751
|
+
var MotionEasingKeySchema = z.enum([
|
|
752
|
+
"linear",
|
|
753
|
+
"standard",
|
|
754
|
+
"emphasized",
|
|
755
|
+
"spring"
|
|
756
|
+
]);
|
|
757
|
+
var MotionIntentSchema = z.object({
|
|
758
|
+
duration: MotionDurationKeySchema,
|
|
759
|
+
easing: MotionEasingKeySchema
|
|
760
|
+
});
|
|
761
|
+
var MotionDurationPaletteSchema = z.object({
|
|
762
|
+
instant: z.string().optional(),
|
|
763
|
+
fast: z.string().optional(),
|
|
764
|
+
normal: z.string().optional(),
|
|
765
|
+
slow: z.string().optional(),
|
|
766
|
+
dramatic: z.string().optional()
|
|
767
|
+
});
|
|
768
|
+
var MotionEasingPaletteSchema = z.object({
|
|
769
|
+
linear: z.string().optional(),
|
|
770
|
+
standard: z.string().optional(),
|
|
771
|
+
emphasized: z.string().optional(),
|
|
772
|
+
spring: z.string().optional()
|
|
773
|
+
});
|
|
774
|
+
var MotionIntentMapSchema = z.object({
|
|
775
|
+
enter: MotionIntentSchema.optional(),
|
|
776
|
+
exit: MotionIntentSchema.optional(),
|
|
777
|
+
hover: MotionIntentSchema.optional(),
|
|
778
|
+
press: MotionIntentSchema.optional(),
|
|
779
|
+
expand: MotionIntentSchema.optional(),
|
|
780
|
+
transition: MotionIntentSchema.optional()
|
|
781
|
+
});
|
|
782
|
+
var MotionTokensSchema = z.object({
|
|
783
|
+
durations: MotionDurationPaletteSchema.optional(),
|
|
784
|
+
easings: MotionEasingPaletteSchema.optional(),
|
|
785
|
+
intents: MotionIntentMapSchema.optional()
|
|
786
|
+
});
|
|
787
|
+
var IconFamilySchema = z.enum([
|
|
788
|
+
"lucide",
|
|
789
|
+
"phosphor-outline",
|
|
790
|
+
"phosphor-fill",
|
|
791
|
+
"phosphor-duotone",
|
|
792
|
+
"tabler",
|
|
793
|
+
"fa-solid"
|
|
794
|
+
]);
|
|
795
|
+
var IconographyTokensSchema = z.object({
|
|
796
|
+
family: IconFamilySchema.optional(),
|
|
797
|
+
strokeWidth: z.string().optional(),
|
|
798
|
+
defaultSize: z.string().optional()
|
|
799
|
+
});
|
|
800
|
+
var ElevationTokensSchema = z.object({
|
|
801
|
+
cardElevation: z.string().optional(),
|
|
802
|
+
popoverElevation: z.string().optional(),
|
|
803
|
+
dialogElevation: z.string().optional(),
|
|
804
|
+
toastElevation: z.string().optional()
|
|
805
|
+
});
|
|
806
|
+
var GeometryTokensSchema = z.object({
|
|
807
|
+
radiusContainer: z.string().optional(),
|
|
808
|
+
radiusInteractive: z.string().optional(),
|
|
809
|
+
radiusPill: z.string().optional(),
|
|
810
|
+
borderHairline: z.string().optional(),
|
|
811
|
+
borderStandard: z.string().optional(),
|
|
812
|
+
borderHeavy: z.string().optional()
|
|
813
|
+
});
|
|
661
814
|
var ThemeTokensSchema = z.object({
|
|
662
815
|
colors: z.record(z.string(), z.string()).optional(),
|
|
663
816
|
radii: z.record(z.string(), z.string()).optional(),
|
|
664
817
|
spacing: z.record(z.string(), z.string()).optional(),
|
|
665
818
|
typography: z.record(z.string(), z.string()).optional(),
|
|
666
|
-
shadows: z.record(z.string(), z.string()).optional()
|
|
819
|
+
shadows: z.record(z.string(), z.string()).optional(),
|
|
820
|
+
density: DensityTokensSchema.optional(),
|
|
821
|
+
typeScale: TypeScaleTokensSchema.optional(),
|
|
822
|
+
motion: MotionTokensSchema.optional(),
|
|
823
|
+
iconography: IconographyTokensSchema.optional(),
|
|
824
|
+
elevation: ElevationTokensSchema.optional(),
|
|
825
|
+
geometry: GeometryTokensSchema.optional()
|
|
667
826
|
});
|
|
668
827
|
var ThemeVariantSchema = z.object({
|
|
669
828
|
colors: z.record(z.string(), z.string()).optional(),
|
|
670
829
|
radii: z.record(z.string(), z.string()).optional(),
|
|
671
830
|
spacing: z.record(z.string(), z.string()).optional(),
|
|
672
831
|
typography: z.record(z.string(), z.string()).optional(),
|
|
673
|
-
shadows: z.record(z.string(), z.string()).optional()
|
|
832
|
+
shadows: z.record(z.string(), z.string()).optional(),
|
|
833
|
+
density: DensityTokensSchema.optional(),
|
|
834
|
+
typeScale: TypeScaleTokensSchema.optional(),
|
|
835
|
+
motion: MotionTokensSchema.optional(),
|
|
836
|
+
iconography: IconographyTokensSchema.optional(),
|
|
837
|
+
elevation: ElevationTokensSchema.optional(),
|
|
838
|
+
geometry: GeometryTokensSchema.optional()
|
|
674
839
|
});
|
|
675
840
|
var ThemeDefinitionSchema = z.object({
|
|
676
841
|
name: z.string().min(1, "Theme name is required"),
|