@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,546 +2,714 @@
2
2
 
3
3
  exports[`Checkbox renders correctly when checked is false and there is no description 1`] = `
4
4
  <View
5
- accessibilityState={
6
- {
7
- "busy": undefined,
8
- "checked": undefined,
9
- "disabled": false,
10
- "expanded": undefined,
11
- "selected": undefined,
12
- }
13
- }
14
- accessibilityValue={
15
- {
16
- "max": undefined,
17
- "min": undefined,
18
- "now": undefined,
19
- "text": undefined,
20
- }
21
- }
22
- accessible={true}
23
- collapsable={false}
24
- focusable={false}
25
- onClick={[Function]}
26
- onResponderGrant={[Function]}
27
- onResponderMove={[Function]}
28
- onResponderRelease={[Function]}
29
- onResponderTerminate={[Function]}
30
- onResponderTerminationRequest={[Function]}
31
- onStartShouldSetResponder={[Function]}
32
5
  style={
33
6
  {
34
- "borderColor": "#001f23",
35
- "borderRadius": 8,
36
- "borderWidth": 1,
37
- "flexDirection": "row",
38
- "opacity": 1,
39
- "padding": 16,
7
+ "flex": 1,
40
8
  }
41
9
  }
42
10
  >
43
11
  <View
12
+ accessibilityState={
13
+ {
14
+ "busy": undefined,
15
+ "checked": undefined,
16
+ "disabled": false,
17
+ "expanded": undefined,
18
+ "selected": undefined,
19
+ }
20
+ }
21
+ accessibilityValue={
22
+ {
23
+ "max": undefined,
24
+ "min": undefined,
25
+ "now": undefined,
26
+ "text": undefined,
27
+ }
28
+ }
29
+ accessible={true}
30
+ collapsable={false}
31
+ focusable={false}
32
+ onClick={[Function]}
33
+ onResponderGrant={[Function]}
34
+ onResponderMove={[Function]}
35
+ onResponderRelease={[Function]}
36
+ onResponderTerminate={[Function]}
37
+ onResponderTerminationRequest={[Function]}
38
+ onStartShouldSetResponder={[Function]}
44
39
  style={
45
- [
46
- {
47
- "height": 24,
48
- "overflow": "hidden",
49
- "width": 24,
50
- },
51
- undefined,
52
- ]
40
+ {
41
+ "borderColor": "#001f23",
42
+ "borderRadius": 8,
43
+ "borderWidth": 1,
44
+ "flexDirection": "row",
45
+ "opacity": 1,
46
+ "padding": 16,
47
+ }
53
48
  }
54
49
  >
55
50
  <View
56
51
  style={
57
52
  [
58
53
  {
59
- "borderColor": "#001f23",
60
- "borderRadius": 4,
61
- "borderWidth": 2,
62
- "flex": 1,
54
+ "height": 24,
55
+ "overflow": "hidden",
56
+ "width": 24,
63
57
  },
64
58
  undefined,
65
59
  ]
66
60
  }
67
- themeState="default"
68
- />
61
+ >
62
+ <View
63
+ style={
64
+ [
65
+ {
66
+ "borderColor": "#001f23",
67
+ "borderRadius": 4,
68
+ "borderWidth": 2,
69
+ "flex": 1,
70
+ },
71
+ undefined,
72
+ ]
73
+ }
74
+ themeState="default"
75
+ />
76
+ </View>
69
77
  </View>
78
+ <View
79
+ pointerEvents="box-none"
80
+ position="bottom"
81
+ style={
82
+ [
83
+ {
84
+ "bottom": 0,
85
+ "elevation": 9999,
86
+ "flexDirection": "column-reverse",
87
+ "left": 0,
88
+ "paddingHorizontal": 24,
89
+ "paddingVertical": 16,
90
+ "position": "absolute",
91
+ "right": 0,
92
+ "top": 0,
93
+ },
94
+ undefined,
95
+ ]
96
+ }
97
+ />
70
98
  </View>
71
99
  `;
72
100
 
