@hero-design/rn 8.42.4 → 8.43.1

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 (202) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +20 -0
  3. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  4. package/es/index.js +2174 -1988
  5. package/jest-setup.ts +2 -0
  6. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  7. package/lib/index.js +2173 -1986
  8. package/package.json +20 -20
  9. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +68 -0
  10. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +102 -0
  11. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +85 -0
  12. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +34 -0
  13. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +12 -0
  14. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +108 -0
  15. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +17 -0
  16. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +36 -0
  17. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +36 -0
  18. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +247 -211
  19. package/src/components/BottomSheet/index.tsx +1 -1
  20. package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +6 -10
  21. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +0 -20
  22. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +0 -70
  23. package/src/components/Button/StyledButton.tsx +4 -0
  24. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +34 -0
  25. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +144 -42
  26. package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +17 -0
  27. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +90 -0
  28. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +85 -0
  29. package/src/components/Carousel/CardCarousel.tsx +10 -7
  30. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +4 -0
  31. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +39 -0
  32. package/src/components/Carousel/__tests__/index.spec.tsx +8 -10
  33. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +68 -0
  34. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +72 -0
  35. package/src/components/Chip/StyledChip.tsx +121 -0
  36. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +1147 -0
  37. package/src/components/Chip/__tests__/index.spec.tsx +136 -0
  38. package/src/components/Chip/index.tsx +82 -0
  39. package/src/components/Collapse/index.tsx +1 -1
  40. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +72 -0
  41. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +48 -0
  42. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +12 -0
  43. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +12 -0
  44. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +470 -399
  45. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +51 -0
  46. package/src/components/Error/__tests__/index.spec.tsx +9 -6
  47. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +81 -0
  48. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +16 -0
  49. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +24 -0
  50. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  51. package/src/components/Icon/IconList.ts +1 -0
  52. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +16 -0
  53. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +60 -0
  54. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +32 -0
  55. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +32 -0
  56. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +16 -0
  57. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +24 -0
  58. package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +180 -0
  59. package/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx +8 -10
  60. package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +119 -0
  61. package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +1 -0
  62. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +18 -0
  63. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +8 -0
  64. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +124 -0
  65. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +804 -455
  66. package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +7 -10
  67. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +8 -0
  68. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +124 -0
  69. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +790 -532
  70. package/src/components/Success/__tests__/index.spec.tsx +9 -6
  71. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +51 -0
  72. package/src/components/Swipeable/index.tsx +3 -3
  73. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +9 -0
  74. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +8 -0
  75. package/src/components/Tabs/__tests__/SceneView.spec.tsx +19 -23
  76. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +171 -0
  77. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +40 -0
  78. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +159 -0
  79. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +24 -0
  80. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +482 -399
  81. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +102 -0
  82. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +72 -0
  83. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +96 -0
  84. package/src/index.ts +2 -0
  85. package/src/testHelpers/renderWithTheme.tsx +1 -7
  86. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +38 -1
  87. package/src/theme/components/button.ts +0 -1
  88. package/src/theme/components/chip.ts +47 -0
  89. package/src/theme/getTheme.ts +3 -0
  90. package/tsconfig.json +4 -1
  91. package/types/components/Accordion/AccordionItem.d.ts +2 -1
  92. package/types/components/Accordion/index.d.ts +1 -1
  93. package/types/components/Attachment/index.d.ts +2 -1
  94. package/types/components/Avatar/Avatar.d.ts +2 -1
  95. package/types/components/Avatar/AvatarStack/index.d.ts +2 -2
  96. package/types/components/Avatar/index.d.ts +3 -2
  97. package/types/components/Badge/StyledBadge.d.ts +0 -4
  98. package/types/components/BottomSheet/Footer.d.ts +2 -1
  99. package/types/components/BottomSheet/Header.d.ts +2 -1
  100. package/types/components/BottomSheet/ScrollView.d.ts +1 -0
  101. package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -4
  102. package/types/components/Box/index.d.ts +2 -1
  103. package/types/components/Button/IconButton.d.ts +2 -1
  104. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +3 -3
  105. package/types/components/Button/LoadingIndicator/index.d.ts +2 -1
  106. package/types/components/Button/UtilityButton/index.d.ts +2 -1
  107. package/types/components/Calendar/CalendarRowItem.d.ts +2 -1
  108. package/types/components/Calendar/StyledCalendar.d.ts +1 -1
  109. package/types/components/Calendar/index.d.ts +2 -1
  110. package/types/components/Carousel/CardCarousel.d.ts +1 -1
  111. package/types/components/Carousel/CarouselItem.d.ts +2 -1
  112. package/types/components/Carousel/index.d.ts +2 -2
  113. package/types/components/Checkbox/index.d.ts +2 -1
  114. package/types/components/Chip/StyledChip.d.ts +31 -0
  115. package/types/components/Chip/index.d.ts +27 -0
  116. package/types/components/Collapse/StyledCollapse.d.ts +0 -2
  117. package/types/components/Collapse/index.d.ts +2 -1
  118. package/types/components/ContentNavigator/index.d.ts +2 -1
  119. package/types/components/DatePicker/DatePickerAndroid.d.ts +2 -1
  120. package/types/components/DatePicker/DatePickerCalendar.d.ts +2 -1
  121. package/types/components/DatePicker/DatePickerIOS.d.ts +2 -1
  122. package/types/components/DatePicker/index.d.ts +2 -1
  123. package/types/components/Divider/index.d.ts +2 -1
  124. package/types/components/Drawer/StyledDrawer.d.ts +0 -6
  125. package/types/components/Error/StyledError.d.ts +0 -4
  126. package/types/components/FAB/ActionGroup/ActionItem.d.ts +2 -1
  127. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -4
  128. package/types/components/FAB/AnimatedFABIcon.d.ts +2 -1
  129. package/types/components/HeroDesignProvider/index.d.ts +2 -1
  130. package/types/components/Icon/AnimatedIcon.d.ts +2 -1
  131. package/types/components/Icon/IconList.d.ts +1 -1
  132. package/types/components/Icon/index.d.ts +3 -2
  133. package/types/components/Icon/utils.d.ts +1 -1
  134. package/types/components/Image/index.d.ts +1 -0
  135. package/types/components/Modal/index.d.ts +2 -2
  136. package/types/components/PageControl/StyledPageControl.d.ts +0 -2
  137. package/types/components/PageControl/index.d.ts +2 -1
  138. package/types/components/PinInput/PinCell.d.ts +2 -1
  139. package/types/components/Portal/PortalHost.d.ts +1 -1
  140. package/types/components/Portal/PortalProvider.d.ts +1 -1
  141. package/types/components/Portal/index.d.ts +2 -2
  142. package/types/components/Progress/ProgressBar.d.ts +1 -0
  143. package/types/components/Progress/StyledProgressBar.d.ts +0 -2
  144. package/types/components/Progress/index.d.ts +1 -0
  145. package/types/components/Rate/StyledRate.d.ts +0 -2
  146. package/types/components/Rate/index.d.ts +2 -1
  147. package/types/components/RefreshControl/index.d.ts +2 -1
  148. package/types/components/RichTextEditor/EditorToolbar.d.ts +2 -1
  149. package/types/components/RichTextEditor/MentionList.d.ts +2 -1
  150. package/types/components/RichTextEditor/index.d.ts +2 -2
  151. package/types/components/Select/BaseOptionList.d.ts +1 -1
  152. package/types/components/Select/Footer.d.ts +2 -1
  153. package/types/components/Select/MultiSelect/Option.d.ts +2 -1
  154. package/types/components/Select/MultiSelect/OptionList.d.ts +2 -1
  155. package/types/components/Select/MultiSelect/index.d.ts +1 -1
  156. package/types/components/Select/SingleSelect/Option.d.ts +2 -1
  157. package/types/components/Select/SingleSelect/OptionList.d.ts +1 -1
  158. package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +2 -1
  159. package/types/components/Select/SingleSelect/index.d.ts +1 -1
  160. package/types/components/Select/helpers.d.ts +1 -2
  161. package/types/components/Select/index.d.ts +2 -1
  162. package/types/components/Skeleton/index.d.ts +2 -1
  163. package/types/components/Slider/index.d.ts +2 -1
  164. package/types/components/Spinner/AnimatedSpinner.d.ts +2 -1
  165. package/types/components/Success/StyledSuccess.d.ts +0 -2
  166. package/types/components/Swipeable/SwipeableAction.d.ts +2 -2
  167. package/types/components/Swipeable/index.d.ts +3 -3
  168. package/types/components/Switch/SelectorSwitch/Option.d.ts +2 -1
  169. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -6
  170. package/types/components/Switch/StyledSwitch.d.ts +0 -2
  171. package/types/components/Tabs/ActiveTabIndicator.d.ts +2 -1
  172. package/types/components/Tabs/SceneView.d.ts +1 -1
  173. package/types/components/Tabs/ScrollableTabs.d.ts +2 -1
  174. package/types/components/Tabs/ScrollableTabsHeader.d.ts +2 -1
  175. package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -4
  176. package/types/components/Tabs/StyledTabs.d.ts +0 -4
  177. package/types/components/Tabs/TabWithBadge.d.ts +2 -2
  178. package/types/components/Tabs/index.d.ts +2 -1
  179. package/types/components/TextInput/StyledTextInput.d.ts +1 -1
  180. package/types/components/TextInput/index.d.ts +1 -1
  181. package/types/components/TimePicker/TimePickerAndroid.d.ts +2 -1
  182. package/types/components/TimePicker/TimePickerIOS.d.ts +2 -1
  183. package/types/components/TimePicker/index.d.ts +2 -1
  184. package/types/components/Toast/StyledToast.d.ts +0 -2
  185. package/types/components/Toast/Toast.d.ts +1 -0
  186. package/types/components/Toast/ToastProvider.d.ts +2 -1
  187. package/types/components/Toast/index.d.ts +1 -1
  188. package/types/components/Toolbar/ToolbarGroup.d.ts +2 -1
  189. package/types/components/Toolbar/ToolbarItem.d.ts +2 -1
  190. package/types/components/Toolbar/index.d.ts +3 -2
  191. package/types/components/Typography/Body/index.d.ts +2 -1
  192. package/types/components/Typography/Caption/index.d.ts +2 -1
  193. package/types/components/Typography/Label/index.d.ts +2 -1
  194. package/types/components/Typography/Text/index.d.ts +2 -1
  195. package/types/components/Typography/Title/index.d.ts +2 -1
  196. package/types/index.d.ts +2 -1
  197. package/types/testHelpers/renderWithTheme.d.ts +1 -0
  198. package/types/theme/ThemeSwitcher.d.ts +2 -2
  199. package/types/theme/components/button.d.ts +0 -1
  200. package/types/theme/components/chip.d.ts +40 -0
  201. package/types/theme/getTheme.d.ts +2 -0
  202. package/.turbo/turbo-publish:npm.log +0 -0
