@hero-design/rn 8.34.1 → 8.34.2
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 +1 -1
- package/es/index.js +150 -175
- package/lib/index.js +150 -175
- package/package.json +7 -7
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/FAB/ActionGroup/index.tsx +1 -1
- package/src/components/FAB/FAB.tsx +1 -0
- package/src/components/FAB/StyledFAB.tsx +20 -16
- package/src/components/FAB/__tests__/StyledFAB.spec.tsx +11 -1
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +57 -0
- package/src/components/List/StyledListItem.tsx +1 -1
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +4 -0
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +2 -0
- package/src/components/Progress/StyledProgressBar.tsx +1 -0
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +46 -44
- package/src/components/Switch/SelectorSwitch/StyledSelectorSwitch.tsx +4 -7
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +8 -8
- package/src/components/Switch/SelectorSwitch/index.tsx +7 -15
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +12 -12
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +4 -4
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +9 -8
- package/src/theme/components/fab.ts +1 -0
- package/src/theme/components/list.ts +1 -1
- package/src/theme/components/progress.ts +2 -2
- package/src/theme/components/switch.ts +4 -4
- package/src/theme/components/tabs.ts +1 -1
- package/src/theme/global/colors/__tests__/__snapshots__/work.spec.ts.snap +4 -4
- package/src/theme/global/colors/work.ts +4 -4
- package/types/components/FAB/StyledFAB.d.ts +2 -0
- package/types/theme/components/fab.d.ts +1 -0
- package/types/theme/components/list.d.ts +1 -1
- package/types/theme/components/switch.d.ts +1 -1
package/lib/index.js
CHANGED
|
@@ -948,6 +948,7 @@ var BASE_COLORS = {
|
|
|
948
948
|
antiFlashWhite: '#f1f2f3',
|
|
949
949
|
apple: '#e3602a',
|
|
950
950
|
bigStone: '#344348',
|
|
951
|
+
black: '#000000',
|
|
951
952
|
blue1: '#5a68e2',
|
|
952
953
|
blue: '#1dbeee',
|
|
953
954
|
blueOblivion: '#23438f',
|
|
@@ -1005,16 +1006,16 @@ var colorScales = Object.entries(BASE_COLORS).reduce(function (acc, _ref16) {
|
|
|
1005
1006
|
return Object.assign(Object.assign({}, acc), _defineProperty({}, key, createColorScales(value)));
|
|
1006
1007
|
}, {});
|
|
1007
1008
|
var blue$1 = colorScales.blue,
|
|
1008
|
-
ultramarineBlue$
|
|
1009
|
+
ultramarineBlue$2 = colorScales.ultramarineBlue,
|
|
1009
1010
|
green$1 = colorScales.green,
|
|
1010
1011
|
grey$2 = colorScales.grey,
|
|
1011
1012
|
grotesqueGreen = colorScales.grotesqueGreen,
|
|
1012
|
-
deepSaffron$
|
|
1013
|
+
deepSaffron$2 = colorScales.deepSaffron,
|
|
1013
1014
|
pink$1 = colorScales.pink,
|
|
1014
1015
|
purple$1 = colorScales.purple,
|
|
1015
|
-
vermilion$
|
|
1016
|
+
vermilion$2 = colorScales.vermilion,
|
|
1016
1017
|
smalt = colorScales.smalt,
|
|
1017
|
-
violet$
|
|
1018
|
+
violet$1 = colorScales.violet,
|
|
1018
1019
|
yellow$1 = colorScales.yellow;
|
|
1019
1020
|
var palette$b = {
|
|
1020
1021
|
black: '#000000',
|
|
@@ -1025,14 +1026,14 @@ var palette$b = {
|
|
|
1025
1026
|
blueLight30: blue$1.lighten30,
|
|
1026
1027
|
blueLight75: blue$1.lighten75,
|
|
1027
1028
|
blueLight90: blue$1.lighten90,
|
|
1028
|
-
dodgerBlue: ultramarineBlue$
|
|
1029
|
-
dodgerBlueDark15: ultramarineBlue$
|
|
1030
|
-
dodgerBlueDark30: ultramarineBlue$
|
|
1031
|
-
dodgerBlueLight30: ultramarineBlue$
|
|
1032
|
-
dodgerBlueLight45: ultramarineBlue$
|
|
1033
|
-
dodgerBlueLight60: ultramarineBlue$
|
|
1034
|
-
dodgerBlueLight75: ultramarineBlue$
|
|
1035
|
-
dodgerBlueLight90: ultramarineBlue$
|
|
1029
|
+
dodgerBlue: ultramarineBlue$2.base,
|
|
1030
|
+
dodgerBlueDark15: ultramarineBlue$2.darken15,
|
|
1031
|
+
dodgerBlueDark30: ultramarineBlue$2.darken30,
|
|
1032
|
+
dodgerBlueLight30: ultramarineBlue$2.lighten30,
|
|
1033
|
+
dodgerBlueLight45: ultramarineBlue$2.lighten45,
|
|
1034
|
+
dodgerBlueLight60: ultramarineBlue$2.lighten60,
|
|
1035
|
+
dodgerBlueLight75: ultramarineBlue$2.lighten75,
|
|
1036
|
+
dodgerBlueLight90: ultramarineBlue$2.lighten90,
|
|
1036
1037
|
green: green$1.base,
|
|
1037
1038
|
greenDark15: green$1.darken15,
|
|
1038
1039
|
greenDark30: green$1.darken30,
|
|
@@ -1058,13 +1059,13 @@ var palette$b = {
|
|
|
1058
1059
|
grotesqueGreenLight60: grotesqueGreen.lighten60,
|
|
1059
1060
|
grotesqueGreenLight75: grotesqueGreen.lighten75,
|
|
1060
1061
|
grotesqueGreenLight90: grotesqueGreen.lighten90,
|
|
1061
|
-
orange: deepSaffron$
|
|
1062
|
-
orangeDark15: deepSaffron$
|
|
1063
|
-
orangeDark30: deepSaffron$
|
|
1064
|
-
orangeDark75: deepSaffron$
|
|
1065
|
-
orangeLight30: deepSaffron$
|
|
1066
|
-
orangeLight75: deepSaffron$
|
|
1067
|
-
orangeLight90: deepSaffron$
|
|
1062
|
+
orange: deepSaffron$2.base,
|
|
1063
|
+
orangeDark15: deepSaffron$2.darken15,
|
|
1064
|
+
orangeDark30: deepSaffron$2.darken30,
|
|
1065
|
+
orangeDark75: deepSaffron$2.darken75,
|
|
1066
|
+
orangeLight30: deepSaffron$2.lighten30,
|
|
1067
|
+
orangeLight75: deepSaffron$2.lighten75,
|
|
1068
|
+
orangeLight90: deepSaffron$2.lighten90,
|
|
1068
1069
|
pink: pink$1.base,
|
|
1069
1070
|
pinkDark15: pink$1.darken15,
|
|
1070
1071
|
pinkDark30: pink$1.darken30,
|
|
@@ -1076,31 +1077,31 @@ var palette$b = {
|
|
|
1076
1077
|
pinkLight90: pink$1.lighten90,
|
|
1077
1078
|
purple: purple$1.base,
|
|
1078
1079
|
purpleDark15: purple$1.darken15,
|
|
1079
|
-
red: vermilion$
|
|
1080
|
-
redDark15: vermilion$
|
|
1081
|
-
redDark30: vermilion$
|
|
1082
|
-
redDark75: vermilion$
|
|
1083
|
-
redLight15: vermilion$
|
|
1084
|
-
redLight30: vermilion$
|
|
1085
|
-
redLight60: vermilion$
|
|
1086
|
-
redLight75: vermilion$
|
|
1087
|
-
redLight90: vermilion$
|
|
1080
|
+
red: vermilion$2.base,
|
|
1081
|
+
redDark15: vermilion$2.darken15,
|
|
1082
|
+
redDark30: vermilion$2.darken30,
|
|
1083
|
+
redDark75: vermilion$2.darken75,
|
|
1084
|
+
redLight15: vermilion$2.lighten15,
|
|
1085
|
+
redLight30: vermilion$2.lighten30,
|
|
1086
|
+
redLight60: vermilion$2.lighten60,
|
|
1087
|
+
redLight75: vermilion$2.lighten75,
|
|
1088
|
+
redLight90: vermilion$2.lighten90,
|
|
1088
1089
|
smalt: smalt.base,
|
|
1089
1090
|
smaltDark75: smalt.darken75,
|
|
1090
1091
|
smaltLight30: smalt.lighten30,
|
|
1091
1092
|
smaltLight45: smalt.lighten45,
|
|
1092
1093
|
smaltLight75: smalt.lighten75,
|
|
1093
1094
|
smaltLight90: smalt.lighten90,
|
|
1094
|
-
violet: violet$
|
|
1095
|
-
violetDark15: violet$
|
|
1096
|
-
violetDark30: violet$
|
|
1097
|
-
violetDark45: violet$
|
|
1098
|
-
violetDark60: violet$
|
|
1099
|
-
violetDark75: violet$
|
|
1100
|
-
violetLight30: violet$
|
|
1101
|
-
violetLight60: violet$
|
|
1102
|
-
violetLight75: violet$
|
|
1103
|
-
violetLight90: violet$
|
|
1095
|
+
violet: violet$1.base,
|
|
1096
|
+
violetDark15: violet$1.darken15,
|
|
1097
|
+
violetDark30: violet$1.darken30,
|
|
1098
|
+
violetDark45: violet$1.darken45,
|
|
1099
|
+
violetDark60: violet$1.darken60,
|
|
1100
|
+
violetDark75: violet$1.darken75,
|
|
1101
|
+
violetLight30: violet$1.lighten30,
|
|
1102
|
+
violetLight60: violet$1.lighten60,
|
|
1103
|
+
violetLight75: violet$1.lighten75,
|
|
1104
|
+
violetLight90: violet$1.lighten90,
|
|
1104
1105
|
yellow: yellow$1.base,
|
|
1105
1106
|
yellowDark15: yellow$1.darken15,
|
|
1106
1107
|
yellowDark75: yellow$1.darken75,
|
|
@@ -1109,45 +1110,46 @@ var palette$b = {
|
|
|
1109
1110
|
yellowLight75: yellow$1.lighten75,
|
|
1110
1111
|
yellowLight90: yellow$1.lighten90
|
|
1111
1112
|
};
|
|
1112
|
-
var mauve$
|
|
1113
|
-
violet$
|
|
1113
|
+
var mauve$3 = colorScales.mauve,
|
|
1114
|
+
violet$2 = colorScales.violet;
|
|
1114
1115
|
Object.assign(Object.assign({}, palette$b), {
|
|
1115
|
-
mauve: mauve$
|
|
1116
|
-
mauveLight80: mauve$
|
|
1117
|
-
violetDark50: violet$
|
|
1116
|
+
mauve: mauve$3.base,
|
|
1117
|
+
mauveLight80: mauve$3.lighten80,
|
|
1118
|
+
violetDark50: violet$2.darken50
|
|
1118
1119
|
});
|
|
1119
|
-
var apple$
|
|
1120
|
+
var apple$3 = colorScales.apple,
|
|
1120
1121
|
hitPink$1 = colorScales.hitPink,
|
|
1121
1122
|
maasstrichtBlue$4 = colorScales.maasstrichtBlue;
|
|
1122
1123
|
Object.assign(Object.assign({}, palette$b), {
|
|
1123
|
-
apple: apple$
|
|
1124
|
-
appleDark20: apple$
|
|
1125
|
-
appleDark50: apple$
|
|
1126
|
-
appleLight90: apple$
|
|
1124
|
+
apple: apple$3.base,
|
|
1125
|
+
appleDark20: apple$3.darken20,
|
|
1126
|
+
appleDark50: apple$3.darken50,
|
|
1127
|
+
appleLight90: apple$3.lighten90,
|
|
1127
1128
|
hitPink: hitPink$1.base,
|
|
1128
1129
|
hitPinkLight80: hitPink$1.lighten80,
|
|
1129
1130
|
maasstrichtBlueLight30: maasstrichtBlue$4.lighten30
|
|
1130
1131
|
});
|
|
1131
1132
|
var aliceBlue$1 = colorScales.aliceBlue,
|
|
1132
1133
|
antiFlashWhite$1 = colorScales.antiFlashWhite,
|
|
1133
|
-
apple$
|
|
1134
|
-
deepSaffron$
|
|
1135
|
-
emerald$
|
|
1134
|
+
apple$2 = colorScales.apple,
|
|
1135
|
+
deepSaffron$1 = colorScales.deepSaffron,
|
|
1136
|
+
emerald$1 = colorScales.emerald,
|
|
1136
1137
|
grey$1 = colorScales.grey,
|
|
1137
1138
|
honeydew$1 = colorScales.honeydew,
|
|
1138
1139
|
linen$1 = colorScales.linen,
|
|
1139
1140
|
maasstrichtBlue$3 = colorScales.maasstrichtBlue,
|
|
1140
1141
|
mellowApricot$1 = colorScales.mellowApricot,
|
|
1141
|
-
pastelRed$
|
|
1142
|
-
pineGreen$
|
|
1142
|
+
pastelRed$1 = colorScales.pastelRed,
|
|
1143
|
+
pineGreen$1 = colorScales.pineGreen,
|
|
1143
1144
|
seashell$1 = colorScales.seashell,
|
|
1144
1145
|
silverChalice$1 = colorScales.silverChalice,
|
|
1145
|
-
sonicSilver$
|
|
1146
|
-
ultramarineBlue$
|
|
1147
|
-
vermilion$
|
|
1148
|
-
vodka$1 = colorScales.vodka
|
|
1146
|
+
sonicSilver$1 = colorScales.sonicSilver,
|
|
1147
|
+
ultramarineBlue$1 = colorScales.ultramarineBlue,
|
|
1148
|
+
vermilion$1 = colorScales.vermilion,
|
|
1149
|
+
vodka$1 = colorScales.vodka,
|
|
1150
|
+
black$1 = colorScales.black;
|
|
1149
1151
|
var palette$8 = {
|
|
1150
|
-
black:
|
|
1152
|
+
black: black$1.base,
|
|
1151
1153
|
white: '#ffffff',
|
|
1152
1154
|
greyLight95: grey$1.lighten95,
|
|
1153
1155
|
greyLight90: grey$1.lighten90,
|
|
@@ -1160,39 +1162,39 @@ var palette$8 = {
|
|
|
1160
1162
|
maasstrichtBlueLight50: maasstrichtBlue$3.lighten50,
|
|
1161
1163
|
maasstrichtBlueLight30: maasstrichtBlue$3.lighten30,
|
|
1162
1164
|
maasstrichtBlue: maasstrichtBlue$3.base,
|
|
1163
|
-
pastelRed: pastelRed$
|
|
1164
|
-
pastelRedLight20: pastelRed$
|
|
1165
|
+
pastelRed: pastelRed$1.base,
|
|
1166
|
+
pastelRedLight20: pastelRed$1.lighten20,
|
|
1165
1167
|
mellowApricot: mellowApricot$1.base,
|
|
1166
1168
|
mellowApricotLight20: mellowApricot$1.lighten20,
|
|
1167
|
-
emerald: emerald$
|
|
1168
|
-
emeraldLight20: emerald$
|
|
1169
|
-
emeraldDark20: emerald$
|
|
1169
|
+
emerald: emerald$1.base,
|
|
1170
|
+
emeraldLight20: emerald$1.lighten20,
|
|
1171
|
+
emeraldDark20: emerald$1.darken20,
|
|
1170
1172
|
vodka: vodka$1.base,
|
|
1171
1173
|
vodkaLight20: vodka$1.lighten20,
|
|
1172
|
-
vermilion: vermilion$
|
|
1173
|
-
deepSaffron: deepSaffron$
|
|
1174
|
-
deepSaffronDark20: deepSaffron$
|
|
1175
|
-
pineGreen: pineGreen$
|
|
1176
|
-
ultramarineBlue: ultramarineBlue$
|
|
1177
|
-
sonicSilver: sonicSilver$
|
|
1174
|
+
vermilion: vermilion$1.base,
|
|
1175
|
+
deepSaffron: deepSaffron$1.base,
|
|
1176
|
+
deepSaffronDark20: deepSaffron$1.darken20,
|
|
1177
|
+
pineGreen: pineGreen$1.base,
|
|
1178
|
+
ultramarineBlue: ultramarineBlue$1.base,
|
|
1179
|
+
sonicSilver: sonicSilver$1.base,
|
|
1178
1180
|
linen: linen$1.base,
|
|
1179
1181
|
seashell: seashell$1.base,
|
|
1180
1182
|
honeydew: honeydew$1.base,
|
|
1181
1183
|
aliceBlue: aliceBlue$1.base,
|
|
1182
1184
|
antiFlashWhite: antiFlashWhite$1.base,
|
|
1183
|
-
apple: apple$
|
|
1185
|
+
apple: apple$2.base,
|
|
1184
1186
|
silverChalice: silverChalice$1.base,
|
|
1185
1187
|
silverChaliceLight20: silverChalice$1.lighten20
|
|
1186
1188
|
};
|
|
1187
1189
|
var aliceBlue = colorScales.aliceBlue,
|
|
1188
1190
|
antiFlashWhite = colorScales.antiFlashWhite,
|
|
1189
|
-
apple$
|
|
1191
|
+
apple$1 = colorScales.apple,
|
|
1190
1192
|
blazingBonfire = colorScales.blazingBonfire,
|
|
1191
1193
|
bigStone = colorScales.bigStone,
|
|
1192
1194
|
flagstone = colorScales.flagstone,
|
|
1193
|
-
deepSaffron
|
|
1195
|
+
deepSaffron = colorScales.deepSaffron,
|
|
1194
1196
|
deepIntoTheJungle = colorScales.deepIntoTheJungle,
|
|
1195
|
-
emerald
|
|
1197
|
+
emerald = colorScales.emerald,
|
|
1196
1198
|
grey$3 = colorScales.grey,
|
|
1197
1199
|
honeydew$2 = colorScales.honeydew,
|
|
1198
1200
|
indianDance = colorScales.indianDance,
|
|
@@ -1200,13 +1202,13 @@ var aliceBlue = colorScales.aliceBlue,
|
|
|
1200
1202
|
maasstrichtBlue$2 = colorScales.maasstrichtBlue,
|
|
1201
1203
|
mellowApricot = colorScales.mellowApricot,
|
|
1202
1204
|
moussaka = colorScales.moussaka,
|
|
1203
|
-
pastelRed
|
|
1204
|
-
pineGreen
|
|
1205
|
+
pastelRed = colorScales.pastelRed,
|
|
1206
|
+
pineGreen = colorScales.pineGreen,
|
|
1205
1207
|
seashell$2 = colorScales.seashell,
|
|
1206
1208
|
silverChalice = colorScales.silverChalice,
|
|
1207
|
-
sonicSilver
|
|
1208
|
-
ultramarineBlue
|
|
1209
|
-
vermilion
|
|
1209
|
+
sonicSilver = colorScales.sonicSilver,
|
|
1210
|
+
ultramarineBlue = colorScales.ultramarineBlue,
|
|
1211
|
+
vermilion = colorScales.vermilion,
|
|
1210
1212
|
vodka = colorScales.vodka,
|
|
1211
1213
|
theatreGold = colorScales.theatreGold,
|
|
1212
1214
|
uniformGreen = colorScales.uniformGreen,
|
|
@@ -1233,39 +1235,39 @@ var palette$7 = {
|
|
|
1233
1235
|
maasstrichtBlueLight15: maasstrichtBlue$2.lighten15,
|
|
1234
1236
|
maasstrichtBlueLight10: maasstrichtBlue$2.lighten10,
|
|
1235
1237
|
maasstrichtBlue: maasstrichtBlue$2.base,
|
|
1236
|
-
pastelRed: pastelRed
|
|
1237
|
-
pastelRedLight20: pastelRed
|
|
1238
|
+
pastelRed: pastelRed.base,
|
|
1239
|
+
pastelRedLight20: pastelRed.lighten20,
|
|
1238
1240
|
mellowApricot: mellowApricot.base,
|
|
1239
1241
|
mellowApricotLight20: mellowApricot.lighten20,
|
|
1240
1242
|
moussaka: moussaka.base,
|
|
1241
|
-
emerald: emerald
|
|
1242
|
-
emeraldLight20: emerald
|
|
1243
|
-
emeraldDark20: emerald
|
|
1243
|
+
emerald: emerald.base,
|
|
1244
|
+
emeraldLight20: emerald.lighten20,
|
|
1245
|
+
emeraldDark20: emerald.darken20,
|
|
1244
1246
|
vodka: vodka.base,
|
|
1245
1247
|
vodkaLight20: vodka.lighten20,
|
|
1246
|
-
vermilion: vermilion
|
|
1247
|
-
vermilionLight20: vermilion
|
|
1248
|
-
vermilionDark10: vermilion
|
|
1249
|
-
deepSaffron: deepSaffron
|
|
1250
|
-
deepSaffronDark20: deepSaffron
|
|
1248
|
+
vermilion: vermilion.base,
|
|
1249
|
+
vermilionLight20: vermilion.lighten20,
|
|
1250
|
+
vermilionDark10: vermilion.darken10,
|
|
1251
|
+
deepSaffron: deepSaffron.base,
|
|
1252
|
+
deepSaffronDark20: deepSaffron.darken20,
|
|
1251
1253
|
indianDance: indianDance.base,
|
|
1252
1254
|
theatreGold: theatreGold.base,
|
|
1253
1255
|
theatreGoldLight20: theatreGold.lighten20,
|
|
1254
|
-
pineGreen: pineGreen
|
|
1255
|
-
pineGreenLight20: pineGreen
|
|
1256
|
-
pineGreenDark10: pineGreen
|
|
1257
|
-
ultramarineBlue: ultramarineBlue
|
|
1258
|
-
ultramarineBlueLight20: ultramarineBlue
|
|
1259
|
-
ultramarineBlueDark10: ultramarineBlue
|
|
1260
|
-
sonicSilver: sonicSilver
|
|
1261
|
-
sonicSilverLight50: sonicSilver
|
|
1262
|
-
sonicSilverDark10: sonicSilver
|
|
1256
|
+
pineGreen: pineGreen.base,
|
|
1257
|
+
pineGreenLight20: pineGreen.lighten20,
|
|
1258
|
+
pineGreenDark10: pineGreen.darken10,
|
|
1259
|
+
ultramarineBlue: ultramarineBlue.base,
|
|
1260
|
+
ultramarineBlueLight20: ultramarineBlue.lighten20,
|
|
1261
|
+
ultramarineBlueDark10: ultramarineBlue.darken10,
|
|
1262
|
+
sonicSilver: sonicSilver.base,
|
|
1263
|
+
sonicSilverLight50: sonicSilver.lighten45,
|
|
1264
|
+
sonicSilverDark10: sonicSilver.darken10,
|
|
1263
1265
|
linen: linen$2.base,
|
|
1264
1266
|
seashell: seashell$2.base,
|
|
1265
1267
|
honeydew: honeydew$2.base,
|
|
1266
1268
|
aliceBlue: aliceBlue.base,
|
|
1267
1269
|
antiFlashWhite: antiFlashWhite.base,
|
|
1268
|
-
apple: apple$
|
|
1270
|
+
apple: apple$1.base,
|
|
1269
1271
|
silverChalice: silverChalice.base,
|
|
1270
1272
|
silverChaliceLight20: silverChalice.lighten20,
|
|
1271
1273
|
uniformGreen: uniformGreen.base,
|
|
@@ -1277,45 +1279,17 @@ var palette$7 = {
|
|
|
1277
1279
|
bigStone: bigStone.base,
|
|
1278
1280
|
flagstone: flagstone.base
|
|
1279
1281
|
};
|
|
1280
|
-
var
|
|
1281
|
-
sonicSilver = colorScales.sonicSilver,
|
|
1282
|
-
maasstrichtBlue$1 = colorScales.maasstrichtBlue,
|
|
1283
|
-
nightBlue = colorScales.nightBlue,
|
|
1284
|
-
darkBlue = colorScales.darkBlue,
|
|
1285
|
-
ultramarineBlue = colorScales.ultramarineBlue,
|
|
1286
|
-
royalBlue$1 = colorScales.royalBlue,
|
|
1287
|
-
emerald = colorScales.emerald,
|
|
1288
|
-
pineGreen = colorScales.pineGreen,
|
|
1289
|
-
deepSaffron = colorScales.deepSaffron,
|
|
1290
|
-
gold$1 = colorScales.gold,
|
|
1291
|
-
apple$1 = colorScales.apple,
|
|
1292
|
-
pastelRed = colorScales.pastelRed,
|
|
1293
|
-
vermilion = colorScales.vermilion,
|
|
1294
|
-
mauve$3 = colorScales.mauve,
|
|
1295
|
-
violet1$3 = colorScales.violet1,
|
|
1296
|
-
violet$3 = colorScales.violet,
|
|
1297
|
-
scarletGum$2 = colorScales.scarletGum;
|
|
1282
|
+
var maasstrichtBlue$1 = colorScales.maasstrichtBlue;
|
|
1298
1283
|
var palette$6 = {
|
|
1299
|
-
currant: currant$1.base,
|
|
1300
|
-
sonicSilver: sonicSilver.base,
|
|
1301
1284
|
maasstrichtBlue: maasstrichtBlue$1.base,
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
goldDark40: gold$1.darken40,
|
|
1311
|
-
apple: apple$1.base,
|
|
1312
|
-
pastelRed: pastelRed.base,
|
|
1313
|
-
vermilion: vermilion.base,
|
|
1314
|
-
mauve: mauve$3.base,
|
|
1315
|
-
violetLight30: violet$3.lighten30,
|
|
1316
|
-
violet1: violet1$3.base,
|
|
1317
|
-
violet: violet$3.base,
|
|
1318
|
-
scarletGum: scarletGum$2.base
|
|
1285
|
+
maasstrichtBlueLight5: maasstrichtBlue$1.lighten5,
|
|
1286
|
+
maasstrichtBlueLight10: maasstrichtBlue$1.lighten10,
|
|
1287
|
+
maasstrichtBlueLight15: maasstrichtBlue$1.lighten15,
|
|
1288
|
+
maasstrichtBlueLight20: maasstrichtBlue$1.lighten20,
|
|
1289
|
+
maasstrichtBlueLight25: maasstrichtBlue$1.lighten25,
|
|
1290
|
+
maasstrichtBlueLight30: maasstrichtBlue$1.lighten30,
|
|
1291
|
+
maasstrichtBlueLight35: maasstrichtBlue$1.lighten35,
|
|
1292
|
+
maasstrichtBlueLight40: maasstrichtBlue$1.lighten40
|
|
1319
1293
|
};
|
|
1320
1294
|
var violet1$2 = colorScales.violet1,
|
|
1321
1295
|
mauve$2 = colorScales.mauve;
|
|
@@ -1394,15 +1368,18 @@ var palette$1 = Object.assign(Object.assign({}, palette$8), {
|
|
|
1394
1368
|
frenchSkyLight70: frenchSky.lighten70,
|
|
1395
1369
|
frenchSkyLight80: frenchSky.lighten80
|
|
1396
1370
|
});
|
|
1397
|
-
var gold$
|
|
1398
|
-
policeBlue = colorScales.policeBlue
|
|
1371
|
+
var gold$1 = colorScales.gold,
|
|
1372
|
+
policeBlue = colorScales.policeBlue,
|
|
1373
|
+
black$2 = colorScales.black;
|
|
1399
1374
|
var palette = Object.assign(Object.assign({}, palette$8), {
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1375
|
+
blackLight30: black$2.lighten30,
|
|
1376
|
+
blackLight90: black$2.lighten90,
|
|
1377
|
+
goldLight20: gold$1.lighten20,
|
|
1378
|
+
goldLight50: gold$1.lighten50,
|
|
1379
|
+
goldLight70: gold$1.lighten70,
|
|
1380
|
+
goldLight80: gold$1.lighten80,
|
|
1381
|
+
goldLight90: gold$1.lighten90,
|
|
1382
|
+
gold: gold$1.base,
|
|
1406
1383
|
policeBlue: policeBlue.base,
|
|
1407
1384
|
policeBlueLight20: policeBlue.lighten20,
|
|
1408
1385
|
policeBlueLight25: policeBlue.lighten25,
|
|
@@ -1518,13 +1495,13 @@ var swagDarkBrandSystemPalette = {
|
|
|
1518
1495
|
var swagDarkSystemPalette = _objectSpread2(_objectSpread2({}, globalPalette), swagDarkBrandSystemPalette);
|
|
1519
1496
|
|
|
1520
1497
|
var workBrandSystemPallete = {
|
|
1521
|
-
primary: palette.
|
|
1498
|
+
primary: palette.black,
|
|
1522
1499
|
onPrimary: palette.white,
|
|
1523
|
-
secondary: palette.
|
|
1500
|
+
secondary: palette.blackLight30,
|
|
1524
1501
|
onSecondary: palette.white,
|
|
1525
1502
|
defaultSurface: palette.white,
|
|
1526
|
-
highlightedSurface: palette.
|
|
1527
|
-
pressedSurface: palette.
|
|
1503
|
+
highlightedSurface: palette.blackLight90,
|
|
1504
|
+
pressedSurface: palette.black,
|
|
1528
1505
|
decorativePrimary: palette.gold,
|
|
1529
1506
|
decorativePrimarySurface: palette.goldLight80
|
|
1530
1507
|
};
|
|
@@ -2320,6 +2297,7 @@ var getFABTheme = function getFABTheme(theme) {
|
|
|
2320
2297
|
var colors = {
|
|
2321
2298
|
buttonBackground: theme.colors.primary,
|
|
2322
2299
|
buttonPressedBackground: theme.colors.pressedSurface,
|
|
2300
|
+
buttonActiveBackground: theme.colors.pressedSurface,
|
|
2323
2301
|
icon: theme.colors.onPrimary,
|
|
2324
2302
|
headerText: theme.colors.onDefaultGlobalSurface,
|
|
2325
2303
|
actionItemBackground: theme.colors.secondary,
|
|
@@ -2441,7 +2419,7 @@ var getListTheme = function getListTheme(theme) {
|
|
|
2441
2419
|
suffixContainerMarginLeft: theme.space.small
|
|
2442
2420
|
};
|
|
2443
2421
|
var radii = {
|
|
2444
|
-
|
|
2422
|
+
item: theme.radii.medium,
|
|
2445
2423
|
basicItem: theme.radii.base,
|
|
2446
2424
|
cardShadow: theme.radii.base,
|
|
2447
2425
|
leadingStatus: theme.radii.rounded
|
|
@@ -2576,8 +2554,8 @@ var getProgressTheme = function getProgressTheme(theme) {
|
|
|
2576
2554
|
};
|
|
2577
2555
|
var sizes = {
|
|
2578
2556
|
circleDiameter: theme.sizes['6xlarge'],
|
|
2579
|
-
circleCompletenessHeight: theme.sizes.
|
|
2580
|
-
barHeight: theme.sizes.
|
|
2557
|
+
circleCompletenessHeight: theme.sizes.small,
|
|
2558
|
+
barHeight: theme.sizes.small
|
|
2581
2559
|
};
|
|
2582
2560
|
var radii = {
|
|
2583
2561
|
"default": theme.radii.rounded
|
|
@@ -2831,8 +2809,8 @@ var getSwitchTheme = function getSwitchTheme(theme) {
|
|
|
2831
2809
|
},
|
|
2832
2810
|
thumb: theme.colors.onSecondary,
|
|
2833
2811
|
selector: {
|
|
2834
|
-
background: theme.colors.
|
|
2835
|
-
textBackground: theme.colors.
|
|
2812
|
+
background: theme.colors.defaultGlobalSurface,
|
|
2813
|
+
textBackground: theme.colors.decorativePrimarySurface
|
|
2836
2814
|
}
|
|
2837
2815
|
};
|
|
2838
2816
|
var sizes = {
|
|
@@ -2840,14 +2818,14 @@ var getSwitchTheme = function getSwitchTheme(theme) {
|
|
|
2840
2818
|
width: theme.sizes.xxxlarge,
|
|
2841
2819
|
height: theme.sizes.large,
|
|
2842
2820
|
selector: {
|
|
2843
|
-
height: theme.sizes.
|
|
2821
|
+
height: theme.sizes.xxlarge
|
|
2844
2822
|
}
|
|
2845
2823
|
};
|
|
2846
2824
|
var spaces = {
|
|
2847
2825
|
paddingHorizontal: theme.space.xsmall,
|
|
2848
2826
|
selector: {
|
|
2849
2827
|
iconPadding: theme.space.medium,
|
|
2850
|
-
|
|
2828
|
+
wrapperHorizontalPadding: theme.space.xsmall
|
|
2851
2829
|
}
|
|
2852
2830
|
};
|
|
2853
2831
|
var radii = {
|
|
@@ -2882,7 +2860,7 @@ var getTabsTheme = function getTabsTheme(theme) {
|
|
|
2882
2860
|
outlineVerticalPadding: theme.space.xsmall
|
|
2883
2861
|
};
|
|
2884
2862
|
var radii = {
|
|
2885
|
-
outline: theme.radii.
|
|
2863
|
+
outline: theme.radii.xlarge
|
|
2886
2864
|
};
|
|
2887
2865
|
var borderWidths = {
|
|
2888
2866
|
headerBottom: theme.borderWidths.base
|
|
@@ -13314,9 +13292,10 @@ var Error$1 = function Error(_ref2) {
|
|
|
13314
13292
|
};
|
|
13315
13293
|
|
|
13316
13294
|
var StyledFAB$1 = index$b(reactNative.TouchableHighlight)(function (_ref) {
|
|
13317
|
-
var theme = _ref.theme
|
|
13295
|
+
var theme = _ref.theme,
|
|
13296
|
+
themeActive = _ref.themeActive;
|
|
13318
13297
|
return {
|
|
13319
|
-
backgroundColor: theme.__hd__.fab.colors.buttonBackground,
|
|
13298
|
+
backgroundColor: themeActive ? theme.__hd__.fab.colors.buttonActiveBackground : theme.__hd__.fab.colors.buttonBackground,
|
|
13320
13299
|
borderRadius: theme.radii.rounded,
|
|
13321
13300
|
alignItems: 'center',
|
|
13322
13301
|
justifyContent: 'center',
|
|
@@ -13493,7 +13472,8 @@ var FAB = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
|
|
|
13493
13472
|
style: [style, {
|
|
13494
13473
|
bottom: displayState.hideButton ? -(marginBottom + theme.__hd__.fab.sizes.height * 2) : (_StyleSheet$flatten2 = reactNative.StyleSheet.flatten(style)) === null || _StyleSheet$flatten2 === void 0 ? void 0 : _StyleSheet$flatten2.bottom
|
|
13495
13474
|
}],
|
|
13496
|
-
testID: testID
|
|
13475
|
+
testID: testID,
|
|
13476
|
+
themeActive: active
|
|
13497
13477
|
}, isIconOnly ? /*#__PURE__*/React__default["default"].createElement(IconOnlyContent, {
|
|
13498
13478
|
animated: animated,
|
|
13499
13479
|
active: active,
|
|
@@ -13658,7 +13638,7 @@ var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
13658
13638
|
}, [active]);
|
|
13659
13639
|
var interpolatedBackdropOpacityAnimation = tranlateXAnimation.current.interpolate({
|
|
13660
13640
|
inputRange: [0, 1],
|
|
13661
|
-
outputRange: [0, 0.
|
|
13641
|
+
outputRange: [0, 0.25]
|
|
13662
13642
|
});
|
|
13663
13643
|
var interpolatedActionGroupOpacityAnimation = tranlateXAnimation.current.interpolate({
|
|
13664
13644
|
inputRange: [0, 1],
|
|
@@ -13725,7 +13705,8 @@ var StyledListItemContainer$1 = index$b(reactNative.TouchableHighlight)(function
|
|
|
13725
13705
|
var sharedStyles = {
|
|
13726
13706
|
flexDirection: 'row',
|
|
13727
13707
|
backgroundColor: themeSelected ? theme.__hd__.list.colors.checkedListItemContainerBackground : theme.__hd__.list.colors.listItemContainerBackground,
|
|
13728
|
-
padding: theme.__hd__.list.space.listItemContainerPadding
|
|
13708
|
+
padding: theme.__hd__.list.space.listItemContainerPadding,
|
|
13709
|
+
borderRadius: theme.__hd__.list.radii.item
|
|
13729
13710
|
};
|
|
13730
13711
|
switch (themeVariant) {
|
|
13731
13712
|
case 'basic':
|
|
@@ -13733,7 +13714,6 @@ var StyledListItemContainer$1 = index$b(reactNative.TouchableHighlight)(function
|
|
|
13733
13714
|
case 'card':
|
|
13734
13715
|
return _objectSpread2(_objectSpread2({}, sharedStyles), {}, {
|
|
13735
13716
|
alignItems: 'center',
|
|
13736
|
-
borderRadius: theme.__hd__.list.radii.card,
|
|
13737
13717
|
shadowColor: theme.colors.secondaryOutline,
|
|
13738
13718
|
shadowRadius: theme.__hd__.list.radii.cardShadow,
|
|
13739
13719
|
shadowOffset: theme.__hd__.list.shadows.cardOffset,
|
|
@@ -14552,7 +14532,8 @@ var StyledWrapper$4 = index$b(reactNative.View)(function (_ref) {
|
|
|
14552
14532
|
height: theme.__hd__.progress.sizes.barHeight,
|
|
14553
14533
|
alignSelf: 'stretch',
|
|
14554
14534
|
backgroundColor: theme.__hd__.progress.colors.incompleteness[THEME_INTENT_MAP[themeIntent]],
|
|
14555
|
-
overflow: 'hidden'
|
|
14535
|
+
overflow: 'hidden',
|
|
14536
|
+
borderRadius: theme.__hd__.progress.radii["default"]
|
|
14556
14537
|
};
|
|
14557
14538
|
});
|
|
14558
14539
|
var StyledInner = index$b(reactNative.Animated.View)(function (_ref2) {
|
|
@@ -15819,7 +15800,7 @@ var StyledWrapper$2 = index$b(reactNative.View)(function (_ref) {
|
|
|
15819
15800
|
height: theme.__hd__["switch"].sizes.selector.height,
|
|
15820
15801
|
borderRadius: theme.__hd__["switch"].radii.selector["default"],
|
|
15821
15802
|
backgroundColor: theme.__hd__["switch"].colors.selector.background,
|
|
15822
|
-
|
|
15803
|
+
paddingHorizontal: theme.__hd__["switch"].spaces.selector.wrapperHorizontalPadding,
|
|
15823
15804
|
position: 'relative'
|
|
15824
15805
|
};
|
|
15825
15806
|
});
|
|
@@ -15844,15 +15825,10 @@ var StyledIconWrapper$1 = index$b(AnimatedView)(function (_ref3) {
|
|
|
15844
15825
|
});
|
|
15845
15826
|
var StyledKnot$1 = index$b(AnimatedView)(function (_ref4) {
|
|
15846
15827
|
var theme = _ref4.theme;
|
|
15847
|
-
return {
|
|
15828
|
+
return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
15848
15829
|
borderRadius: theme.__hd__["switch"].radii.selector["default"],
|
|
15849
|
-
backgroundColor: theme.__hd__["switch"].colors.selector.textBackground
|
|
15850
|
-
|
|
15851
|
-
top: theme.__hd__["switch"].spaces.selector.wrapperPadding,
|
|
15852
|
-
bottom: theme.__hd__["switch"].spaces.selector.wrapperPadding,
|
|
15853
|
-
left: theme.__hd__["switch"].spaces.selector.wrapperPadding,
|
|
15854
|
-
right: theme.__hd__["switch"].spaces.selector.wrapperPadding
|
|
15855
|
-
};
|
|
15830
|
+
backgroundColor: theme.__hd__["switch"].colors.selector.textBackground
|
|
15831
|
+
});
|
|
15856
15832
|
});
|
|
15857
15833
|
|
|
15858
15834
|
var OptionContent = function OptionContent(_ref) {
|
|
@@ -15928,7 +15904,6 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
|
|
|
15928
15904
|
_onPress = _ref.onPress,
|
|
15929
15905
|
style = _ref.style,
|
|
15930
15906
|
testID = _ref.testID;
|
|
15931
|
-
var theme = useTheme$1();
|
|
15932
15907
|
var _useState = React.useState(0),
|
|
15933
15908
|
_useState2 = _slicedToArray(_useState, 2),
|
|
15934
15909
|
knotWidth = _useState2[0],
|
|
@@ -15940,7 +15915,7 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
|
|
|
15940
15915
|
var animatedValue = React.useRef(new reactNative.Animated.Value(0)).current;
|
|
15941
15916
|
var translateX = animatedValue.interpolate({
|
|
15942
15917
|
inputRange: [0, 1],
|
|
15943
|
-
outputRange: [0, Math.floor(containerWidth - knotWidth
|
|
15918
|
+
outputRange: [0, Math.floor(containerWidth - knotWidth)]
|
|
15944
15919
|
});
|
|
15945
15920
|
React.useEffect(function () {
|
|
15946
15921
|
reactNative.Animated.timing(animatedValue, {
|
|
@@ -15949,10 +15924,10 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
|
|
|
15949
15924
|
easing: reactNative.Easing.inOut(reactNative.Easing.ease),
|
|
15950
15925
|
useNativeDriver: reactNative.Platform.OS === 'ios' || reactNative.Platform.OS === 'android'
|
|
15951
15926
|
}).start();
|
|
15952
|
-
}, [value]);
|
|
15927
|
+
}, [value, animatedValue, options]);
|
|
15953
15928
|
var onContainerLayout = React.useCallback(function (e) {
|
|
15954
15929
|
setContainerWidth(e.nativeEvent.layout.width);
|
|
15955
|
-
}, [
|
|
15930
|
+
}, []);
|
|
15956
15931
|
var onItemLayout = React.useCallback(function (e, optionValue) {
|
|
15957
15932
|
if (optionValue === value) {
|
|
15958
15933
|
setKnotWidth(e.nativeEvent.layout.width);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hero-design/rn",
|
|
3
|
-
"version": "8.34.
|
|
3
|
+
"version": "8.34.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -21,14 +21,13 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@emotion/native": "^11.9.3",
|
|
23
23
|
"@emotion/react": "^11.9.3",
|
|
24
|
-
"@hero-design/colors": "8.34.
|
|
25
|
-
"@hero-design/react-native-month-year-picker": "^8.34.1",
|
|
24
|
+
"@hero-design/colors": "8.34.2",
|
|
26
25
|
"date-fns": "^2.16.1",
|
|
27
26
|
"events": "^3.2.0",
|
|
28
27
|
"hero-editor": "^1.9.21"
|
|
29
28
|
},
|
|
30
29
|
"peerDependencies": {
|
|
31
|
-
"@hero-design/react-native-month-year-picker": "^8.34.
|
|
30
|
+
"@hero-design/react-native-month-year-picker": "^8.34.2",
|
|
32
31
|
"@react-native-community/datetimepicker": "^3.5.2",
|
|
33
32
|
"@react-native-community/slider": "4.1.12",
|
|
34
33
|
"react": "18.0.0",
|
|
@@ -48,7 +47,8 @@
|
|
|
48
47
|
"@babel/preset-typescript": "^7.17.12",
|
|
49
48
|
"@babel/runtime": "^7.18.9",
|
|
50
49
|
"@emotion/jest": "^11.9.3",
|
|
51
|
-
"@hero-design/eslint-plugin": "8.34.
|
|
50
|
+
"@hero-design/eslint-plugin": "8.34.2",
|
|
51
|
+
"@hero-design/react-native-month-year-picker": "^8.34.2",
|
|
52
52
|
"@react-native-community/datetimepicker": "^3.5.2",
|
|
53
53
|
"@react-native-community/slider": "4.1.12",
|
|
54
54
|
"@rollup/plugin-babel": "^5.3.1",
|
|
@@ -64,10 +64,10 @@
|
|
|
64
64
|
"@types/react-native": "^0.67.7",
|
|
65
65
|
"@types/react-native-vector-icons": "^6.4.10",
|
|
66
66
|
"babel-plugin-inline-import": "^3.0.0",
|
|
67
|
-
"eslint-config-hd": "8.34.
|
|
67
|
+
"eslint-config-hd": "8.34.2",
|
|
68
68
|
"eslint-plugin-import": "^2.27.5",
|
|
69
69
|
"jest": "^27.3.1",
|
|
70
|
-
"prettier-config-hd": "8.34.
|
|
70
|
+
"prettier-config-hd": "8.34.2",
|
|
71
71
|
"react": "18.0.0",
|
|
72
72
|
"react-native": "0.69.7",
|
|
73
73
|
"react-native-gesture-handler": "~2.5.0",
|