73
101
  exports[`Checkbox renders correctly when checked is true and there is no description 1`] = `
74
102
  <View
75
- accessibilityState={
76
- {
77
- "busy": undefined,
78
- "checked": undefined,
79
- "disabled": false,
80
- "expanded": undefined,
81
- "selected": undefined,
82
- }
83
- }
84
- accessibilityValue={
85
- {
86
- "max": undefined,
87
- "min": undefined,
88
- "now": undefined,
89
- "text": undefined,
90
- }
91
- }
92
- accessible={true}
93
- collapsable={false}
94
- focusable={false}
95
- onClick={[Function]}
96
- onResponderGrant={[Function]}
97
- onResponderMove={[Function]}
98
- onResponderRelease={[Function]}
99
- onResponderTerminate={[Function]}
100
- onResponderTerminationRequest={[Function]}
101
- onStartShouldSetResponder={[Function]}
102
103
  style={
103
104
  {
104
- "borderColor": "#001f23",
105
- "borderRadius": 8,
106
- "borderWidth": 1,
107
- "flexDirection": "row",
108
- "opacity": 1,
109
- "padding": 16,
105
+ "flex": 1,
110
106
  }
111
107
  }
112
108
  >
113
109
  <View
110
+ accessibilityState={
111
+ {
112
+ "busy": undefined,
113
+ "checked": undefined,
114
+ "disabled": false,
115
+ "expanded": undefined,
116
+ "selected": undefined,
117
+ }
118
+ }
119
+ accessibilityValue={
120
+ {
121
+ "max": undefined,
122
+ "min": undefined,
123
+ "now": undefined,
124
+ "text": undefined,
125
+ }
126
+ }
127
+ accessible={true}
128
+ collapsable={false}
129
+ focusable={false}
130
+ onClick={[Function]}
131
+ onResponderGrant={[Function]}
132
+ onResponderMove={[Function]}
133
+ onResponderRelease={[Function]}
134
+ onResponderTerminate={[Function]}
135
+ onResponderTerminationRequest={[Function]}
136
+ onStartShouldSetResponder={[Function]}
137
+ style={
138
+ {
139
+ "borderColor": "#001f23",
140
+ "borderRadius": 8,
141
+ "borderWidth": 1,
142
+ "flexDirection": "row",
143
+ "opacity": 1,
144
+ "padding": 16,
145
+ }
146
+ }
147
+ >
148
+ <View
149
+ style={
150
+ [
151
+ {
152
+ "height": 24,
153
+ "overflow": "hidden",
154
+ "width": 24,
155
+ },
156
+ undefined,
157
+ ]
158
+ }
159
+ >
160
+ <HeroIcon
161
+ name="box-check"
162
+ style={
163
+ [
164
+ {
165
+ "color": "#001f23",
166
+ "fontSize": 24,
167
+ },
168
+ [
169
+ {
170
+ "color": "#001f23",
171
+ "position": "absolute",
172
+ "top": 0,
173
+ },
174
+ undefined,
175
+ ],
176
+ ]
177
+ }
178
+ testID="check-mark"
179
+ themeIntent="text"
180
+ themeSize="medium"
181
+ />
182
+ <View
183
+ style={
184
+ [
185
+ {
186
+ "borderColor": "#001f23",
187
+ "borderRadius": 4,
188
+ "borderWidth": 2,
189
+ "flex": 1,
190
+ },
191
+ undefined,
192
+ ]
193
+ }
194
+ themeState="default"
195
+ />
196
+ </View>
197
+ </View>
198
+ <View
199
+ pointerEvents="box-none"
200
+ position="bottom"
114
201
  style={
115
202
  [
116
203
  {
117
- "height": 24,
118
- "overflow": "hidden",
119
- "width": 24,
204
+ "bottom": 0,
205
+ "elevation": 9999,
206
+ "flexDirection": "column-reverse",
207
+ "left": 0,
208
+ "paddingHorizontal": 24,
209
+ "paddingVertical": 16,
210
+ "position": "absolute",
211
+ "right": 0,
212
+ "top": 0,
120
213
  },
121
214
  undefined,
122
215
  ]
123
216
  }
217
+ />
218
+ </View>
219
+ `;
220
+
221
+ exports[`Checkbox renders correctly when disabled is false and readonly is false 1`] = `
222
+ <View
223
+ style={
224
+ {
225
+ "flex": 1,
226
+ }
227
+ }
228
+ >
229
+ <View
230
+ accessibilityState={
231
+ {
232
+ "busy": undefined,
233
+ "checked": undefined,
234
+ "disabled": false,
235
+ "expanded": undefined,
236
+ "selected": undefined,
237
+ }
238
+ }
239
+ accessibilityValue={
240
+ {
241
+ "max": undefined,
242
+ "min": undefined,
243
+ "now": undefined,
244
+ "text": undefined,
245
+ }
246
+ }
247
+ accessible={true}
248
+ collapsable={false}
249
+ focusable={false}
250
+ onClick={[Function]}
251
+ onResponderGrant={[Function]}
252
+ onResponderMove={[Function]}
253
+ onResponderRelease={[Function]}
254
+ onResponderTerminate={[Function]}
255
+ onResponderTerminationRequest={[Function]}
256
+ onStartShouldSetResponder={[Function]}
257
+ style={
258
+ {
259
+ "borderColor": "#001f23",
260
+ "borderRadius": 8,
261
+ "borderWidth": 1,
262
+ "flexDirection": "row",
263
+ "opacity": 1,
264
+ "padding": 16,
265
+ }
266
+ }
124
267
  >
125
- <HeroIcon
126
- name="box-check"
268
+ <Text
269
+ allowFontScaling={false}
127
270
  style={
128
271
  [
129
272
  {
130
273
  "color": "#001f23",
131
- "fontSize": 24,
274
+ "fontFamily": "BeVietnamPro-Regular",
275
+ "fontSize": 14,
276
+ "letterSpacing": 0.48,
277
+ "lineHeight": 22,
132
278
  },
133
279
  [
134
280
  {
135
- "color": "#001f23",
136
- "position": "absolute",
137
- "top": 0,
281
+ "flex": 1,
282
+ "paddingRight": 12,
138
283
  },
139
284
  undefined,
140
285
  ],
141
286
  ]
142
287
  }
143
- testID="check-mark"
144
- themeIntent="text"
145
- themeSize="medium"
146
- />
288
+ themeIntent="body"
289
+ themeTypeface="neutral"
290
+ themeVariant="small"
291
+ >
292
+ Please agree to our privacy policy
293
+ </Text>
147
294
  <View
148
295
  style={
149
296
  [
150
297
  {
151
- "borderColor": "#001f23",
152
- "borderRadius": 4,
153
- "borderWidth": 2,
154
- "flex": 1,
298
+ "height": 24,
299
+ "overflow": "hidden",
300
+ "width": 24,
155
301
  },
156
302
  undefined,
157
303
  ]
158
304
  }
159
- themeState="default"
160
- />
305
+ >
306
+ <View
307
+ style={
308
+ [
309
+ {
310
+ "borderColor": "#001f23",
311
+ "borderRadius": 4,
312
+ "borderWidth": 2,
313
+ "flex": 1,
314
+ },
315
+ undefined,
316
+ ]
317
+ }
318
+ themeState="default"
319
+ />
320
+ </View>
161
321
  </View>
162
- </View>
163
- `;
164
-
165
- exports[`Checkbox renders correctly when disabled is false and readonly is false 1`] = `
166
- <View
167
- accessibilityState={
168
- {
169
- "busy": undefined,
170
- "checked": undefined,
171
- "disabled": false,
172
- "expanded": undefined,
173
- "selected": undefined,
174
- }
175
- }
176
- accessibilityValue={
177
- {
178
- "max": undefined,
179
- "min": undefined,
180
- "now": undefined,
181
- "text": undefined,
182
- }
183
- }
184
- accessible={true}
185
- collapsable={false}
186
- focusable={false}
187
- onClick={[Function]}
188
- onResponderGrant={[Function]}
189
- onResponderMove={[Function]}
190
- onResponderRelease={[Function]}
191
- onResponderTerminate={[Function]}
192
- onResponderTerminationRequest={[Function]}
193
- onStartShouldSetResponder={[Function]}
194
- style={
195
- {
196
- "borderColor": "#001f23",
197
- "borderRadius": 8,
198
- "borderWidth": 1,
199
- "flexDirection": "row",
200
- "opacity": 1,
201
- "padding": 16,
202
- }
203
- }
204
- >
205
- <Text
206
- allowFontScaling={false}
207
- style={
208
- [
209
- {
210
- "color": "#001f23",
211
- "fontFamily": "BeVietnamPro-Regular",
212
- "fontSize": 14,
213
- "letterSpacing": 0.48,
214
- "lineHeight": 22,
215
- },
216
- [
217
- {
218
- "flex": 1,
219
- "paddingRight": 12,
220
- },
221
- undefined,
222
- ],
223
- ]
224
- }
225
- themeIntent="body"
226
- themeTypeface="neutral"
227
- themeVariant="small"
228
- >
229
- Please agree to our privacy policy
230
- </Text>
231
322
  <View
323
+ pointerEvents="box-none"
324
+ position="bottom"
232
325
  style={
233
326
  [
234
327
  {
235
- "height": 24,
236
- "overflow": "hidden",
237
- "width": 24,
328
+ "bottom": 0,
329
+ "elevation": 9999,
330
+ "flexDirection": "column-reverse",
331
+ "left": 0,
332
+ "paddingHorizontal": 24,
333
+ "paddingVertical": 16,
334
+ "position": "absolute",
335
+ "right": 0,
336
+ "top": 0,
238
337
  },
239
338
  undefined,
240
339
  ]
241
340
  }
242
- >
243
- <View
244
- style={
245
- [
246
- {
247
- "borderColor": "#001f23",
248
- "borderRadius": 4,
249
- "borderWidth": 2,
250
- "flex": 1,
251
- },
252
- undefined,
253
- ]
254
- }
255
- themeState="default"
256
- />
257
- </View>
341
+ />
258
342
  </View>
259
343
  `;
