@uni-design-system/uni-angular 5.1.0 → 5.2.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uni-design-system/uni-angular",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@angular/core": "^21.2.0",
|
|
23
23
|
"@angular/forms": "^21.2.0",
|
|
24
24
|
"@emotion/css": "^11.0.0",
|
|
25
|
-
"@uni-design-system/uni-core": "^5.
|
|
25
|
+
"@uni-design-system/uni-core": "^5.2.0"
|
|
26
26
|
},
|
|
27
27
|
"module": "fesm2022/uni-design-system-uni-angular.mjs",
|
|
28
28
|
"typings": "types/uni-design-system-uni-angular.d.ts",
|
|
@@ -751,6 +751,90 @@ var buildComponents = (c) => ({
|
|
|
751
751
|
transitionSpeed: .35,
|
|
752
752
|
elevation: "md"
|
|
753
753
|
} },
|
|
754
|
+
breadcrumb: { options: {
|
|
755
|
+
typeface: "label",
|
|
756
|
+
color: "on-background-variant",
|
|
757
|
+
currentColor: "on-background",
|
|
758
|
+
separatorSymbol: "chevron_right",
|
|
759
|
+
gap: "xs"
|
|
760
|
+
} },
|
|
761
|
+
appBar: { options: {
|
|
762
|
+
color: "surface",
|
|
763
|
+
height: 56,
|
|
764
|
+
divider: "light",
|
|
765
|
+
typeface: "title-large",
|
|
766
|
+
padding: "md",
|
|
767
|
+
gap: "md",
|
|
768
|
+
elevation: void 0
|
|
769
|
+
} },
|
|
770
|
+
drawer: { options: {
|
|
771
|
+
color: "surface",
|
|
772
|
+
width: 280,
|
|
773
|
+
divider: "light",
|
|
774
|
+
elevation: "menu",
|
|
775
|
+
padding: "md",
|
|
776
|
+
backdrop: { background: "rgba(0, 0, 0, 0.4)" }
|
|
777
|
+
} },
|
|
778
|
+
avatar: {
|
|
779
|
+
options: {
|
|
780
|
+
borderRadius: "max",
|
|
781
|
+
typeface: "subtitle-2",
|
|
782
|
+
fallbackSymbol: "person"
|
|
783
|
+
},
|
|
784
|
+
variants: {
|
|
785
|
+
primary: {
|
|
786
|
+
backgroundColor: c["primary-container"],
|
|
787
|
+
color: c["on-primary-container"]
|
|
788
|
+
},
|
|
789
|
+
secondary: {
|
|
790
|
+
backgroundColor: c["secondary-container"],
|
|
791
|
+
color: c["on-secondary-container"]
|
|
792
|
+
},
|
|
793
|
+
tertiary: {
|
|
794
|
+
backgroundColor: c["tertiary-container"],
|
|
795
|
+
color: c["on-tertiary-container"]
|
|
796
|
+
},
|
|
797
|
+
quaternary: {
|
|
798
|
+
backgroundColor: c["surface-variant"],
|
|
799
|
+
color: c["on-surface-variant"]
|
|
800
|
+
},
|
|
801
|
+
warn: {
|
|
802
|
+
backgroundColor: c["warn-container"],
|
|
803
|
+
color: c["on-warn-container"]
|
|
804
|
+
},
|
|
805
|
+
success: {
|
|
806
|
+
backgroundColor: c["success-container"],
|
|
807
|
+
color: c["on-success-container"]
|
|
808
|
+
}
|
|
809
|
+
},
|
|
810
|
+
sizes: {
|
|
811
|
+
sm: {
|
|
812
|
+
height: 24,
|
|
813
|
+
width: 24,
|
|
814
|
+
fontSize: 10
|
|
815
|
+
},
|
|
816
|
+
md: {
|
|
817
|
+
height: 32,
|
|
818
|
+
width: 32,
|
|
819
|
+
fontSize: 13
|
|
820
|
+
},
|
|
821
|
+
lg: {
|
|
822
|
+
height: 40,
|
|
823
|
+
width: 40,
|
|
824
|
+
fontSize: 16
|
|
825
|
+
},
|
|
826
|
+
xl: {
|
|
827
|
+
height: 56,
|
|
828
|
+
width: 56,
|
|
829
|
+
fontSize: 22
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
},
|
|
833
|
+
avatarGroup: { options: {
|
|
834
|
+
overlap: "sm",
|
|
835
|
+
ringColor: "surface",
|
|
836
|
+
ringWidth: 2
|
|
837
|
+
} },
|
|
754
838
|
checkbox: { options: { size: 20 } },
|
|
755
839
|
dialog: { options: {
|
|
756
840
|
borderRadius: "lg",
|
|
@@ -799,6 +883,22 @@ var buildComponents = (c) => ({
|
|
|
799
883
|
focusOutline: `2px solid ${c.primary}`,
|
|
800
884
|
focusOutlineOffset: 2
|
|
801
885
|
} },
|
|
886
|
+
textarea: { options: {
|
|
887
|
+
rows: 3,
|
|
888
|
+
resize: "vertical"
|
|
889
|
+
} },
|
|
890
|
+
tabs: { options: {
|
|
891
|
+
typeface: "title-small",
|
|
892
|
+
textColor: "on-surface-variant",
|
|
893
|
+
activeTextColor: "primary",
|
|
894
|
+
indicatorColor: "primary",
|
|
895
|
+
indicatorThickness: "standard",
|
|
896
|
+
divider: "light",
|
|
897
|
+
gap: "sm",
|
|
898
|
+
borderRadius: "none",
|
|
899
|
+
padding: "md",
|
|
900
|
+
activeColor: void 0
|
|
901
|
+
} },
|
|
802
902
|
multiSelectDropdown: { options: {
|
|
803
903
|
textRole: "input",
|
|
804
904
|
textColor: "on-primary-surface",
|
|
@@ -810,13 +910,16 @@ var buildComponents = (c) => ({
|
|
|
810
910
|
} },
|
|
811
911
|
badge: { options: { borderRadius: "xxs" } },
|
|
812
912
|
button: {
|
|
913
|
+
options: {
|
|
914
|
+
borderRadius: "max",
|
|
915
|
+
typeface: "button"
|
|
916
|
+
},
|
|
813
917
|
fixed: {
|
|
814
918
|
position: "relative",
|
|
815
919
|
overflow: "hidden",
|
|
816
920
|
outline: "0",
|
|
817
921
|
border: "0",
|
|
818
922
|
cursor: "pointer",
|
|
819
|
-
fontFamily: "Euphemia, sans-serif",
|
|
820
923
|
transition: "all 0.28s ease"
|
|
821
924
|
},
|
|
822
925
|
variants: {
|
|
@@ -867,33 +970,29 @@ var buildComponents = (c) => ({
|
|
|
867
970
|
sizes: {
|
|
868
971
|
sm: {
|
|
869
972
|
height: 22,
|
|
870
|
-
borderRadius: 11,
|
|
871
973
|
fontSize: 12,
|
|
872
974
|
padding: "0 12px",
|
|
873
|
-
fontFamily: "Euphemia Bold, sans-serif",
|
|
874
975
|
fontWeight: 600
|
|
875
976
|
},
|
|
876
977
|
md: {
|
|
877
978
|
height: 26,
|
|
878
|
-
borderRadius: 13,
|
|
879
979
|
fontSize: 16,
|
|
880
980
|
padding: "0 16px"
|
|
881
981
|
},
|
|
882
982
|
lg: {
|
|
883
983
|
height: 36,
|
|
884
|
-
borderRadius: 18,
|
|
885
984
|
fontSize: 18,
|
|
886
985
|
padding: "0 18px"
|
|
887
986
|
},
|
|
888
987
|
xl: {
|
|
889
988
|
height: 48,
|
|
890
|
-
borderRadius: 24,
|
|
891
989
|
fontSize: 24,
|
|
892
990
|
padding: "0 22px"
|
|
893
991
|
}
|
|
894
992
|
}
|
|
895
993
|
},
|
|
896
994
|
iconButton: {
|
|
995
|
+
options: { borderRadius: "max" },
|
|
897
996
|
variants: {
|
|
898
997
|
ghost: {
|
|
899
998
|
backgroundColor: "transparent",
|
|
@@ -959,23 +1058,23 @@ var buildComponents = (c) => ({
|
|
|
959
1058
|
fixed: { textFill: c["on-background"] },
|
|
960
1059
|
variants: {
|
|
961
1060
|
primary: {
|
|
962
|
-
backgroundColor: "
|
|
1061
|
+
backgroundColor: c["primary-container"],
|
|
963
1062
|
color: c.primary
|
|
964
1063
|
},
|
|
965
1064
|
secondary: {
|
|
966
|
-
backgroundColor: "
|
|
1065
|
+
backgroundColor: c["secondary-container"],
|
|
967
1066
|
color: c.secondary
|
|
968
1067
|
},
|
|
969
1068
|
tertiary: {
|
|
970
|
-
backgroundColor: "
|
|
1069
|
+
backgroundColor: c["tertiary-container"],
|
|
971
1070
|
color: c.tertiary
|
|
972
1071
|
},
|
|
973
1072
|
warn: {
|
|
974
|
-
backgroundColor: "
|
|
1073
|
+
backgroundColor: c["warn-container"],
|
|
975
1074
|
color: c.warn
|
|
976
1075
|
},
|
|
977
1076
|
success: {
|
|
978
|
-
backgroundColor: "
|
|
1077
|
+
backgroundColor: c["success-container"],
|
|
979
1078
|
color: c.success
|
|
980
1079
|
}
|
|
981
1080
|
},
|
|
@@ -987,33 +1086,10 @@ var buildComponents = (c) => ({
|
|
|
987
1086
|
}
|
|
988
1087
|
},
|
|
989
1088
|
card: {
|
|
1089
|
+
options: { borderRadius: "xs" },
|
|
990
1090
|
fixed: {
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
borderRadius: "8px",
|
|
994
|
-
overflow: "hidden"
|
|
995
|
-
},
|
|
996
|
-
variants: {
|
|
997
|
-
primary: {
|
|
998
|
-
borderColor: c.primary,
|
|
999
|
-
backgroundColor: c.background
|
|
1000
|
-
},
|
|
1001
|
-
secondary: {
|
|
1002
|
-
borderColor: c.secondary,
|
|
1003
|
-
backgroundColor: c.background
|
|
1004
|
-
},
|
|
1005
|
-
tertiary: {
|
|
1006
|
-
borderColor: c.tertiary,
|
|
1007
|
-
backgroundColor: c.background
|
|
1008
|
-
},
|
|
1009
|
-
warn: {
|
|
1010
|
-
borderColor: c.warn,
|
|
1011
|
-
backgroundColor: c.background
|
|
1012
|
-
},
|
|
1013
|
-
success: {
|
|
1014
|
-
borderColor: c.success,
|
|
1015
|
-
backgroundColor: c.background
|
|
1016
|
-
}
|
|
1091
|
+
overflow: "hidden",
|
|
1092
|
+
backgroundColor: c.background
|
|
1017
1093
|
}
|
|
1018
1094
|
},
|
|
1019
1095
|
cardHeader: {
|
|
@@ -1084,6 +1160,21 @@ var buildComponents = (c) => ({
|
|
|
1084
1160
|
currentPageBorder: "light",
|
|
1085
1161
|
currentPageBorderRadius: "xs"
|
|
1086
1162
|
} },
|
|
1163
|
+
slider: { options: {
|
|
1164
|
+
color: "primary",
|
|
1165
|
+
trackColor: "surface-variant",
|
|
1166
|
+
borderRadius: "max",
|
|
1167
|
+
trackHeight: 4,
|
|
1168
|
+
thumbSize: 16
|
|
1169
|
+
} },
|
|
1170
|
+
skeleton: { options: {
|
|
1171
|
+
color: "surface-variant",
|
|
1172
|
+
highlightColor: "surface",
|
|
1173
|
+
borderRadius: "xs",
|
|
1174
|
+
animation: "shimmer",
|
|
1175
|
+
duration: 1.4,
|
|
1176
|
+
gap: "sm"
|
|
1177
|
+
} },
|
|
1087
1178
|
snackbar: { options: {
|
|
1088
1179
|
bottomPosition: 40,
|
|
1089
1180
|
transitionDelay: "0.35s",
|
|
@@ -1466,7 +1557,7 @@ var UniThemes = {
|
|
|
1466
1557
|
Object.keys(UniThemes)[0];
|
|
1467
1558
|
//#endregion
|
|
1468
1559
|
//#region package.json
|
|
1469
|
-
var version = "5.
|
|
1560
|
+
var version = "5.2.0";
|
|
1470
1561
|
//#endregion
|
|
1471
1562
|
//#region schematics-src/ng-add/transforms.ts
|
|
1472
1563
|
var addDependencies = (packageJsonText, deps) => {
|