@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
@@ -3,239 +3,379 @@
3
3
  exports[`PinCell renders correctly when focused is false, state is default 1`] = `
4
4
  <View
5
5
  style={
6
- [
7
- {
8
- "alignItems": "center",
9
- "borderColor": "#001f23",
10
- "borderRadius": 8,
11
- "borderWidth": 1,
12
- "height": 48,
13
- "justifyContent": "center",
14
- "width": 40,
15
- },
16
- undefined,
17
- ]
6
+ {
7
+ "flex": 1,
8
+ }
18
9
  }
19
- themeFocused={false}
20
- themeState="default"
21
10
  >
22
- <Text
23
- allowFontScaling={false}
11
+ <View
24
12
  style={
25
13
  [
26
14
  {
27
- "color": "#001f23",
28
- "fontFamily": "BeVietnamPro-SemiBold",
29
- "fontSize": 28,
30
- "letterSpacing": 0.24,
31
- "lineHeight": 36,
15
+ "alignItems": "center",
16
+ "borderColor": "#001f23",
17
+ "borderRadius": 8,
18
+ "borderWidth": 1,
19
+ "height": 48,
20
+ "justifyContent": "center",
21
+ "width": 40,
32
22
  },
23
+ undefined,
24
+ ]
25
+ }
26
+ themeFocused={false}
27
+ themeState="default"
28
+ >
29
+ <Text
30
+ allowFontScaling={false}
31
+ style={
33
32
  [
34
33
  {
35
34
  "color": "#001f23",
35
+ "fontFamily": "BeVietnamPro-SemiBold",
36
+ "fontSize": 28,
37
+ "letterSpacing": 0.24,
38
+ "lineHeight": 36,
36
39
  },
37
- undefined,
38
- ],
40
+ [
41
+ {
42
+ "color": "#001f23",
43
+ },
44
+ undefined,
45
+ ],
46
+ ]
47
+ }
48
+ themeIntent="body"
49
+ themeLevel="h3"
50
+ themeState="default"
51
+ themeTypeface="neutral"
52
+ >
53
+ 1
54
+ </Text>
55
+ </View>
56
+ <View
57
+ pointerEvents="box-none"
58
+ position="bottom"
59
+ style={
60
+ [
61
+ {
62
+ "bottom": 0,
63
+ "elevation": 9999,
64
+ "flexDirection": "column-reverse",
65
+ "left": 0,
66
+ "paddingHorizontal": 24,
67
+ "paddingVertical": 16,
68
+ "position": "absolute",
69
+ "right": 0,
70
+ "top": 0,
71
+ },
72
+ undefined,
39
73
  ]
40
74
  }
41
- themeIntent="body"
42
- themeLevel="h3"
43
- themeState="default"
44
- themeTypeface="neutral"
45
- >
46
- 1
47
- </Text>
75
+ />
48
76
  </View>
49
77
  `;
50
78
 