@@ -1,40 +1,65 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`DatePickerIOS renders correctly 1`] = `
4
- [
5
- <View
6
- accessibilityState={
7
- {
8
- "disabled": false,
9
- }
4
+ <View
5
+ accessibilityState={
6
+ {
7
+ "busy": undefined,
8
+ "checked": undefined,
9
+ "disabled": false,
10
+ "expanded": undefined,
11
+ "selected": undefined,
10
12
  }
11
- accessible={true}
12
- collapsable={false}
13
- focusable={true}
14
- onClick={[Function]}
15
- onResponderGrant={[Function]}
16
- onResponderMove={[Function]}
17
- onResponderRelease={[Function]}
18
- onResponderTerminate={[Function]}
19
- onResponderTerminationRequest={[Function]}
20
- onStartShouldSetResponder={[Function]}
21
- style={
22
- {
23
- "opacity": 1,
24
- }
13
+ }
14
+ accessibilityValue={
15
+ {
16
+ "max": undefined,
17
+ "min": undefined,
18
+ "now": undefined,
19
+ "text": undefined,
25
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
+ style={
33
+ {
34
+ "opacity": 1,
35
+ }
36
+ }
37
+ >
38
+ <View
39
+ pointerEvents="none"
40
+ testID="datePickerInputIOS"
26
41
  >
27
42
  <View
28
- pointerEvents="none"
29
- testID="datePickerInputIOS"
43
+ pointerEvents="auto"
44
+ style={
45
+ [
46
+ {
47
+ "marginTop": 8,
48
+ "width": "100%",
49
+ },
50
+ undefined,
51
+ ]
52
+ }
30
53
  >
31
54
  <View
32
- pointerEvents="auto"
33
55
  style={
34
56
  [
35
57
  {
36
- "marginTop": 8,
37
- "width": "100%",
58
+ "alignItems": "center",
59
+ "backgroundColor": "#ffffff",
60
+ "borderRadius": 8,
61
+ "flexDirection": "row",
62
+ "padding": 16,
38
63
  },
39
64
  undefined,
40
65
  ]
@@ -44,444 +69,274 @@ exports[`DatePickerIOS renders correctly 1`] = `
44
69
  style={
45
70
  [
46
71
  {
47
- "alignItems": "center",
48
- "backgroundColor": "#ffffff",
72
+ "borderColor": "#001f23",
49
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
+ {
98
+ "backgroundColor": "#ffffff",
50
99
  "flexDirection": "row",
51
- "padding": 16,
100
+ "left": 16,
101
+ "paddingHorizontal": 4,
102
+ "position": "absolute",
103
+ "top": -4,
104
+ "zIndex": 1,
105
+ },
106
+ {
107
+ "backgroundColor": "#ffffff",
52
108
  },
53
- undefined,
54
109
  ]
55
110
  }
111
+ testID="label-container"
56
112
  >
57
- <View
113
+ <Text
114
+ allowFontScaling={false}
58
115
  style={
59
116
  [
60
117
  {
61
- "borderColor": "#001f23",
62
- "borderRadius": 8,
63
- "borderWidth": 1,
64
- "bottom": 0,
65
- "left": 0,
66
- "position": "absolute",
67
- "right": 0,
68
- "top": 0,
118
+ "color": "#001f23",
119
+ "fontFamily": "BeVietnamPro-Regular",
120
+ "fontSize": 12,
121
+ "letterSpacing": 0.48,
122
+ "lineHeight": 16,
69
123
  },
70
124
  [
125
+ {
126
+ "color": "#001f23",
127
+ "lineHeight": 12,
128
+ },
71
129
  {
72
130
  "backgroundColor": "#ffffff",
73
131
  },
74
- undefined,
75
132
  ],
76
133
  ]
77
134
  }
78
- testID="text-input-border"
79
- themeFocused={false}
135
+ testID="input-label"
136
+ themeFontWeight="regular"
137
+ themeIntent="body"
80
138
  themeState="filled"
81
- />
82
- <View
83
- pointerEvents="none"
84
- style={
85
- [
86
- {
87
- "backgroundColor": "#ffffff",
88
- "flexDirection": "row",
89
- "left": 16,
90
- "paddingHorizontal": 4,
91
- "position": "absolute",
92
- "top": -4,
93
- "zIndex": 1,
94
- },
95
- {
96
- "backgroundColor": "#ffffff",
97
- },
98
- ]
99
- }
100
- testID="label-container"
101
139
  >
102
- <Text
103
- allowFontScaling={false}
104
- style={
105
- [
106
- {
107
- "color": "#001f23",
108
- "fontFamily": "BeVietnamPro-Regular",
109
- "fontSize": 12,
110
- "letterSpacing": 0.48,
111
- "lineHeight": 16,
112
- },
113
- [
114
- {
115
- "color": "#001f23",
116
- "lineHeight": 12,
117
- },
118
- {
119
- "backgroundColor": "#ffffff",
120
- },
121
- ],
122
- ]
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,
123
161
  }
124
- testID="input-label"
125
- themeFontWeight="regular"
126
- themeIntent="body"
127
- themeState="filled"
128
- >
129
- Start date
130
- </Text>
131
- </View>
132
- <View
162
+ }
163
+ allowFontScaling={false}
164
+ editable={true}
165
+ onBlur={[Function]}
166
+ onChangeText={[Function]}
167
+ onFocus={[Function]}
168
+ placeholder=" "
133
169
  style={
134
170
  [
135
171
  {
136
- "alignItems": "center",
137
172
  "alignSelf": "stretch",
138
- "flexDirection": "row",
139
173
  "flexGrow": 2,
140
- "flexShrink": 1,
174
+ "fontFamily": "BeVietnamPro-Regular",
175
+ "fontSize": 16,
176
+ "height": undefined,
177
+ "marginHorizontal": 8,
178
+ "maxHeight": 144,
179
+ "paddingVertical": 0,
180
+ "textAlignVertical": "center",
141
181
  },
142
- undefined,
143
- ]
144
- }
145
- >
146
- <TextInput
147
- accessibilityState={
148
- {
149
- "disabled": false,
150
- }
151
- }
152
- allowFontScaling={false}
153
- editable={true}
154
- onBlur={[Function]}
155
- onChangeText={[Function]}
156
- onFocus={[Function]}
157
- placeholder=" "
158
- style={
159
- [
160
- {
161
- "alignSelf": "stretch",
162
- "flexGrow": 2,
163
- "fontFamily": "BeVietnamPro-Regular",
164
- "fontSize": 16,
165
- "height": undefined,
166
- "marginHorizontal": 8,
167
- "maxHeight": 144,
168
- "paddingVertical": 0,
169
- "textAlignVertical": "center",
170
- },
171
- {
172
- "backgroundColor": "#ffffff",
173
- "color": "#001f23",
174
- },
175
- ]
176
- }
177
- testID="text-input"
178
- themeVariant="text"
179
- value="21/12/1995"
180
- />
181
- </View>
182
- <HeroIcon
183
- name="calendar-dates-outlined"
184
- style={
185
- [
186
182
  {
183
+ "backgroundColor": "#ffffff",
187
184
  "color": "#001f23",
188
- "fontSize": 24,
189
185
  },
190
- undefined,
191
186
  ]
192
187
  }
