@hero-design/rn 8.43.1 → 8.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +10 -0
  3. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  4. package/es/index.js +366 -359
  5. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  6. package/lib/index.js +366 -359
  7. package/package.json +1 -1
  8. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +564 -452
  9. package/src/components/Accordion/__tests__/__snapshots__/StyledAccordion.spec.tsx.snap +76 -20
  10. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +790 -706
  11. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +848 -652
  12. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +170 -142
  13. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +138 -82
  14. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +745 -689
  15. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +157 -73
  16. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +273 -189
  17. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +391 -223
  18. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +119 -63
  19. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +306 -278
  20. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +317 -233
  21. package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +1042 -454
  22. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +400 -120
  23. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +1090 -810
  24. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +196 -140
  25. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +1666 -1218
  26. package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +70 -42
  27. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +1623 -727
  28. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +555 -415
  29. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +265 -69
  30. package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +205 -65
  31. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +36 -8
  32. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +292 -124
  33. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +486 -430
  34. package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +196 -84
  35. package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +41 -13
  36. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +1720 -1636
  37. package/src/components/Carousel/__tests__/index.spec.tsx +7 -6
  38. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +400 -176
  39. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +574 -406
  40. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +1170 -834
  41. package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +73 -17
  42. package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +94 -38
  43. package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +37 -9
  44. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +421 -337
  45. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +586 -502
  46. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +200 -172
  47. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +192 -164
  48. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +471 -443
  49. package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +464 -128
  50. package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +97 -69
  51. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +327 -243
  52. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +169 -113
  53. package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +323 -213
  54. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +845 -789
  55. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +98 -42
  56. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +197 -113
  57. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +290 -206
  58. package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +45 -17
  59. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  60. package/src/components/Icon/IconList.ts +2 -0
  61. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +158 -46
  62. package/src/components/Image/__tests__/__snapshots__/index.spec.tsx.snap +164 -52
  63. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +242 -186
  64. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +761 -649
  65. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +268 -156
  66. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +473 -221
  67. package/src/components/Modal/__tests__/__snapshots__/index.spec.tsx.snap +60 -8
  68. package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +83 -55
  69. package/src/components/PinInput/__tests__/StyledPinInput.spec.tsx +9 -4
  70. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +293 -153
  71. package/src/components/PinInput/__tests__/__snapshots__/StyledPinInput.spec.tsx.snap +15 -48
  72. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +809 -697
  73. package/src/components/Portal/__tests__/PortalHost.spec.tsx +12 -14
  74. package/src/components/Portal/__tests__/__snapshots__/index.spec.tsx.snap +43 -15
  75. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +743 -603
  76. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +188 -132
  77. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +256 -228
  78. package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +864 -780
  79. package/src/components/RefreshControl/__tests__/__snapshots__/index.spec.tsx.snap +128 -44
  80. package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +5 -2
  81. package/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx +3 -3
  82. package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +406 -378
  83. package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +64 -36
  84. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +371 -315
  85. package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +158 -46
  86. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +394 -226
  87. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +93 -65
  88. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +2402 -2290
  89. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +180 -24
  90. package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +7 -6
  91. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +73 -45
  92. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +2309 -2197
  93. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +150 -20
  94. package/src/components/Skeleton/__tests__/__snapshots__/index.spec.tsx.snap +490 -294
  95. package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +117 -33
  96. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +105 -77
  97. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +1308 -636
  98. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +121 -93
  99. package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +323 -213
  100. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +210 -126
  101. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +58 -30
  102. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +226 -114
  103. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +145 -117
  104. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +202 -62
  105. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +132 -76
  106. package/src/components/Tabs/__tests__/SceneView.spec.tsx +7 -7
  107. package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +206 -94
  108. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +2214 -2130
  109. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +523 -495
  110. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +121 -65
  111. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +1637 -1553
  112. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +554 -274
  113. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +1542 -646
  114. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +3177 -2701
  115. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +390 -334
  116. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +662 -606
  117. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +871 -675
  118. package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +180 -68
  119. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +582 -498
  120. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +683 -459
  121. package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +704 -256
  122. package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +855 -323
  123. package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +430 -150
  124. package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +572 -208
  125. package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +328 -104
  126. package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +462 -154
  127. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +900 -340
  128. package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +880 -320
  129. package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +1035 -391
  130. package/src/testHelpers/renderWithTheme.tsx +2 -2
  131. package/types/components/Icon/IconList.d.ts +1 -1
  132. package/types/components/Icon/index.d.ts +1 -1
  133. package/types/components/Icon/utils.d.ts +1 -1
