@hero-design/rn 8.91.4 → 8.91.5
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 +2 -2
- package/CHANGELOG.md +16 -0
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +418 -408
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +418 -408
- package/package.json +1 -1
- package/src/components/Alert/StyledAlert.tsx +1 -0
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +56 -0
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +8 -10
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +116 -145
- package/src/components/Avatar/StyledAvatar.tsx +1 -1
- package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +4 -5
- package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +8 -10
- package/src/components/BottomNavigation/StyledBottomNavigation.tsx +3 -5
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +6 -4
- package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +28 -28
- package/src/components/FloatingIsland/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +1 -0
- package/src/components/List/StyledListItem.tsx +1 -5
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +8 -10
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +6 -6
- package/src/components/MapPin/StyledMapPin.tsx +14 -3
- package/src/components/MapPin/__tests__/__snapshots__/index.spec.tsx.snap +58 -65
- package/src/components/MapPin/index.tsx +7 -8
- package/src/components/Search/StyledSearch.tsx +1 -4
- package/src/components/Search/__tests__/__snapshots__/SearchOneLine.spec.tsx.snap +3 -2
- package/src/components/Search/__tests__/__snapshots__/SearchTwoLine.spec.tsx.snap +3 -2
- package/src/components/Toast/StyledToast.tsx +1 -5
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +21 -21
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +59 -32
- package/src/theme/components/alert.ts +5 -1
- package/src/theme/components/avatar.ts +1 -1
- package/src/theme/components/bottomNavigation.ts +7 -5
- package/src/theme/components/chip.ts +2 -2
- package/src/theme/components/floatingIsland.ts +1 -1
- package/src/theme/components/list.ts +1 -7
- package/src/theme/components/mapPin.ts +6 -2
- package/src/theme/components/search.ts +1 -5
- package/src/theme/components/toast.ts +1 -5
- package/src/theme/global/colors/eBens.ts +3 -0
- package/src/theme/global/colors/jobs.ts +3 -0
- package/src/theme/global/colors/swag.ts +3 -0
- package/src/theme/global/colors/swagDark.ts +3 -0
- package/src/theme/global/colors/wallet.ts +3 -0
- package/src/theme/global/colors/work.ts +3 -0
- package/stats/8.91.5/rn-stats.html +4842 -0
- package/types/components/Avatar/StyledAvatar.d.ts +2 -2
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/MapPin/StyledMapPin.d.ts +12 -2
- package/types/components/TextInput/index.d.ts +1 -1
- package/types/theme/components/alert.d.ts +3 -0
- package/types/theme/components/avatar.d.ts +1 -1
- package/types/theme/components/bottomNavigation.d.ts +5 -7
- package/types/theme/components/chip.d.ts +1 -1
- package/types/theme/components/list.d.ts +1 -10
- package/types/theme/components/mapPin.d.ts +6 -2
- package/types/theme/components/search.d.ts +1 -8
- package/types/theme/components/toast.d.ts +1 -8
- package/types/theme/global/colors/eBens.d.ts +3 -0
- package/types/theme/global/colors/jobs.d.ts +3 -0
- package/types/theme/global/colors/swag.d.ts +3 -0
- package/types/theme/global/colors/swagDark.d.ts +3 -0
- package/types/theme/global/colors/wallet.d.ts +3 -0
- package/types/theme/global/colors/work.d.ts +3 -0
package/package.json
CHANGED
|
@@ -16,6 +16,7 @@ const Container = styled(View)<{
|
|
|
16
16
|
backgroundColor: theme.__hd__.alert.colors.backgrounds[themeIntent],
|
|
17
17
|
minHeight: theme.__hd__.alert.sizes.height,
|
|
18
18
|
flexDirection: 'row',
|
|
19
|
+
...theme.__hd__.alert.shadows.wrapper,
|
|
19
20
|
}));
|
|
20
21
|
|
|
21
22
|
const IconContainer = styled(View)<ViewProps>(({ theme }) => ({
|
|
@@ -14,8 +14,16 @@ exports[`Alert Icon render custom icon correctly 1`] = `
|
|
|
14
14
|
{
|
|
15
15
|
"backgroundColor": "#ecf0ff",
|
|
16
16
|
"borderRadius": 16,
|
|
17
|
+
"elevation": 6,
|
|
17
18
|
"flexDirection": "row",
|
|
18
19
|
"minHeight": 48,
|
|
20
|
+
"shadowColor": "#001f23",
|
|
21
|
+
"shadowOffset": {
|
|
22
|
+
"height": 2,
|
|
23
|
+
"width": 0,
|
|
24
|
+
},
|
|
25
|
+
"shadowOpacity": 0.12,
|
|
26
|
+
"shadowRadius": 2,
|
|
19
27
|
},
|
|
20
28
|
undefined,
|
|
21
29
|
]
|
|
@@ -146,8 +154,16 @@ exports[`Alert renders correctly when intent is error 1`] = `
|
|
|
146
154
|
{
|
|
147
155
|
"backgroundColor": "#fcebe7",
|
|
148
156
|
"borderRadius": 16,
|
|
157
|
+
"elevation": 6,
|
|
149
158
|
"flexDirection": "row",
|
|
150
159
|
"minHeight": 48,
|
|
160
|
+
"shadowColor": "#001f23",
|
|
161
|
+
"shadowOffset": {
|
|
162
|
+
"height": 2,
|
|
163
|
+
"width": 0,
|
|
164
|
+
},
|
|
165
|
+
"shadowOpacity": 0.12,
|
|
166
|
+
"shadowRadius": 2,
|
|
151
167
|
},
|
|
152
168
|
undefined,
|
|
153
169
|
]
|
|
@@ -360,8 +376,16 @@ exports[`Alert renders correctly when intent is info 1`] = `
|
|
|
360
376
|
{
|
|
361
377
|
"backgroundColor": "#ecf0ff",
|
|
362
378
|
"borderRadius": 16,
|
|
379
|
+
"elevation": 6,
|
|
363
380
|
"flexDirection": "row",
|
|
364
381
|
"minHeight": 48,
|
|
382
|
+
"shadowColor": "#001f23",
|
|
383
|
+
"shadowOffset": {
|
|
384
|
+
"height": 2,
|
|
385
|
+
"width": 0,
|
|
386
|
+
},
|
|
387
|
+
"shadowOpacity": 0.12,
|
|
388
|
+
"shadowRadius": 2,
|
|
365
389
|
},
|
|
366
390
|
undefined,
|
|
367
391
|
]
|
|
@@ -574,8 +598,16 @@ exports[`Alert renders correctly when intent is notification 1`] = `
|
|
|
574
598
|
{
|
|
575
599
|
"backgroundColor": "#ffffff",
|
|
576
600
|
"borderRadius": 16,
|
|
601
|
+
"elevation": 6,
|
|
577
602
|
"flexDirection": "row",
|
|
578
603
|
"minHeight": 48,
|
|
604
|
+
"shadowColor": "#001f23",
|
|
605
|
+
"shadowOffset": {
|
|
606
|
+
"height": 2,
|
|
607
|
+
"width": 0,
|
|
608
|
+
},
|
|
609
|
+
"shadowOpacity": 0.12,
|
|
610
|
+
"shadowRadius": 2,
|
|
579
611
|
},
|
|
580
612
|
undefined,
|
|
581
613
|
]
|
|
@@ -756,8 +788,16 @@ exports[`Alert renders correctly when intent is success 1`] = `
|
|
|
756
788
|
{
|
|
757
789
|
"backgroundColor": "#f0fef4",
|
|
758
790
|
"borderRadius": 16,
|
|
791
|
+
"elevation": 6,
|
|
759
792
|
"flexDirection": "row",
|
|
760
793
|
"minHeight": 48,
|
|
794
|
+
"shadowColor": "#001f23",
|
|
795
|
+
"shadowOffset": {
|
|
796
|
+
"height": 2,
|
|
797
|
+
"width": 0,
|
|
798
|
+
},
|
|
799
|
+
"shadowOpacity": 0.12,
|
|
800
|
+
"shadowRadius": 2,
|
|
761
801
|
},
|
|
762
802
|
undefined,
|
|
763
803
|
]
|
|
@@ -970,8 +1010,16 @@ exports[`Alert renders correctly when intent is warning 1`] = `
|
|
|
970
1010
|
{
|
|
971
1011
|
"backgroundColor": "#fff6eb",
|
|
972
1012
|
"borderRadius": 16,
|
|
1013
|
+
"elevation": 6,
|
|
973
1014
|
"flexDirection": "row",
|
|
974
1015
|
"minHeight": 48,
|
|
1016
|
+
"shadowColor": "#001f23",
|
|
1017
|
+
"shadowOffset": {
|
|
1018
|
+
"height": 2,
|
|
1019
|
+
"width": 0,
|
|
1020
|
+
},
|
|
1021
|
+
"shadowOpacity": 0.12,
|
|
1022
|
+
"shadowRadius": 2,
|
|
975
1023
|
},
|
|
976
1024
|
undefined,
|
|
977
1025
|
]
|
|
@@ -1184,8 +1232,16 @@ exports[`Alert renders correctly without rounded 1`] = `
|
|
|
1184
1232
|
{
|
|
1185
1233
|
"backgroundColor": "#ecf0ff",
|
|
1186
1234
|
"borderRadius": 0,
|
|
1235
|
+
"elevation": 6,
|
|
1187
1236
|
"flexDirection": "row",
|
|
1188
1237
|
"minHeight": 48,
|
|
1238
|
+
"shadowColor": "#001f23",
|
|
1239
|
+
"shadowOffset": {
|
|
1240
|
+
"height": 2,
|
|
1241
|
+
"width": 0,
|
|
1242
|
+
},
|
|
1243
|
+
"shadowOpacity": 0.12,
|
|
1244
|
+
"shadowRadius": 2,
|
|
1189
1245
|
},
|
|
1190
1246
|
undefined,
|
|
1191
1247
|
]
|
package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap
CHANGED
|
@@ -71,9 +71,9 @@ exports[`StyledAvatar renders correctly with $variant 1`] = `
|
|
|
71
71
|
{
|
|
72
72
|
"color": "#001f23",
|
|
73
73
|
"fontFamily": "BeVietnamPro-Regular",
|
|
74
|
-
"fontSize":
|
|
75
|
-
"letterSpacing": 0.
|
|
76
|
-
"lineHeight":
|
|
74
|
+
"fontSize": 16,
|
|
75
|
+
"letterSpacing": 0.48,
|
|
76
|
+
"lineHeight": 24,
|
|
77
77
|
},
|
|
78
78
|
[
|
|
79
79
|
{
|
|
@@ -89,11 +89,10 @@ exports[`StyledAvatar renders correctly with $variant 1`] = `
|
|
|
89
89
|
],
|
|
90
90
|
]
|
|
91
91
|
}
|
|
92
|
-
themeFontSize="medium"
|
|
93
|
-
themeFontWeight="regular"
|
|
94
92
|
themeIntent="body"
|
|
95
93
|
themeSize="medium"
|
|
96
94
|
themeTypeface="neutral"
|
|
95
|
+
themeVariant="regular"
|
|
97
96
|
>
|
|
98
97
|
AA
|
|
99
98
|
</Text>
|
|
@@ -193,9 +192,9 @@ exports[`StyledAvatar renders correctly with $variant 2`] = `
|
|
|
193
192
|
{
|
|
194
193
|
"color": "#001f23",
|
|
195
194
|
"fontFamily": "BeVietnamPro-Regular",
|
|
196
|
-
"fontSize":
|
|
197
|
-
"letterSpacing": 0.
|
|
198
|
-
"lineHeight":
|
|
195
|
+
"fontSize": 16,
|
|
196
|
+
"letterSpacing": 0.48,
|
|
197
|
+
"lineHeight": 24,
|
|
199
198
|
},
|
|
200
199
|
[
|
|
201
200
|
{
|
|
@@ -211,11 +210,10 @@ exports[`StyledAvatar renders correctly with $variant 2`] = `
|
|
|
211
210
|
],
|
|
212
211
|
]
|
|
213
212
|
}
|
|
214
|
-
themeFontSize="medium"
|
|
215
|
-
themeFontWeight="regular"
|
|
216
213
|
themeIntent="body"
|
|
217
214
|
themeSize="medium"
|
|
218
215
|
themeTypeface="neutral"
|
|
216
|
+
themeVariant="regular"
|
|
219
217
|
>
|
|
220
218
|
AA
|
|
221
219
|
</Text>
|