@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/.turbo/turbo-build.log
CHANGED
|
@@ -4,5 +4,5 @@ $ rollup -c
|
|
|
4
4
|
[1msrc/index.ts[22m → [1mlib/index.js, es/index.js[22m...[39m
|
|
5
5
|
[1m[33m(!) Plugin replace: @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.[39m[22m
|
|
6
6
|
[1m[33m(!) Plugin node-resolve: preferring built-in module 'events' over local alternative at '/root/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning[39m[22m
|
|
7
|
-
[32mcreated [1mlib/index.js, es/index.js[22m in [1m25.
|
|
7
|
+
[32mcreated [1mlib/index.js, es/index.js[22m in [1m25.2s[22m[39m
|
|
8
8
|
$ tsc --noEmit false --emitDeclarationOnly --project tsconfig.prod.json
|
package/es/index.js
CHANGED
|
@@ -917,6 +917,7 @@ var BASE_COLORS = {
|
|
|
917
917
|
antiFlashWhite: '#f1f2f3',
|
|
918
918
|
apple: '#e3602a',
|
|
919
919
|
bigStone: '#344348',
|
|
920
|
+
black: '#000000',
|
|
920
921
|
blue1: '#5a68e2',
|
|
921
922
|
blue: '#1dbeee',
|
|
922
923
|
blueOblivion: '#23438f',
|
|
@@ -974,16 +975,16 @@ var colorScales = Object.entries(BASE_COLORS).reduce(function (acc, _ref16) {
|
|
|
974
975
|
return Object.assign(Object.assign({}, acc), _defineProperty({}, key, createColorScales(value)));
|
|
975
976
|
}, {});
|
|
976
977
|
var blue$1 = colorScales.blue,
|
|
977
|
-
ultramarineBlue$
|
|
978
|
+
ultramarineBlue$2 = colorScales.ultramarineBlue,
|
|
978
979
|
green$1 = colorScales.green,
|
|
979
980
|
grey$2 = colorScales.grey,
|
|
980
981
|
grotesqueGreen = colorScales.grotesqueGreen,
|
|
981
|
-
deepSaffron$
|
|
982
|
+
deepSaffron$2 = colorScales.deepSaffron,
|
|
982
983
|
pink$1 = colorScales.pink,
|
|
983
984
|
purple$1 = colorScales.purple,
|
|
984
|
-
vermilion$
|
|
985
|
+
vermilion$2 = colorScales.vermilion,
|
|
985
986
|
smalt = colorScales.smalt,
|
|
986
|
-
violet$
|
|
987
|
+
violet$1 = colorScales.violet,
|
|
987
988
|
yellow$1 = colorScales.yellow;
|
|
988
989
|
var palette$b = {
|
|
989
990
|
black: '#000000',
|
|
@@ -994,14 +995,14 @@ var palette$b = {
|
|
|
994
995
|
blueLight30: blue$1.lighten30,
|
|
995
996
|
blueLight75: blue$1.lighten75,
|
|
996
997
|
blueLight90: blue$1.lighten90,
|
|
997
|
-
dodgerBlue: ultramarineBlue$
|
|
998
|
-
dodgerBlueDark15: ultramarineBlue$
|
|
999
|
-
dodgerBlueDark30: ultramarineBlue$
|
|
1000
|
-
dodgerBlueLight30: ultramarineBlue$
|
|
1001
|
-
dodgerBlueLight45: ultramarineBlue$
|
|
1002
|
-
dodgerBlueLight60: ultramarineBlue$
|
|
1003
|
-
dodgerBlueLight75: ultramarineBlue$
|
|
1004
|
-
dodgerBlueLight90: ultramarineBlue$
|
|
998
|
+
dodgerBlue: ultramarineBlue$2.base,
|
|
999
|
+
dodgerBlueDark15: ultramarineBlue$2.darken15,
|
|
1000
|
+
dodgerBlueDark30: ultramarineBlue$2.darken30,
|
|
1001
|
+
dodgerBlueLight30: ultramarineBlue$2.lighten30,
|
|
1002
|
+
dodgerBlueLight45: ultramarineBlue$2.lighten45,
|
|
1003
|
+
dodgerBlueLight60: ultramarineBlue$2.lighten60,
|
|
1004
|
+
dodgerBlueLight75: ultramarineBlue$2.lighten75,
|
|
1005
|
+
dodgerBlueLight90: ultramarineBlue$2.lighten90,
|
|
1005
1006
|
green: green$1.base,
|
|
1006
1007
|
greenDark15: green$1.darken15,
|
|
1007
1008
|
greenDark30: green$1.darken30,
|
|
@@ -1027,13 +1028,13 @@ var palette$b = {
|
|
|
1027
1028
|
grotesqueGreenLight60: grotesqueGreen.lighten60,
|
|
1028
1029
|
grotesqueGreenLight75: grotesqueGreen.lighten75,
|
|
1029
1030
|
grotesqueGreenLight90: grotesqueGreen.lighten90,
|
|
1030
|
-
orange: deepSaffron$
|
|
1031
|
-
orangeDark15: deepSaffron$
|
|
1032
|
-
orangeDark30: deepSaffron$
|
|
1033
|
-
orangeDark75: deepSaffron$
|
|
1034
|
-
orangeLight30: deepSaffron$
|
|
1035
|
-
orangeLight75: deepSaffron$
|
|
1036
|
-
orangeLight90: deepSaffron$
|
|
1031
|
+
orange: deepSaffron$2.base,
|
|
1032
|
+
orangeDark15: deepSaffron$2.darken15,
|
|
1033
|
+
orangeDark30: deepSaffron$2.darken30,
|
|
1034
|
+
orangeDark75: deepSaffron$2.darken75,
|
|
1035
|
+
orangeLight30: deepSaffron$2.lighten30,
|
|
1036
|
+
orangeLight75: deepSaffron$2.lighten75,
|
|
1037
|
+
orangeLight90: deepSaffron$2.lighten90,
|
|
1037
1038
|
pink: pink$1.base,
|
|
1038
1039
|
pinkDark15: pink$1.darken15,
|
|
1039
1040
|
pinkDark30: pink$1.darken30,
|
|
@@ -1045,31 +1046,31 @@ var palette$b = {
|
|
|
1045
1046
|
pinkLight90: pink$1.lighten90,
|
|
1046
1047
|
purple: purple$1.base,
|
|
1047
1048
|
purpleDark15: purple$1.darken15,
|
|
1048
|
-
red: vermilion$
|
|
1049
|
-
redDark15: vermilion$
|
|
1050
|
-
redDark30: vermilion$
|
|
1051
|
-
redDark75: vermilion$
|
|
1052
|
-
redLight15: vermilion$
|
|
1053
|
-
redLight30: vermilion$
|
|
1054
|
-
redLight60: vermilion$
|
|
1055
|
-
redLight75: vermilion$
|
|
1056
|
-
redLight90: vermilion$
|
|
1049
|
+
red: vermilion$2.base,
|
|
1050
|
+
redDark15: vermilion$2.darken15,
|
|
1051
|
+
redDark30: vermilion$2.darken30,
|
|
1052
|
+
redDark75: vermilion$2.darken75,
|
|
1053
|
+
redLight15: vermilion$2.lighten15,
|
|
1054
|
+
redLight30: vermilion$2.lighten30,
|
|
1055
|
+
redLight60: vermilion$2.lighten60,
|
|
1056
|
+
redLight75: vermilion$2.lighten75,
|
|
1057
|
+
redLight90: vermilion$2.lighten90,
|
|
1057
1058
|
smalt: smalt.base,
|
|
1058
1059
|
smaltDark75: smalt.darken75,
|
|
1059
1060
|
smaltLight30: smalt.lighten30,
|
|
1060
1061
|
smaltLight45: smalt.lighten45,
|
|
1061
1062
|
smaltLight75: smalt.lighten75,
|
|
1062
1063
|
smaltLight90: smalt.lighten90,
|
|
1063
|
-
violet: violet$
|
|
1064
|
-
violetDark15: violet$
|
|
1065
|
-
violetDark30: violet$
|
|
1066
|
-
violetDark45: violet$
|
|
1067
|
-
violetDark60: violet$
|
|
1068
|
-
violetDark75: violet$
|
|
1069
|
-
violetLight30: violet$
|
|
1070
|
-
violetLight60: violet$
|
|
1071
|
-
violetLight75: violet$
|
|
1072
|
-
violetLight90: violet$
|
|
1064
|
+
violet: violet$1.base,
|
|
1065
|
+
violetDark15: violet$1.darken15,
|
|
1066
|
+
violetDark30: violet$1.darken30,
|
|
1067
|
+
violetDark45: violet$1.darken45,
|
|
1068
|
+
violetDark60: violet$1.darken60,
|
|
1069
|
+
violetDark75: violet$1.darken75,
|
|
1070
|
+
violetLight30: violet$1.lighten30,
|
|
1071
|
+
violetLight60: violet$1.lighten60,
|
|
1072
|
+
violetLight75: violet$1.lighten75,
|
|
1073
|
+
violetLight90: violet$1.lighten90,
|
|
1073
1074
|
yellow: yellow$1.base,
|
|
1074
1075
|
yellowDark15: yellow$1.darken15,
|
|
1075
1076
|
yellowDark75: yellow$1.darken75,
|
|
@@ -1078,45 +1079,46 @@ var palette$b = {
|
|
|
1078
1079
|
yellowLight75: yellow$1.lighten75,
|
|
1079
1080
|
yellowLight90: yellow$1.lighten90
|
|
1080
1081
|
};
|
|
1081
|
-
var mauve$
|
|
1082
|
-
violet$
|
|
1082
|
+
var mauve$3 = colorScales.mauve,
|
|
1083
|
+
violet$2 = colorScales.violet;
|
|
1083
1084
|
Object.assign(Object.assign({}, palette$b), {
|
|
1084
|
-
mauve: mauve$
|
|
1085
|
-
mauveLight80: mauve$
|
|
1086
|
-
violetDark50: violet$
|
|
1085
|
+
mauve: mauve$3.base,
|
|
1086
|
+
mauveLight80: mauve$3.lighten80,
|
|
1087
|
+
violetDark50: violet$2.darken50
|
|
1087
1088
|
});
|
|
1088
|
-
var apple$
|
|
1089
|
+
var apple$3 = colorScales.apple,
|
|
1089
1090
|
hitPink$1 = colorScales.hitPink,
|
|
1090
1091
|
maasstrichtBlue$4 = colorScales.maasstrichtBlue;
|
|
1091
1092
|
Object.assign(Object.assign({}, palette$b), {
|
|
1092
|
-
apple: apple$
|
|
1093
|
-
appleDark20: apple$
|
|
1094
|
-
appleDark50: apple$
|
|
1095
|
-
appleLight90: apple$
|
|
1093
|
+
apple: apple$3.base,
|
|
1094
|
+
appleDark20: apple$3.darken20,
|
|
1095
|
+
appleDark50: apple$3.darken50,
|
|
1096
|
+
appleLight90: apple$3.lighten90,
|
|
1096
1097
|
hitPink: hitPink$1.base,
|
|
1097
1098
|
hitPinkLight80: hitPink$1.lighten80,
|
|
1098
1099
|
maasstrichtBlueLight30: maasstrichtBlue$4.lighten30
|
|
1099
1100
|
});
|
|
1100
1101
|
var aliceBlue$1 = colorScales.aliceBlue,
|
|
1101
1102
|
antiFlashWhite$1 = colorScales.antiFlashWhite,
|
|
1102
|
-
apple$
|
|
1103
|
-
deepSaffron$
|
|
1104
|
-
emerald$
|
|
1103
|
+
apple$2 = colorScales.apple,
|
|
1104
|
+
deepSaffron$1 = colorScales.deepSaffron,
|
|
1105
|
+
emerald$1 = colorScales.emerald,
|
|
1105
1106
|
grey$1 = colorScales.grey,
|
|
1106
1107
|
honeydew$1 = colorScales.honeydew,
|
|
1107
1108
|
linen$1 = colorScales.linen,
|
|
1108
1109
|
maasstrichtBlue$3 = colorScales.maasstrichtBlue,
|
|
1109
1110
|
mellowApricot$1 = colorScales.mellowApricot,
|
|
1110
|
-
pastelRed$
|
|
1111
|
-
pineGreen$
|
|
1111
|
+
pastelRed$1 = colorScales.pastelRed,
|
|
1112
|
+
pineGreen$1 = colorScales.pineGreen,
|
|
1112
1113
|
seashell$1 = colorScales.seashell,
|
|
1113
1114
|
silverChalice$1 = colorScales.silverChalice,
|
|
1114
|
-
sonicSilver$
|
|
1115
|
-
ultramarineBlue$
|
|
1116
|
-
vermilion$
|
|
1117
|
-
vodka$1 = colorScales.vodka
|
|
1115
|
+
sonicSilver$1 = colorScales.sonicSilver,
|
|
1116
|
+
ultramarineBlue$1 = colorScales.ultramarineBlue,
|
|
1117
|
+
vermilion$1 = colorScales.vermilion,
|
|
1118
|
+
vodka$1 = colorScales.vodka,
|
|
1119
|
+
black$1 = colorScales.black;
|
|
1118
1120
|
var palette$8 = {
|
|
1119
|
-
black:
|
|
1121
|
+
black: black$1.base,
|
|
1120
1122
|
white: '#ffffff',
|
|
1121
1123
|
greyLight95: grey$1.lighten95,
|
|
1122
1124
|
greyLight90: grey$1.lighten90,
|
|
@@ -1129,39 +1131,39 @@ var palette$8 = {
|
|
|
1129
1131
|
maasstrichtBlueLight50: maasstrichtBlue$3.lighten50,
|
|
1130
1132
|
maasstrichtBlueLight30: maasstrichtBlue$3.lighten30,
|
|
1131
1133
|
maasstrichtBlue: maasstrichtBlue$3.base,
|
|
1132
|
-
pastelRed: pastelRed$
|
|
1133
|
-
pastelRedLight20: pastelRed$
|
|
1134
|
+
pastelRed: pastelRed$1.base,
|
|
1135
|
+
pastelRedLight20: pastelRed$1.lighten20,
|
|
1134
1136
|
mellowApricot: mellowApricot$1.base,
|
|
1135
1137
|
mellowApricotLight20: mellowApricot$1.lighten20,
|
|
1136
|
-
emerald: emerald$
|
|
1137
|
-
emeraldLight20: emerald$
|
|
1138
|
-
emeraldDark20: emerald$
|
|
1138
|
+
emerald: emerald$1.base,
|
|
1139
|
+
emeraldLight20: emerald$1.lighten20,
|
|
1140
|
+
emeraldDark20: emerald$1.darken20,
|
|
1139
1141
|
vodka: vodka$1.base,
|
|
1140
1142
|
vodkaLight20: vodka$1.lighten20,
|
|
1141
|
-
vermilion: vermilion$
|
|
1142
|
-
deepSaffron: deepSaffron$
|
|
1143
|
-
deepSaffronDark20: deepSaffron$
|
|
1144
|
-
pineGreen: pineGreen$
|
|
1145
|
-
ultramarineBlue: ultramarineBlue$
|
|
1146
|
-
sonicSilver: sonicSilver$
|
|
1143
|
+
vermilion: vermilion$1.base,
|
|
1144
|
+
deepSaffron: deepSaffron$1.base,
|
|
1145
|
+
deepSaffronDark20: deepSaffron$1.darken20,
|
|
1146
|
+
pineGreen: pineGreen$1.base,
|
|
1147
|
+
ultramarineBlue: ultramarineBlue$1.base,
|
|
1148
|
+
sonicSilver: sonicSilver$1.base,
|
|
1147
1149
|
linen: linen$1.base,
|
|
1148
1150
|
seashell: seashell$1.base,
|
|
1149
1151
|
honeydew: honeydew$1.base,
|
|
1150
1152
|
aliceBlue: aliceBlue$1.base,
|
|
1151
1153
|
antiFlashWhite: antiFlashWhite$1.base,
|
|
1152
|
-
apple: apple$
|
|
1154
|
+
apple: apple$2.base,
|
|
1153
1155
|
silverChalice: silverChalice$1.base,
|
|
1154
1156
|
silverChaliceLight20: silverChalice$1.lighten20
|
|
1155
1157
|
};
|
|
1156
1158
|
var aliceBlue = colorScales.aliceBlue,
|
|
1157
1159
|
antiFlashWhite = colorScales.antiFlashWhite,
|
|
1158
|
-
apple$
|
|
1160
|
+
apple$1 = colorScales.apple,
|
|
1159
1161
|
blazingBonfire = colorScales.blazingBonfire,
|
|
1160
1162
|
bigStone = colorScales.bigStone,
|
|
1161
1163
|
flagstone = colorScales.flagstone,
|
|
1162
|
-
deepSaffron
|
|
1164
|
+
deepSaffron = colorScales.deepSaffron,
|
|
1163
1165
|
deepIntoTheJungle = colorScales.deepIntoTheJungle,
|
|
1164
|
-
emerald
|
|
1166
|
+
emerald = colorScales.emerald,
|
|
1165
1167
|
grey$3 = colorScales.grey,
|
|
1166
1168
|
honeydew$2 = colorScales.honeydew,
|
|
1167
1169
|
indianDance = colorScales.indianDance,
|
|
@@ -1169,13 +1171,13 @@ var aliceBlue = colorScales.aliceBlue,
|
|
|
1169
1171
|
maasstrichtBlue$2 = colorScales.maasstrichtBlue,
|
|
1170
1172
|
mellowApricot = colorScales.mellowApricot,
|
|
1171
1173
|
moussaka = colorScales.moussaka,
|
|
1172
|
-
pastelRed
|
|
1173
|
-
pineGreen
|
|
1174
|
+
pastelRed = colorScales.pastelRed,
|
|
1175
|
+
pineGreen = colorScales.pineGreen,
|
|
1174
1176
|
seashell$2 = colorScales.seashell,
|
|
1175
1177
|
silverChalice = colorScales.silverChalice,
|
|
1176
|
-
sonicSilver
|
|
1177
|
-
ultramarineBlue
|
|
1178
|
-
vermilion
|
|
1178
|
+
sonicSilver = colorScales.sonicSilver,
|
|
1179
|
+
ultramarineBlue = colorScales.ultramarineBlue,
|
|
1180
|
+
vermilion = colorScales.vermilion,
|
|
1179
1181
|
vodka = colorScales.vodka,
|
|
1180
1182
|
theatreGold = colorScales.theatreGold,
|
|
1181
1183
|
uniformGreen = colorScales.uniformGreen,
|
|
@@ -1202,39 +1204,39 @@ var palette$7 = {
|
|
|
1202
1204
|
maasstrichtBlueLight15: maasstrichtBlue$2.lighten15,
|
|
1203
1205
|
maasstrichtBlueLight10: maasstrichtBlue$2.lighten10,
|
|
1204
1206
|
maasstrichtBlue: maasstrichtBlue$2.base,
|
|
1205
|
-
pastelRed: pastelRed
|
|
1206
|
-
pastelRedLight20: pastelRed
|
|
1207
|
+
pastelRed: pastelRed.base,
|
|
1208
|
+
pastelRedLight20: pastelRed.lighten20,
|
|
1207
1209
|
mellowApricot: mellowApricot.base,
|
|
1208
1210
|
mellowApricotLight20: mellowApricot.lighten20,
|
|
1209
1211
|
moussaka: moussaka.base,
|
|
1210
|
-
emerald: emerald
|
|
1211
|
-
emeraldLight20: emerald
|
|
1212
|
-
emeraldDark20: emerald
|
|
1212
|
+
emerald: emerald.base,
|
|
1213
|
+
emeraldLight20: emerald.lighten20,
|
|
1214
|
+
emeraldDark20: emerald.darken20,
|
|
1213
1215
|
vodka: vodka.base,
|
|
1214
1216
|
vodkaLight20: vodka.lighten20,
|
|
1215
|
-
vermilion: vermilion
|
|
1216
|
-
vermilionLight20: vermilion
|
|
1217
|
-
vermilionDark10: vermilion
|
|
1218
|
-
deepSaffron: deepSaffron
|
|
1219
|
-
deepSaffronDark20: deepSaffron
|
|
1217
|
+
vermilion: vermilion.base,
|
|
1218
|
+
vermilionLight20: vermilion.lighten20,
|
|
1219
|
+
vermilionDark10: vermilion.darken10,
|
|
1220
|
+
deepSaffron: deepSaffron.base,
|
|
1221
|
+
deepSaffronDark20: deepSaffron.darken20,
|
|
1220
1222
|
indianDance: indianDance.base,
|
|
1221
1223
|
theatreGold: theatreGold.base,
|
|
1222
1224
|
theatreGoldLight20: theatreGold.lighten20,
|
|
1223
|
-
pineGreen: pineGreen
|
|
1224
|
-
pineGreenLight20: pineGreen
|
|
1225
|
-
pineGreenDark10: pineGreen
|
|
1226
|
-
ultramarineBlue: ultramarineBlue
|
|
1227
|
-
ultramarineBlueLight20: ultramarineBlue
|
|
1228
|
-
ultramarineBlueDark10: ultramarineBlue
|
|
1229
|
-
sonicSilver: sonicSilver
|
|
1230
|
-
sonicSilverLight50: sonicSilver
|
|
1231
|
-
sonicSilverDark10: sonicSilver
|
|
1225
|
+
pineGreen: pineGreen.base,
|
|
1226
|
+
pineGreenLight20: pineGreen.lighten20,
|
|
1227
|
+
pineGreenDark10: pineGreen.darken10,
|
|
1228
|
+
ultramarineBlue: ultramarineBlue.base,
|
|
1229
|
+
ultramarineBlueLight20: ultramarineBlue.lighten20,
|
|
1230
|
+
ultramarineBlueDark10: ultramarineBlue.darken10,
|
|
1231
|
+
sonicSilver: sonicSilver.base,
|
|
1232
|
+
sonicSilverLight50: sonicSilver.lighten45,
|
|
1233
|
+
sonicSilverDark10: sonicSilver.darken10,
|
|
1232
1234
|
linen: linen$2.base,
|
|
1233
1235
|
seashell: seashell$2.base,
|
|
1234
1236
|
honeydew: honeydew$2.base,
|
|
1235
1237
|
aliceBlue: aliceBlue.base,
|
|
1236
1238
|
antiFlashWhite: antiFlashWhite.base,
|
|
1237
|
-
apple: apple$
|
|
1239
|
+
apple: apple$1.base,
|
|
1238
1240
|
silverChalice: silverChalice.base,
|
|
1239
1241
|
silverChaliceLight20: silverChalice.lighten20,
|
|
1240
1242
|
uniformGreen: uniformGreen.base,
|
|
@@ -1246,45 +1248,17 @@ var palette$7 = {
|
|
|
1246
1248
|
bigStone: bigStone.base,
|
|
1247
1249
|
flagstone: flagstone.base
|
|
1248
1250
|
};
|
|
1249
|
-
var
|
|
1250
|
-
sonicSilver = colorScales.sonicSilver,
|
|
1251
|
-
maasstrichtBlue$1 = colorScales.maasstrichtBlue,
|
|
1252
|
-
nightBlue = colorScales.nightBlue,
|
|
1253
|
-
darkBlue = colorScales.darkBlue,
|
|
1254
|
-
ultramarineBlue = colorScales.ultramarineBlue,
|
|
1255
|
-
royalBlue$1 = colorScales.royalBlue,
|
|
1256
|
-
emerald = colorScales.emerald,
|
|
1257
|
-
pineGreen = colorScales.pineGreen,
|
|
1258
|
-
deepSaffron = colorScales.deepSaffron,
|
|
1259
|
-
gold$1 = colorScales.gold,
|
|
1260
|
-
apple$1 = colorScales.apple,
|
|
1261
|
-
pastelRed = colorScales.pastelRed,
|
|
1262
|
-
vermilion = colorScales.vermilion,
|
|
1263
|
-
mauve$3 = colorScales.mauve,
|
|
1264
|
-
violet1$3 = colorScales.violet1,
|
|
1265
|
-
violet$3 = colorScales.violet,
|
|
1266
|
-
scarletGum$2 = colorScales.scarletGum;
|
|
1251
|
+
var maasstrichtBlue$1 = colorScales.maasstrichtBlue;
|
|
1267
1252
|
var palette$6 = {
|
|
1268
|
-
currant: currant$1.base,
|
|
1269
|
-
sonicSilver: sonicSilver.base,
|
|
1270
1253
|
maasstrichtBlue: maasstrichtBlue$1.base,
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
goldDark40: gold$1.darken40,
|
|
1280
|
-
apple: apple$1.base,
|
|
1281
|
-
pastelRed: pastelRed.base,
|
|
1282
|
-
vermilion: vermilion.base,
|
|
1283
|
-
mauve: mauve$3.base,
|
|
1284
|
-
violetLight30: violet$3.lighten30,
|
|
1285
|
-
violet1: violet1$3.base,
|
|
1286
|
-
violet: violet$3.base,
|
|
1287
|
-
scarletGum: scarletGum$2.base
|
|
1254
|
+
maasstrichtBlueLight5: maasstrichtBlue$1.lighten5,
|
|
1255
|
+
maasstrichtBlueLight10: maasstrichtBlue$1.lighten10,
|
|
1256
|
+
maasstrichtBlueLight15: maasstrichtBlue$1.lighten15,
|
|
1257
|
+
maasstrichtBlueLight20: maasstrichtBlue$1.lighten20,
|
|
1258
|
+
maasstrichtBlueLight25: maasstrichtBlue$1.lighten25,
|
|
1259
|
+
maasstrichtBlueLight30: maasstrichtBlue$1.lighten30,
|
|
1260
|
+
maasstrichtBlueLight35: maasstrichtBlue$1.lighten35,
|
|
1261
|
+
maasstrichtBlueLight40: maasstrichtBlue$1.lighten40
|
|
1288
1262
|
};
|
|
1289
1263
|
var violet1$2 = colorScales.violet1,
|
|
1290
1264
|
mauve$2 = colorScales.mauve;
|
|
@@ -1363,15 +1337,18 @@ var palette$1 = Object.assign(Object.assign({}, palette$8), {
|
|
|
1363
1337
|
frenchSkyLight70: frenchSky.lighten70,
|
|
1364
1338
|
frenchSkyLight80: frenchSky.lighten80
|
|
1365
1339
|
});
|
|
1366
|
-
var gold$
|
|
1367
|
-
policeBlue = colorScales.policeBlue
|
|
1340
|
+
var gold$1 = colorScales.gold,
|
|
1341
|
+
policeBlue = colorScales.policeBlue,
|
|
1342
|
+
black$2 = colorScales.black;
|
|
1368
1343
|
var palette = Object.assign(Object.assign({}, palette$8), {
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1344
|
+
blackLight30: black$2.lighten30,
|
|
1345
|
+
blackLight90: black$2.lighten90,
|
|
1346
|
+
goldLight20: gold$1.lighten20,
|
|
1347
|
+
goldLight50: gold$1.lighten50,
|
|
1348
|
+
goldLight70: gold$1.lighten70,
|
|
1349
|
+
goldLight80: gold$1.lighten80,
|
|
1350
|
+
goldLight90: gold$1.lighten90,
|
|
1351
|
+
gold: gold$1.base,
|
|
1375
1352
|
policeBlue: policeBlue.base,
|
|
1376
1353
|
policeBlueLight20: policeBlue.lighten20,
|
|
1377
1354
|
policeBlueLight25: policeBlue.lighten25,
|
|
@@ -1487,13 +1464,13 @@ var swagDarkBrandSystemPalette = {
|
|
|
1487
1464
|
var swagDarkSystemPalette = _objectSpread2(_objectSpread2({}, globalPalette), swagDarkBrandSystemPalette);
|
|
1488
1465
|
|
|
1489
1466
|
var workBrandSystemPallete = {
|
|
1490
|
-
primary: palette.
|
|
1467
|
+
primary: palette.black,
|
|
1491
1468
|
onPrimary: palette.white,
|
|
1492
|
-
secondary: palette.
|
|
1469
|
+
secondary: palette.blackLight30,
|
|
1493
1470
|
onSecondary: palette.white,
|
|
1494
1471
|
defaultSurface: palette.white,
|
|
1495
|
-
highlightedSurface: palette.
|
|
1496
|
-
pressedSurface: palette.
|
|
1472
|
+
highlightedSurface: palette.blackLight90,
|
|
1473
|
+
pressedSurface: palette.black,
|
|
1497
1474
|
decorativePrimary: palette.gold,
|
|
1498
1475
|
decorativePrimarySurface: palette.goldLight80
|
|
1499
1476
|
};
|
|
@@ -2289,6 +2266,7 @@ var getFABTheme = function getFABTheme(theme) {
|
|
|
2289
2266
|
var colors = {
|
|
2290
2267
|
buttonBackground: theme.colors.primary,
|
|
2291
2268
|
buttonPressedBackground: theme.colors.pressedSurface,
|
|
2269
|
+
buttonActiveBackground: theme.colors.pressedSurface,
|
|
2292
2270
|
icon: theme.colors.onPrimary,
|
|
2293
2271
|
headerText: theme.colors.onDefaultGlobalSurface,
|
|
2294
2272
|
actionItemBackground: theme.colors.secondary,
|
|
@@ -2410,7 +2388,7 @@ var getListTheme = function getListTheme(theme) {
|
|
|
2410
2388
|
suffixContainerMarginLeft: theme.space.small
|
|
2411
2389
|
};
|
|
2412
2390
|
var radii = {
|
|
2413
|
-
|
|
2391
|
+
item: theme.radii.medium,
|
|
2414
2392
|
basicItem: theme.radii.base,
|
|
2415
2393
|
cardShadow: theme.radii.base,
|
|
2416
2394
|
leadingStatus: theme.radii.rounded
|
|
@@ -2545,8 +2523,8 @@ var getProgressTheme = function getProgressTheme(theme) {
|
|
|
2545
2523
|
};
|
|
2546
2524
|
var sizes = {
|
|
2547
2525
|
circleDiameter: theme.sizes['6xlarge'],
|
|
2548
|
-
circleCompletenessHeight: theme.sizes.
|
|
2549
|
-
barHeight: theme.sizes.
|
|
2526
|
+
circleCompletenessHeight: theme.sizes.small,
|
|
2527
|
+
barHeight: theme.sizes.small
|
|
2550
2528
|
};
|
|
2551
2529
|
var radii = {
|
|
2552
2530
|
"default": theme.radii.rounded
|
|
@@ -2800,8 +2778,8 @@ var getSwitchTheme = function getSwitchTheme(theme) {
|
|
|
2800
2778
|
},
|
|
2801
2779
|
thumb: theme.colors.onSecondary,
|
|
2802
2780
|
selector: {
|
|
2803
|
-
background: theme.colors.
|
|
2804
|
-
textBackground: theme.colors.
|
|
2781
|
+
background: theme.colors.defaultGlobalSurface,
|
|
2782
|
+
textBackground: theme.colors.decorativePrimarySurface
|
|
2805
2783
|
}
|
|
2806
2784
|
};
|
|
2807
2785
|
var sizes = {
|
|
@@ -2809,14 +2787,14 @@ var getSwitchTheme = function getSwitchTheme(theme) {
|
|
|
2809
2787
|
width: theme.sizes.xxxlarge,
|
|
2810
2788
|
height: theme.sizes.large,
|
|
2811
2789
|
selector: {
|
|
2812
|
-
height: theme.sizes.
|
|
2790
|
+
height: theme.sizes.xxlarge
|
|
2813
2791
|
}
|
|
2814
2792
|
};
|
|
2815
2793
|
var spaces = {
|
|
2816
2794
|
paddingHorizontal: theme.space.xsmall,
|
|
2817
2795
|
selector: {
|
|
2818
2796
|
iconPadding: theme.space.medium,
|
|
2819
|
-
|
|
2797
|
+
wrapperHorizontalPadding: theme.space.xsmall
|
|
2820
2798
|
}
|
|
2821
2799
|
};
|
|
2822
2800
|
var radii = {
|
|
@@ -2851,7 +2829,7 @@ var getTabsTheme = function getTabsTheme(theme) {
|
|
|
2851
2829
|
outlineVerticalPadding: theme.space.xsmall
|
|
2852
2830
|
};
|
|
2853
2831
|
var radii = {
|
|
2854
|
-
outline: theme.radii.
|
|
2832
|
+
outline: theme.radii.xlarge
|
|
2855
2833
|
};
|
|
2856
2834
|
var borderWidths = {
|
|
2857
2835
|
headerBottom: theme.borderWidths.base
|
|
@@ -13283,9 +13261,10 @@ var Error$1 = function Error(_ref2) {
|
|
|
13283
13261
|
};
|
|
13284
13262
|
|
|
13285
13263
|
var StyledFAB$1 = index$b(TouchableHighlight)(function (_ref) {
|
|
13286
|
-
var theme = _ref.theme
|
|
13264
|
+
var theme = _ref.theme,
|
|
13265
|
+
themeActive = _ref.themeActive;
|
|
13287
13266
|
return {
|
|
13288
|
-
backgroundColor: theme.__hd__.fab.colors.buttonBackground,
|
|
13267
|
+
backgroundColor: themeActive ? theme.__hd__.fab.colors.buttonActiveBackground : theme.__hd__.fab.colors.buttonBackground,
|
|
13289
13268
|
borderRadius: theme.radii.rounded,
|
|
13290
13269
|
alignItems: 'center',
|
|
13291
13270
|
justifyContent: 'center',
|
|
@@ -13462,7 +13441,8 @@ var FAB = /*#__PURE__*/forwardRef(function (_ref3, ref) {
|
|
|
13462
13441
|
style: [style, {
|
|
13463
13442
|
bottom: displayState.hideButton ? -(marginBottom + theme.__hd__.fab.sizes.height * 2) : (_StyleSheet$flatten2 = StyleSheet$1.flatten(style)) === null || _StyleSheet$flatten2 === void 0 ? void 0 : _StyleSheet$flatten2.bottom
|
|
13464
13443
|
}],
|
|
13465
|
-
testID: testID
|
|
13444
|
+
testID: testID,
|
|
13445
|
+
themeActive: active
|
|
13466
13446
|
}, isIconOnly ? /*#__PURE__*/React.createElement(IconOnlyContent, {
|
|
13467
13447
|
animated: animated,
|
|
13468
13448
|
active: active,
|
|
@@ -13627,7 +13607,7 @@ var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
13627
13607
|
}, [active]);
|
|
13628
13608
|
var interpolatedBackdropOpacityAnimation = tranlateXAnimation.current.interpolate({
|
|
13629
13609
|
inputRange: [0, 1],
|
|
13630
|
-
outputRange: [0, 0.
|
|
13610
|
+
outputRange: [0, 0.25]
|
|
13631
13611
|
});
|
|
13632
13612
|
var interpolatedActionGroupOpacityAnimation = tranlateXAnimation.current.interpolate({
|
|
13633
13613
|
inputRange: [0, 1],
|
|
@@ -13694,7 +13674,8 @@ var StyledListItemContainer$1 = index$b(TouchableHighlight)(function (_ref) {
|
|
|
13694
13674
|
var sharedStyles = {
|
|
13695
13675
|
flexDirection: 'row',
|
|
13696
13676
|
backgroundColor: themeSelected ? theme.__hd__.list.colors.checkedListItemContainerBackground : theme.__hd__.list.colors.listItemContainerBackground,
|
|
13697
|
-
padding: theme.__hd__.list.space.listItemContainerPadding
|
|
13677
|
+
padding: theme.__hd__.list.space.listItemContainerPadding,
|
|
13678
|
+
borderRadius: theme.__hd__.list.radii.item
|
|
13698
13679
|
};
|
|
13699
13680
|
switch (themeVariant) {
|
|
13700
13681
|
case 'basic':
|
|
@@ -13702,7 +13683,6 @@ var StyledListItemContainer$1 = index$b(TouchableHighlight)(function (_ref) {
|
|
|
13702
13683
|
case 'card':
|
|
13703
13684
|
return _objectSpread2(_objectSpread2({}, sharedStyles), {}, {
|
|
13704
13685
|
alignItems: 'center',
|
|
13705
|
-
borderRadius: theme.__hd__.list.radii.card,
|
|
13706
13686
|
shadowColor: theme.colors.secondaryOutline,
|
|
13707
13687
|
shadowRadius: theme.__hd__.list.radii.cardShadow,
|
|
13708
13688
|
shadowOffset: theme.__hd__.list.shadows.cardOffset,
|
|
@@ -14521,7 +14501,8 @@ var StyledWrapper$4 = index$b(View)(function (_ref) {
|
|
|
14521
14501
|
height: theme.__hd__.progress.sizes.barHeight,
|
|
14522
14502
|
alignSelf: 'stretch',
|
|
14523
14503
|
backgroundColor: theme.__hd__.progress.colors.incompleteness[THEME_INTENT_MAP[themeIntent]],
|
|
14524
|
-
overflow: 'hidden'
|
|
14504
|
+
overflow: 'hidden',
|
|
14505
|
+
borderRadius: theme.__hd__.progress.radii["default"]
|
|
14525
14506
|
};
|
|
14526
14507
|
});
|
|
14527
14508
|
var StyledInner = index$b(Animated.View)(function (_ref2) {
|
|
@@ -15788,7 +15769,7 @@ var StyledWrapper$2 = index$b(View)(function (_ref) {
|
|
|
15788
15769
|
height: theme.__hd__["switch"].sizes.selector.height,
|
|
15789
15770
|
borderRadius: theme.__hd__["switch"].radii.selector["default"],
|
|
15790
15771
|
backgroundColor: theme.__hd__["switch"].colors.selector.background,
|
|
15791
|
-
|
|
15772
|
+
paddingHorizontal: theme.__hd__["switch"].spaces.selector.wrapperHorizontalPadding,
|
|
15792
15773
|
position: 'relative'
|
|
15793
15774
|
};
|
|
15794
15775
|
});
|
|
@@ -15813,15 +15794,10 @@ var StyledIconWrapper$1 = index$b(AnimatedView)(function (_ref3) {
|
|
|
15813
15794
|
});
|
|
15814
15795
|
var StyledKnot$1 = index$b(AnimatedView)(function (_ref4) {
|
|
15815
15796
|
var theme = _ref4.theme;
|
|
15816
|
-
return {
|
|
15797
|
+
return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
15817
15798
|
borderRadius: theme.__hd__["switch"].radii.selector["default"],
|
|
15818
|
-
backgroundColor: theme.__hd__["switch"].colors.selector.textBackground
|
|
15819
|
-
|
|
15820
|
-
top: theme.__hd__["switch"].spaces.selector.wrapperPadding,
|
|
15821
|
-
bottom: theme.__hd__["switch"].spaces.selector.wrapperPadding,
|
|
15822
|
-
left: theme.__hd__["switch"].spaces.selector.wrapperPadding,
|
|
15823
|
-
right: theme.__hd__["switch"].spaces.selector.wrapperPadding
|
|
15824
|
-
};
|
|
15799
|
+
backgroundColor: theme.__hd__["switch"].colors.selector.textBackground
|
|
15800
|
+
});
|
|
15825
15801
|
});
|
|
15826
15802
|
|
|
15827
15803
|
var OptionContent = function OptionContent(_ref) {
|
|
@@ -15897,7 +15873,6 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
|
|
|
15897
15873
|
_onPress = _ref.onPress,
|
|
15898
15874
|
style = _ref.style,
|
|
15899
15875
|
testID = _ref.testID;
|
|
15900
|
-
var theme = useTheme$1();
|
|
15901
15876
|
var _useState = useState(0),
|
|
15902
15877
|
_useState2 = _slicedToArray(_useState, 2),
|
|
15903
15878
|
knotWidth = _useState2[0],
|
|
@@ -15909,7 +15884,7 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
|
|
|
15909
15884
|
var animatedValue = useRef(new Animated.Value(0)).current;
|
|
15910
15885
|
var translateX = animatedValue.interpolate({
|
|
15911
15886
|
inputRange: [0, 1],
|
|
15912
|
-
outputRange: [0, Math.floor(containerWidth - knotWidth
|
|
15887
|
+
outputRange: [0, Math.floor(containerWidth - knotWidth)]
|
|
15913
15888
|
});
|
|
15914
15889
|
useEffect(function () {
|
|
15915
15890
|
Animated.timing(animatedValue, {
|
|
@@ -15918,10 +15893,10 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
|
|
|
15918
15893
|
easing: Easing.inOut(Easing.ease),
|
|
15919
15894
|
useNativeDriver: Platform.OS === 'ios' || Platform.OS === 'android'
|
|
15920
15895
|
}).start();
|
|
15921
|
-
}, [value]);
|
|
15896
|
+
}, [value, animatedValue, options]);
|
|
15922
15897
|
var onContainerLayout = useCallback(function (e) {
|
|
15923
15898
|
setContainerWidth(e.nativeEvent.layout.width);
|
|
15924
|
-
}, [
|
|
15899
|
+
}, []);
|
|
15925
15900
|
var onItemLayout = useCallback(function (e, optionValue) {
|
|
15926
15901
|
if (optionValue === value) {
|
|
15927
15902
|
setKnotWidth(e.nativeEvent.layout.width);
|