51
79
  exports[`PinCell renders correctly when focused is false, state is disabled 1`] = `
52
80
  <View
53
81
  style={
54
- [
55
- {
56
- "alignItems": "center",
57
- "borderColor": "#bfc1c5",
58
- "borderRadius": 8,
59
- "borderWidth": 1,
60
- "height": 48,
61
- "justifyContent": "center",
62
- "width": 40,
63
- },
64
- undefined,
65
- ]
82
+ {
83
+ "flex": 1,
84
+ }
66
85
  }
67
- themeFocused={false}
68
- themeState="disabled"
69
86
  >
70
- <Text
71
- allowFontScaling={false}
87
+ <View
72
88
  style={
73
89
  [
74
90
  {
75
- "color": "#001f23",
76
- "fontFamily": "BeVietnamPro-SemiBold",
77
- "fontSize": 28,
78
- "letterSpacing": 0.24,
79
- "lineHeight": 36,
91
+ "alignItems": "center",
92
+ "borderColor": "#bfc1c5",
93
+ "borderRadius": 8,
94
+ "borderWidth": 1,
95
+ "height": 48,
96
+ "justifyContent": "center",
97
+ "width": 40,
80
98
  },
99
+ undefined,
100
+ ]
101
+ }
102
+ themeFocused={false}
103
+ themeState="disabled"
104
+ >
105
+ <Text
106
+ allowFontScaling={false}
107
+ style={
81
108
  [
82
109
  {
83
- "color": "#bfc1c5",
110
+ "color": "#001f23",
111
+ "fontFamily": "BeVietnamPro-SemiBold",
112
+ "fontSize": 28,
113
+ "letterSpacing": 0.24,
114
+ "lineHeight": 36,
84
115
  },
85
- undefined,
86
- ],
116
+ [
117
+ {
118
+ "color": "#bfc1c5",
119
+ },
120
+ undefined,
121
+ ],
122
+ ]
123
+ }
124
+ themeIntent="body"
125
+ themeLevel="h3"
126
+ themeState="disabled"
127
+ themeTypeface="neutral"
128
+ >
129
+ 1
130
+ </Text>
131
+ </View>
132
+ <View
133
+ pointerEvents="box-none"
134
+ position="bottom"
135
+ style={
136
+ [
137
+ {
138
+ "bottom": 0,
139
+ "elevation": 9999,
140
+ "flexDirection": "column-reverse",
141
+ "left": 0,
142
+ "paddingHorizontal": 24,
143
+ "paddingVertical": 16,
144
+ "position": "absolute",
145
+ "right": 0,
146
+ "top": 0,
147
+ },
148
+ undefined,
87
149
  ]
88
150
  }
89
- themeIntent="body"
90
- themeLevel="h3"
91
- themeState="disabled"
92
- themeTypeface="neutral"
93
- >
94
- 1
95
- </Text>
151
+ />
96
152
  </View>
97
153
  `;
98
154
 
99
155
  exports[`PinCell renders correctly when focused is false, state is error 1`] = `
100
156
  <View
101
157
  style={
102
- [
103
- {
104
- "alignItems": "center",
105
- "borderColor": "#cb300a",
106
- "borderRadius": 8,
107
- "borderWidth": 1,
108
- "height": 48,
109
- "justifyContent": "center",
110
- "width": 40,
111
- },
112
- undefined,
113
- ]
158
+ {
159
+ "flex": 1,
160
+ }
114
161
  }
115
- themeFocused={false}
116
- themeState="error"
117
162
  >
118
- <Text
119
- allowFontScaling={false}
163
+ <View
120
164
  style={
121
165
  [
122
166
  {
123
- "color": "#001f23",
124
- "fontFamily": "BeVietnamPro-SemiBold",
125
- "fontSize": 28,
126
- "letterSpacing": 0.24,
127
- "lineHeight": 36,
167
+ "alignItems": "center",
168
+ "borderColor": "#cb300a",
169
+ "borderRadius": 8,
170
+ "borderWidth": 1,
171
+ "height": 48,
172
+ "justifyContent": "center",
173
+ "width": 40,
128
174
  },
175
+ undefined,
176
+ ]
177
+ }
178
+ themeFocused={false}
179
+ themeState="error"
180
+ >
181
+ <Text
182
+ allowFontScaling={false}
183
+ style={
129
184
  [
130
185
  {
131
- "color": "#cb300a",
186
+ "color": "#001f23",
187
+ "fontFamily": "BeVietnamPro-SemiBold",
188
+ "fontSize": 28,
189
+ "letterSpacing": 0.24,
190
+ "lineHeight": 36,
132
191
  },
133
- undefined,
134
- ],
192
+ [
193
+ {
194
+ "color": "#cb300a",
195
+ },
196
+ undefined,
197
+ ],
198
+ ]
199
+ }
200
+ themeIntent="body"
201
+ themeLevel="h3"
202
+ themeState="error"
203
+ themeTypeface="neutral"
204
+ >
205
+ 1
206
+ </Text>
207
+ </View>
208
+ <View
209
+ pointerEvents="box-none"
210
+ position="bottom"
211
+ style={
212
+ [
213
+ {
214
+ "bottom": 0,
215
+ "elevation": 9999,
216
+ "flexDirection": "column-reverse",
217
+ "left": 0,
218
+ "paddingHorizontal": 24,
219
+ "paddingVertical": 16,
220
+ "position": "absolute",
221
+ "right": 0,
222
+ "top": 0,
223
+ },
224
+ undefined,
135
225
  ]
136
226
  }
137
- themeIntent="body"
138
- themeLevel="h3"
139
- themeState="error"
140
- themeTypeface="neutral"
141
- >
142
- 1
143
- </Text>
227
+ />
144
228
  </View>
145
229
  `;