193
- testID="input-suffix"
194
- themeIntent="text"
195
- themeSize="medium"
188
+ testID="text-input"
189
+ themeVariant="text"
190
+ value="21/12/1995"
196
191
  />
197
192
  </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
+ >
198
221
  <View
199
222
  style={
200
223
  [
201
224
  {
202
- "minHeight": 16,
203
- "paddingLeft": 16,
204
- "paddingTop": 2,
225
+ "flexDirection": "row",
226
+ "justifyContent": "space-between",
205
227
  },
206
228
  undefined,
207
229
  ]
208
230
  }
209
- >
210
- <View
211
- style={
212
- [
213
- {
214
- "flexDirection": "row",
215
- "justifyContent": "space-between",
216
- },
217
- undefined,
218
- ]
219
- }
220
- />
221
- </View>
231
+ />
222
232
  </View>
223
233
  </View>
224
- </View>,
225
- <View
226
- collapsable={false}
227
- style={
228
- {
229
- "backgroundColor": "transparent",
230
- "bottom": 0,
231
- "left": 0,
232
- "opacity": 0.4,
233
- "position": "absolute",
234
- "right": 0,
235
- "top": 0,
236
- }
237
- }
238
- />,
239
- <View
240
- collapsable={false}
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"
241
243
  style={
242
244
  {
243
- "bottom": 0,
244
- "left": 0,
245
- "opacity": 1,
246
245
  "position": "absolute",
247
- "right": 0,
248
- "top": 0,
249
- "transform": [
250
- {
251
- "translateY": 0,
252
- },
253
- ],
254
246
  }
255
247
  }
