@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,64 +2,57 @@
2
2
 
3
3
  exports[`DatePickerIOS renders correctly 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={true}
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
- "opacity": 1,
7
+ "flex": 1,
35
8
  }
36
9
  }
37
10
  >
38
11
  <View
39
- pointerEvents="none"
40
- testID="datePickerInputIOS"
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={true}
32
+ onClick={[Function]}
33
+ onResponderGrant={[Function]}
34
+ onResponderMove={[Function]}
35
+ onResponderRelease={[Function]}
36
+ onResponderTerminate={[Function]}
37
+ onResponderTerminationRequest={[Function]}
38
+ onStartShouldSetResponder={[Function]}
39
+ style={
40
+ {
41
+ "opacity": 1,
42
+ }
43
+ }
41
44
  >
42
45
  <View
43
- pointerEvents="auto"
44
- style={
45
- [
46
- {
47
- "marginTop": 8,
48
- "width": "100%",
49
- },
50
- undefined,
51
- ]
52
- }
46
+ pointerEvents="none"
47
+ testID="datePickerInputIOS"
53
48
  >
54
49
  <View
50
+ pointerEvents="auto"
55
51
  style={
56
52
  [
57
53
  {
58
- "alignItems": "center",
59
- "backgroundColor": "#ffffff",
60
- "borderRadius": 8,
61
- "flexDirection": "row",
62
- "padding": 16,
54
+ "marginTop": 8,
55
+ "width": "100%",
63
56
  },
64
57
  undefined,
65
58
  ]
@@ -69,210 +62,215 @@ exports[`DatePickerIOS renders correctly 1`] = `
69
62
  style={
70
63
  [
71
64
  {
72
- "borderColor": "#001f23",
73
- "borderRadius": 8,
74
- "borderWidth": 1,
75
- "bottom": 0,
76
- "left": 0,
77
- "position": "absolute",
78
- "right": 0,
79
- "top": 0,
80
- },
81
- [
82
- {
83
- "backgroundColor": "#ffffff",
84
- },
85
- undefined,
86
- ],
87
- ]
88
- }
89
- testID="text-input-border"
90
- themeFocused={false}
91
- themeState="filled"
92
- />
93
- <View
94
- pointerEvents="none"
95
- style={
96
- [
97
- {
65
+ "alignItems": "center",
98
66
  "backgroundColor": "#ffffff",
67
+ "borderRadius": 8,
99
68
  "flexDirection": "row",
100
- "left": 16,
101
- "paddingHorizontal": 4,
102
- "position": "absolute",
103
- "top": -4,
104
- "zIndex": 1,
105
- },
106
- {
107
- "backgroundColor": "#ffffff",
69
+ "padding": 16,
108
70
  },
71
+ undefined,
109
72
  ]
110
73
  }
111
- testID="label-container"
112
74
  >
113
- <Text
114
- allowFontScaling={false}
75
+ <View
115
76
  style={
116
77
  [
117
78
  {
118
- "color": "#001f23",
119
- "fontFamily": "BeVietnamPro-Regular",
120
- "fontSize": 12,
121
- "letterSpacing": 0.48,
122
- "lineHeight": 16,
79
+ "borderColor": "#001f23",
80
+ "borderRadius": 8,
81
+ "borderWidth": 1,
82
+ "bottom": 0,
83
+ "left": 0,
84
+ "position": "absolute",
85
+ "right": 0,
86
+ "top": 0,
123
87
  },
124
88
  [
125
- {
126
- "color": "#001f23",
127
- "lineHeight": 12,
128
- },
129
89
  {
130
90
  "backgroundColor": "#ffffff",
131
91
  },
92
+ undefined,
132
93
  ],
133
94
  ]
134
95
  }
135
- testID="input-label"
136
- themeFontWeight="regular"
137
- themeIntent="body"
96
+ testID="text-input-border"
97
+ themeFocused={false}
138
98
  themeState="filled"
99
+ />
100
+ <View
101
+ pointerEvents="none"
102
+ style={
103
+ [
104
+ {
105
+ "backgroundColor": "#ffffff",
106
+ "flexDirection": "row",
107
+ "left": 16,
108
+ "paddingHorizontal": 4,
109
+ "position": "absolute",
110
+ "top": -4,
111
+ "zIndex": 1,
112
+ },
113
+ {
114
+ "backgroundColor": "#ffffff",
115
+ },
116
+ ]
117
+ }
118
+ testID="label-container"
139
119
  >
140
- Start date
141
- </Text>
142
- </View>
143
- <View
144
- style={
145
- [
146
- {
147
- "alignItems": "center",
148
- "alignSelf": "stretch",
149
- "flexDirection": "row",
150
- "flexGrow": 2,
151
- "flexShrink": 1,
152
- },
153
- undefined,
154
- ]
155
- }
156
- >
157
- <TextInput
158
- accessibilityState={
159
- {
160
- "disabled": false,
120
+ <Text
121
+ allowFontScaling={false}
122
+ style={
123
+ [
124
+ {
125
+ "color": "#001f23",
126
+ "fontFamily": "BeVietnamPro-Regular",
127
+ "fontSize": 12,
128
+ "letterSpacing": 0.48,
129
+ "lineHeight": 16,
130
+ },
131
+ [
132
+ {
133
+ "color": "#001f23",
134
+ "lineHeight": 12,
135
+ },
136
+ {
137
+ "backgroundColor": "#ffffff",
138
+ },
139
+ ],
140
+ ]
161
141
  }
162
- }
163
- allowFontScaling={false}
164
- editable={true}
165
- onBlur={[Function]}
166
- onChangeText={[Function]}
167
- onFocus={[Function]}
168
- placeholder=" "
142
+ testID="input-label"
143
+ themeFontWeight="regular"
144
+ themeIntent="body"
145
+ themeState="filled"
146
+ >
147
+ Start date
148
+ </Text>
149
+ </View>
150
+ <View
169
151
  style={
170
152
  [
171
153
  {
154
+ "alignItems": "center",
172
155
  "alignSelf": "stretch",
156
+ "flexDirection": "row",
173
157
  "flexGrow": 2,
174
- "fontFamily": "BeVietnamPro-Regular",
175
- "fontSize": 16,
176
- "height": undefined,
177
- "marginHorizontal": 8,
178
- "maxHeight": 144,
179
- "paddingVertical": 0,
180
- "textAlignVertical": "center",
158
+ "flexShrink": 1,
181
159
  },
160
+ undefined,
161
+ ]
162
+ }
163
+ >
164
+ <TextInput
165
+ accessibilityState={
166
+ {
167
+ "disabled": false,
168
+ }
169
+ }
170
+ allowFontScaling={false}
171
+ editable={true}
172
+ onBlur={[Function]}
173
+ onChangeText={[Function]}
174
+ onFocus={[Function]}
175
+ placeholder=" "
176
+ style={
177
+ [
178
+ {
179
+ "alignSelf": "stretch",
180
+ "flexGrow": 2,
181
+ "fontFamily": "BeVietnamPro-Regular",
182
+ "fontSize": 16,
183
+ "height": undefined,
184
+ "marginHorizontal": 8,
185
+ "maxHeight": 144,
186
+ "paddingVertical": 0,
187
+ "textAlignVertical": "center",
188
+ },
189
+ {
190
+ "backgroundColor": "#ffffff",
191
+ "color": "#001f23",
192
+ },
193
+ ]
194
+ }
195
+ testID="text-input"
196
+ themeVariant="text"
197
+ value="21/12/1995"
198
+ />
199
+ </View>
200
+ <HeroIcon
201
+ name="calendar-dates-outlined"
202
+ style={
203
+ [
182
204
  {
183
- "backgroundColor": "#ffffff",
184
205
  "color": "#001f23",
206
+ "fontSize": 24,
185
207
  },
208
+ undefined,
186
209
  ]
187
210
  }
188
- testID="text-input"
189
- themeVariant="text"
190
- value="21/12/1995"
211
+ testID="input-suffix"
212
+ themeIntent="text"
213
+ themeSize="medium"
191
214
  />
192
215
  </View>
193
- <HeroIcon
194
- name="calendar-dates-outlined"
195
- style={
196
- [
197
- {
198
- "color": "#001f23",
199
- "fontSize": 24,
200
- },
201
- undefined,
202
- ]
203
- }
204
- testID="input-suffix"
205
- themeIntent="text"
206
- themeSize="medium"
207
- />
208
- </View>
209
- <View
210
- style={
211
- [
212
- {
213
- "minHeight": 16,
214
- "paddingLeft": 16,
215
- "paddingTop": 2,
216
- },
217
- undefined,
218
- ]
219
- }
220
- >
221
216
  <View
222
217
  style={
223
218
  [
224
219
  {
225
- "flexDirection": "row",
226
- "justifyContent": "space-between",
220
+ "minHeight": 16,
221
+ "paddingLeft": 16,
222
+ "paddingTop": 2,
227
223
  },
228
224
  undefined,
229
225
  ]
230
226
  }
231
- />
227
+ >
228
+ <View
229
+ style={
230
+ [
231
+ {
232
+ "flexDirection": "row",
233
+ "justifyContent": "space-between",
234
+ },
235
+ undefined,
236
+ ]
237
+ }
238
+ />
239
+ </View>
232
240
  </View>
233
241
  </View>
234
- </View>
235
- <RCTModalHostView
236
- animationType="none"
237
- hardwareAccelerated={false}
238
- identifier={0}
239
- onDismiss={[Function]}
240
- onRequestClose={[Function]}
241
- onStartShouldSetResponder={[Function]}
242
- presentationStyle="overFullScreen"
243
- style={
244
- {
245
- "position": "absolute",
246
- }
247
- }
248
- transparent={true}
249
- visible={true}
250
- >
251
- <View
252
- collapsable={false}
242
+ <RCTModalHostView
243
+ animationType="none"
244
+ hardwareAccelerated={false}
245
+ identifier={0}
246
+ onDismiss={[Function]}
247
+ onRequestClose={[Function]}
248
+ onStartShouldSetResponder={[Function]}
249
+ presentationStyle="overFullScreen"
253
250
  style={
254
- [
255
- {
256
- "flex": 1,
257
- "left": 0,
258
- "top": 0,
259
- },
260
- {
261
- "backgroundColor": "transparent",
262
- },
263
- ]
251
+ {
252
+ "position": "absolute",
253
+ }
264
254
  }
255
+ transparent={true}
256
+ visible={true}
265
257
  >
266
258
  <View
267
- pointerEvents="box-none"
259
+ collapsable={false}
268
260
  style={
269
- {
270
- "flex": 1,
271
- }
261
+ [
262
+ {
263
+ "flex": 1,
264
+ "left": 0,
265
+ "top": 0,
266
+ },
267
+ {
268
+ "backgroundColor": "transparent",
269
+ },
270
+ ]
272
271
  }
273
272
  >
274
273
  <View
275
- collapsable={true}
276
274
  pointerEvents="box-none"
277
275
  style={
278
276
  {
@@ -281,337 +279,367 @@ exports[`DatePickerIOS renders correctly 1`] = `
281
279
  }
282
280
  >
283
281
  <View
282
+ collapsable={true}
284
283
  pointerEvents="box-none"
285
284
  style={
286
- [
287
- {
288
- "bottom": 0,
289
- "flexDirection": "column-reverse",
290
- "left": 0,
291
- "position": "absolute",
292
- "right": 0,
293
- "top": 0,
294
- },
295
- undefined,
296
- ]
285
+ {
286
+ "flex": 1,
287
+ }
297
288
  }
298
289
  >
299
290
  <View
300
- onLayout={[Function]}
291
+ pointerEvents="box-none"
301
292
  style={
302
293
  [
303
- [
304
- {
305
- "flex": 1,
306
- "flexDirection": "column-reverse",
307
- },
308
- undefined,
309
- ],
310
294
  {
311
- "paddingBottom": 0,
312
- },
313
- ]
314
- }
315
- >
316
- <View
317
- accessibilityState={
318
- {
319
- "busy": undefined,
320
- "checked": undefined,
321
- "disabled": undefined,
322
- "expanded": undefined,
323
- "selected": undefined,
324
- }
325
- }
326
- accessibilityValue={
327
- {
328
- "max": undefined,
329
- "min": undefined,
330
- "now": undefined,
331
- "text": undefined,
332
- }
333
- }
334
- accessible={true}
335
- collapsable={false}
336
- focusable={true}
337
- onBlur={[Function]}
338
- onClick={[Function]}
339
- onFocus={[Function]}
340
- onResponderGrant={[Function]}
341
- onResponderMove={[Function]}
342
- onResponderRelease={[Function]}
343
- onResponderTerminate={[Function]}
344
- onResponderTerminationRequest={[Function]}
345
- onStartShouldSetResponder={[Function]}
346
- style={
347
- {
348
- "backgroundColor": "#000000",
349
295
  "bottom": 0,
296
+ "flexDirection": "column-reverse",
350
297
  "left": 0,
351
- "opacity": 0.48,
352
298
  "position": "absolute",
353
299
  "right": 0,
354
300
  "top": 0,
355
- }
356
- }
357
- />
358
- <RCTSafeAreaView
359
- collapsable={false}
301
+ },
302
+ undefined,
303
+ ]
304
+ }
305
+ >
306
+ <View
307
+ onLayout={[Function]}
360
308
  style={
361
- {
362
- "backgroundColor": "#ffffff",
363
- "borderTopLeftRadius": 16,
364
- "borderTopRightRadius": 16,
365
- "elevation": 10,
366
- "maxHeight": "94%",
367
- "shadowColor": "#001f23",
368
- "shadowOffset": {
369
- "height": 3,
370
- "width": 0,
371
- },
372
- "shadowOpacity": 0.4,
373
- "shadowRadius": 16,
374
- "transform": [
375
- {
376
- "scaleY": 1,
377
- },
309
+ [
310
+ [
378
311
  {
379
- "translateY": 0,
312
+ "flex": 1,
313
+ "flexDirection": "column-reverse",
380
314
  },
315
+ undefined,
381
316
  ],
382
- "width": "100%",
383
- }
317
+ {
318
+ "paddingBottom": 0,
319
+ },
320
+ ]
384
321
  }
385
322
  >
386
323
  <View
324
+ accessibilityState={
325
+ {
326
+ "busy": undefined,
327
+ "checked": undefined,
328
+ "disabled": undefined,
329
+ "expanded": undefined,
330
+ "selected": undefined,
331
+ }
332
+ }
333
+ accessibilityValue={
334
+ {
335
+ "max": undefined,
336
+ "min": undefined,
337
+ "now": undefined,
338
+ "text": undefined,
339
+ }
340
+ }
341
+ accessible={true}
342
+ collapsable={false}
343
+ focusable={true}
344
+ onBlur={[Function]}
345
+ onClick={[Function]}
346
+ onFocus={[Function]}
347
+ onResponderGrant={[Function]}
348
+ onResponderMove={[Function]}
349
+ onResponderRelease={[Function]}
350
+ onResponderTerminate={[Function]}
351
+ onResponderTerminationRequest={[Function]}
352
+ onStartShouldSetResponder={[Function]}
387
353
  style={
388
- [
389
- {
390
- "flexDirection": "row",
391
- "paddingHorizontal": 16,
392
- "paddingVertical": 8,
354
+ {
355
+ "backgroundColor": "#000000",
356
+ "bottom": 0,
357
+ "left": 0,
358
+ "opacity": 0.48,
359
+ "position": "absolute",
360
+ "right": 0,
361
+ "top": 0,
362
+ }
363
+ }
364
+ />
365
+ <RCTSafeAreaView
366
+ collapsable={false}
367
+ style={
368
+ {
369
+ "backgroundColor": "#ffffff",
370
+ "borderTopLeftRadius": 16,
371
+ "borderTopRightRadius": 16,
372
+ "elevation": 10,
373
+ "maxHeight": "94%",
374
+ "shadowColor": "#001f23",
375
+ "shadowOffset": {
376
+ "height": 3,
377
+ "width": 0,
393
378
  },
394
- undefined,
395
- ]
379
+ "shadowOpacity": 0.4,
380
+ "shadowRadius": 16,
381
+ "transform": [
382
+ {
383
+ "scaleY": 1,
384
+ },
385
+ {
386
+ "translateY": 0,
387
+ },
388
+ ],
389
+ "width": "100%",
390
+ }
396
391
  }
397
392
  >
398
393
  <View
399
394
  style={
400
395
  [
401
396
  {
402
- "flex": 1,
403
- "justifyContent": "center",
397
+ "flexDirection": "row",
398
+ "paddingHorizontal": 16,
399
+ "paddingVertical": 8,
404
400
  },
405
401
  undefined,
406
402
  ]
407
403
  }
408
404
  >
409
- <Text
410
- allowFontScaling={false}
405
+ <View
411
406
  style={
412
407
  [
413
408
  {
414
- "color": "#001f23",
415
- "fontFamily": "BeVietnamPro-SemiBold",
416
- "fontSize": 16,
417
- "letterSpacing": 0.24,
418
- "lineHeight": 24,
409
+ "flex": 1,
410
+ "justifyContent": "center",
419
411
  },
420
412
  undefined,
421
413
  ]
422
414
  }
423
- themeIntent="body"
424
- themeTypeface="neutral"
425
- themeVariant="regular-bold"
426
- >
427
- Start date
428
- </Text>
429
- </View>
430
- <View
431
- style={
432
- [
433
- {
434
- "alignItems": "center",
435
- "height": 48,
436
- "justifyContent": "center",
437
- "marginLeft": 12,
438
- "width": 48,
439
- },
440
- undefined,
441
- ]
442
- }
443
- >
444
- <View
445
- accessibilityState={
446
- {
447
- "busy": undefined,
448
- "checked": undefined,
449
- "disabled": undefined,
450
- "expanded": undefined,
451
- "selected": undefined,
452
- }
453
- }
454
- accessibilityValue={
455
- {
456
- "max": undefined,
457
- "min": undefined,
458
- "now": undefined,
459
- "text": undefined,
460
- }
461
- }
462
- accessible={true}
463
- collapsable={false}
464
- focusable={true}
465
- onClick={[Function]}
466
- onResponderGrant={[Function]}
467
- onResponderMove={[Function]}
468
- onResponderRelease={[Function]}
469
- onResponderTerminate={[Function]}
470
- onResponderTerminationRequest={[Function]}
471
- onStartShouldSetResponder={[Function]}
472
- style={
473
- {
474
- "opacity": 1,
475
- }
476
- }
477
- testID="bottom-sheet-close-icon"
478
415
  >
479
- <HeroIcon
480
- name="cancel"
416
+ <Text
417
+ allowFontScaling={false}
481
418
  style={
482
419
  [
483
420
  {
484
421
  "color": "#001f23",
422
+ "fontFamily": "BeVietnamPro-SemiBold",
485
423
  "fontSize": 16,
424
+ "letterSpacing": 0.24,
425
+ "lineHeight": 24,
486
426
  },
487
427
  undefined,
488
428
  ]
489
429
  }
490
- themeIntent="text"
491
- themeSize="xsmall"
492
- />
430
+ themeIntent="body"
431
+ themeTypeface="neutral"
432
+ themeVariant="regular-bold"
433
+ >
434
+ Start date
435
+ </Text>
493
436
  </View>
494
- </View>
495
- </View>
496
- <View
497
- style={
498
- [
499
- {
500
- "height": 176,
501
- },
502
- undefined,
503
- ]
504
- }
505
- >
506
- <Picker
507
- display="spinner"
508
- mode="date"
509
- onChange={[Function]}
510
- style={
511
- {
512
- "flex": 1,
437
+ <View
438
+ style={
439
+ [
440
+ {
441
+ "alignItems": "center",
442
+ "height": 48,
443
+ "justifyContent": "center",
444
+ "marginLeft": 12,
445
+ "width": 48,
446
+ },
447
+ undefined,
448
+ ]
513
449
  }
514
- }
515
- testID="datePickerIOS"
516
- textColor="#001f23"
517
- value={1995-12-21T00:00:00.000Z}
518
- />
519
- </View>
520
- <View>
450
+ >
451
+ <View
452
+ accessibilityState={
453
+ {
454
+ "busy": undefined,
455
+ "checked": undefined,
456
+ "disabled": undefined,
457
+ "expanded": undefined,
458
+ "selected": undefined,
459
+ }
460
+ }
461
+ accessibilityValue={
462
+ {
463
+ "max": undefined,
464
+ "min": undefined,
465
+ "now": undefined,
466
+ "text": undefined,
467
+ }
468
+ }
469
+ accessible={true}
470
+ collapsable={false}
471
+ focusable={true}
472
+ onClick={[Function]}
473
+ onResponderGrant={[Function]}
474
+ onResponderMove={[Function]}
475
+ onResponderRelease={[Function]}
476
+ onResponderTerminate={[Function]}
477
+ onResponderTerminationRequest={[Function]}
478
+ onStartShouldSetResponder={[Function]}
479
+ style={
480
+ {
481
+ "opacity": 1,
482
+ }
483
+ }
484
+ testID="bottom-sheet-close-icon"
485
+ >
486
+ <HeroIcon
487
+ name="cancel"
488
+ style={
489
+ [
490
+ {
491
+ "color": "#001f23",
492
+ "fontSize": 16,
493
+ },
494
+ undefined,
495
+ ]
496
+ }
497
+ themeIntent="text"
498
+ themeSize="xsmall"
499
+ />
500
+ </View>
501
+ </View>
502
+ </View>
521
503
  <View
522
504
  style={
523
505
  [
524
506
  {
525
- "alignItems": "center",
526
- "flexDirection": "row",
527
- "justifyContent": "flex-end",
528
- "paddingHorizontal": 12,
529
- "paddingVertical": 2,
507
+ "height": 176,
530
508
  },
531
509
  undefined,
532
510
  ]
533
511
  }
534
512
  >
535
- <View
536
- accessibilityState={
537
- {
538
- "disabled": false,
539
- }
540
- }
541
- accessibilityValue={
513
+ <Picker
514
+ display="spinner"
515
+ mode="date"
516
+ onChange={[Function]}
517
+ style={
542
518
  {
543
- "max": undefined,
544
- "min": undefined,
545
- "now": undefined,
546
- "text": undefined,
519
+ "flex": 1,
547
520
  }
548
521
  }
549
- accessible={true}
550
- focusable={true}
551
- onClick={[Function]}
552
- onResponderGrant={[Function]}
553
- onResponderMove={[Function]}
554
- onResponderRelease={[Function]}
555
- onResponderTerminate={[Function]}
556
- onResponderTerminationRequest={[Function]}
557
- onStartShouldSetResponder={[Function]}
522
+ testID="datePickerIOS"
523
+ textColor="#001f23"
524
+ value={1995-12-21T00:00:00.000Z}
525
+ />
526
+ </View>
527
+ <View>
528
+ <View
558
529
  style={
559
530
  [
560
531
  {
561
532
  "alignItems": "center",
562
- "backgroundColor": "transparent",
563
- "borderRadius": 4,
564
- "borderWidth": 0,
565
533
  "flexDirection": "row",
566
- "height": 60,
567
- "justifyContent": "center",
568
- "padding": 12,
534
+ "justifyContent": "flex-end",
535
+ "paddingHorizontal": 12,
536
+ "paddingVertical": 2,
569
537
  },
570
538
  undefined,
571
539
  ]
572
540
  }
573
541
  >
574
- <Text
575
- allowFontScaling={false}
576
- disabled={false}
577
- ellipsizeMode="tail"
578
- numberOfLines={1}
542
+ <View
543
+ accessibilityState={
544
+ {
545
+ "disabled": false,
546
+ }
547
+ }
548
+ accessibilityValue={
549
+ {
550
+ "max": undefined,
551
+ "min": undefined,
552
+ "now": undefined,
553
+ "text": undefined,
554
+ }
555
+ }
556
+ accessible={true}
557
+ focusable={true}
558
+ onClick={[Function]}
559
+ onResponderGrant={[Function]}
560
+ onResponderMove={[Function]}
561
+ onResponderRelease={[Function]}
562
+ onResponderTerminate={[Function]}
563
+ onResponderTerminationRequest={[Function]}
564
+ onStartShouldSetResponder={[Function]}
579
565
  style={
580
566
  [
581
567
  {
582
- "color": "#001f23",
583
- "fontFamily": "BeVietnamPro-SemiBold",
584
- "fontSize": 16,
585
- "letterSpacing": 0.24,
586
- "lineHeight": 24,
568
+ "alignItems": "center",
569
+ "backgroundColor": "transparent",
570
+ "borderRadius": 4,
571
+ "borderWidth": 0,
572
+ "flexDirection": "row",
573
+ "height": 60,
574
+ "justifyContent": "center",
575
+ "padding": 12,
587
576
  },
588
- [
589
- {
590
- "color": "#401960",
591
- "flexShrink": 1,
592
- "lineHeight": 22,
593
- "textAlign": "center",
594
- },
595
- undefined,
596
- ],
577
+ undefined,
597
578
  ]
598
579
  }
599
- themeButtonVariant="text-primary"
600
- themeIntent="body"
601
- themeTypeface="neutral"
602
- themeVariant="regular-bold"
603
580
  >
604
- Confirm
605
- </Text>
581
+ <Text
582
+ allowFontScaling={false}
583
+ disabled={false}
584
+ ellipsizeMode="tail"
585
+ numberOfLines={1}
586
+ style={
587
+ [
588
+ {
589
+ "color": "#001f23",
590
+ "fontFamily": "BeVietnamPro-SemiBold",
591
+ "fontSize": 16,
592
+ "letterSpacing": 0.24,
593
+ "lineHeight": 24,
594
+ },
595
+ [
596
+ {
597
+ "color": "#401960",
598
+ "flexShrink": 1,
599
+ "lineHeight": 22,
600
+ "textAlign": "center",
601
+ },
602
+ undefined,
603
+ ],
604
+ ]
605
+ }
606
+ themeButtonVariant="text-primary"
607
+ themeIntent="body"
608
+ themeTypeface="neutral"
609
+ themeVariant="regular-bold"
610
+ >
611
+ Confirm
612
+ </Text>
613
+ </View>
606
614
  </View>
607
615
  </View>
608
- </View>
609
- </RCTSafeAreaView>
616
+ </RCTSafeAreaView>
617
+ </View>
610
618
  </View>
611
619
  </View>
612
620
  </View>
613
621
  </View>
614
- </View>
615
- </RCTModalHostView>
622
+ </RCTModalHostView>
623
+ </View>
624
+ <View
625
+ pointerEvents="box-none"
626
+ position="bottom"
627
+ style={
628
+ [
629
+ {
630
+ "bottom": 0,
631
+ "elevation": 9999,
632
+ "flexDirection": "column-reverse",
633
+ "left": 0,
634
+ "paddingHorizontal": 24,
635
+ "paddingVertical": 16,
636
+ "position": "absolute",
637
+ "right": 0,
638
+ "top": 0,
639
+ },
640
+ undefined,
641
+ ]
642
+ }
643
+ />
616
644
  </View>
617
645
  `;