146
230
 
147
231
  exports[`PinCell renders correctly when focused is true, state is default 1`] = `
148
232
  <View
149
233
  style={
150
- [
151
- {
152
- "alignItems": "center",
153
- "borderColor": "#001f23",
154
- "borderRadius": 8,
155
- "borderWidth": 2,
156
- "height": 48,
157
- "justifyContent": "center",
158
- "width": 40,
159
- },
160
- undefined,
161
- ]
234
+ {
235
+ "flex": 1,
236
+ }
162
237
  }
163
- themeFocused={true}
164
- themeState="default"
165
238
  >
166
- <Text
167
- allowFontScaling={false}
239
+ <View
168
240
  style={
169
241
  [
170
242
  {
171
- "color": "#001f23",
172
- "fontFamily": "BeVietnamPro-SemiBold",
173
- "fontSize": 28,
174
- "letterSpacing": 0.24,
175
- "lineHeight": 36,
243
+ "alignItems": "center",
244
+ "borderColor": "#001f23",
245
+ "borderRadius": 8,
246
+ "borderWidth": 2,
247
+ "height": 48,
248
+ "justifyContent": "center",
249
+ "width": 40,
176
250
  },
251
+ undefined,
252
+ ]
253
+ }
254
+ themeFocused={true}
255
+ themeState="default"
256
+ >
257
+ <Text
258
+ allowFontScaling={false}
259
+ style={
177
260
  [
178
261
  {
179
262
  "color": "#001f23",
263
+ "fontFamily": "BeVietnamPro-SemiBold",
264
+ "fontSize": 28,
265
+ "letterSpacing": 0.24,
266
+ "lineHeight": 36,
180
267
  },
181
- undefined,
182
- ],
268
+ [
269
+ {
270
+ "color": "#001f23",
271
+ },
272
+ undefined,
273
+ ],
274
+ ]
275
+ }
276
+ themeIntent="body"
277
+ themeLevel="h3"
278
+ themeState="default"
279
+ themeTypeface="neutral"
280
+ >
281
+ 1
282
+ </Text>
283
+ </View>
284
+ <View
285
+ pointerEvents="box-none"
286
+ position="bottom"
287
+ style={
288
+ [
289
+ {
290
+ "bottom": 0,
291
+ "elevation": 9999,
292
+ "flexDirection": "column-reverse",
293
+ "left": 0,
294
+ "paddingHorizontal": 24,
295
+ "paddingVertical": 16,
296
+ "position": "absolute",
297
+ "right": 0,
298
+ "top": 0,
299
+ },
300
+ undefined,
183
301
  ]
184
302
  }
185
- themeIntent="body"
186
- themeLevel="h3"
187
- themeState="default"
188
- themeTypeface="neutral"
189
- >
190
- 1
191
- </Text>
303
+ />
192
304
  </View>
193
305
  `;
194
306
 