@@ -2,160 +2,317 @@
2
2
 
3
3
  exports[`FAB when animated is false renders StyledFABIcon 1`] = `
4
4
  <View
5
- accessibilityValue={
5
+ style={
6
6
  {
7
- "max": undefined,
8
- "min": undefined,
9
- "now": undefined,
10
- "text": undefined,
7
+ "flex": 1,
11
8
  }
12
9
  }
13
- accessible={true}
14
- focusable={false}
15
- onClick={[Function]}
16
- onLayout={[Function]}
17
- onResponderGrant={[Function]}
18
- onResponderMove={[Function]}
19
- onResponderRelease={[Function]}
20
- onResponderTerminate={[Function]}
21
- onResponderTerminationRequest={[Function]}
22
- onStartShouldSetResponder={[Function]}
23
- style={
24
- [
25
- {
26
- "alignItems": "center",
27
- "alignSelf": "flex-start",
28
- "backgroundColor": "#401960",
29
- "borderRadius": 999,
30
- "elevation": 3,
31
- "flexDirection": "row",
32
- "justifyContent": "center",
33
- "padding": 20,
34
- "shadowColor": "#001f23",
35
- "shadowOffset": {
36
- "height": 2,
37
- "width": 0,
38
- },
39
- "shadowOpacity": 0.12,
40
- "shadowRadius": 4,
41
- },
42
- [
43
- {
44
- "backgroundColor": "#001f23",
45
- },
46
- {
47
- "bottom": undefined,
48
- },
49
- ],
50
- ]
51
- }
52
10
  >
53
- <HeroIcon
54
- name="add"
11
+ <View
12
+ accessibilityValue={
13
+ {
14
+ "max": undefined,
15
+ "min": undefined,
16
+ "now": undefined,
17
+ "text": undefined,
18
+ }
19
+ }
20
+ accessible={true}
21
+ focusable={false}
22
+ onClick={[Function]}
23
+ onLayout={[Function]}
24
+ onResponderGrant={[Function]}
25
+ onResponderMove={[Function]}
26
+ onResponderRelease={[Function]}
27
+ onResponderTerminate={[Function]}
28
+ onResponderTerminationRequest={[Function]}
29
+ onStartShouldSetResponder={[Function]}
55
30
  style={
56
31
  [
57
32
  {
58
- "color": "#001f23",
59
- "fontSize": 24,
33
+ "alignItems": "center",
34
+ "alignSelf": "flex-start",
35
+ "backgroundColor": "#401960",
36
+ "borderRadius": 999,
37
+ "elevation": 3,
38
+ "flexDirection": "row",
39
+ "justifyContent": "center",
40
+ "padding": 20,
41
+ "shadowColor": "#001f23",
42
+ "shadowOffset": {
43
+ "height": 2,
44
+ "width": 0,
45
+ },
46
+ "shadowOpacity": 0.12,
47
+ "shadowRadius": 4,
60
48
  },
61
49
  [
62
50
  {
63
- "color": "#ffffff",
64
- "lineHeight": 24,
65
- "textAlign": "center",
66
- "textAlignVertical": "center",
51
+ "backgroundColor": "#001f23",
52
+ },
53
+ {
54
+ "bottom": undefined,
67
55
  },
68
- undefined,
69
56
  ],
70
57
  ]
71
58
  }
72
- testID="styled-fab-icon"
73
- themeIntent="text"
74
- themeSize="medium"
59
+ >
60
+ <HeroIcon
61
+ name="add"
62
+ style={
63
+ [
64
+ {
65
+ "color": "#001f23",
66
+ "fontSize": 24,
67
+ },
68
+ [
69
+ {
70
+ "color": "#ffffff",
71
+ "lineHeight": 24,
72
+ "textAlign": "center",
73
+ "textAlignVertical": "center",
74
+ },
75
+ undefined,
76
+ ],
77
+ ]
78
+ }
79
+ testID="styled-fab-icon"
80
+ themeIntent="text"
81
+ themeSize="medium"
82
+ />
83
+ </View>
84
+ <View
85
+ pointerEvents="box-none"
86
+ position="bottom"
87
+ style={
88
+ [
89
+ {
90
+ "bottom": 0,
91
+ "elevation": 9999,
92
+ "flexDirection": "column-reverse",
93
+ "left": 0,
94
+ "paddingHorizontal": 24,
95
+ "paddingVertical": 16,
96
+ "position": "absolute",
97
+ "right": 0,
98
+ "top": 0,
99
+ },
100
+ undefined,
101
+ ]
102
+ }
75
103
  />
76
104
  </View>
77
105
  `;