260
344
 
261
345
  exports[`Checkbox renders correctly when disabled is false and readonly is true 1`] = `
262
346
  <View
263
- accessibilityState={
264
- {
265
- "busy": undefined,
266
- "checked": undefined,
267
- "disabled": true,
268
- "expanded": undefined,
269
- "selected": undefined,
270
- }
271
- }
272
- accessibilityValue={
273
- {
274
- "max": undefined,
275
- "min": undefined,
276
- "now": undefined,
277
- "text": undefined,
278
- }
279
- }
280
- accessible={true}
281
- collapsable={false}
282
- focusable={false}
283
- onClick={[Function]}
284
- onResponderGrant={[Function]}
285
- onResponderMove={[Function]}
286
- onResponderRelease={[Function]}
287
- onResponderTerminate={[Function]}
288
- onResponderTerminationRequest={[Function]}
289
- onStartShouldSetResponder={[Function]}
290
347
  style={
291
348
  {
292
- "borderColor": "#808f91",
293
- "borderRadius": 8,
294
- "borderWidth": 1,
295
- "flexDirection": "row",
296
- "opacity": 1,
297
- "padding": 16,
349
+ "flex": 1,
298
350
  }
299
351
  }
300
352
  >
301
- <Text
302
- allowFontScaling={false}
303
- style={
304
- [
305
- {
306
- "color": "#001f23",
307
- "fontFamily": "BeVietnamPro-Regular",
308
- "fontSize": 14,
309
- "letterSpacing": 0.48,
310
- "lineHeight": 22,
311
- },
312
- [
313
- {
314
- "flex": 1,
315
- "paddingRight": 12,
316
- },
317
- undefined,
318
- ],
319
- ]
320
- }
321
- themeIntent="body"
322
- themeTypeface="neutral"
323
- themeVariant="small"
324
- >
325
- Please agree to our privacy policy
326
- </Text>
327
353
  <View
354
+ accessibilityState={
355
+ {
356
+ "busy": undefined,
357
+ "checked": undefined,
358
+ "disabled": true,
359
+ "expanded": undefined,
360
+ "selected": undefined,
361
+ }
362
+ }
363
+ accessibilityValue={
364
+ {
365
+ "max": undefined,
366
+ "min": undefined,
367
+ "now": undefined,
368
+ "text": undefined,
369
+ }
370
+ }
371
+ accessible={true}
372
+ collapsable={false}
373
+ focusable={false}
374
+ onClick={[Function]}
375
+ onResponderGrant={[Function]}
376
+ onResponderMove={[Function]}
377
+ onResponderRelease={[Function]}
378
+ onResponderTerminate={[Function]}
379
+ onResponderTerminationRequest={[Function]}
380
+ onStartShouldSetResponder={[Function]}
328
381
  style={
329
- [
330
- {
331
- "height": 24,
332
- "overflow": "hidden",
333
- "width": 24,
334
- },
335
- undefined,
336
- ]
382
+ {
383
+ "borderColor": "#808f91",
384
+ "borderRadius": 8,
385
+ "borderWidth": 1,
386
+ "flexDirection": "row",
387
+ "opacity": 1,
388
+ "padding": 16,
389
+ }
337
390
  }
338
391
  >
392
+ <Text
393
+ allowFontScaling={false}
394
+ style={
395
+ [
396
+ {
397
+ "color": "#001f23",
398
+ "fontFamily": "BeVietnamPro-Regular",
399
+ "fontSize": 14,
400
+ "letterSpacing": 0.48,
401
+ "lineHeight": 22,
402
+ },
403
+ [
404
+ {
405
+ "flex": 1,
406
+ "paddingRight": 12,
407
+ },
408
+ undefined,
409
+ ],
410
+ ]
411
+ }
412
+ themeIntent="body"
413
+ themeTypeface="neutral"
414
+ themeVariant="small"
415
+ >
416
+ Please agree to our privacy policy
417
+ </Text>
339
418
  <View
340
419
  style={
341
420
  [
342
421
  {
343
- "borderColor": "#808f91",
344
- "borderRadius": 4,
345
- "borderWidth": 2,
346
- "flex": 1,
422
+ "height": 24,
423
+ "overflow": "hidden",
424
+ "width": 24,
347
425
  },
348
426
  undefined,
349
427
  ]
350
428
  }
351
- themeState="readonly"
352
- />
429
+ >
430
+ <View
431
+ style={
432
+ [
433
+ {
434
+ "borderColor": "#808f91",
435
+ "borderRadius": 4,
436
+ "borderWidth": 2,
437
+ "flex": 1,
438
+ },
439
+ undefined,
440
+ ]
441
+ }
442
+ themeState="readonly"
443
+ />
444
+ </View>
353
445
  </View>
446
+ <View
447
+ pointerEvents="box-none"
448
+ position="bottom"
449
+ style={
450
+ [
451
+ {
452
+ "bottom": 0,
453
+ "elevation": 9999,
454
+ "flexDirection": "column-reverse",
455
+ "left": 0,
456
+ "paddingHorizontal": 24,
457
+ "paddingVertical": 16,
458
+ "position": "absolute",
459
+ "right": 0,
460
+ "top": 0,
461
+ },
462
+ undefined,
463
+ ]
464
+ }
465
+ />
354
466
  </View>
355
467
  `;
