@yahoo/uds-v5-wip 1.36.0 → 1.37.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/config/dist/component-resolution.js +1 -1
- package/dist/config/dist/createConfig.d.ts +11 -75
- package/dist/config/dist/createConfig.js +67 -161
- package/dist/config/dist/defineComponent.d.ts +1 -0
- package/dist/config/dist/defineStyleProp.js +25 -0
- package/dist/config/dist/index.d.ts +1 -2
- package/dist/config/dist/index.js +3 -1
- package/dist/config/dist/preset-merge.js +0 -12
- package/dist/config/dist/propertyAcceptedTypes.js +17 -4
- package/dist/config/dist/propertyGroups.d.ts +1 -11
- package/dist/config/dist/propertyGroups.js +1 -19
- package/dist/config/dist/refs.js +1 -0
- package/dist/config/dist/resolveStyleProp.js +11 -2
- package/dist/config/dist/serialize.d.ts +10 -2
- package/dist/config/dist/serialize.js +3 -3
- package/dist/config.d.ts +1 -1
- package/dist/core/dist/color-opacity-map.d.ts +13 -0
- package/dist/core/dist/color-opacity-map.js +33 -0
- package/dist/core/dist/compositeStyles.d.ts +2 -1
- package/dist/core/dist/configurable-prop-helpers.d.ts +32 -0
- package/dist/core/dist/configurable-prop-helpers.js +61 -0
- package/dist/core/dist/createComponent.d.ts +2 -1
- package/dist/core/dist/createComponentExample.d.ts +2 -1
- package/dist/core/dist/createProvider.d.ts +2 -1
- package/dist/core/dist/generated/stylePropsTwMap.d.ts +2 -1
- package/dist/core/dist/getComponentStyles.d.ts +2 -1
- package/dist/core/dist/getStyles.d.ts +2 -1
- package/dist/core/dist/getStyles.js +3 -1
- package/dist/core/dist/index.d.ts +4 -1
- package/dist/core/dist/index.js +4 -1
- package/dist/core/dist/modifier-mappings.d.ts +13 -0
- package/dist/core/dist/modifier-mappings.js +61 -0
- package/dist/core/dist/resolveMotionState.d.ts +2 -1
- package/dist/core/dist/style-prop-data.d.ts +33 -0
- package/dist/{loader/dist/packages/core/dist/propMappings.js → core/dist/style-prop-data.js} +2 -93
- package/dist/core/dist/transformPreset.d.ts +2 -1
- package/dist/core/dist/withDefaultStyleProps.d.ts +2 -1
- package/dist/core.d.ts +4 -1
- package/dist/core.js +4 -1
- package/dist/fixtures.d.ts +3 -1
- package/dist/fixtures.js +3 -1
- package/dist/foundational-presets/dist/_virtual/_rolldown/runtime.js +13 -0
- package/dist/foundational-presets/dist/boldVibrant.d.ts +350 -0
- package/dist/foundational-presets/dist/brutalist.d.ts +350 -0
- package/dist/foundational-presets/dist/candy.d.ts +350 -0
- package/dist/foundational-presets/dist/cleanMinimalist.d.ts +350 -0
- package/dist/foundational-presets/dist/corporate.d.ts +350 -0
- package/dist/foundational-presets/dist/darkMoody.d.ts +350 -0
- package/dist/foundational-presets/dist/defaultPreset.d.ts +1 -1
- package/dist/foundational-presets/dist/defaultPreset.js +2 -312
- package/dist/foundational-presets/dist/forest.d.ts +350 -0
- package/dist/foundational-presets/dist/highContrast.d.ts +350 -0
- package/dist/foundational-presets/dist/lavender.d.ts +350 -0
- package/dist/foundational-presets/dist/luxury.d.ts +350 -0
- package/dist/foundational-presets/dist/monochrome.d.ts +350 -0
- package/dist/foundational-presets/dist/motion.d.ts +2 -1
- package/dist/foundational-presets/dist/neonCyber.d.ts +350 -0
- package/dist/foundational-presets/dist/newspaper.d.ts +350 -0
- package/dist/foundational-presets/dist/ocean.d.ts +350 -0
- package/dist/foundational-presets/dist/slate.d.ts +547 -196
- package/dist/foundational-presets/dist/style-props.js +1384 -0
- package/dist/foundational-presets/dist/sunset.d.ts +547 -196
- package/dist/foundational-presets/dist/terminal.d.ts +547 -196
- package/dist/foundational-presets/dist/warmOrganic.d.ts +547 -196
- package/dist/loader/dist/loader/style-transform.js +2 -1
- package/dist/loader/dist/packages/core/dist/color-opacity-map.js +33 -0
- package/dist/loader/dist/packages/core/dist/getStyles.js +3 -1
- package/dist/loader/dist/packages/core/dist/modifier-mappings.js +61 -0
- package/dist/{core/dist/propMappings.js → loader/dist/packages/core/dist/style-prop-data.js} +2 -150
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/dist/array-utils/closestItem.d.ts +2 -1
- package/dist/utils/dist/array-utils/removeItem.d.ts +2 -1
- package/dist/utils/dist/component-style-defaults.d.ts +2 -1
- package/dist/utils/dist/math-utils/clamp.d.ts +2 -1
- package/dist/utils/dist/motion-utils/interpolate.d.ts +2 -1
- package/dist/utils/dist/object-utils/entries.d.ts +2 -1
- package/dist/utils/dist/object-utils/flattenObj.d.ts +2 -1
- package/dist/utils/dist/object-utils/fromEntries.d.ts +2 -1
- package/dist/utils/dist/object-utils/keys.d.ts +2 -1
- package/dist/utils/dist/object-utils/mapKeys.d.ts +2 -1
- package/dist/utils/dist/object-utils/mapValues.d.ts +2 -1
- package/dist/utils/dist/string-utils/arrayToUnion.d.ts +2 -1
- package/dist/utils/dist/string-utils/capitalize.d.ts +2 -1
- package/dist/utils/dist/string-utils/componentClassName.d.ts +2 -1
- package/dist/utils/dist/string-utils/createTemplate.d.ts +2 -1
- package/dist/utils/dist/string-utils/cssVar.d.ts +2 -1
- package/dist/utils/dist/string-utils/cssVars.d.ts +2 -1
- package/dist/utils/dist/string-utils/dedent.d.ts +2 -1
- package/dist/utils/dist/string-utils/indent.d.ts +2 -1
- package/dist/utils/dist/string-utils/join.d.ts +2 -1
- package/dist/utils/dist/string-utils/kebabCase.d.ts +2 -1
- package/dist/utils/dist/string-utils/split.d.ts +2 -1
- package/dist/utils/dist/string-utils/tsProperties.d.ts +2 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +3 -3
- package/dist/core/dist/propMappings.d.ts +0 -76
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { uds } from "../../config/dist/createConfig.js";
|
|
2
2
|
import "../../config/dist/index.js";
|
|
3
|
+
import { style_props_exports } from "./style-props.js";
|
|
3
4
|
//#region ../foundational-presets/dist/defaultPreset.js
|
|
4
5
|
const defaultFoundationPreset = uds.defineModes({
|
|
5
6
|
colorMode: { options: { dark: { css: ".dark" } } },
|
|
@@ -609,317 +610,6 @@ const defaultFoundationPreset = uds.defineModes({
|
|
|
609
610
|
serif: { value: "Georgia, Times, Times New Roman, serif" },
|
|
610
611
|
mono: { value: "var(--uds-font-family-geist-mono, Menlo, Monaco, Courier New, monospace)" }
|
|
611
612
|
}
|
|
612
|
-
}).
|
|
613
|
-
color: "text",
|
|
614
|
-
bg: "bg",
|
|
615
|
-
borderColor: "border-color",
|
|
616
|
-
borderYColor: "border-y-color",
|
|
617
|
-
borderXColor: "border-x-color",
|
|
618
|
-
borderStartColor: "border-s-color",
|
|
619
|
-
borderLeftColor: "border-l-color",
|
|
620
|
-
borderEndColor: "border-e-color",
|
|
621
|
-
borderRightColor: "border-r-color",
|
|
622
|
-
borderTopColor: "border-t-color",
|
|
623
|
-
borderBottomColor: "border-b-color",
|
|
624
|
-
caretColor: "caret",
|
|
625
|
-
ringColor: "ring-color",
|
|
626
|
-
ringOffsetColor: "ring-offset-color",
|
|
627
|
-
textDecorationColor: "decoration",
|
|
628
|
-
fillColor: "fill",
|
|
629
|
-
strokeColor: "stroke",
|
|
630
|
-
shadowColor: "shadow-color",
|
|
631
|
-
borderWidth: "border-w",
|
|
632
|
-
borderYWidth: "border-y-w",
|
|
633
|
-
borderXWidth: "border-x-w",
|
|
634
|
-
borderStartWidth: "border-s-w",
|
|
635
|
-
borderLeftWidth: "border-l-w",
|
|
636
|
-
borderEndWidth: "border-e-w",
|
|
637
|
-
borderRightWidth: "border-r-w",
|
|
638
|
-
borderTopWidth: "border-t-w",
|
|
639
|
-
borderBottomWidth: "border-b-w",
|
|
640
|
-
outlineWidth: "outline-w",
|
|
641
|
-
outlineOffset: "outline-offset",
|
|
642
|
-
divideWidth: "divide",
|
|
643
|
-
ringWidth: "ring-w",
|
|
644
|
-
ringOffsetWidth: "ring-offset-w",
|
|
645
|
-
fontWeight: "font",
|
|
646
|
-
lineHeight: "leading",
|
|
647
|
-
letterSpacing: "tracking",
|
|
648
|
-
spacing: "p",
|
|
649
|
-
spacingX: "px",
|
|
650
|
-
spacingY: "py",
|
|
651
|
-
spacingTop: "pt",
|
|
652
|
-
spacingBottom: "pb",
|
|
653
|
-
spacingLeft: "pl",
|
|
654
|
-
spacingRight: "pr",
|
|
655
|
-
spacingStart: "ps",
|
|
656
|
-
spacingEnd: "pe",
|
|
657
|
-
width: "w",
|
|
658
|
-
minWidth: "min-w",
|
|
659
|
-
maxWidth: "max-w",
|
|
660
|
-
height: "h",
|
|
661
|
-
minHeight: "min-h",
|
|
662
|
-
maxHeight: "max-h",
|
|
663
|
-
gap: "gap",
|
|
664
|
-
gapX: "gap-x",
|
|
665
|
-
gapY: "gap-y",
|
|
666
|
-
offset: "offset",
|
|
667
|
-
offsetX: "offset-x",
|
|
668
|
-
offsetY: "offset-y",
|
|
669
|
-
offsetTop: "offset-t",
|
|
670
|
-
offsetBottom: "offset-b",
|
|
671
|
-
offsetLeft: "offset-l",
|
|
672
|
-
offsetRight: "offset-r",
|
|
673
|
-
offsetStart: "offset-s",
|
|
674
|
-
offsetEnd: "offset-e",
|
|
675
|
-
margin: "m",
|
|
676
|
-
marginX: "mx",
|
|
677
|
-
marginY: "my",
|
|
678
|
-
marginTop: "mt",
|
|
679
|
-
marginBottom: "mb",
|
|
680
|
-
marginLeft: "ml",
|
|
681
|
-
marginRight: "mr",
|
|
682
|
-
marginStart: "ms",
|
|
683
|
-
marginEnd: "me",
|
|
684
|
-
inset: "inset",
|
|
685
|
-
top: "top",
|
|
686
|
-
right: "right",
|
|
687
|
-
bottom: "bottom",
|
|
688
|
-
left: "left",
|
|
689
|
-
insetX: "inset-x",
|
|
690
|
-
insetY: "inset-y",
|
|
691
|
-
indent: "indent",
|
|
692
|
-
scrollSnapGap: "snap-gap",
|
|
693
|
-
scrollSnapGapTop: "snap-gap-t",
|
|
694
|
-
scrollSnapGapBottom: "snap-gap-b",
|
|
695
|
-
scrollSnapGapStart: "snap-gap-s",
|
|
696
|
-
scrollSnapGapEnd: "snap-gap-e",
|
|
697
|
-
scrollSnapGapX: "snap-gap-x",
|
|
698
|
-
scrollSnapGapY: "snap-gap-y",
|
|
699
|
-
scrollSnapSpacing: "snap-p",
|
|
700
|
-
scrollSnapSpacingTop: "snap-pt",
|
|
701
|
-
scrollSnapSpacingBottom: "snap-pb",
|
|
702
|
-
scrollSnapSpacingStart: "snap-ps",
|
|
703
|
-
scrollSnapSpacingEnd: "snap-pe",
|
|
704
|
-
scrollSnapSpacingX: "snap-px",
|
|
705
|
-
scrollSnapSpacingY: "snap-py",
|
|
706
|
-
tableBorderSpacing: "table-spacing",
|
|
707
|
-
tableBorderSpacingX: "table-spacing-x",
|
|
708
|
-
tableBorderSpacingY: "table-spacing-y",
|
|
709
|
-
aspectRatio: "aspect",
|
|
710
|
-
flex: "flex",
|
|
711
|
-
flexGrow: "grow",
|
|
712
|
-
flexShrink: "shrink",
|
|
713
|
-
opacity: "opacity",
|
|
714
|
-
colorOpacity: "text-opacity",
|
|
715
|
-
bgOpacity: "bg-opacity",
|
|
716
|
-
borderColorOpacity: "border-opacity",
|
|
717
|
-
borderYColorOpacity: "border-y-opacity",
|
|
718
|
-
borderXColorOpacity: "border-x-opacity",
|
|
719
|
-
borderStartColorOpacity: "border-s-opacity",
|
|
720
|
-
borderLeftColorOpacity: "border-l-opacity",
|
|
721
|
-
borderEndColorOpacity: "border-e-opacity",
|
|
722
|
-
borderRightColorOpacity: "border-r-opacity",
|
|
723
|
-
borderTopColorOpacity: "border-t-opacity",
|
|
724
|
-
borderBottomColorOpacity: "border-b-opacity",
|
|
725
|
-
divideColorOpacity: "divide-opacity",
|
|
726
|
-
outlineColorOpacity: "outline-opacity",
|
|
727
|
-
ringColorOpacity: "ring-opacity",
|
|
728
|
-
ringOffsetColorOpacity: "ring-offset-opacity",
|
|
729
|
-
textDecorationColorOpacity: "decoration-opacity",
|
|
730
|
-
fillColorOpacity: "fill-opacity",
|
|
731
|
-
strokeColorOpacity: "stroke-opacity",
|
|
732
|
-
shadowColorOpacity: "shadow-opacity",
|
|
733
|
-
caretColorOpacity: "caret-opacity",
|
|
734
|
-
borderRadius: "rounded",
|
|
735
|
-
borderRadiusTop: "rounded-t",
|
|
736
|
-
borderRadiusBottom: "rounded-b",
|
|
737
|
-
borderRadiusStart: "rounded-s",
|
|
738
|
-
borderRadiusEnd: "rounded-e",
|
|
739
|
-
borderRadiusTopStart: "rounded-ss",
|
|
740
|
-
borderRadiusTopEnd: "rounded-se",
|
|
741
|
-
borderRadiusBottomStart: "rounded-es",
|
|
742
|
-
borderRadiusBottomEnd: "rounded-ee",
|
|
743
|
-
animation: "animation",
|
|
744
|
-
shadow: "shadow",
|
|
745
|
-
blur: "blur",
|
|
746
|
-
backdropBlur: "backdrop-blur",
|
|
747
|
-
textShadow: "text-shadow",
|
|
748
|
-
zIndex: "z",
|
|
749
|
-
rotate: "rotate",
|
|
750
|
-
scale: "scale",
|
|
751
|
-
scaleX: "scale-x",
|
|
752
|
-
scaleY: "scale-y",
|
|
753
|
-
skewX: "skew-x",
|
|
754
|
-
skewY: "skew-y",
|
|
755
|
-
translateX: "translate-x",
|
|
756
|
-
translateY: "translate-y",
|
|
757
|
-
strokeWidth: "stroke-w",
|
|
758
|
-
fontFamily: "font-family"
|
|
759
|
-
}).defineScopes({
|
|
760
|
-
color: [
|
|
761
|
-
"textColor",
|
|
762
|
-
"background",
|
|
763
|
-
"borderColor",
|
|
764
|
-
"outlineColor",
|
|
765
|
-
"ringColor",
|
|
766
|
-
"divideColor",
|
|
767
|
-
"shadowColor",
|
|
768
|
-
"svgFill",
|
|
769
|
-
"svgStroke",
|
|
770
|
-
"caretColor",
|
|
771
|
-
"textDecorationColor"
|
|
772
|
-
],
|
|
773
|
-
bg: ["background"],
|
|
774
|
-
borderColor: ["borderColor"],
|
|
775
|
-
borderWidth: ["borderWidth"],
|
|
776
|
-
outlineWidth: ["outlineWidth"],
|
|
777
|
-
outlineOffset: ["outlineWidth"],
|
|
778
|
-
divideWidth: ["divideWidth"],
|
|
779
|
-
ringWidth: ["ringWidth"],
|
|
780
|
-
ringOffsetWidth: ["ringWidth"],
|
|
781
|
-
opacity: [
|
|
782
|
-
"opacity",
|
|
783
|
-
"colorOpacity",
|
|
784
|
-
"bgOpacity",
|
|
785
|
-
"borderColorOpacity",
|
|
786
|
-
"divideColorOpacity",
|
|
787
|
-
"outlineColorOpacity",
|
|
788
|
-
"ringColorOpacity",
|
|
789
|
-
"textDecorationColorOpacity",
|
|
790
|
-
"svgFillOpacity",
|
|
791
|
-
"svgStrokeOpacity",
|
|
792
|
-
"shadowColorOpacity",
|
|
793
|
-
"caretColorOpacity"
|
|
794
|
-
],
|
|
795
|
-
spacing: [
|
|
796
|
-
"padding",
|
|
797
|
-
"gap",
|
|
798
|
-
"margin",
|
|
799
|
-
"offset",
|
|
800
|
-
"indent",
|
|
801
|
-
"scrollSnapGap",
|
|
802
|
-
"scrollSnapSpacing",
|
|
803
|
-
"tableBorderSpacing",
|
|
804
|
-
"width",
|
|
805
|
-
"height",
|
|
806
|
-
"positionPlacement"
|
|
807
|
-
],
|
|
808
|
-
size: ["width", "height"],
|
|
809
|
-
w: ["width"],
|
|
810
|
-
h: ["height"],
|
|
811
|
-
position: ["positionPlacement"],
|
|
812
|
-
radius: ["borderRadius"],
|
|
813
|
-
fontWeight: ["fontWeight"],
|
|
814
|
-
lineHeight: ["lineHeight"],
|
|
815
|
-
letterSpacing: ["letterSpacing"],
|
|
816
|
-
fontFamily: ["fontFamily"],
|
|
817
|
-
aspectRatio: ["aspectRatio"],
|
|
818
|
-
flex: ["flex"],
|
|
819
|
-
flexGrow: ["flex"],
|
|
820
|
-
flexShrink: ["flex"],
|
|
821
|
-
animation: ["animation"],
|
|
822
|
-
shadow: ["shadow"],
|
|
823
|
-
blur: ["blur", "backdropBlur"],
|
|
824
|
-
textShadow: ["textShadow"],
|
|
825
|
-
zIndex: ["zIndex"],
|
|
826
|
-
rotate: ["transform"],
|
|
827
|
-
scale: ["transform"],
|
|
828
|
-
skew: ["transform"],
|
|
829
|
-
translate: ["transform"],
|
|
830
|
-
strokeWidth: ["strokeWidth"]
|
|
831
|
-
}).defineArbitraryTokens([{
|
|
832
|
-
properties: [
|
|
833
|
-
"color",
|
|
834
|
-
"bg",
|
|
835
|
-
"borderColor",
|
|
836
|
-
"borderYColor",
|
|
837
|
-
"borderXColor",
|
|
838
|
-
"borderStartColor",
|
|
839
|
-
"borderLeftColor",
|
|
840
|
-
"borderEndColor",
|
|
841
|
-
"borderRightColor",
|
|
842
|
-
"borderTopColor",
|
|
843
|
-
"borderBottomColor",
|
|
844
|
-
"divideColor",
|
|
845
|
-
"outlineColor",
|
|
846
|
-
"ringColor",
|
|
847
|
-
"ringOffsetColor",
|
|
848
|
-
"textDecorationColor",
|
|
849
|
-
"fillColor",
|
|
850
|
-
"strokeColor",
|
|
851
|
-
"shadowColor",
|
|
852
|
-
"caretColor",
|
|
853
|
-
"spacing",
|
|
854
|
-
"spacingX",
|
|
855
|
-
"spacingY",
|
|
856
|
-
"spacingTop",
|
|
857
|
-
"spacingBottom",
|
|
858
|
-
"spacingLeft",
|
|
859
|
-
"spacingRight",
|
|
860
|
-
"spacingStart",
|
|
861
|
-
"spacingEnd",
|
|
862
|
-
"width",
|
|
863
|
-
"minWidth",
|
|
864
|
-
"maxWidth",
|
|
865
|
-
"height",
|
|
866
|
-
"minHeight",
|
|
867
|
-
"maxHeight",
|
|
868
|
-
"gap",
|
|
869
|
-
"gapX",
|
|
870
|
-
"gapY",
|
|
871
|
-
"margin",
|
|
872
|
-
"marginX",
|
|
873
|
-
"marginY",
|
|
874
|
-
"marginTop",
|
|
875
|
-
"marginBottom",
|
|
876
|
-
"marginLeft",
|
|
877
|
-
"marginRight",
|
|
878
|
-
"marginStart",
|
|
879
|
-
"marginEnd",
|
|
880
|
-
"offset",
|
|
881
|
-
"offsetX",
|
|
882
|
-
"offsetY",
|
|
883
|
-
"offsetTop",
|
|
884
|
-
"offsetBottom",
|
|
885
|
-
"offsetLeft",
|
|
886
|
-
"offsetRight",
|
|
887
|
-
"offsetStart",
|
|
888
|
-
"offsetEnd",
|
|
889
|
-
"opacity",
|
|
890
|
-
"inset",
|
|
891
|
-
"insetX",
|
|
892
|
-
"insetY",
|
|
893
|
-
"top",
|
|
894
|
-
"right",
|
|
895
|
-
"bottom",
|
|
896
|
-
"left",
|
|
897
|
-
"borderRadius",
|
|
898
|
-
"borderRadiusTop",
|
|
899
|
-
"borderRadiusBottom",
|
|
900
|
-
"borderRadiusStart",
|
|
901
|
-
"borderRadiusEnd",
|
|
902
|
-
"borderRadiusTopStart",
|
|
903
|
-
"borderRadiusTopEnd",
|
|
904
|
-
"borderRadiusBottomStart",
|
|
905
|
-
"borderRadiusBottomEnd",
|
|
906
|
-
"borderWidth",
|
|
907
|
-
"fontSize",
|
|
908
|
-
"shadow",
|
|
909
|
-
"textShadow",
|
|
910
|
-
"flex",
|
|
911
|
-
"aspectRatio",
|
|
912
|
-
"zIndex",
|
|
913
|
-
"translateX",
|
|
914
|
-
"translateY",
|
|
915
|
-
"scale",
|
|
916
|
-
"scaleX",
|
|
917
|
-
"scaleY",
|
|
918
|
-
"rotate",
|
|
919
|
-
"skewX",
|
|
920
|
-
"skewY"
|
|
921
|
-
],
|
|
922
|
-
pattern: "[${string}]"
|
|
923
|
-
}]);
|
|
613
|
+
}).registerStyleProps(style_props_exports);
|
|
924
614
|
//#endregion
|
|
925
615
|
export { defaultFoundationPreset };
|