78
106
 
79
107
  exports[`FAB when animated is true renders animatedFABIcon 1`] = `
80
108
  <View
81
- accessibilityValue={
109
+ style={
82
110
  {
83
- "max": undefined,
84
- "min": undefined,
85
- "now": undefined,
86
- "text": undefined,
111
+ "flex": 1,
87
112
  }
88
113
  }
89
- accessible={true}
90
- focusable={false}
91
- onClick={[Function]}
92
- onLayout={[Function]}
93
- onResponderGrant={[Function]}
94
- onResponderMove={[Function]}
95
- onResponderRelease={[Function]}
96
- onResponderTerminate={[Function]}
97
- onResponderTerminationRequest={[Function]}
98
- onStartShouldSetResponder={[Function]}
99
- style={
100
- [
114
+ >
115
+ <View
116
+ accessibilityValue={
101
117
  {
102
- "alignItems": "center",
103
- "alignSelf": "flex-start",
104
- "backgroundColor": "#401960",
105
- "borderRadius": 999,
106
- "elevation": 3,
107
- "flexDirection": "row",
108
- "justifyContent": "center",
109
- "padding": 20,
110
- "shadowColor": "#001f23",
111
- "shadowOffset": {
112
- "height": 2,
113
- "width": 0,
114
- },
115
- "shadowOpacity": 0.12,
116
- "shadowRadius": 4,
117
- },
118
+ "max": undefined,
119
+ "min": undefined,
120
+ "now": undefined,
121
+ "text": undefined,
122
+ }
123
+ }
124
+ accessible={true}
125
+ focusable={false}
126
+ onClick={[Function]}
127
+ onLayout={[Function]}
128
+ onResponderGrant={[Function]}
129
+ onResponderMove={[Function]}
130
+ onResponderRelease={[Function]}
131
+ onResponderTerminate={[Function]}
132
+ onResponderTerminationRequest={[Function]}
133
+ onStartShouldSetResponder={[Function]}
134
+ style={
118
135
  [
119
136
  {
120
- "backgroundColor": "#001f23",
137
+ "alignItems": "center",
138
+ "alignSelf": "flex-start",
139
+ "backgroundColor": "#401960",
140
+ "borderRadius": 999,
141
+ "elevation": 3,
142
+ "flexDirection": "row",
143
+ "justifyContent": "center",
144
+ "padding": 20,
145
+ "shadowColor": "#001f23",
146
+ "shadowOffset": {
147
+ "height": 2,
148
+ "width": 0,
149
+ },
150
+ "shadowOpacity": 0.12,
151
+ "shadowRadius": 4,
121
152
  },
153
+ [
154
+ {
155
+ "backgroundColor": "#001f23",
156
+ },
157
+ {
158
+ "bottom": undefined,
159
+ },
160
+ ],
161
+ ]
162
+ }
163
+ >
164
+ <View
165
+ style={
166
+ [
167
+ {},
168
+ [
169
+ {
170
+ "alignItems": "center",
171
+ "height": 24,
172
+ "justifyContent": "center",
173
+ "width": 24,
174
+ },
175
+ undefined,
176
+ ],
177
+ ]
178
+ }
179
+ >
180
+ <View
181
+ collapsable={false}
182
+ style={
183
+ {
184
+ "transform": [
185
+ {
186
+ "rotate": "0deg",
187
+ },
188
+ ],
189
+ }
190
+ }
191
+ >
192
+ <HeroIcon
193
+ name="add"
194
+ style={
195
+ [
196
+ {
197
+ "color": "#001f23",
198
+ "fontSize": 16,
199
+ },
200
+ [
201
+ {
202
+ "color": "#ffffff",
203
+ "lineHeight": 24,
204
+ "textAlign": "center",
205
+ "textAlignVertical": "center",
206
+ },
207
+ {},
208
+ ],
209
+ ]
210
+ }
211
+ testID="animated-fab-icon"
212
+ themeIntent="text"
213
+ themeSize="xsmall"
214
+ />
215
+ </View>
216
+ </View>
217
+ </View>
218
+ <View
219
+ pointerEvents="box-none"
220
+ position="bottom"
221
+ style={
222
+ [
122
223
  {
123
- "bottom": undefined,
224
+ "bottom": 0,
225
+ "elevation": 9999,
226
+ "flexDirection": "column-reverse",
227
+ "left": 0,
228
+ "paddingHorizontal": 24,
229
+ "paddingVertical": 16,
230
+ "position": "absolute",
231
+ "right": 0,
232
+ "top": 0,
124
233
  },
125
- ],
126
- ]
234
+ undefined,
235
+ ]
236
+ }
237
+ />
238
+ </View>
239
+ `;
240
+
241
+ exports[`FAB when title has value renders correctly 1`] = `
242
+ <View
243
+ style={
244
+ {
245
+ "flex": 1,
246
+ }
127
247
  }
128
248
  >
129
249
  <View
250
+ accessibilityValue={
251
+ {
252
+ "max": undefined,
253
+ "min": undefined,
254
+ "now": undefined,
255
+ "text": undefined,
256
+ }
257
+ }
258
+ accessible={true}
259
+ focusable={false}
260
+ onClick={[Function]}
261
+ onLayout={[Function]}
262
+ onResponderGrant={[Function]}
263
+ onResponderMove={[Function]}
264
+ onResponderRelease={[Function]}
265
+ onResponderTerminate={[Function]}
266
+ onResponderTerminationRequest={[Function]}
267
+ onStartShouldSetResponder={[Function]}
130
268
  style={
131
269
  [
132
- {},
270
+ {
271
+ "alignItems": "center",
272
+ "alignSelf": "flex-start",
273
+ "backgroundColor": "#401960",
274
+ "borderRadius": 999,
275
+ "elevation": 3,
276
+ "flexDirection": "row",
277
+ "justifyContent": "center",
278
+ "padding": 20,
279
+ "shadowColor": "#001f23",
280
+ "shadowOffset": {
281
+ "height": 2,
282
+ "width": 0,
283
+ },
284
+ "shadowOpacity": 0.12,
285
+ "shadowRadius": 4,
286
+ },
133
287
  [
134
288
  {
135
- "alignItems": "center",
136
- "height": 24,
137
- "justifyContent": "center",
138
- "width": 24,
289
+ "backgroundColor": "#001f23",
290
+ },
291
+ {
292
+ "bottom": undefined,
139
293
  },
140
- undefined,
141
294
  ],
142
295
  ]
143
296
  }
144
297
  >
145
298
  <View
146
- collapsable={false}
147
299
  style={
148
- {
149
- "transform": [
300
+ [
301
+ {},
302
+ [
150
303
  {
151
- "rotate": "0deg",
304
+ "alignItems": "center",
305
+ "height": 24,
306
+ "justifyContent": "center",
307
+ "width": 24,
152
308
  },
309
+ undefined,
153
310
  ],
154
- }
311
+ ]
155
312
  }
156
313
  >
157
314
  <HeroIcon
158
- name="add"
315
+ name="pencil"
159
316
  style={
160
317
  [
161
318
  {
@@ -169,97 +326,30 @@ exports[`FAB when animated is true renders animatedFABIcon 1`] = `
169
326
  "textAlign": "center",