195
307
  exports[`PinCell renders correctly when focused is true, state is error 1`] = `
196
308
  <View
197
309
  style={
198
- [
199
- {
200
- "alignItems": "center",
201
- "borderColor": "#cb300a",
202
- "borderRadius": 8,
203
- "borderWidth": 2,
204
- "height": 48,
205
- "justifyContent": "center",
206
- "width": 40,
207
- },
208
- undefined,
209
- ]
310
+ {
311
+ "flex": 1,
312
+ }
210
313
  }
211
- themeFocused={true}
212
- themeState="error"
213
314
  >
214
- <Text
215
- allowFontScaling={false}
315
+ <View
216
316
  style={
217
317
  [
218
318
  {
219
- "color": "#001f23",
220
- "fontFamily": "BeVietnamPro-SemiBold",
221
- "fontSize": 28,
222
- "letterSpacing": 0.24,
223
- "lineHeight": 36,
319
+ "alignItems": "center",
320
+ "borderColor": "#cb300a",
321
+ "borderRadius": 8,
322
+ "borderWidth": 2,
323
+ "height": 48,
324
+ "justifyContent": "center",
325
+ "width": 40,
224
326
  },
327
+ undefined,
328
+ ]
329
+ }
330
+ themeFocused={true}
331
+ themeState="error"
332
+ >
333
+ <Text
334
+ allowFontScaling={false}
335
+ style={
225
336
  [
226
337
  {
227
- "color": "#cb300a",
338
+ "color": "#001f23",
339
+ "fontFamily": "BeVietnamPro-SemiBold",
340
+ "fontSize": 28,
341
+ "letterSpacing": 0.24,
342
+ "lineHeight": 36,
228
343
  },
229
- undefined,
230
- ],
344
+ [
345
+ {
346
+ "color": "#cb300a",
347
+ },
348
+ undefined,
349
+ ],
350
+ ]
351
+ }
352
+ themeIntent="body"
353
+ themeLevel="h3"
354
+ themeState="error"
355
+ themeTypeface="neutral"
356
+ >
357
+ 1
358
+ </Text>
359
+ </View>
360
+ <View
361
+ pointerEvents="box-none"
362
+ position="bottom"
363
+ style={
364
+ [
365
+ {
366
+ "bottom": 0,
367
+ "elevation": 9999,
368
+ "flexDirection": "column-reverse",
369
+ "left": 0,
370
+ "paddingHorizontal": 24,
371
+ "paddingVertical": 16,
372
+ "position": "absolute",
373
+ "right": 0,
374
+ "top": 0,
375
+ },
376
+ undefined,
231
377
  ]
232
378
  }
233
- themeIntent="body"
234
- themeLevel="h3"
235
- themeState="error"
236
- themeTypeface="neutral"
237
- >
238
- 1
239
- </Text>
379
+ />
240
380
  </View>
241
381
  `;
@@ -1,58 +1,25 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`StyledHiddenInput has correct width when pin length is 4 1`] = `
4
- <TextInput
5
- style={
6
- [
7
- {
8
- "height": "100%",
9
- "left": 0,
10
- "opacity": 0,
11
- "position": "absolute",
12
- "top": 0,
13
- "width": 208,
14
- },
15
- undefined,
16
- ]
17
- }
18
- themePinLength={4}
19
- />
4
+ {
5
+ "$$typeof": Symbol(react.forward_ref),
6
+ "render": [Function],
7
+ "withComponent": [Function],
8
+ }
20
9
  `;
21
10
 
22
11
  exports[`StyledHiddenInput has correct width when pin length is 6 1`] = `
23
- <TextInput
24
- style={
25
- [
26
- {
27
- "height": "100%",
28
- "left": 0,
29
- "opacity": 0,
30
- "position": "absolute",
31
- "top": 0,
32
- "width": 320,
33
- },
34
- undefined,
35
- ]
36
- }
37
- themePinLength={6}
38
- />
12
+ {
13
+ "$$typeof": Symbol(react.forward_ref),
14
+ "render": [Function],
15
+ "withComponent": [Function],
16
+ }
39
17
  `;
40
18
 
41
19
  exports[`StyledHiddenInput has correct width when pin length is 8 1`] = `
42
- <TextInput
43
- style={
44
- [
45
- {
46
- "height": "100%",
47
- "left": 0,
48
- "opacity": 0,
49
- "position": "absolute",
50
- "top": 0,
51
- "width": 432,
52
- },
53
- undefined,
54
- ]
55
- }
56
- themePinLength={8}
57
- />
20
+ {
21
+ "$$typeof": Symbol(react.forward_ref),
22
+ "render": [Function],
23
+ "withComponent": [Function],
24
+ }
58
25
  `;