@hero-design/rn 7.27.0 → 7.27.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/.turbo/turbo-build.log +9 -9
- package/es/index.js +187 -171
- package/lib/index.js +187 -171
- package/package.json +4 -4
- package/src/components/Avatar/AvatarStack/__tests__/StyledAvatarStack.spec.tsx +6 -3
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
- package/src/components/Avatar/AvatarStack/__tests__/index.spec.tsx +6 -3
- package/src/components/Avatar/AvatarStack/utils.ts +3 -6
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +0 -22
- package/src/theme/components/avatar.ts +0 -23
- package/src/theme/global/colors/work.ts +4 -4
- package/types/theme/components/avatar.d.ts +0 -1
package/lib/index.js
CHANGED
|
@@ -967,6 +967,7 @@ var BASE_COLORS = {
|
|
|
967
967
|
peach: '#f8ac7d',
|
|
968
968
|
pineGreen: '#017d6d',
|
|
969
969
|
pink: '#fe56aa',
|
|
970
|
+
policeBlue: '#2e456d',
|
|
970
971
|
purple: '#be83cf',
|
|
971
972
|
royalBlue: '#5a68e2',
|
|
972
973
|
scarletGum: '#401960',
|
|
@@ -988,16 +989,16 @@ var colorScales = Object.entries(BASE_COLORS).reduce(function (acc, _ref16) {
|
|
|
988
989
|
return Object.assign(Object.assign({}, acc), _defineProperty({}, key, createColorScales(value)));
|
|
989
990
|
}, {});
|
|
990
991
|
var blue$1 = colorScales.blue,
|
|
991
|
-
ultramarineBlue$
|
|
992
|
+
ultramarineBlue$2 = colorScales.ultramarineBlue,
|
|
992
993
|
green$1 = colorScales.green,
|
|
993
994
|
grey$1 = colorScales.grey,
|
|
994
995
|
grotesqueGreen = colorScales.grotesqueGreen,
|
|
995
|
-
deepSaffron$
|
|
996
|
+
deepSaffron$2 = colorScales.deepSaffron,
|
|
996
997
|
pink$1 = colorScales.pink,
|
|
997
998
|
purple$1 = colorScales.purple,
|
|
998
|
-
vermilion$
|
|
999
|
+
vermilion$2 = colorScales.vermilion,
|
|
999
1000
|
smalt = colorScales.smalt,
|
|
1000
|
-
violet$
|
|
1001
|
+
violet$2 = colorScales.violet,
|
|
1001
1002
|
yellow$1 = colorScales.yellow;
|
|
1002
1003
|
({
|
|
1003
1004
|
black: '#000000',
|
|
@@ -1008,11 +1009,11 @@ var blue$1 = colorScales.blue,
|
|
|
1008
1009
|
blueLight30: blue$1.lighten30,
|
|
1009
1010
|
blueLight75: blue$1.lighten75,
|
|
1010
1011
|
blueLight90: blue$1.lighten90,
|
|
1011
|
-
dodgerBlue: ultramarineBlue$
|
|
1012
|
-
dodgerBlueDark30: ultramarineBlue$
|
|
1013
|
-
dodgerBlueLight30: ultramarineBlue$
|
|
1014
|
-
dodgerBlueLight75: ultramarineBlue$
|
|
1015
|
-
dodgerBlueLight90: ultramarineBlue$
|
|
1012
|
+
dodgerBlue: ultramarineBlue$2.base,
|
|
1013
|
+
dodgerBlueDark30: ultramarineBlue$2.darken30,
|
|
1014
|
+
dodgerBlueLight30: ultramarineBlue$2.lighten30,
|
|
1015
|
+
dodgerBlueLight75: ultramarineBlue$2.lighten75,
|
|
1016
|
+
dodgerBlueLight90: ultramarineBlue$2.lighten90,
|
|
1016
1017
|
green: green$1.base,
|
|
1017
1018
|
greenDark15: green$1.darken15,
|
|
1018
1019
|
greenDark30: green$1.darken30,
|
|
@@ -1037,13 +1038,13 @@ var blue$1 = colorScales.blue,
|
|
|
1037
1038
|
grotesqueGreenLight60: grotesqueGreen.lighten60,
|
|
1038
1039
|
grotesqueGreenLight75: grotesqueGreen.lighten75,
|
|
1039
1040
|
grotesqueGreenLight90: grotesqueGreen.lighten90,
|
|
1040
|
-
orange: deepSaffron$
|
|
1041
|
-
orangeDark15: deepSaffron$
|
|
1042
|
-
orangeDark30: deepSaffron$
|
|
1043
|
-
orangeDark75: deepSaffron$
|
|
1044
|
-
orangeLight30: deepSaffron$
|
|
1045
|
-
orangeLight75: deepSaffron$
|
|
1046
|
-
orangeLight90: deepSaffron$
|
|
1041
|
+
orange: deepSaffron$2.base,
|
|
1042
|
+
orangeDark15: deepSaffron$2.darken15,
|
|
1043
|
+
orangeDark30: deepSaffron$2.darken30,
|
|
1044
|
+
orangeDark75: deepSaffron$2.darken75,
|
|
1045
|
+
orangeLight30: deepSaffron$2.lighten30,
|
|
1046
|
+
orangeLight75: deepSaffron$2.lighten75,
|
|
1047
|
+
orangeLight90: deepSaffron$2.lighten90,
|
|
1047
1048
|
pink: pink$1.base,
|
|
1048
1049
|
pinkDark15: pink$1.darken15,
|
|
1049
1050
|
pinkDark30: pink$1.darken30,
|
|
@@ -1055,30 +1056,30 @@ var blue$1 = colorScales.blue,
|
|
|
1055
1056
|
pinkLight90: pink$1.lighten90,
|
|
1056
1057
|
purple: purple$1.base,
|
|
1057
1058
|
purpleDark15: purple$1.darken15,
|
|
1058
|
-
red: vermilion$
|
|
1059
|
-
redDark15: vermilion$
|
|
1060
|
-
redDark30: vermilion$
|
|
1061
|
-
redDark75: vermilion$
|
|
1062
|
-
redLight15: vermilion$
|
|
1063
|
-
redLight30: vermilion$
|
|
1064
|
-
redLight60: vermilion$
|
|
1065
|
-
redLight75: vermilion$
|
|
1066
|
-
redLight90: vermilion$
|
|
1059
|
+
red: vermilion$2.base,
|
|
1060
|
+
redDark15: vermilion$2.darken15,
|
|
1061
|
+
redDark30: vermilion$2.darken30,
|
|
1062
|
+
redDark75: vermilion$2.darken75,
|
|
1063
|
+
redLight15: vermilion$2.lighten15,
|
|
1064
|
+
redLight30: vermilion$2.lighten30,
|
|
1065
|
+
redLight60: vermilion$2.lighten60,
|
|
1066
|
+
redLight75: vermilion$2.lighten75,
|
|
1067
|
+
redLight90: vermilion$2.lighten90,
|
|
1067
1068
|
smalt: smalt.base,
|
|
1068
1069
|
smaltDark75: smalt.darken75,
|
|
1069
1070
|
smaltLight30: smalt.lighten30,
|
|
1070
1071
|
smaltLight45: smalt.lighten45,
|
|
1071
1072
|
smaltLight75: smalt.lighten75,
|
|
1072
1073
|
smaltLight90: smalt.lighten90,
|
|
1073
|
-
violet: violet$
|
|
1074
|
-
violetDark15: violet$
|
|
1075
|
-
violetDark30: violet$
|
|
1076
|
-
violetDark45: violet$
|
|
1077
|
-
violetDark75: violet$
|
|
1078
|
-
violetLight30: violet$
|
|
1079
|
-
violetLight60: violet$
|
|
1080
|
-
violetLight75: violet$
|
|
1081
|
-
violetLight90: violet$
|
|
1074
|
+
violet: violet$2.base,
|
|
1075
|
+
violetDark15: violet$2.darken15,
|
|
1076
|
+
violetDark30: violet$2.darken30,
|
|
1077
|
+
violetDark45: violet$2.darken45,
|
|
1078
|
+
violetDark75: violet$2.darken75,
|
|
1079
|
+
violetLight30: violet$2.lighten30,
|
|
1080
|
+
violetLight60: violet$2.lighten60,
|
|
1081
|
+
violetLight75: violet$2.lighten75,
|
|
1082
|
+
violetLight90: violet$2.lighten90,
|
|
1082
1083
|
yellow: yellow$1.base,
|
|
1083
1084
|
yellowDark15: yellow$1.darken15,
|
|
1084
1085
|
yellowDark75: yellow$1.darken75,
|
|
@@ -1087,32 +1088,23 @@ var blue$1 = colorScales.blue,
|
|
|
1087
1088
|
});
|
|
1088
1089
|
var aliceBlue = colorScales.aliceBlue,
|
|
1089
1090
|
antiFlashWhite = colorScales.antiFlashWhite,
|
|
1090
|
-
apple$
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
deepSaffron = colorScales.deepSaffron,
|
|
1094
|
-
emerald = colorScales.emerald,
|
|
1095
|
-
gold$1 = colorScales.gold,
|
|
1091
|
+
apple$2 = colorScales.apple,
|
|
1092
|
+
deepSaffron$1 = colorScales.deepSaffron,
|
|
1093
|
+
emerald$1 = colorScales.emerald,
|
|
1096
1094
|
grey$2 = colorScales.grey,
|
|
1097
1095
|
honeydew$1 = colorScales.honeydew,
|
|
1098
1096
|
linen$1 = colorScales.linen,
|
|
1099
|
-
maasstrichtBlue = colorScales.maasstrichtBlue,
|
|
1100
|
-
mauve$2 = colorScales.mauve,
|
|
1097
|
+
maasstrichtBlue$1 = colorScales.maasstrichtBlue,
|
|
1101
1098
|
mellowApricot = colorScales.mellowApricot,
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
pineGreen = colorScales.pineGreen,
|
|
1105
|
-
royalBlue$1 = colorScales.royalBlue,
|
|
1106
|
-
scarletGum$1 = colorScales.scarletGum,
|
|
1099
|
+
pastelRed$1 = colorScales.pastelRed,
|
|
1100
|
+
pineGreen$1 = colorScales.pineGreen,
|
|
1107
1101
|
seashell$1 = colorScales.seashell,
|
|
1108
1102
|
silverChalice = colorScales.silverChalice,
|
|
1109
|
-
sonicSilver = colorScales.sonicSilver,
|
|
1110
|
-
ultramarineBlue = colorScales.ultramarineBlue,
|
|
1111
|
-
vermilion = colorScales.vermilion,
|
|
1112
|
-
violet$2 = colorScales.violet,
|
|
1113
|
-
violet1$1 = colorScales.violet1,
|
|
1103
|
+
sonicSilver$1 = colorScales.sonicSilver,
|
|
1104
|
+
ultramarineBlue$1 = colorScales.ultramarineBlue,
|
|
1105
|
+
vermilion$1 = colorScales.vermilion,
|
|
1114
1106
|
vodka = colorScales.vodka;
|
|
1115
|
-
var palette$
|
|
1107
|
+
var palette$6 = {
|
|
1116
1108
|
black: '#000000',
|
|
1117
1109
|
white: '#ffffff',
|
|
1118
1110
|
greyLight95: grey$2.lighten95,
|
|
@@ -1121,60 +1113,89 @@ var palette$5 = {
|
|
|
1121
1113
|
greyLight45: grey$2.lighten45,
|
|
1122
1114
|
greyLight30: grey$2.lighten30,
|
|
1123
1115
|
grey: grey$2.base,
|
|
1124
|
-
maasstrichtBlueLight90: maasstrichtBlue.lighten90,
|
|
1125
|
-
maasstrichtBlueLight80: maasstrichtBlue.lighten80,
|
|
1126
|
-
maasstrichtBlueLight50: maasstrichtBlue.lighten50,
|
|
1127
|
-
maasstrichtBlueLight30: maasstrichtBlue.lighten30,
|
|
1128
|
-
maasstrichtBlue: maasstrichtBlue.base,
|
|
1129
|
-
pastelRed: pastelRed.base,
|
|
1130
|
-
pastelRedLight20: pastelRed.lighten20,
|
|
1116
|
+
maasstrichtBlueLight90: maasstrichtBlue$1.lighten90,
|
|
1117
|
+
maasstrichtBlueLight80: maasstrichtBlue$1.lighten80,
|
|
1118
|
+
maasstrichtBlueLight50: maasstrichtBlue$1.lighten50,
|
|
1119
|
+
maasstrichtBlueLight30: maasstrichtBlue$1.lighten30,
|
|
1120
|
+
maasstrichtBlue: maasstrichtBlue$1.base,
|
|
1121
|
+
pastelRed: pastelRed$1.base,
|
|
1122
|
+
pastelRedLight20: pastelRed$1.lighten20,
|
|
1131
1123
|
mellowApricot: mellowApricot.base,
|
|
1132
1124
|
mellowApricotLight20: mellowApricot.lighten20,
|
|
1133
|
-
emerald: emerald.base,
|
|
1134
|
-
emeraldLight20: emerald.lighten20,
|
|
1135
|
-
emeraldDark20: emerald.darken20,
|
|
1125
|
+
emerald: emerald$1.base,
|
|
1126
|
+
emeraldLight20: emerald$1.lighten20,
|
|
1127
|
+
emeraldDark20: emerald$1.darken20,
|
|
1136
1128
|
vodka: vodka.base,
|
|
1137
1129
|
vodkaLight20: vodka.lighten20,
|
|
1138
|
-
vermilion: vermilion.base,
|
|
1139
|
-
deepSaffron: deepSaffron.base,
|
|
1140
|
-
deepSaffronDark20: deepSaffron.darken20,
|
|
1141
|
-
pineGreen: pineGreen.base,
|
|
1142
|
-
ultramarineBlue: ultramarineBlue.base,
|
|
1143
|
-
sonicSilver: sonicSilver.base,
|
|
1130
|
+
vermilion: vermilion$1.base,
|
|
1131
|
+
deepSaffron: deepSaffron$1.base,
|
|
1132
|
+
deepSaffronDark20: deepSaffron$1.darken20,
|
|
1133
|
+
pineGreen: pineGreen$1.base,
|
|
1134
|
+
ultramarineBlue: ultramarineBlue$1.base,
|
|
1135
|
+
sonicSilver: sonicSilver$1.base,
|
|
1144
1136
|
linen: linen$1.base,
|
|
1145
1137
|
seashell: seashell$1.base,
|
|
1146
1138
|
honeydew: honeydew$1.base,
|
|
1147
1139
|
aliceBlue: aliceBlue.base,
|
|
1148
1140
|
antiFlashWhite: antiFlashWhite.base,
|
|
1149
|
-
apple: apple$
|
|
1141
|
+
apple: apple$2.base,
|
|
1142
|
+
silverChalice: silverChalice.base,
|
|
1143
|
+
silverChaliceLight20: silverChalice.lighten20
|
|
1144
|
+
};
|
|
1145
|
+
var currant$1 = colorScales.currant,
|
|
1146
|
+
sonicSilver = colorScales.sonicSilver,
|
|
1147
|
+
maasstrichtBlue = colorScales.maasstrichtBlue,
|
|
1148
|
+
nightBlue = colorScales.nightBlue,
|
|
1149
|
+
darkBlue = colorScales.darkBlue,
|
|
1150
|
+
ultramarineBlue = colorScales.ultramarineBlue,
|
|
1151
|
+
royalBlue$1 = colorScales.royalBlue,
|
|
1152
|
+
emerald = colorScales.emerald,
|
|
1153
|
+
pineGreen = colorScales.pineGreen,
|
|
1154
|
+
deepSaffron = colorScales.deepSaffron,
|
|
1155
|
+
gold$1 = colorScales.gold,
|
|
1156
|
+
apple$1 = colorScales.apple,
|
|
1157
|
+
pastelRed = colorScales.pastelRed,
|
|
1158
|
+
vermilion = colorScales.vermilion,
|
|
1159
|
+
mauve$2 = colorScales.mauve,
|
|
1160
|
+
violet1$1 = colorScales.violet1,
|
|
1161
|
+
violet$1 = colorScales.violet,
|
|
1162
|
+
scarletGum$1 = colorScales.scarletGum;
|
|
1163
|
+
var palette$5 = {
|
|
1150
1164
|
currant: currant$1.base,
|
|
1165
|
+
sonicSilver: sonicSilver.base,
|
|
1166
|
+
maasstrichtBlue: maasstrichtBlue.base,
|
|
1151
1167
|
nightBlue: nightBlue.base,
|
|
1152
1168
|
darkBlue: darkBlue.base,
|
|
1169
|
+
ultramarineBlue: ultramarineBlue.base,
|
|
1153
1170
|
royalBlue: royalBlue$1.base,
|
|
1154
1171
|
royalBlueDark20: royalBlue$1.darken20,
|
|
1172
|
+
emeraldDark20: emerald.darken20,
|
|
1173
|
+
pineGreen: pineGreen.base,
|
|
1174
|
+
deepSaffronDark20: deepSaffron.darken20,
|
|
1155
1175
|
goldDark40: gold$1.darken40,
|
|
1176
|
+
apple: apple$1.base,
|
|
1177
|
+
pastelRed: pastelRed.base,
|
|
1178
|
+
vermilion: vermilion.base,
|
|
1156
1179
|
mauve: mauve$2.base,
|
|
1157
|
-
|
|
1158
|
-
violetLight30: violet$2.lighten30,
|
|
1180
|
+
violetLight30: violet$1.lighten30,
|
|
1159
1181
|
violet1: violet1$1.base,
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
silverChaliceLight20: silverChalice.lighten20
|
|
1182
|
+
violet: violet$1.base,
|
|
1183
|
+
scarletGum: scarletGum$1.base
|
|
1163
1184
|
};
|
|
1164
|
-
var violet$
|
|
1185
|
+
var violet$3 = colorScales.violet,
|
|
1165
1186
|
mauve$1 = colorScales.mauve;
|
|
1166
|
-
var palette$4 = Object.assign(Object.assign({}, palette$
|
|
1167
|
-
violet: violet$
|
|
1168
|
-
violetLight20: violet$
|
|
1169
|
-
violetLight30: violet$
|
|
1170
|
-
violetLight90: violet$
|
|
1187
|
+
var palette$4 = Object.assign(Object.assign({}, palette$6), {
|
|
1188
|
+
violet: violet$3.base,
|
|
1189
|
+
violetLight20: violet$3.lighten20,
|
|
1190
|
+
violetLight30: violet$3.lighten30,
|
|
1191
|
+
violetLight90: violet$3.lighten90,
|
|
1171
1192
|
mauve: mauve$1.base,
|
|
1172
1193
|
mauveLight80: mauve$1.lighten80
|
|
1173
1194
|
});
|
|
1174
1195
|
var apple = colorScales.apple,
|
|
1175
1196
|
currant = colorScales.currant,
|
|
1176
1197
|
hitPink = colorScales.hitPink;
|
|
1177
|
-
var palette$3 = Object.assign(Object.assign({}, palette$
|
|
1198
|
+
var palette$3 = Object.assign(Object.assign({}, palette$6), {
|
|
1178
1199
|
apple: apple.base,
|
|
1179
1200
|
appleLight10: apple.lighten10,
|
|
1180
1201
|
hitPink: hitPink.base,
|
|
@@ -1187,7 +1208,7 @@ var palette$3 = Object.assign(Object.assign({}, palette$5), {
|
|
|
1187
1208
|
var scarletGum = colorScales.scarletGum,
|
|
1188
1209
|
violet1 = colorScales.violet1,
|
|
1189
1210
|
mauve = colorScales.mauve;
|
|
1190
|
-
var palette$2 = Object.assign(Object.assign({}, palette$
|
|
1211
|
+
var palette$2 = Object.assign(Object.assign({}, palette$6), {
|
|
1191
1212
|
scarletGumLight20: scarletGum.lighten20,
|
|
1192
1213
|
scarletGumLight30: scarletGum.lighten30,
|
|
1193
1214
|
scarletGumLight50: scarletGum.lighten50,
|
|
@@ -1203,7 +1224,7 @@ var palette$2 = Object.assign(Object.assign({}, palette$5), {
|
|
|
1203
1224
|
});
|
|
1204
1225
|
var royalBlue = colorScales.royalBlue,
|
|
1205
1226
|
frenchSky = colorScales.frenchSky;
|
|
1206
|
-
var palette$1 = Object.assign(Object.assign({}, palette$
|
|
1227
|
+
var palette$1 = Object.assign(Object.assign({}, palette$6), {
|
|
1207
1228
|
royalBlue: royalBlue.base,
|
|
1208
1229
|
royalBlueLight10: royalBlue.lighten10,
|
|
1209
1230
|
royalBlueLight80: royalBlue.lighten80,
|
|
@@ -1214,106 +1235,104 @@ var palette$1 = Object.assign(Object.assign({}, palette$5), {
|
|
|
1214
1235
|
frenchSkyLight80: frenchSky.lighten80
|
|
1215
1236
|
});
|
|
1216
1237
|
var gold$2 = colorScales.gold,
|
|
1217
|
-
|
|
1218
|
-
var palette = Object.assign(Object.assign({}, palette$
|
|
1238
|
+
policeBlue = colorScales.policeBlue;
|
|
1239
|
+
var palette = Object.assign(Object.assign({}, palette$6), {
|
|
1219
1240
|
goldLight20: gold$2.lighten20,
|
|
1220
1241
|
goldLight50: gold$2.lighten50,
|
|
1221
1242
|
goldLight70: gold$2.lighten70,
|
|
1222
1243
|
goldLight80: gold$2.lighten80,
|
|
1223
1244
|
goldLight90: gold$2.lighten90,
|
|
1224
1245
|
gold: gold$2.base,
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
violetLight80: violet$4.lighten80,
|
|
1230
|
-
violetLight90: violet$4.lighten90
|
|
1246
|
+
policeBlue: policeBlue.base,
|
|
1247
|
+
policeBlueLight20: policeBlue.lighten20,
|
|
1248
|
+
policeBlueLight25: policeBlue.lighten25,
|
|
1249
|
+
policeBlueLight90: policeBlue.lighten90
|
|
1231
1250
|
});
|
|
1232
1251
|
|
|
1233
1252
|
var globalPalette = {
|
|
1234
1253
|
// Updated 21 / Nov / 22
|
|
1235
1254
|
// Surfaces
|
|
1236
|
-
defaultGlobalSurface: palette$
|
|
1237
|
-
onDefaultGlobalSurface: palette$
|
|
1238
|
-
neutralGlobalSurface: palette$
|
|
1239
|
-
mutedOnDefaultGlobalSurface: palette$
|
|
1240
|
-
inactiveOnDefaultGlobalSurface: palette$
|
|
1241
|
-
disabledOnDefaultGlobalSurface: palette$
|
|
1242
|
-
darkGlobalSurface: palette$
|
|
1243
|
-
onDarkGlobalSurface: palette$
|
|
1255
|
+
defaultGlobalSurface: palette$6.white,
|
|
1256
|
+
onDefaultGlobalSurface: palette$6.maasstrichtBlue,
|
|
1257
|
+
neutralGlobalSurface: palette$6.greyLight90,
|
|
1258
|
+
mutedOnDefaultGlobalSurface: palette$6.maasstrichtBlueLight30,
|
|
1259
|
+
inactiveOnDefaultGlobalSurface: palette$6.maasstrichtBlueLight50,
|
|
1260
|
+
disabledOnDefaultGlobalSurface: palette$6.greyLight30,
|
|
1261
|
+
darkGlobalSurface: palette$6.maasstrichtBlue,
|
|
1262
|
+
onDarkGlobalSurface: palette$6.white,
|
|
1244
1263
|
// Outlines
|
|
1245
|
-
primaryOutline: palette$
|
|
1246
|
-
secondaryOutline: palette$
|
|
1247
|
-
inactiveOutline: palette$
|
|
1248
|
-
disabledOutline: palette$
|
|
1264
|
+
primaryOutline: palette$6.maasstrichtBlue,
|
|
1265
|
+
secondaryOutline: palette$6.greyLight75,
|
|
1266
|
+
inactiveOutline: palette$6.maasstrichtBlueLight50,
|
|
1267
|
+
disabledOutline: palette$6.greyLight30,
|
|
1249
1268
|
// Accents
|
|
1250
|
-
error: palette$
|
|
1251
|
-
mutedError: palette$
|
|
1252
|
-
errorSurface: palette$
|
|
1253
|
-
onErrorSurface: palette$
|
|
1254
|
-
warning: palette$
|
|
1255
|
-
mutedWarning: palette$
|
|
1256
|
-
warningSurface: palette$
|
|
1257
|
-
onWarningSurface: palette$
|
|
1258
|
-
success: palette$
|
|
1259
|
-
mutedSuccess: palette$
|
|
1260
|
-
successSurface: palette$
|
|
1261
|
-
onSuccessSurface: palette$
|
|
1262
|
-
info: palette$
|
|
1263
|
-
mutedInfo: palette$
|
|
1264
|
-
infoSurface: palette$
|
|
1265
|
-
onInfoSurface: palette$
|
|
1266
|
-
archived: palette$
|
|
1267
|
-
mutedArchived: palette$
|
|
1268
|
-
archivedSurface: palette$
|
|
1269
|
-
onArchivedSurface: palette$
|
|
1269
|
+
error: palette$6.pastelRed,
|
|
1270
|
+
mutedError: palette$6.pastelRedLight20,
|
|
1271
|
+
errorSurface: palette$6.linen,
|
|
1272
|
+
onErrorSurface: palette$6.vermilion,
|
|
1273
|
+
warning: palette$6.mellowApricot,
|
|
1274
|
+
mutedWarning: palette$6.mellowApricotLight20,
|
|
1275
|
+
warningSurface: palette$6.seashell,
|
|
1276
|
+
onWarningSurface: palette$6.deepSaffron,
|
|
1277
|
+
success: palette$6.emerald,
|
|
1278
|
+
mutedSuccess: palette$6.emeraldLight20,
|
|
1279
|
+
successSurface: palette$6.honeydew,
|
|
1280
|
+
onSuccessSurface: palette$6.pineGreen,
|
|
1281
|
+
info: palette$6.vodka,
|
|
1282
|
+
mutedInfo: palette$6.vodkaLight20,
|
|
1283
|
+
infoSurface: palette$6.aliceBlue,
|
|
1284
|
+
onInfoSurface: palette$6.ultramarineBlue,
|
|
1285
|
+
archived: palette$6.silverChalice,
|
|
1286
|
+
mutedArchived: palette$6.silverChaliceLight20,
|
|
1287
|
+
archivedSurface: palette$6.antiFlashWhite,
|
|
1288
|
+
onArchivedSurface: palette$6.sonicSilver
|
|
1270
1289
|
// End of Updated 21 / Nov / 22
|
|
1271
1290
|
};
|
|
1272
1291
|
|
|
1273
1292
|
var legacySystemPalette = {
|
|
1274
|
-
globalPrimary: palette$
|
|
1275
|
-
globalPrimaryLight: palette$
|
|
1276
|
-
globalPrimaryBackground: palette$
|
|
1293
|
+
globalPrimary: palette$6.maasstrichtBlue,
|
|
1294
|
+
globalPrimaryLight: palette$6.maasstrichtBlueLight50,
|
|
1295
|
+
globalPrimaryBackground: palette$6.maasstrichtBlueLight90,
|
|
1277
1296
|
primaryLight: palette$2.violetLight50,
|
|
1278
1297
|
primaryDark: palette$2.scarletGumLight30,
|
|
1279
1298
|
primaryBackground: palette$2.violetLight90,
|
|
1280
|
-
primaryBackgroundDark: palette$
|
|
1299
|
+
primaryBackgroundDark: palette$6.maasstrichtBlueLight30,
|
|
1281
1300
|
secondaryLight: palette$2.vodka,
|
|
1282
1301
|
secondaryBackground: palette$2.aliceBlue,
|
|
1283
|
-
infoMediumLight: palette$
|
|
1284
|
-
infoLight: palette$
|
|
1285
|
-
infoBackground: palette$
|
|
1286
|
-
successLight: palette$
|
|
1287
|
-
successDark: palette$
|
|
1288
|
-
successBackground: palette$
|
|
1289
|
-
danger: palette$
|
|
1290
|
-
dangerMediumLight: palette$
|
|
1291
|
-
dangerLight: palette$
|
|
1292
|
-
dangerBackground: palette$
|
|
1293
|
-
warningLight: palette$
|
|
1294
|
-
warningDark: palette$
|
|
1295
|
-
warningBackground: palette$
|
|
1296
|
-
platformBackground: palette$
|
|
1297
|
-
backgroundLight: palette$
|
|
1298
|
-
backgroundDark: palette$
|
|
1299
|
-
text: palette$
|
|
1300
|
-
subduedText: palette$
|
|
1301
|
-
disabledText: palette$
|
|
1302
|
-
disabledLightText: palette$
|
|
1303
|
-
invertedText: palette$
|
|
1304
|
-
outline: palette$
|
|
1305
|
-
archivedLight: palette$
|
|
1306
|
-
archivedDark: palette$
|
|
1307
|
-
archivedBackground: palette$
|
|
1308
|
-
black: palette$
|
|
1309
|
-
inactiveBackground: palette$
|
|
1310
|
-
shadow: palette$
|
|
1302
|
+
infoMediumLight: palette$6.vodka,
|
|
1303
|
+
infoLight: palette$6.vodka,
|
|
1304
|
+
infoBackground: palette$6.aliceBlue,
|
|
1305
|
+
successLight: palette$6.emerald,
|
|
1306
|
+
successDark: palette$6.pineGreen,
|
|
1307
|
+
successBackground: palette$6.honeydew,
|
|
1308
|
+
danger: palette$6.vermilion,
|
|
1309
|
+
dangerMediumLight: palette$6.apple,
|
|
1310
|
+
dangerLight: palette$6.pastelRed,
|
|
1311
|
+
dangerBackground: palette$6.linen,
|
|
1312
|
+
warningLight: palette$6.mellowApricot,
|
|
1313
|
+
warningDark: palette$6.deepSaffron,
|
|
1314
|
+
warningBackground: palette$6.seashell,
|
|
1315
|
+
platformBackground: palette$6.white,
|
|
1316
|
+
backgroundLight: palette$6.greyLight90,
|
|
1317
|
+
backgroundDark: palette$6.maasstrichtBlue,
|
|
1318
|
+
text: palette$6.maasstrichtBlue,
|
|
1319
|
+
subduedText: palette$6.maasstrichtBlueLight30,
|
|
1320
|
+
disabledText: palette$6.maasstrichtBlueLight50,
|
|
1321
|
+
disabledLightText: palette$6.greyLight30,
|
|
1322
|
+
invertedText: palette$6.white,
|
|
1323
|
+
outline: palette$6.greyLight75,
|
|
1324
|
+
archivedLight: palette$6.greyLight30,
|
|
1325
|
+
archivedDark: palette$6.sonicSilver,
|
|
1326
|
+
archivedBackground: palette$6.greyLight90,
|
|
1327
|
+
black: palette$6.black,
|
|
1328
|
+
inactiveBackground: palette$6.maasstrichtBlueLight50,
|
|
1329
|
+
shadow: palette$6.greyLight45,
|
|
1311
1330
|
// Updated 14 / Nov / 22
|
|
1312
|
-
mutedGlobalPrimary: palette$
|
|
1313
|
-
onGlobalPrimary: palette$
|
|
1314
|
-
globalSecondary: palette$
|
|
1315
|
-
globalPrimaryOutline: palette$
|
|
1316
|
-
globalSecondaryOutline: palette$
|
|
1331
|
+
mutedGlobalPrimary: palette$6.maasstrichtBlueLight30,
|
|
1332
|
+
onGlobalPrimary: palette$6.white,
|
|
1333
|
+
globalSecondary: palette$6.maasstrichtBlueLight30,
|
|
1334
|
+
globalPrimaryOutline: palette$6.maasstrichtBlue,
|
|
1335
|
+
globalSecondaryOutline: palette$6.greyLight75
|
|
1317
1336
|
};
|
|
1318
1337
|
|
|
1319
1338
|
var swagBrandSystemPallete = {
|
|
@@ -1337,13 +1356,13 @@ var swagLegacyBrandSystemPalette = {
|
|
|
1337
1356
|
var swagSystemPalette = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, legacySystemPalette), swagLegacyBrandSystemPalette), globalPalette), swagBrandSystemPallete);
|
|
1338
1357
|
|
|
1339
1358
|
var workBrandSystemPallete = {
|
|
1340
|
-
primary: palette.
|
|
1359
|
+
primary: palette.policeBlue,
|
|
1341
1360
|
onPrimary: palette.white,
|
|
1342
|
-
secondary: palette.
|
|
1361
|
+
secondary: palette.policeBlueLight25,
|
|
1343
1362
|
onSecondary: palette.white,
|
|
1344
1363
|
defaultSurface: palette.white,
|
|
1345
|
-
highlightedSurface: palette.
|
|
1346
|
-
pressedSurface: palette.
|
|
1364
|
+
highlightedSurface: palette.policeBlueLight90,
|
|
1365
|
+
pressedSurface: palette.policeBlueLight20,
|
|
1347
1366
|
decorativePrimary: palette.gold,
|
|
1348
1367
|
decorativePrimarySurface: palette.goldLight80
|
|
1349
1368
|
};
|
|
@@ -1611,8 +1630,7 @@ var getAvatarTheme = function getAvatarTheme(theme) {
|
|
|
1611
1630
|
danger: theme.colors.error,
|
|
1612
1631
|
success: theme.colors.success,
|
|
1613
1632
|
warning: theme.colors.warning,
|
|
1614
|
-
text: theme.colors.invertedText
|
|
1615
|
-
visualisation: [palette$5.currant, palette$5.sonicSilver, palette$5.maasstrichtBlue, palette$5.nightBlue, palette$5.darkBlue, palette$5.ultramarineBlue, palette$5.royalBlue, palette$5.royalBlueDark20, palette$5.emeraldDark20, palette$5.pineGreen, palette$5.deepSaffronDark20, palette$5.goldDark40, palette$5.apple, palette$5.pastelRed, palette$5.vermilion, palette$5.mauve, palette$5.violetLight30, palette$5.violet1, palette$5.violet, palette$5.scarletGum]
|
|
1633
|
+
text: theme.colors.invertedText
|
|
1616
1634
|
};
|
|
1617
1635
|
var sizes = {
|
|
1618
1636
|
small: theme.sizes.xlarge,
|
|
@@ -6667,11 +6685,9 @@ var shuffleArray = function shuffleArray(array) {
|
|
|
6667
6685
|
* Hook that returns a memoized and shuffled array of visualisation colors for Avatar.
|
|
6668
6686
|
*/
|
|
6669
6687
|
var useAvatarColors = function useAvatarColors() {
|
|
6670
|
-
var theme = useTheme();
|
|
6671
|
-
var visualisationColors = theme.__hd__.avatar.colors.visualisation;
|
|
6672
6688
|
var shuffledColors = React.useMemo(function () {
|
|
6673
|
-
return shuffleArray(
|
|
6674
|
-
}, [
|
|
6689
|
+
return shuffleArray(Object.values(palette$5));
|
|
6690
|
+
}, []);
|
|
6675
6691
|
return shuffledColors;
|
|
6676
6692
|
};
|
|
6677
6693
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hero-design/rn",
|
|
3
|
-
"version": "7.27.
|
|
3
|
+
"version": "7.27.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@emotion/native": "^11.9.3",
|
|
22
22
|
"@emotion/react": "^11.9.3",
|
|
23
|
-
"@hero-design/colors": "7.27.
|
|
23
|
+
"@hero-design/colors": "7.27.1",
|
|
24
24
|
"date-fns": "^2.16.1",
|
|
25
25
|
"events": "^3.2.0",
|
|
26
26
|
"hero-editor": "^1.9.12"
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@types/react-native": "^0.67.7",
|
|
59
59
|
"@types/react-native-vector-icons": "^6.4.10",
|
|
60
60
|
"babel-plugin-inline-import": "^3.0.0",
|
|
61
|
-
"eslint-config-hd": "7.27.
|
|
61
|
+
"eslint-config-hd": "7.27.1",
|
|
62
62
|
"jest": "^27.3.1",
|
|
63
63
|
"react": "17.0.2",
|
|
64
64
|
"react-native": "0.65.1",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"rollup-plugin-copy": "^3.4.0",
|
|
73
73
|
"rollup-plugin-flow": "^1.1.1",
|
|
74
74
|
"ts-jest": "^27.0.7",
|
|
75
|
-
"prettier-config-hd": "7.27.
|
|
75
|
+
"prettier-config-hd": "7.27.1",
|
|
76
76
|
"rn-7-23-0": "npm:@hero-design/rn@7.23.0"
|
|
77
77
|
},
|
|
78
78
|
"prettier": "prettier-config-hd"
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import renderWithTheme from '../../../../testHelpers/renderWithTheme';
|
|
3
3
|
import { StyledWrapper, StyledAvatar } from '../StyledAvatarStack';
|
|
4
|
-
import theme from '../../../../theme';
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
beforeEach(() => {
|
|
6
|
+
jest.spyOn(Math, 'random').mockReturnValue(0.123);
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
afterEach(() => {
|
|
10
|
+
jest.spyOn(Math, 'random').mockRestore();
|
|
8
11
|
});
|
|
9
12
|
|
|
10
13
|
describe('StyledWrapper', () => {
|
|
@@ -30,7 +30,7 @@ exports[`AvatarStack renders correctly by default 1`] = `
|
|
|
30
30
|
onStartShouldSetResponder={[Function]}
|
|
31
31
|
style={
|
|
32
32
|
Object {
|
|
33
|
-
"backgroundColor": "#
|
|
33
|
+
"backgroundColor": "#48000a",
|
|
34
34
|
"borderRadius": 999,
|
|
35
35
|
"height": 32,
|
|
36
36
|
"left": 0,
|
|
@@ -87,7 +87,7 @@ exports[`AvatarStack renders correctly by default 1`] = `
|
|
|
87
87
|
onStartShouldSetResponder={[Function]}
|
|
88
88
|
style={
|
|
89
89
|
Object {
|
|
90
|
-
"backgroundColor": "#
|
|
90
|
+
"backgroundColor": "#737479",
|
|
91
91
|
"borderRadius": 999,
|
|
92
92
|
"height": 32,
|
|
93
93
|
"left": 22.4,
|
|
@@ -144,7 +144,7 @@ exports[`AvatarStack renders correctly by default 1`] = `
|
|
|
144
144
|
onStartShouldSetResponder={[Function]}
|
|
145
145
|
style={
|
|
146
146
|
Object {
|
|
147
|
-
"backgroundColor": "#
|
|
147
|
+
"backgroundColor": "#001f23",
|
|
148
148
|
"borderRadius": 999,
|
|
149
149
|
"height": 32,
|
|
150
150
|
"left": 44.8,
|
|
@@ -201,7 +201,7 @@ exports[`AvatarStack renders correctly by default 1`] = `
|
|
|
201
201
|
onStartShouldSetResponder={[Function]}
|
|
202
202
|
style={
|
|
203
203
|
Object {
|
|
204
|
-
"backgroundColor": "#
|
|
204
|
+
"backgroundColor": "#353957",
|
|
205
205
|
"borderRadius": 999,
|
|
206
206
|
"height": 32,
|
|
207
207
|
"left": 67.19999999999999,
|
|
@@ -258,7 +258,7 @@ exports[`AvatarStack renders correctly by default 1`] = `
|
|
|
258
258
|
onStartShouldSetResponder={[Function]}
|
|
259
259
|
style={
|
|
260
260
|
Object {
|
|
261
|
-
"backgroundColor": "#
|
|
261
|
+
"backgroundColor": "#25006e",
|
|
262
262
|
"borderRadius": 999,
|
|
263
263
|
"height": 32,
|
|
264
264
|
"left": 89.6,
|
|
@@ -334,7 +334,7 @@ exports[`AvatarStack renders correctly with custom props 1`] = `
|
|
|
334
334
|
onStartShouldSetResponder={[Function]}
|
|
335
335
|
style={
|
|
336
336
|
Object {
|
|
337
|
-
"backgroundColor": "#
|
|
337
|
+
"backgroundColor": "#48000a",
|
|
338
338
|
"borderRadius": 999,
|
|
339
339
|
"height": 40,
|
|
340
340
|
"left": 0,
|
|
@@ -391,7 +391,7 @@ exports[`AvatarStack renders correctly with custom props 1`] = `
|
|
|
391
391
|
onStartShouldSetResponder={[Function]}
|
|
392
392
|
style={
|
|
393
393
|
Object {
|
|
394
|
-
"backgroundColor": "#
|
|
394
|
+
"backgroundColor": "#737479",
|
|
395
395
|
"borderRadius": 999,
|
|
396
396
|
"height": 40,
|
|
397
397
|
"left": 28,
|
|
@@ -448,7 +448,7 @@ exports[`AvatarStack renders correctly with custom props 1`] = `
|
|
|
448
448
|
onStartShouldSetResponder={[Function]}
|
|
449
449
|
style={
|
|
450
450
|
Object {
|
|
451
|
-
"backgroundColor": "#
|
|
451
|
+
"backgroundColor": "#001f23",
|
|
452
452
|
"borderRadius": 999,
|
|
453
453
|
"height": 40,
|
|
454
454
|
"left": 56,
|
|
@@ -505,7 +505,7 @@ exports[`AvatarStack renders correctly with custom props 1`] = `
|
|
|
505
505
|
onStartShouldSetResponder={[Function]}
|
|
506
506
|
style={
|
|
507
507
|
Object {
|
|
508
|
-
"backgroundColor": "#
|
|
508
|
+
"backgroundColor": "#353957",
|
|
509
509
|
"borderRadius": 999,
|
|
510
510
|
"height": 40,
|
|
511
511
|
"left": 84,
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import renderWithTheme from '../../../../testHelpers/renderWithTheme';
|
|
3
3
|
import Avatar from '../..';
|
|
4
|
-
import theme from '../../../../theme';
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
beforeEach(() => {
|
|
6
|
+
jest.spyOn(Math, 'random').mockReturnValue(0.123);
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
afterEach(() => {
|
|
10
|
+
jest.spyOn(Math, 'random').mockRestore();
|
|
8
11
|
});
|
|
9
12
|
|
|
10
13
|
describe('AvatarStack', () => {
|