@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,288 +2,372 @@
2
2
 
3
3
  exports[`Drawer renders correctly in invisible state 1`] = `
4
4
  <View
5
- enableShadow={false}
6
- pointerEvents="box-none"
7
5
  style={
8
- [
9
- {
10
- "bottom": 0,
11
- "elevation": 9999,
12
- "left": 0,
13
- "overflow": "hidden",
14
- "position": "absolute",
15
- "right": 0,
16
- "shadowColor": "transparent",
17
- "shadowOffset": {
18
- "height": 3,
19
- "width": 0,
20
- },
21
- "shadowOpacity": 0.27,
22
- "shadowRadius": 4.65,
23
- "top": 0,
24
- "zIndex": 9999,
25
- },
26
- undefined,
27
- ]
6
+ {
7
+ "flex": 1,
8
+ }
28
9
  }
29
10
  >
30
11
  <View
31
- accessibilityState={
32
- {
33
- "busy": undefined,
34
- "checked": undefined,
35
- "disabled": undefined,
36
- "expanded": undefined,
37
- "selected": undefined,
38
- }
39
- }
40
- accessibilityValue={
41
- {
42
- "max": undefined,
43
- "min": undefined,
44
- "now": undefined,
45
- "text": undefined,
46
- }
47
- }
48
- accessible={true}
49
- collapsable={false}
50
- focusable={true}
51
- onBlur={[Function]}
52
- onClick={[Function]}
53
- onFocus={[Function]}
54
- onResponderGrant={[Function]}
55
- onResponderMove={[Function]}
56
- onResponderRelease={[Function]}
57
- onResponderTerminate={[Function]}
58
- onResponderTerminationRequest={[Function]}
59
- onStartShouldSetResponder={[Function]}
60
- pointerEvents="box-none"
61
- style={
62
- {
63
- "backgroundColor": "#ffffff",
64
- "bottom": 0,
65
- "left": 0,
66
- "opacity": 0,
67
- "position": "absolute",
68
- "right": 0,
69
- "top": 0,
70
- }
71
- }
72
- />
73
- <View
74
- collapsable={false}
75
12
  enableShadow={false}
76
- onLayout={[Function]}
13
+ pointerEvents="box-none"
77
14
  style={
78
- {
79
- "backgroundColor": "#ffffff",
80
- "borderBottomLeftRadius": 16,
81
- "borderBottomRightRadius": 16,
82
- "elevation": undefined,
83
- "overflow": "hidden",
84
- "transform": [
85
- {
86
- "translateY": -1334,
15
+ [
16
+ {
17
+ "bottom": 0,
18
+ "elevation": 9999,
19
+ "left": 0,
20
+ "overflow": "hidden",
21
+ "position": "absolute",
22
+ "right": 0,
23
+ "shadowColor": "transparent",
24
+ "shadowOffset": {
25
+ "height": 3,
26
+ "width": 0,
87
27
  },
88
- ],
89
- }
28
+ "shadowOpacity": 0.27,
29
+ "shadowRadius": 4.65,
30
+ "top": 0,
31
+ "zIndex": 9999,
32
+ },
33
+ undefined,
34
+ ]
90
35
  }
91
36
  >
92
- <Text>
93
- Drawer Content
94
- </Text>
37
+ <View
38
+ accessibilityState={
39
+ {
40
+ "busy": undefined,
41
+ "checked": undefined,
42
+ "disabled": undefined,
43
+ "expanded": undefined,
44
+ "selected": undefined,
45
+ }
46
+ }
47
+ accessibilityValue={
48
+ {
49
+ "max": undefined,
50
+ "min": undefined,
51
+ "now": undefined,
52
+ "text": undefined,
53
+ }
54
+ }
55
+ accessible={true}
56
+ collapsable={false}
57
+ focusable={true}
58
+ onBlur={[Function]}
59
+ onClick={[Function]}
60
+ onFocus={[Function]}
61
+ onResponderGrant={[Function]}
62
+ onResponderMove={[Function]}
63
+ onResponderRelease={[Function]}
64
+ onResponderTerminate={[Function]}
65
+ onResponderTerminationRequest={[Function]}
66
+ onStartShouldSetResponder={[Function]}
67
+ pointerEvents="box-none"
68
+ style={
69
+ {
70
+ "backgroundColor": "#ffffff",
71
+ "bottom": 0,
72
+ "left": 0,
73
+ "opacity": 0,
74
+ "position": "absolute",
75
+ "right": 0,
76
+ "top": 0,
77
+ }
78
+ }
79
+ />
80
+ <View
81
+ collapsable={false}
82
+ enableShadow={false}
83
+ onLayout={[Function]}
84
+ style={
85
+ {
86
+ "backgroundColor": "#ffffff",
87
+ "borderBottomLeftRadius": 16,
88
+ "borderBottomRightRadius": 16,
89
+ "elevation": undefined,
90
+ "overflow": "hidden",
91
+ "transform": [
92
+ {
93
+ "translateY": -1334,
94
+ },
95
+ ],
96
+ }
97
+ }
98
+ >
99
+ <Text>
100
+ Drawer Content
101
+ </Text>
102
+ </View>
95
103
  </View>
104
+ <View
105
+ pointerEvents="box-none"
106
+ position="bottom"
107
+ style={
108
+ [
109
+ {
110
+ "bottom": 0,
111
+ "elevation": 9999,
112
+ "flexDirection": "column-reverse",
113
+ "left": 0,
114
+ "paddingHorizontal": 24,
115
+ "paddingVertical": 16,
116
+ "position": "absolute",
117
+ "right": 0,
118
+ "top": 0,
119
+ },
120
+ undefined,
121
+ ]
122
+ }
123
+ />
96
124
  </View>
97
125
  `;