248
+ transparent={true}
249
+ visible={true}
256
250
  >
257
251
  <View
258
- pointerEvents="box-none"
252
+ collapsable={false}
259
253
  style={
260
254
  [
261
255
  {
262
- "bottom": 0,
263
- "flexDirection": "column-reverse",
256
+ "flex": 1,
264
257
  "left": 0,
265
- "position": "absolute",
266
- "right": 0,
267
258
  "top": 0,
268
259
  },
269
- undefined,
260
+ {
261
+ "backgroundColor": "transparent",
262
+ },
270
263
  ]
271
264
  }
272
265
  >
273
266
  <View
274
- onLayout={[Function]}
267
+ pointerEvents="box-none"
275
268
  style={
276
- [
277
- [
278
- {
279
- "flex": 1,
280
- "flexDirection": "column-reverse",
281
- },
282
- undefined,
283
- ],
284
- {
285
- "paddingBottom": 0,
286
- },
287
- ]
269
+ {
270
+ "flex": 1,
271
+ }
288
272
  }
289
273
  >
290
274
  <View
291
- accessible={true}
292
- collapsable={false}
293
- focusable={true}
294
- onBlur={[Function]}
295
- onClick={[Function]}
296
- onFocus={[Function]}
297
- onResponderGrant={[Function]}
298
- onResponderMove={[Function]}
299
- onResponderRelease={[Function]}
300
- onResponderTerminate={[Function]}
301
- onResponderTerminationRequest={[Function]}
302
- onStartShouldSetResponder={[Function]}
275
+ collapsable={true}
276
+ pointerEvents="box-none"
303
277
  style={
304
278
  {
305
- "backgroundColor": "#000000",
306
- "bottom": 0,
307
- "left": 0,
308
- "opacity": 0.48,
309
- "position": "absolute",
310
- "right": 0,
311
- "top": 0,
312
- }
313
- }
314
- />
315
- <RCTSafeAreaView
316
- collapsable={false}
317
- emulateUnlessSupported={true}
318
- style={
319
- {
320
- "backgroundColor": "#ffffff",
321
- "borderTopLeftRadius": 16,
322
- "borderTopRightRadius": 16,
323
- "elevation": 10,
324
- "maxHeight": "94%",
325
- "shadowColor": "#001f23",
326
- "shadowOffset": {
327
- "height": 3,
328
- "width": 0,
329
- },
330
- "shadowOpacity": 0.4,
331
- "shadowRadius": 16,
332
- "transform": [
333
- {
334
- "scaleY": 1,
335
- },
336
- {
337
- "translateY": 0,
338
- },
339
- ],
340
- "width": "100%",
279
+ "flex": 1,
341
280
  }
342
281
  }
