@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[`DatePicker renders DatePickerAndroid when OS is android 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="datePickerInputAndroid"
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="datePickerInputAndroid"
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,232 +62,260 @@ exports[`DatePicker renders DatePickerAndroid when OS is android 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="17/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="17/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
242
  </View>
243
+ <View
244
+ pointerEvents="box-none"
245
+ position="bottom"
246
+ style={
247
+ [
248
+ {
249
+ "bottom": 0,
250
+ "elevation": 9999,
251
+ "flexDirection": "column-reverse",
252
+ "left": 0,
253
+ "paddingHorizontal": 24,
254
+ "paddingVertical": 16,
255
+ "position": "absolute",
256
+ "right": 0,
257
+ "top": 0,
258
+ },
259
+ undefined,
260
+ ]
261
+ }
262
+ />
235
263
  </View>
236
264
  `;
237
265
 
238
266
  exports[`DatePicker renders DatePickerIOS when OS is iOS 1`] = `
239
267
  <View
240
- accessibilityState={
241
- {
242
- "busy": undefined,
243
- "checked": undefined,
244
- "disabled": false,
245
- "expanded": undefined,
246
- "selected": undefined,
247
- }
248
- }
249
- accessibilityValue={
250
- {
251
- "max": undefined,
252
- "min": undefined,
253
- "now": undefined,
254
- "text": undefined,
255
- }
256
- }
257
- accessible={true}
258
- collapsable={false}
259
- focusable={true}
260
- onClick={[Function]}
261
- onResponderGrant={[Function]}
262
- onResponderMove={[Function]}
263
- onResponderRelease={[Function]}
264
- onResponderTerminate={[Function]}
265
- onResponderTerminationRequest={[Function]}
266
- onStartShouldSetResponder={[Function]}
267
268
  style={
268
269
  {
269
- "opacity": 1,
270
+ "flex": 1,
270
271
  }
271
272
  }
272
273
  >
273
274
  <View
274
- pointerEvents="none"
275
- testID="datePickerInputIOS"
275
+ accessibilityState={
276
+ {
277
+ "busy": undefined,
278
+ "checked": undefined,
279
+ "disabled": false,
280
+ "expanded": undefined,
281
+ "selected": undefined,
282
+ }
283
+ }
284
+ accessibilityValue={
285
+ {
286
+ "max": undefined,
287
+ "min": undefined,
288
+ "now": undefined,
289
+ "text": undefined,
290
+ }
291
+ }
292
+ accessible={true}
293
+ collapsable={false}
294
+ focusable={true}
295
+ onClick={[Function]}
296
+ onResponderGrant={[Function]}
297
+ onResponderMove={[Function]}
298
+ onResponderRelease={[Function]}
299
+ onResponderTerminate={[Function]}
300
+ onResponderTerminationRequest={[Function]}
301
+ onStartShouldSetResponder={[Function]}
302
+ style={
303
+ {
304
+ "opacity": 1,
305
+ }
306
+ }
276
307
  >
277
308
  <View
278
- pointerEvents="auto"
279
- style={
280
- [
281
- {
282
- "marginTop": 8,
283
- "width": "100%",
284
- },
285
- undefined,
286
- ]
287
- }
309
+ pointerEvents="none"
310
+ testID="datePickerInputIOS"
288
311
  >
289
312
  <View
313
+ pointerEvents="auto"
290
314
  style={
291
315
  [
292
316
  {
293
- "alignItems": "center",
294
- "backgroundColor": "#ffffff",
295
- "borderRadius": 8,
296
- "flexDirection": "row",
297
- "padding": 16,
317
+ "marginTop": 8,
318
+ "width": "100%",
298
319
  },
299
320
  undefined,
300
321
  ]
@@ -304,238 +325,266 @@ exports[`DatePicker renders DatePickerIOS when OS is iOS 1`] = `
304
325
  style={
305
326
  [
306
327
  {
307
- "borderColor": "#001f23",
308
- "borderRadius": 8,
309
- "borderWidth": 1,
310
- "bottom": 0,
311
- "left": 0,
312
- "position": "absolute",
313
- "right": 0,
314
- "top": 0,
315
- },
316
- [
317
- {
318
- "backgroundColor": "#ffffff",
319
- },
320
- undefined,
321
- ],
322
- ]
323
- }
324
- testID="text-input-border"
325
- themeFocused={false}
326
- themeState="filled"
327
- />
328
- <View
329
- pointerEvents="none"
330
- style={
331
- [
332
- {
328
+ "alignItems": "center",
333
329
  "backgroundColor": "#ffffff",
330
+ "borderRadius": 8,
334
331
  "flexDirection": "row",
335
- "left": 16,
336
- "paddingHorizontal": 4,
337
- "position": "absolute",
338
- "top": -4,
339
- "zIndex": 1,
340
- },
341
- {
342
- "backgroundColor": "#ffffff",
332
+ "padding": 16,
343
333
  },
334
+ undefined,
344
335
  ]
345
336
  }
346
- testID="label-container"
347
337
  >
348
- <Text
349
- allowFontScaling={false}
338
+ <View
350
339
  style={
351
340
  [
352
341
  {
353
- "color": "#001f23",
354
- "fontFamily": "BeVietnamPro-Regular",
355
- "fontSize": 12,
356
- "letterSpacing": 0.48,
357
- "lineHeight": 16,
342
+ "borderColor": "#001f23",
343
+ "borderRadius": 8,
344
+ "borderWidth": 1,
345
+ "bottom": 0,
346
+ "left": 0,
347
+ "position": "absolute",
348
+ "right": 0,
349
+ "top": 0,
358
350
  },
359
351
  [
360
- {
361
- "color": "#001f23",
362
- "lineHeight": 12,
363
- },
364
352
  {
365
353
  "backgroundColor": "#ffffff",
366
354
  },
355
+ undefined,
367
356
  ],
368
357
  ]
369
358
  }
370
- testID="input-label"
371
- themeFontWeight="regular"
372
- themeIntent="body"
359
+ testID="text-input-border"
360
+ themeFocused={false}
373
361
  themeState="filled"
362
+ />
363
+ <View
364
+ pointerEvents="none"
365
+ style={
366
+ [
367
+ {
368
+ "backgroundColor": "#ffffff",
369
+ "flexDirection": "row",
370
+ "left": 16,
371
+ "paddingHorizontal": 4,
372
+ "position": "absolute",
373
+ "top": -4,
374
+ "zIndex": 1,
375
+ },
376
+ {
377
+ "backgroundColor": "#ffffff",
378
+ },
379
+ ]
380
+ }
381
+ testID="label-container"
374
382
  >
375
- Start date
376
- </Text>
377
- </View>
378
- <View
379
- style={
380
- [
381
- {
382
- "alignItems": "center",
383
- "alignSelf": "stretch",
384
- "flexDirection": "row",
385
- "flexGrow": 2,
386
- "flexShrink": 1,
387
- },
388
- undefined,
389
- ]
390
- }
391
- >
392
- <TextInput
393
- accessibilityState={
394
- {
395
- "disabled": false,
383
+ <Text
384
+ allowFontScaling={false}
385
+ style={
386
+ [
387
+ {
388
+ "color": "#001f23",
389
+ "fontFamily": "BeVietnamPro-Regular",
390
+ "fontSize": 12,
391
+ "letterSpacing": 0.48,
392
+ "lineHeight": 16,
393
+ },
394
+ [
395
+ {
396
+ "color": "#001f23",
397
+ "lineHeight": 12,
398
+ },
399
+ {
400
+ "backgroundColor": "#ffffff",
401
+ },
402
+ ],
403
+ ]
396
404
  }
397
- }
398
- allowFontScaling={false}
399
- editable={true}
400
- onBlur={[Function]}
401
- onChangeText={[Function]}
402
- onFocus={[Function]}
403
- placeholder=" "
405
+ testID="input-label"
406
+ themeFontWeight="regular"
407
+ themeIntent="body"
408
+ themeState="filled"
409
+ >
410
+ Start date
411
+ </Text>
412
+ </View>
413
+ <View
404
414
  style={
405
415
  [
406
416
  {
417
+ "alignItems": "center",
407
418
  "alignSelf": "stretch",
419
+ "flexDirection": "row",
408
420
  "flexGrow": 2,
409
- "fontFamily": "BeVietnamPro-Regular",
410
- "fontSize": 16,
411
- "height": undefined,
412
- "marginHorizontal": 8,
413
- "maxHeight": 144,
414
- "paddingVertical": 0,
415
- "textAlignVertical": "center",
421
+ "flexShrink": 1,
416
422
  },
423
+ undefined,
424
+ ]
425
+ }
426
+ >
427
+ <TextInput
428
+ accessibilityState={
429
+ {
430
+ "disabled": false,
431
+ }
432
+ }
433
+ allowFontScaling={false}
434
+ editable={true}
435
+ onBlur={[Function]}
436
+ onChangeText={[Function]}
437
+ onFocus={[Function]}
438
+ placeholder=" "
439
+ style={
440
+ [
441
+ {
442
+ "alignSelf": "stretch",
443
+ "flexGrow": 2,
444
+ "fontFamily": "BeVietnamPro-Regular",
445
+ "fontSize": 16,
446
+ "height": undefined,
447
+ "marginHorizontal": 8,
448
+ "maxHeight": 144,
449
+ "paddingVertical": 0,
450
+ "textAlignVertical": "center",
451
+ },
452
+ {
453
+ "backgroundColor": "#ffffff",
454
+ "color": "#001f23",
455
+ },
456
+ ]
457
+ }
458
+ testID="text-input"
459
+ themeVariant="text"
460
+ value="17/12/1995"
461
+ />
462
+ </View>
463
+ <HeroIcon
464
+ name="calendar-dates-outlined"
465
+ style={
466
+ [
417
467
  {
418
- "backgroundColor": "#ffffff",
419
468
  "color": "#001f23",
469
+ "fontSize": 24,
420
470
  },
471
+ undefined,
421
472
  ]
422
473
  }
423
- testID="text-input"
424
- themeVariant="text"
425
- value="17/12/1995"
474
+ testID="input-suffix"
475
+ themeIntent="text"
476
+ themeSize="medium"
426
477
  />
427
478
  </View>
428
- <HeroIcon
429
- name="calendar-dates-outlined"
430
- style={
431
- [
432
- {
433
- "color": "#001f23",
434
- "fontSize": 24,
435
- },
436
- undefined,
437
- ]
438
- }
439
- testID="input-suffix"
440
- themeIntent="text"
441
- themeSize="medium"
442
- />
443
- </View>
444
- <View
445
- style={
446
- [
447
- {
448
- "minHeight": 16,
449
- "paddingLeft": 16,
450
- "paddingTop": 2,
451
- },
452
- undefined,
453
- ]
454
- }
455
- >
456
479
  <View
457
480
  style={
458
481
  [
459
482
  {
460
- "flexDirection": "row",
461
- "justifyContent": "space-between",
483
+ "minHeight": 16,
484
+ "paddingLeft": 16,
485
+ "paddingTop": 2,
462
486
  },
463
487
  undefined,
464
488
  ]
465
489
  }
466
- />
490
+ >
491
+ <View
492
+ style={
493
+ [
494
+ {
495
+ "flexDirection": "row",
496
+ "justifyContent": "space-between",
497
+ },
498
+ undefined,
499
+ ]
500
+ }
501
+ />
502
+ </View>
467
503
  </View>
468
504
  </View>
505
+ <Modal
506
+ hardwareAccelerated={false}
507
+ onRequestClose={[Function]}
508
+ transparent={true}
509
+ visible={false}
510
+ />
469
511
  </View>
470
- <Modal
471
- hardwareAccelerated={false}
472
- onRequestClose={[Function]}
473
- transparent={true}
474
- visible={false}
512
+ <View
513
+ pointerEvents="box-none"
514
+ position="bottom"
515
+ style={
516
+ [
517
+ {
518
+ "bottom": 0,
519
+ "elevation": 9999,
520
+ "flexDirection": "column-reverse",
521
+ "left": 0,
522
+ "paddingHorizontal": 24,
523
+ "paddingVertical": 16,
524
+ "position": "absolute",
525
+ "right": 0,
526
+ "top": 0,
527
+ },
528
+ undefined,
529
+ ]
530
+ }
475
531
  />
476
532
  </View>
477
533
  `;
478
534
 
479
535
  exports[`DatePicker renders variant Calendar 1`] = `
480
536
  <View
481
- accessibilityState={
482
- {
483
- "busy": undefined,
484
- "checked": undefined,
485
- "disabled": false,
486
- "expanded": undefined,
487
- "selected": undefined,
488
- }
489
- }
490
- accessibilityValue={
491
- {
492
- "max": undefined,
493
- "min": undefined,
494
- "now": undefined,
495
- "text": undefined,
496
- }
497
- }
498
- accessible={true}
499
- collapsable={false}
500
- focusable={true}
501
- onClick={[Function]}
502
- onResponderGrant={[Function]}
503
- onResponderMove={[Function]}
504
- onResponderRelease={[Function]}
505
- onResponderTerminate={[Function]}
506
- onResponderTerminationRequest={[Function]}
507
- onStartShouldSetResponder={[Function]}
508
537
  style={
509
538
  {
510
- "opacity": 1,
539
+ "flex": 1,
511
540
  }
512
541
  }
513
542
  >
514
543
  <View
515
- pointerEvents="none"
516
- testID="datePickerCalendar"
544
+ accessibilityState={
545
+ {
546
+ "busy": undefined,
547
+ "checked": undefined,
548
+ "disabled": false,
549
+ "expanded": undefined,
550
+ "selected": undefined,
551
+ }
552
+ }
553
+ accessibilityValue={
554
+ {
555
+ "max": undefined,
556
+ "min": undefined,
557
+ "now": undefined,
558
+ "text": undefined,
559
+ }
560
+ }
561
+ accessible={true}
562
+ collapsable={false}
563
+ focusable={true}
564
+ onClick={[Function]}
565
+ onResponderGrant={[Function]}
566
+ onResponderMove={[Function]}
567
+ onResponderRelease={[Function]}
568
+ onResponderTerminate={[Function]}
569
+ onResponderTerminationRequest={[Function]}
570
+ onStartShouldSetResponder={[Function]}
571
+ style={
572
+ {
573
+ "opacity": 1,
574
+ }
575
+ }
517
576
  >
518
577
  <View
519
- pointerEvents="auto"
520
- style={
521
- [
522
- {
523
- "marginTop": 8,
524
- "width": "100%",
525
- },
526
- undefined,
527
- ]
528
- }
578
+ pointerEvents="none"
579
+ testID="datePickerCalendar"
529
580
  >
530
581
  <View
582
+ pointerEvents="auto"
531
583
  style={
532
584
  [
533
585
  {
534
- "alignItems": "center",
535
- "backgroundColor": "#ffffff",
536
- "borderRadius": 8,
537
- "flexDirection": "row",
538
- "padding": 16,
586
+ "marginTop": 8,
587
+ "width": "100%",
539
588
  },
540
589
  undefined,
541
590
  ]
@@ -545,174 +594,209 @@ exports[`DatePicker renders variant Calendar 1`] = `
545
594
  style={
546
595
  [
547
596
  {
548
- "borderColor": "#001f23",
549
- "borderRadius": 8,
550
- "borderWidth": 1,
551
- "bottom": 0,
552
- "left": 0,
553
- "position": "absolute",
554
- "right": 0,
555
- "top": 0,
556
- },
557
- [
558
- {
559
- "backgroundColor": "#ffffff",
560
- },
561
- undefined,
562
- ],
563
- ]
564
- }
565
- testID="text-input-border"
566
- themeFocused={false}
567
- themeState="filled"
568
- />
569
- <View
570
- pointerEvents="none"
571
- style={
572
- [
573
- {
597
+ "alignItems": "center",
574
598
  "backgroundColor": "#ffffff",
599
+ "borderRadius": 8,
575
600
  "flexDirection": "row",
576
- "left": 16,
577
- "paddingHorizontal": 4,
578
- "position": "absolute",
579
- "top": -4,
580
- "zIndex": 1,
581
- },
582
- {
583
- "backgroundColor": "#ffffff",
601
+ "padding": 16,
584
602
  },
603
+ undefined,
585
604
  ]
586
605
  }
587
- testID="label-container"
588
606
  >
589
- <Text
590
- allowFontScaling={false}
607
+ <View
591
608
  style={
592
609
  [
593
610
  {
594
- "color": "#001f23",
595
- "fontFamily": "BeVietnamPro-Regular",
596
- "fontSize": 12,
597
- "letterSpacing": 0.48,
598
- "lineHeight": 16,
611
+ "borderColor": "#001f23",
612
+ "borderRadius": 8,
613
+ "borderWidth": 1,
614
+ "bottom": 0,
615
+ "left": 0,
616
+ "position": "absolute",
617
+ "right": 0,
618
+ "top": 0,
599
619
  },
600
620
  [
601
- {
602
- "color": "#001f23",
603
- "lineHeight": 12,
604
- },
605
621
  {
606
622
  "backgroundColor": "#ffffff",
607
623
  },
624
+ undefined,
608
625
  ],
609
626
  ]
610
627
  }
611
- testID="input-label"
612
- themeFontWeight="regular"
613
- themeIntent="body"
628
+ testID="text-input-border"
629
+ themeFocused={false}
614
630
  themeState="filled"
631
+ />
632
+ <View
633
+ pointerEvents="none"
634
+ style={
635
+ [
636
+ {
637
+ "backgroundColor": "#ffffff",
638
+ "flexDirection": "row",
639
+ "left": 16,
640
+ "paddingHorizontal": 4,
641
+ "position": "absolute",
642
+ "top": -4,
643
+ "zIndex": 1,
644
+ },
645
+ {
646
+ "backgroundColor": "#ffffff",
647
+ },
648
+ ]
649
+ }
650
+ testID="label-container"
615
651
  >
616
- Start date
617
- </Text>
618
- </View>
619
- <View
620
- style={
621
- [
622
- {
623
- "alignItems": "center",
624
- "alignSelf": "stretch",
625
- "flexDirection": "row",
626
- "flexGrow": 2,
627
- "flexShrink": 1,
628
- },
629
- undefined,
630
- ]
631
- }
632
- >
633
- <TextInput
634
- accessibilityState={
635
- {
636
- "disabled": false,
652
+ <Text
653
+ allowFontScaling={false}
654
+ style={
655
+ [
656
+ {
657
+ "color": "#001f23",
658
+ "fontFamily": "BeVietnamPro-Regular",
659
+ "fontSize": 12,
660
+ "letterSpacing": 0.48,
661
+ "lineHeight": 16,
662
+ },
663
+ [
664
+ {
665
+ "color": "#001f23",
666
+ "lineHeight": 12,
667
+ },
668
+ {
669
+ "backgroundColor": "#ffffff",
670
+ },
671
+ ],
672
+ ]
637
673
  }
638
- }
639
- allowFontScaling={false}
640
- editable={true}
641
- onBlur={[Function]}
642
- onChangeText={[Function]}
643
- onFocus={[Function]}
644
- placeholder=" "
674
+ testID="input-label"
675
+ themeFontWeight="regular"
676
+ themeIntent="body"
677
+ themeState="filled"
678
+ >
679
+ Start date
680
+ </Text>
681
+ </View>
682
+ <View
645
683
  style={
646
684
  [
647
685
  {
686
+ "alignItems": "center",
648
687
  "alignSelf": "stretch",
688
+ "flexDirection": "row",
649
689
  "flexGrow": 2,
650
- "fontFamily": "BeVietnamPro-Regular",
651
- "fontSize": 16,
652
- "height": undefined,
653
- "marginHorizontal": 8,
654
- "maxHeight": 144,
655
- "paddingVertical": 0,
656
- "textAlignVertical": "center",
690
+ "flexShrink": 1,
657
691
  },
692
+ undefined,
693
+ ]
694
+ }
695
+ >
696
+ <TextInput
697
+ accessibilityState={
698
+ {
699
+ "disabled": false,
700
+ }
701
+ }
702
+ allowFontScaling={false}
703
+ editable={true}
704
+ onBlur={[Function]}
705
+ onChangeText={[Function]}
706
+ onFocus={[Function]}
707
+ placeholder=" "
708
+ style={
709
+ [
710
+ {
711
+ "alignSelf": "stretch",
712
+ "flexGrow": 2,
713
+ "fontFamily": "BeVietnamPro-Regular",
714
+ "fontSize": 16,
715
+ "height": undefined,
716
+ "marginHorizontal": 8,
717
+ "maxHeight": 144,
718
+ "paddingVertical": 0,
719
+ "textAlignVertical": "center",
720
+ },
721
+ {
722
+ "backgroundColor": "#ffffff",
723
+ "color": "#001f23",
724
+ },
725
+ ]
726
+ }
727
+ testID="text-input"
728
+ themeVariant="text"
729
+ value="17/12/1995"
730
+ />
731
+ </View>
732
+ <HeroIcon
733
+ name="calendar-dates-outlined"
734
+ style={
735
+ [
658
736
  {
659
- "backgroundColor": "#ffffff",
660
737
  "color": "#001f23",
738
+ "fontSize": 24,
661
739
  },
740
+ undefined,
662
741
  ]
663
742
  }
664
- testID="text-input"
665
- themeVariant="text"
666
- value="17/12/1995"
743
+ testID="input-suffix"
744
+ themeIntent="text"
745
+ themeSize="medium"
667
746
  />
668
747
  </View>
669
- <HeroIcon
670
- name="calendar-dates-outlined"
671
- style={
672
- [
673
- {
674
- "color": "#001f23",
675
- "fontSize": 24,
676
- },
677
- undefined,
678
- ]
679
- }
680
- testID="input-suffix"
681
- themeIntent="text"
682
- themeSize="medium"
683
- />
684
- </View>
685
- <View
686
- style={
687
- [
688
- {
689
- "minHeight": 16,
690
- "paddingLeft": 16,
691
- "paddingTop": 2,
692
- },
693
- undefined,
694
- ]
695
- }
696
- >
697
748
  <View
698
749
  style={
699
750
  [
700
751
  {
701
- "flexDirection": "row",
702
- "justifyContent": "space-between",
752
+ "minHeight": 16,
753
+ "paddingLeft": 16,
754
+ "paddingTop": 2,
703
755
  },
704
756
  undefined,
705
757
  ]
706
758
  }
707
- />
759
+ >
760
+ <View
761
+ style={
762
+ [
763
+ {
764
+ "flexDirection": "row",
765
+ "justifyContent": "space-between",
766
+ },
767
+ undefined,
768
+ ]
769
+ }
770
+ />
771
+ </View>
708
772
  </View>
709
773
  </View>
774
+ <Modal
775
+ hardwareAccelerated={false}
776
+ onRequestClose={[Function]}
777
+ transparent={true}
778
+ visible={false}
779
+ />
710
780
  </View>
711
- <Modal
712
- hardwareAccelerated={false}
713
- onRequestClose={[Function]}
714
- transparent={true}
715
- visible={false}
781
+ <View
782
+ pointerEvents="box-none"
783
+ position="bottom"
784
+ style={
785
+ [
786
+ {
787
+ "bottom": 0,
788
+ "elevation": 9999,
789
+ "flexDirection": "column-reverse",
790
+ "left": 0,
791
+ "paddingHorizontal": 24,
792
+ "paddingVertical": 16,
793
+ "position": "absolute",
794
+ "right": 0,
795
+ "top": 0,
796
+ },
797
+ undefined,
798
+ ]
799
+ }
716
800
  />
717
801
  </View>
718
802
  `;