356
468
 
357
469
  exports[`Checkbox renders correctly when disabled is true and readonly is false 1`] = `
358
470
  <View
359
- accessibilityState={
360
- {
361
- "busy": undefined,
362
- "checked": undefined,
363
- "disabled": true,
364
- "expanded": undefined,
365
- "selected": undefined,
366
- }
367
- }
368
- accessibilityValue={
369
- {
370
- "max": undefined,
371
- "min": undefined,
372
- "now": undefined,
373
- "text": undefined,
374
- }
375
- }
376
- accessible={true}
377
- collapsable={false}
378
- focusable={false}
379
- onClick={[Function]}
380
- onResponderGrant={[Function]}
381
- onResponderMove={[Function]}
382
- onResponderRelease={[Function]}
383
- onResponderTerminate={[Function]}
384
- onResponderTerminationRequest={[Function]}
385
- onStartShouldSetResponder={[Function]}
386
471
  style={
387
472
  {
388
- "borderColor": "#bfc1c5",
389
- "borderRadius": 8,
390
- "borderWidth": 1,
391
- "flexDirection": "row",
392
- "opacity": 1,
393
- "padding": 16,
473
+ "flex": 1,
394
474
  }
395
475
  }
396
476
  >
397
- <Text
398
- allowFontScaling={false}
399
- style={
400
- [
401
- {
402
- "color": "#4d6265",
403
- "fontFamily": "BeVietnamPro-Regular",
404
- "fontSize": 14,
405
- "letterSpacing": 0.48,
406
- "lineHeight": 22,
407
- },
408
- [
409
- {
410
- "flex": 1,
411
- "paddingRight": 12,
412
- },
413
- undefined,
414
- ],
415
- ]
416
- }
417
- themeIntent="subdued"
418
- themeTypeface="neutral"
419
- themeVariant="small"
420
- >
421
- Please agree to our privacy policy
422
- </Text>
423
477
  <View
478
+ accessibilityState={
479
+ {
480
+ "busy": undefined,
481
+ "checked": undefined,
482
+ "disabled": true,
483
+ "expanded": undefined,
484
+ "selected": undefined,
485
+ }
486
+ }
487
+ accessibilityValue={
488
+ {
489
+ "max": undefined,
490
+ "min": undefined,
491
+ "now": undefined,
492
+ "text": undefined,
493
+ }
494
+ }
495
+ accessible={true}
496
+ collapsable={false}
497
+ focusable={false}
498
+ onClick={[Function]}
499
+ onResponderGrant={[Function]}
500
+ onResponderMove={[Function]}
501
+ onResponderRelease={[Function]}
502
+ onResponderTerminate={[Function]}
503
+ onResponderTerminationRequest={[Function]}
504
+ onStartShouldSetResponder={[Function]}
424
505
  style={
425
- [
426
- {
427
- "height": 24,
428
- "overflow": "hidden",
429
- "width": 24,
430
- },
431
- undefined,
432
- ]
506
+ {
507
+ "borderColor": "#bfc1c5",
508
+ "borderRadius": 8,
509
+ "borderWidth": 1,
510
+ "flexDirection": "row",
511
+ "opacity": 1,
512
+ "padding": 16,
513
+ }
433
514
  }
434
515
  >
516
+ <Text
517
+ allowFontScaling={false}
518
+ style={
519
+ [
520
+ {
521
+ "color": "#4d6265",
522
+ "fontFamily": "BeVietnamPro-Regular",
523
+ "fontSize": 14,
524
+ "letterSpacing": 0.48,
525
+ "lineHeight": 22,
526
+ },
527
+ [
528
+ {
529
+ "flex": 1,
530
+ "paddingRight": 12,
531
+ },
532
+ undefined,
533
+ ],
534
+ ]
535
+ }
536
+ themeIntent="subdued"
537
+ themeTypeface="neutral"
538
+ themeVariant="small"
539
+ >
540
+ Please agree to our privacy policy
541
+ </Text>
435
542
  <View
436
543
  style={
437
544
  [
438
545
  {
439
- "borderColor": "#bfc1c5",
440
- "borderRadius": 4,
441
- "borderWidth": 2,
442
- "flex": 1,
546
+ "height": 24,
547
+ "overflow": "hidden",
548
+ "width": 24,
443
549
  },
444
550
  undefined,
445
551
  ]
446
552
  }
447
- themeState="disabled"
448
- />
553
+ >
554
+ <View
555
+ style={
556
+ [
557
+ {
558
+ "borderColor": "#bfc1c5",
559
+ "borderRadius": 4,
560
+ "borderWidth": 2,
561
+ "flex": 1,
562
+ },
563
+ undefined,
564
+ ]
565
+ }
566
+ themeState="disabled"
567
+ />
568
+ </View>
449
569
  </View>
570
+ <View
571
+ pointerEvents="box-none"
572
+ position="bottom"
573
+ style={
574
+ [
575
+ {
576
+ "bottom": 0,
577
+ "elevation": 9999,
578
+ "flexDirection": "column-reverse",
579
+ "left": 0,
580
+ "paddingHorizontal": 24,
581
+ "paddingVertical": 16,
582
+ "position": "absolute",
583
+ "right": 0,
584
+ "top": 0,
585
+ },
586
+ undefined,
587
+ ]
588
+ }
589
+ />
450
590
  </View>
451
591
  `;