343
282
  >
344
283
  <View
284
+ pointerEvents="box-none"
345
285
  style={
346
286
  [
347
287
  {
348
- "flexDirection": "row",
349
- "paddingHorizontal": 16,
350
- "paddingVertical": 8,
288
+ "bottom": 0,
289
+ "flexDirection": "column-reverse",
290
+ "left": 0,
291
+ "position": "absolute",
292
+ "right": 0,
293
+ "top": 0,
351
294
  },
352
295
  undefined,
353
296
  ]
354
297
  }
355
298
  >
356
299
  <View
300
+ onLayout={[Function]}
357
301
  style={
358
302
  [
359
- {
360
- "flex": 1,
361
- "justifyContent": "center",
362
- },
363
- undefined,
364
- ]
365
- }
366
- >
367
- <Text
368
- allowFontScaling={false}
369
- style={
370
303
  [
371
304
  {
372
- "color": "#001f23",
373
- "fontFamily": "BeVietnamPro-SemiBold",
374
- "fontSize": 16,
375
- "letterSpacing": 0.24,
376
- "lineHeight": 24,
305
+ "flex": 1,
306
+ "flexDirection": "column-reverse",
377
307
  },
378
308
  undefined,
379
- ]
380
- }
381
- themeIntent="body"
382
- themeTypeface="neutral"
383
- themeVariant="regular-bold"
384
- >
385
- Start date
386
- </Text>
387
- </View>
388
- <View
389
- style={
390
- [
309
+ ],
391
310
  {
392
- "alignItems": "center",
393
- "height": 48,
394
- "justifyContent": "center",
395
- "marginLeft": 12,
396
- "width": 48,
311
+ "paddingBottom": 0,
397
312
  },
398
- undefined,
399
313
  ]
