@almadar/core 8.8.2 → 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 +3 -3
- package/dist/builders.js +218 -0
- package/dist/builders.js.map +1 -1
- package/dist/{compose-behaviors-5X8HNONp.d.ts → compose-behaviors-EFvCpOGu.d.ts} +1 -1
- package/dist/factory/index.d.ts +18 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +228 -1
- package/dist/index.js.map +1 -1
- package/dist/schema-Dp3KfQHm.d.ts +57541 -0
- package/dist/types/index.d.ts +6 -6
- package/dist/types/index.js +228 -1
- 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 { 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
|
@@ -658,7 +658,217 @@ 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
|
+
});
|
|
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
|
+
});
|
|
661
862
|
var ThemeTokensSchema = z.object({
|
|
863
|
+
color: ColorTokensSchema.optional(),
|
|
864
|
+
density: DensityTokensSchema.optional(),
|
|
865
|
+
typeScale: TypeScaleTokensSchema.optional(),
|
|
866
|
+
motion: MotionTokensSchema.optional(),
|
|
867
|
+
iconography: IconographyTokensSchema.optional(),
|
|
868
|
+
elevation: ElevationTokensSchema.optional(),
|
|
869
|
+
geometry: GeometryTokensSchema.optional(),
|
|
870
|
+
illustration: IllustrationTokensSchema.optional(),
|
|
871
|
+
// Legacy
|
|
662
872
|
colors: z.record(z.string(), z.string()).optional(),
|
|
663
873
|
radii: z.record(z.string(), z.string()).optional(),
|
|
664
874
|
spacing: z.record(z.string(), z.string()).optional(),
|
|
@@ -666,6 +876,14 @@ var ThemeTokensSchema = z.object({
|
|
|
666
876
|
shadows: z.record(z.string(), z.string()).optional()
|
|
667
877
|
});
|
|
668
878
|
var ThemeVariantSchema = z.object({
|
|
879
|
+
color: ColorTokensSchema.optional(),
|
|
880
|
+
density: DensityTokensSchema.optional(),
|
|
881
|
+
typeScale: TypeScaleTokensSchema.optional(),
|
|
882
|
+
motion: MotionTokensSchema.optional(),
|
|
883
|
+
iconography: IconographyTokensSchema.optional(),
|
|
884
|
+
elevation: ElevationTokensSchema.optional(),
|
|
885
|
+
geometry: GeometryTokensSchema.optional(),
|
|
886
|
+
illustration: IllustrationTokensSchema.optional(),
|
|
669
887
|
colors: z.record(z.string(), z.string()).optional(),
|
|
670
888
|
radii: z.record(z.string(), z.string()).optional(),
|
|
671
889
|
spacing: z.record(z.string(), z.string()).optional(),
|