170
327
  "textAlignVertical": "center",
171
328
  },
172
- {},
329
+ undefined,
173
330
  ],
174
331
  ]
175
332
  }
176
- testID="animated-fab-icon"
333
+ testID="styled-fab-icon"
177
334
  themeIntent="text"
178
335
  themeSize="xsmall"
179
336
  />
180
337
  </View>
181
- </View>
182
- </View>
183
- `;
184
-
185
- exports[`FAB when title has value renders correctly 1`] = `
186
- <View
187
- accessibilityValue={
188
- {
189
- "max": undefined,
190
- "min": undefined,
191
- "now": undefined,
192
- "text": undefined,
193
- }
194
- }
195
- accessible={true}
196
- focusable={false}
197
- onClick={[Function]}
198
- onLayout={[Function]}
199
- onResponderGrant={[Function]}
200
- onResponderMove={[Function]}
201
- onResponderRelease={[Function]}
202
- onResponderTerminate={[Function]}
203
- onResponderTerminationRequest={[Function]}
204
- onStartShouldSetResponder={[Function]}
205
- style={
206
- [
207
- {
208
- "alignItems": "center",
209
- "alignSelf": "flex-start",
210
- "backgroundColor": "#401960",
211
- "borderRadius": 999,
212
- "elevation": 3,
213
- "flexDirection": "row",
214
- "justifyContent": "center",
215
- "padding": 20,
216
- "shadowColor": "#001f23",
217
- "shadowOffset": {
218
- "height": 2,
219
- "width": 0,
220
- },
221
- "shadowOpacity": 0.12,
222
- "shadowRadius": 4,
223
- },
224
- [
225
- {
226
- "backgroundColor": "#001f23",
227
- },
228
- {
229
- "bottom": undefined,
230
- },
231
- ],
232
- ]
233
- }
234
- >
235
- <View
236
- style={
237
- [
238
- {},
239
- [
240
- {
241
- "alignItems": "center",
242
- "height": 24,
243
- "justifyContent": "center",
244
- "width": 24,
245
- },
246
- undefined,
247
- ],
248
- ]
249
- }
250
- >
251
- <HeroIcon
252
- name="pencil"
338
+ <Text
339
+ allowFontScaling={false}
253
340
  style={
254
341
  [
255
342
  {
256
343
  "color": "#001f23",
344
+ "fontFamily": "BeVietnamPro-Regular",
257
345
  "fontSize": 16,
346
+ "letterSpacing": 0.48,
347
+ "lineHeight": 24,
258
348
  },
259
349
  [
260
350
  {
261
351
  "color": "#ffffff",
262
- "lineHeight": 24,
352
+ "marginHorizontal": 8,
263
353
  "textAlign": "center",
264
354
  "textAlignVertical": "center",
265
355
  },
@@ -267,38 +357,32 @@ exports[`FAB when title has value renders correctly 1`] = `
267
357
  ],
268
358
  ]
269
359
  }
270
- testID="styled-fab-icon"
271
- themeIntent="text"
272
- themeSize="xsmall"
273
- />
360
+ themeIntent="body"
361
+ themeTypeface="neutral"
362
+ themeVariant="regular"
363
+ >
364
+ Shout out
365
+ </Text>
274
366
  </View>
275
- <Text
276
- allowFontScaling={false}
367
+ <View
368
+ pointerEvents="box-none"
369
+ position="bottom"
277
370
  style={
278
371
  [
279
372
  {
280
- "color": "#001f23",
281
- "fontFamily": "BeVietnamPro-Regular",
282
- "fontSize": 16,
283
- "letterSpacing": 0.48,
284
- "lineHeight": 24,
373
+ "bottom": 0,
374
+ "elevation": 9999,
375
+ "flexDirection": "column-reverse",
376
+ "left": 0,
377
+ "paddingHorizontal": 24,
378
+ "paddingVertical": 16,
379
+ "position": "absolute",
380
+ "right": 0,
381
+ "top": 0,
285
382
  },
286
- [
287
- {
288
- "color": "#ffffff",
289
- "marginHorizontal": 8,
290
- "textAlign": "center",
291
- "textAlignVertical": "center",
292
- },
293
- undefined,
294
- ],
383
+ undefined,
295
384
  ]
296
385
  }
297
- themeIntent="body"
298
- themeTypeface="neutral"
299
- themeVariant="regular"
300
- >
301
- Shout out
302
- </Text>
386
+ />
303
387
  </View>
304
388
  `;
@@ -8,26 +8,54 @@ exports[`HeroDesignProvider renders children correctly 1`] = `
8
8
  }
9
9
  }
10
10
  >
11
- <Text
12
- allowFontScaling={false}
11
+ <View
13
12
  style={
14
- [
15
- {
16
- "color": "#401960",
17
- "fontFamily": "BeVietnamPro-Regular",
18
- "fontSize": 42,
19
- "letterSpacing": 0,
20
- "lineHeight": 50,
21
- },
22
- undefined,
23
- ]
13
+ {
14
+ "flex": 1,
15
+ }
24
16
  }
25
- themeIntent="primary"
26
- themeLevel="h1"
27
- themeTypeface="neutral"
28
17
  >
29
- Test component
30
- </Text>
18
+ <Text
19
+ allowFontScaling={false}
20
+ style={
21
+ [
22
+ {
23
+ "color": "#401960",
24
+ "fontFamily": "BeVietnamPro-Regular",
25
+ "fontSize": 42,
26
+ "letterSpacing": 0,
27
+ "lineHeight": 50,
28
+ },
29
+ undefined,
30
+ ]
31
+ }
32
+ themeIntent="primary"
33
+ themeLevel="h1"
34
+ themeTypeface="neutral"
35
+ >
36
+ Test component
37
+ </Text>
38
+ <View
39
+ pointerEvents="box-none"
40
+ position="bottom"
41
+ style={
42
+ [
43
+ {
44
+ "bottom": 0,
45
+ "elevation": 9999,
46
+ "flexDirection": "column-reverse",
47
+ "left": 0,
48
+ "paddingHorizontal": 24,
49
+ "paddingVertical": 16,
50
+ "position": "absolute",
51
+ "right": 0,
52
+ "top": 0,
53
+ },
54
+ undefined,
55
+ ]
56
+ }
57
+ />
58
+ </View>
31
59
  <View
32
60
  pointerEvents="box-none"
33
61
  position="bottom"