400
314
  }
401
315
  >
402
316
  <View
403
- accessible={true}
404
- collapsable={false}
405
- focusable={true}
406
- onClick={[Function]}
407
- onResponderGrant={[Function]}
408
- onResponderMove={[Function]}
409
- onResponderRelease={[Function]}
410
- onResponderTerminate={[Function]}
411
- onResponderTerminationRequest={[Function]}
412
- onStartShouldSetResponder={[Function]}
413
- style={
317
+ accessibilityState={
414
318
  {
415
- "opacity": 1,
319
+ "busy": undefined,
320
+ "checked": undefined,
321
+ "disabled": undefined,
322
+ "expanded": undefined,
323
+ "selected": undefined,
416
324
  }
417
325
  }
418
- testID="bottom-sheet-close-icon"
419
- >
420
- <HeroIcon
421
- name="cancel"
422
- style={
423
- [
424
- {
425
- "color": "#001f23",
426
- "fontSize": 16,
427
- },
428
- undefined,
429
- ]
430
- }
431
- themeIntent="text"
432
- themeSize="xsmall"
433
- />
434
- </View>
435
- </View>
436
- </View>
437
- <View
438
- style={
439
- [
440
- {
441
- "height": 176,
442
- },
443
- undefined,
444
- ]
445
- }
446
- >
447
- <Picker
448
- display="spinner"
449
- mode="date"
450
- onChange={[Function]}
451
- style={
452
- {
453
- "flex": 1,
454
- }
455
- }
456
- testID="datePickerIOS"
457
- textColor="#001f23"
458
- value={1995-12-21T00:00:00.000Z}
459
- />
460
- </View>
461
- <View>
462
- <View
463
- style={
464
- [
326
+ accessibilityValue={
465
327
  {
466
- "alignItems": "center",
467
- "flexDirection": "row",
468
- "justifyContent": "flex-end",
469
- "paddingHorizontal": 12,
470
- "paddingVertical": 2,
471
- },
472
- undefined,
473
- ]
474
- }
475
- >
476
- <View
477
- accessibilityState={
478
- {
479
- "disabled": false,
328
+ "max": undefined,
329
+ "min": undefined,
330
+ "now": undefined,
331
+ "text": undefined,
480
332
  }
481
333
  }
482
334
  accessible={true}
335
+ collapsable={false}
483
336
  focusable={true}
337
+ onBlur={[Function]}
484
338
  onClick={[Function]}
339
+ onFocus={[Function]}
485
340
  onResponderGrant={[Function]}
486
341
  onResponderMove={[Function]}
487
342
  onResponderRelease={[Function]}
@@ -489,58 +344,274 @@ exports[`DatePickerIOS renders correctly 1`] = `
489
344
  onResponderTerminationRequest={[Function]}
490
345
  onStartShouldSetResponder={[Function]}
491
346
  style={
492
- [
493
- {
494
- "alignItems": "center",
495
- "backgroundColor": "transparent",
496
- "borderRadius": 4,
497
- "borderWidth": 0,
498
- "flexDirection": "row",
499
- "justifyContent": "center",
500
- "padding": 12,
347
+ {
348
+ "backgroundColor": "#000000",
349
+ "bottom": 0,
350
+ "left": 0,
351
+ "opacity": 0.48,
352
+ "position": "absolute",
353
+ "right": 0,
354
+ "top": 0,
355
+ }
356
+ }
357
+ />
358
+ <RCTSafeAreaView
359
+ collapsable={false}
360
+ 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,
501
371
  },
502
- undefined,
503
- ]
372
+ "shadowOpacity": 0.4,
373
+ "shadowRadius": 16,
374
+ "transform": [
375
+ {
376
+ "scaleY": 1,
377
+ },
378
+ {
379
+ "translateY": 0,
380
+ },
381
+ ],
382
+ "width": "100%",
383
+ }
504
384
  }
505
385
  >
506
- <Text
507
- allowFontScaling={false}
508
- disabled={false}
509
- ellipsizeMode="tail"
510
- numberOfLines={1}
386
+ <View
511
387
  style={
512
388
  [
513
389
  {
514
- "color": "#001f23",
515
- "fontFamily": "BeVietnamPro-SemiBold",
516
- "fontSize": 16,
517
- "letterSpacing": 0.24,
518
- "lineHeight": 24,
390
+ "flexDirection": "row",
391
+ "paddingHorizontal": 16,
392
+ "paddingVertical": 8,
519
393
  },
394
+ undefined,
395
+ ]
396
+ }
397
+ >
398
+ <View
399
+ style={
520
400
  [
521
401
  {
522
- "color": "#401960",
523
- "flexShrink": 1,
524
- "lineHeight": 22,
525
- "textAlign": "center",
402
+ "flex": 1,
403
+ "justifyContent": "center",
526
404
  },
527
405
  undefined,
528
- ],
406
+ ]
407
+ }
408
+ >
409
+ <Text
410
+ allowFontScaling={false}
411
+ style={
412
+ [
413
+ {
414
+ "color": "#001f23",
415
+ "fontFamily": "BeVietnamPro-SemiBold",
416
+ "fontSize": 16,
417
+ "letterSpacing": 0.24,
418
+ "lineHeight": 24,
419
+ },
420
+ undefined,
421
+ ]
422
+ }
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
+ >
479
+ <HeroIcon
480
+ name="cancel"
481
+ style={
482
+ [
483
+ {
484
+ "color": "#001f23",
485
+ "fontSize": 16,
486
+ },
487
+ undefined,
488
+ ]
489
+ }
490
+ themeIntent="text"
491
+ themeSize="xsmall"
492
+ />
493
+ </View>
494
+ </View>
495
+ </View>
496
+ <View
497
+ style={
498
+ [
499
+ {
500
+ "height": 176,
501
+ },
502
+ undefined,
529
503
  ]
530
504
  }
531
- themeButtonVariant="text-primary"
532
- themeIntent="body"
533
- themeTypeface="neutral"
534
- themeVariant="regular-bold"
535
505
  >
536
- Confirm
537
- </Text>
538
- </View>
506
+ <Picker
507
+ display="spinner"
508
+ mode="date"
509
+ onChange={[Function]}
510
+ style={
511
+ {
512
+ "flex": 1,
513
+ }
514
+ }
515
+ testID="datePickerIOS"
516
+ textColor="#001f23"
517
+ value={1995-12-21T00:00:00.000Z}
518
+ />
519
+ </View>
520
+ <View>
521
+ <View
522
+ style={
523
+ [
524
+ {
525
+ "alignItems": "center",
526
+ "flexDirection": "row",
527
+ "justifyContent": "flex-end",
528
+ "paddingHorizontal": 12,
529
+ "paddingVertical": 2,
530
+ },
531
+ undefined,
532
+ ]
533
+ }
534
+ >
535
+ <View
536
+ accessibilityState={
537
+ {
538
+ "disabled": false,
539
+ }
540
+ }
541
+ accessibilityValue={
542
+ {
543
+ "max": undefined,
544
+ "min": undefined,
545
+ "now": undefined,
546
+ "text": undefined,
547
+ }
548
+ }
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]}
558
+ style={
559
+ [
560
+ {
561
+ "alignItems": "center",
562
+ "backgroundColor": "transparent",
563
+ "borderRadius": 4,
564
+ "borderWidth": 0,
565
+ "flexDirection": "row",
566
+ "height": 60,
567
+ "justifyContent": "center",
568
+ "padding": 12,
569
+ },
570
+ undefined,
571
+ ]
572
+ }
573
+ >
574
+ <Text
575
+ allowFontScaling={false}
576
+ disabled={false}
577
+ ellipsizeMode="tail"
578
+ numberOfLines={1}
579
+ style={
580
+ [
581
+ {
582
+ "color": "#001f23",
583
+ "fontFamily": "BeVietnamPro-SemiBold",
584
+ "fontSize": 16,
585
+ "letterSpacing": 0.24,
586
+ "lineHeight": 24,
587
+ },
588
+ [
589
+ {
590
+ "color": "#401960",
591
+ "flexShrink": 1,
592
+ "lineHeight": 22,
593
+ "textAlign": "center",
594
+ },
595
+ undefined,
596
+ ],
597
+ ]
598
+ }
599
+ themeButtonVariant="text-primary"
600
+ themeIntent="body"
601
+ themeTypeface="neutral"
602
+ themeVariant="regular-bold"
603
+ >
604
+ Confirm
605
+ </Text>
606
+ </View>
607
+ </View>
608
+ </View>
609
+ </RCTSafeAreaView>
539
610
  </View>
540
611
  </View>
541
- </RCTSafeAreaView>
612
+ </View>
542
613
  </View>
543
614
  </View>
544
- </View>,
545
- ]
615
+ </RCTModalHostView>
616
+ </View>
546
617
  `;