98
126
 
99
127
  exports[`Drawer renders correctly in visible state 1`] = `
100
128
  <View
101
- enableShadow={false}
102
- pointerEvents="box-none"
103
129
  style={
104
- [
105
- {
106
- "bottom": 0,
107
- "elevation": 9999,
108
- "left": 0,
109
- "overflow": "hidden",
110
- "position": "absolute",
111
- "right": 0,
112
- "shadowColor": "transparent",
113
- "shadowOffset": {
114
- "height": 3,
115
- "width": 0,
116
- },
117
- "shadowOpacity": 0.27,
118
- "shadowRadius": 4.65,
119
- "top": 0,
120
- "zIndex": 9999,
121
- },
122
- undefined,
123
- ]
130
+ {
131
+ "flex": 1,
132
+ }
124
133
  }
125
134
  >
126
135
  <View
127
- accessibilityState={
128
- {
129
- "busy": undefined,
130
- "checked": undefined,
131
- "disabled": undefined,
132
- "expanded": undefined,
133
- "selected": undefined,
134
- }
135
- }
136
- accessibilityValue={
137
- {
138
- "max": undefined,
139
- "min": undefined,
140
- "now": undefined,
141
- "text": undefined,
142
- }
143
- }
144
- accessible={true}
145
- collapsable={false}
146
- focusable={true}
147
- onBlur={[Function]}
148
- onClick={[Function]}
149
- onFocus={[Function]}
150
- onResponderGrant={[Function]}
151
- onResponderMove={[Function]}
152
- onResponderRelease={[Function]}
153
- onResponderTerminate={[Function]}
154
- onResponderTerminationRequest={[Function]}
155
- onStartShouldSetResponder={[Function]}
156
- pointerEvents="auto"
157
- style={
158
- {
159
- "backgroundColor": "#ffffff",
160
- "bottom": 0,
161
- "left": 0,
162
- "opacity": 0.35,
163
- "position": "absolute",
164
- "right": 0,
165
- "top": 0,
166
- }
167
- }
168
- />
169
- <View
170
- collapsable={false}
171
136
  enableShadow={false}
172
- onLayout={[Function]}
137
+ pointerEvents="box-none"
173
138
  style={
174
- {
175
- "backgroundColor": "#ffffff",
176
- "borderBottomLeftRadius": 16,
177
- "borderBottomRightRadius": 16,
178
- "elevation": undefined,
179
- "overflow": "hidden",
180
- "transform": [
181
- {
182
- "translateY": 0,
139
+ [
140
+ {
141
+ "bottom": 0,
142
+ "elevation": 9999,
143
+ "left": 0,
144
+ "overflow": "hidden",
145
+ "position": "absolute",
146
+ "right": 0,
147
+ "shadowColor": "transparent",
148
+ "shadowOffset": {
149
+ "height": 3,
150
+ "width": 0,
183
151
  },
184
- ],
185
- }
152
+ "shadowOpacity": 0.27,
153
+ "shadowRadius": 4.65,
154
+ "top": 0,
155
+ "zIndex": 9999,
156
+ },
157
+ undefined,
158
+ ]
186
159
  }
187
160
  >
188
- <Text>
189
- Drawer Content
190
- </Text>
161
+ <View
162
+ accessibilityState={
163
+ {
164
+ "busy": undefined,
165
+ "checked": undefined,
166
+ "disabled": undefined,
167
+ "expanded": undefined,
168
+ "selected": undefined,
169
+ }
170
+ }
171
+ accessibilityValue={
172
+ {
173
+ "max": undefined,
174
+ "min": undefined,
175
+ "now": undefined,
176
+ "text": undefined,
177
+ }
178
+ }
179
+ accessible={true}
180
+ collapsable={false}
181
+ focusable={true}
182
+ onBlur={[Function]}
183
+ onClick={[Function]}
184
+ onFocus={[Function]}
185
+ onResponderGrant={[Function]}
186
+ onResponderMove={[Function]}
187
+ onResponderRelease={[Function]}
188
+ onResponderTerminate={[Function]}
189
+ onResponderTerminationRequest={[Function]}
190
+ onStartShouldSetResponder={[Function]}
191
+ pointerEvents="auto"
192
+ style={
193
+ {
194
+ "backgroundColor": "#ffffff",
195
+ "bottom": 0,
196
+ "left": 0,
197
+ "opacity": 0.35,
198
+ "position": "absolute",
199
+ "right": 0,
200
+ "top": 0,
201
+ }
202
+ }
203
+ />
204
+ <View
205
+ collapsable={false}
206
+ enableShadow={false}
207
+ onLayout={[Function]}
208
+ style={
209
+ {
210
+ "backgroundColor": "#ffffff",
211
+ "borderBottomLeftRadius": 16,
212
+ "borderBottomRightRadius": 16,
213
+ "elevation": undefined,
214
+ "overflow": "hidden",
215
+ "transform": [
216
+ {
217
+ "translateY": 0,
218
+ },
219
+ ],
220
+ }
221
+ }
222
+ >
223
+ <Text>
224
+ Drawer Content
225
+ </Text>
226
+ </View>
191
227
  </View>
228
+ <View
229
+ pointerEvents="box-none"
230
+ position="bottom"
231
+ style={
232
+ [
233
+ {
234
+ "bottom": 0,
235
+ "elevation": 9999,
236
+ "flexDirection": "column-reverse",
237
+ "left": 0,
238
+ "paddingHorizontal": 24,
239
+ "paddingVertical": 16,
240
+ "position": "absolute",
241
+ "right": 0,
242
+ "top": 0,
243
+ },
244
+ undefined,
245
+ ]
246
+ }
247
+ />
192
248
  </View>
193
249
  `;