452
592
 
453
593
  exports[`Checkbox renders correctly when disabled is true and readonly is true 1`] = `
454
594
  <View
455
- accessibilityState={
456
- {
457
- "busy": undefined,
458
- "checked": undefined,
459
- "disabled": true,
460
- "expanded": undefined,
461
- "selected": undefined,
462
- }
463
- }
464
- accessibilityValue={
465
- {
466
- "max": undefined,
467
- "min": undefined,
468
- "now": undefined,
469
- "text": undefined,
470
- }
471
- }
472
- accessible={true}
473
- collapsable={false}
474
- focusable={false}
475
- onClick={[Function]}
476
- onResponderGrant={[Function]}
477
- onResponderMove={[Function]}
478
- onResponderRelease={[Function]}
479
- onResponderTerminate={[Function]}
480
- onResponderTerminationRequest={[Function]}
481
- onStartShouldSetResponder={[Function]}
482
595
  style={
483
596
  {
484
- "borderColor": "#bfc1c5",
485
- "borderRadius": 8,
486
- "borderWidth": 1,
487
- "flexDirection": "row",
488
- "opacity": 1,
489
- "padding": 16,
597
+ "flex": 1,
490
598
  }
491
599
  }
492
600
  >
493
- <Text
494
- allowFontScaling={false}
495
- style={
496
- [
497
- {
498
- "color": "#4d6265",
499
- "fontFamily": "BeVietnamPro-Regular",
500
- "fontSize": 14,
501
- "letterSpacing": 0.48,
502
- "lineHeight": 22,
503
- },
504
- [
505
- {
506
- "flex": 1,
507
- "paddingRight": 12,
508
- },
509
- undefined,
510
- ],
511
- ]
512
- }
513
- themeIntent="subdued"
514
- themeTypeface="neutral"
515
- themeVariant="small"
516
- >
517
- Please agree to our privacy policy
518
- </Text>
519
601
  <View
602
+ accessibilityState={
603
+ {
604
+ "busy": undefined,
605
+ "checked": undefined,
606
+ "disabled": true,
607
+ "expanded": undefined,
608
+ "selected": undefined,
609
+ }
610
+ }
611
+ accessibilityValue={
612
+ {
613
+ "max": undefined,
614
+ "min": undefined,
615
+ "now": undefined,
616
+ "text": undefined,
617
+ }
618
+ }
619
+ accessible={true}
620
+ collapsable={false}
621
+ focusable={false}
622
+ onClick={[Function]}
623
+ onResponderGrant={[Function]}
624
+ onResponderMove={[Function]}
625
+ onResponderRelease={[Function]}
626
+ onResponderTerminate={[Function]}
627
+ onResponderTerminationRequest={[Function]}
628
+ onStartShouldSetResponder={[Function]}
520
629
  style={
521
- [
522
- {
523
- "height": 24,
524
- "overflow": "hidden",
525
- "width": 24,
526
- },
527
- undefined,
528
- ]
630
+ {
631
+ "borderColor": "#bfc1c5",
632
+ "borderRadius": 8,
633
+ "borderWidth": 1,
634
+ "flexDirection": "row",
635
+ "opacity": 1,
636
+ "padding": 16,
637
+ }
529
638
  }
530
639
  >
640
+ <Text
641
+ allowFontScaling={false}
642
+ style={
643
+ [
644
+ {
645
+ "color": "#4d6265",
646
+ "fontFamily": "BeVietnamPro-Regular",
647
+ "fontSize": 14,
648
+ "letterSpacing": 0.48,
649
+ "lineHeight": 22,
650
+ },
651
+ [
652
+ {
653
+ "flex": 1,
654
+ "paddingRight": 12,
655
+ },
656
+ undefined,
657
+ ],
658
+ ]
659
+ }
660
+ themeIntent="subdued"
661
+ themeTypeface="neutral"
662
+ themeVariant="small"
663
+ >
664
+ Please agree to our privacy policy
665
+ </Text>
531
666
  <View
532
667
  style={
533
668
  [
534
669
  {
535
- "borderColor": "#bfc1c5",
536
- "borderRadius": 4,
537
- "borderWidth": 2,
538
- "flex": 1,
670
+ "height": 24,
671
+ "overflow": "hidden",
672
+ "width": 24,
539
673
  },
540
674
  undefined,
541
675
  ]
542
676
  }
543
- themeState="disabled"
544
- />
677
+ >
678
+ <View
679
+ style={
680
+ [
681
+ {
682
+ "borderColor": "#bfc1c5",
683
+ "borderRadius": 4,
684
+ "borderWidth": 2,
685
+ "flex": 1,
686
+ },
687
+ undefined,
688
+ ]
689
+ }
690
+ themeState="disabled"
691
+ />
692
+ </View>
545
693
  </View>
694
+ <View
695
+ pointerEvents="box-none"
696
+ position="bottom"
697
+ style={
698
+ [
699
+ {
700
+ "bottom": 0,
701
+ "elevation": 9999,
702
+ "flexDirection": "column-reverse",
703
+ "left": 0,
704
+ "paddingHorizontal": 24,
705
+ "paddingVertical": 16,
706
+ "position": "absolute",
707
+ "right": 0,
708
+ "top": 0,
709
+ },
710
+ undefined,
711
+ ]
712
+ }
713
+ />
546
714
  </View>
547
715
  `;