194
250
 
195
251
  exports[`Drawer renders correctly with no backdrop 1`] = `
196
252
  <View
197
- enableShadow={false}
198
- pointerEvents="box-none"
199
253
  style={
200
- [
201
- {
202
- "bottom": 0,
203
- "elevation": 9999,
204
- "left": 0,
205
- "overflow": "hidden",
206
- "position": "absolute",
207
- "right": 0,
208
- "shadowColor": "transparent",
209
- "shadowOffset": {
210
- "height": 3,
211
- "width": 0,
212
- },
213
- "shadowOpacity": 0.27,
214
- "shadowRadius": 4.65,
215
- "top": 0,
216
- "zIndex": 9999,
217
- },
218
- undefined,
219
- ]
254
+ {
255
+ "flex": 1,
256
+ }
220
257
  }
221
258
  >
222
259
  <View
223
- accessibilityState={
224
- {
225
- "busy": undefined,
226
- "checked": undefined,
227
- "disabled": undefined,
228
- "expanded": undefined,
229
- "selected": undefined,
230
- }
231
- }
232
- accessibilityValue={
233
- {
234
- "max": undefined,
235
- "min": undefined,
236
- "now": undefined,
237
- "text": undefined,
238
- }
239
- }
240
- accessible={true}
241
- collapsable={false}
242
- focusable={true}
243
- onBlur={[Function]}
244
- onClick={[Function]}
245
- onFocus={[Function]}
246
- onResponderGrant={[Function]}
247
- onResponderMove={[Function]}
248
- onResponderRelease={[Function]}
249
- onResponderTerminate={[Function]}
250
- onResponderTerminationRequest={[Function]}
251
- onStartShouldSetResponder={[Function]}
252
- pointerEvents="box-none"
253
- style={
254
- {
255
- "backgroundColor": "#ffffff",
256
- "bottom": 0,
257
- "left": 0,
258
- "opacity": 0,
259
- "position": "absolute",
260
- "right": 0,
261
- "top": 0,
262
- }
263
- }
264
- />
265
- <View
266
- collapsable={false}
267
260
  enableShadow={false}
268
- onLayout={[Function]}
261
+ pointerEvents="box-none"
269
262
  style={
270
- {
271
- "backgroundColor": "#ffffff",
272
- "borderBottomLeftRadius": 16,
273
- "borderBottomRightRadius": 16,
274
- "elevation": undefined,
275
- "overflow": "hidden",
276
- "transform": [
277
- {
278
- "translateY": -1334,
263
+ [
264
+ {
265
+ "bottom": 0,
266
+ "elevation": 9999,
267
+ "left": 0,
268
+ "overflow": "hidden",
269
+ "position": "absolute",
270
+ "right": 0,
271
+ "shadowColor": "transparent",
272
+ "shadowOffset": {
273
+ "height": 3,
274
+ "width": 0,
279
275
  },
280
- ],
281
- }
276
+ "shadowOpacity": 0.27,
277
+ "shadowRadius": 4.65,
278
+ "top": 0,
279
+ "zIndex": 9999,
280
+ },
281
+ undefined,
282
+ ]
282
283
  }
283
284
  >
284
- <Text>
285
- Drawer Content
286
- </Text>
285
+ <View
286
+ accessibilityState={
287
+ {
288
+ "busy": undefined,
289
+ "checked": undefined,
290
+ "disabled": undefined,
291
+ "expanded": undefined,
292
+ "selected": undefined,
293
+ }
294
+ }
295
+ accessibilityValue={
296
+ {
297
+ "max": undefined,
298
+ "min": undefined,
299
+ "now": undefined,
300
+ "text": undefined,
301
+ }
302
+ }
303
+ accessible={true}
304
+ collapsable={false}
305
+ focusable={true}
306
+ onBlur={[Function]}
307
+ onClick={[Function]}
308
+ onFocus={[Function]}
309
+ onResponderGrant={[Function]}
310
+ onResponderMove={[Function]}
311
+ onResponderRelease={[Function]}
312
+ onResponderTerminate={[Function]}
313
+ onResponderTerminationRequest={[Function]}
314
+ onStartShouldSetResponder={[Function]}
315
+ pointerEvents="box-none"
316
+ style={
317
+ {
318
+ "backgroundColor": "#ffffff",
319
+ "bottom": 0,
320
+ "left": 0,
321
+ "opacity": 0,
322
+ "position": "absolute",
323
+ "right": 0,
324
+ "top": 0,
325
+ }
326
+ }
327
+ />
328
+ <View
329
+ collapsable={false}
330
+ enableShadow={false}
331
+ onLayout={[Function]}
332
+ style={
333
+ {
334
+ "backgroundColor": "#ffffff",
335
+ "borderBottomLeftRadius": 16,
336
+ "borderBottomRightRadius": 16,
337
+ "elevation": undefined,
338
+ "overflow": "hidden",
339
+ "transform": [
340
+ {
341
+ "translateY": -1334,
342
+ },
343
+ ],
344
+ }
345
+ }
346
+ >
347
+ <Text>
348
+ Drawer Content
349
+ </Text>
350
+ </View>
287
351
  </View>
352
+ <View
353
+ pointerEvents="box-none"
354
+ position="bottom"
355
+ style={
356
+ [
357
+ {
358
+ "bottom": 0,
359
+ "elevation": 9999,
360
+ "flexDirection": "column-reverse",
361
+ "left": 0,
362
+ "paddingHorizontal": 24,
363
+ "paddingVertical": 16,
364
+ "position": "absolute",
365
+ "right": 0,
366
+ "top": 0,
367
+ },
368
+ undefined,
369
+ ]
370
+ }
371
+ />
288
372
  </View>
289
373
  `;