@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
@@ -3,144 +3,151 @@
3
3
  exports[`RichTextEditor onMessage recevied event editor-layout should update height 1`] = `
4
4
  <View
5
5
  style={
6
- [
7
- {
8
- "marginTop": 8,
9
- "width": "100%",
10
- },
11
- undefined,
12
- ]
6
+ {
7
+ "flex": 1,
8
+ }
13
9
  }
14
10
  >
15
11
  <View
16
12
  style={
17
13
  [
18
14
  {
19
- "alignItems": "center",
20
- "backgroundColor": "#ffffff",
21
- "borderRadius": 8,
22
- "flexDirection": "row",
23
- "padding": 16,
15
+ "marginTop": 8,
16
+ "width": "100%",
24
17
  },
25
18
  undefined,
26
19
  ]
27
20
  }
28
21
  >
29
- <View
30
- style={
31
- [
32
- {
33
- "borderColor": "#cb300a",
34
- "borderRadius": 8,
35
- "borderWidth": 1,
36
- "bottom": 0,
37
- "left": 0,
38
- "position": "absolute",
39
- "right": 0,
40
- "top": 0,
41
- },
42
- undefined,
43
- ]
44
- }
45
- themeFocused={false}
46
- themeState="error"
47
- />
48
22
  <View
49
23
  style={
50
24
  [
51
25
  {
52
26
  "alignItems": "center",
53
- "alignSelf": "stretch",
27
+ "backgroundColor": "#ffffff",
28
+ "borderRadius": 8,
54
29
  "flexDirection": "row",
55
- "flexGrow": 2,
56
- "flexShrink": 1,
30
+ "padding": 16,
57
31
  },
58
32
  undefined,
59
33
  ]
60
34
  }
61
35
  >
62
36
  <View
63
- pointerEvents="none"
64
37
  style={
65
38
  [
66
39
  {
67
- "alignItems": "center",
40
+ "borderColor": "#cb300a",
41
+ "borderRadius": 8,
42
+ "borderWidth": 1,
68
43
  "bottom": 0,
69
- "flexDirection": "row",
70
44
  "left": 0,
71
45
  "position": "absolute",
72
46
  "right": 0,
73
47
  "top": 0,
74
- "zIndex": 9999,
75
48
  },
76
49
  undefined,
77
50
  ]
78
51
  }
79
- themeVariant="text"
52
+ themeFocused={false}
53
+ themeState="error"
54
+ />
55
+ <View
56
+ style={
57
+ [
58
+ {
59
+ "alignItems": "center",
60
+ "alignSelf": "stretch",
61
+ "flexDirection": "row",
62
+ "flexGrow": 2,
63
+ "flexShrink": 1,
64
+ },
65
+ undefined,
66
+ ]
67
+ }
80
68
  >
81
- <Text
82
- allowFontScaling={false}
69
+ <View
70
+ pointerEvents="none"
83
71
  style={
84
72
  [
85
73
  {
86
- "color": "#001f23",
87
- "fontFamily": "BeVietnamPro-Regular",
88
- "fontSize": 16,
89
- "letterSpacing": 0.48,
90
- "lineHeight": 24,
74
+ "alignItems": "center",
75
+ "bottom": 0,
76
+ "flexDirection": "row",
77
+ "left": 0,
78
+ "position": "absolute",
79
+ "right": 0,
80
+ "top": 0,
81
+ "zIndex": 9999,
91
82
  },
83
+ undefined,
84
+ ]
85
+ }
86
+ themeVariant="text"
87
+ >
88
+ <Text
89
+ allowFontScaling={false}
90
+ style={
92
91
  [
93
92
  {
94
- "alignContent": "center",
95
- "alignItems": "center",
96
93
  "color": "#001f23",
97
- "marginTop": -2,
98
- "textAlignVertical": "center",
94
+ "fontFamily": "BeVietnamPro-Regular",
95
+ "fontSize": 16,
96
+ "letterSpacing": 0.48,
97
+ "lineHeight": 24,
99
98
  },
100
- undefined,
101
- ],
102
- ]
99
+ [
100
+ {
101
+ "alignContent": "center",
102
+ "alignItems": "center",
103
+ "color": "#001f23",
104
+ "marginTop": -2,
105
+ "textAlignVertical": "center",
106
+ },
107
+ undefined,
108
+ ],
109
+ ]
110
+ }
111
+ testID="input-label"
112
+ themeIntent="body"
113
+ themeState="error"
114
+ themeTypeface="neutral"
115
+ themeVariant="regular"
116
+ >
117
+ Rich Text Editor
118
+ </Text>
119
+ </View>
120
+ <WebView
121
+ accessibilityState={
122
+ {
123
+ "busy": undefined,
124
+ "checked": undefined,
125
+ "disabled": undefined,
126
+ "expanded": undefined,
127
+ "selected": undefined,
128
+ }
103
129
  }
104
- testID="input-label"
105
- themeIntent="body"
106
- themeState="error"
107
- themeTypeface="neutral"
108
- themeVariant="regular"
109
- >
110
- Rich Text Editor
111
- </Text>
112
- </View>
113
- <WebView
114
- accessibilityState={
115
- {
116
- "busy": undefined,
117
- "checked": undefined,
118
- "disabled": undefined,
119
- "expanded": undefined,
120
- "selected": undefined,
130
+ accessible={true}
131
+ focusable={true}
132
+ height={480}
133
+ hideKeyboardAccessoryView={true}
134
+ keyboardDisplayRequiresUserAction={false}
135
+ onClick={[Function]}
136
+ onResponderGrant={[Function]}
137
+ onResponderMove={[Function]}
138
+ onResponderRelease={[Function]}
139
+ onResponderTerminate={[Function]}
140
+ onResponderTerminationRequest={[Function]}
141
+ onStartShouldSetResponder={[Function]}
142
+ originWhitelist={
143
+ [
144
+ "*",
145
+ ]
121
146
  }
122
- }
123
- accessible={true}
124
- focusable={true}
125
- height={480}
126
- hideKeyboardAccessoryView={true}
127
- keyboardDisplayRequiresUserAction={false}
128
- onClick={[Function]}
129
- onResponderGrant={[Function]}
130
- onResponderMove={[Function]}
131
- onResponderRelease={[Function]}
132
- onResponderTerminate={[Function]}
133
- onResponderTerminationRequest={[Function]}
134
- onStartShouldSetResponder={[Function]}
135
- originWhitelist={
136
- [
137
- "*",
138
- ]
139
- }
140
- scrollEnabled={false}
141
- source={
142
- {
143
- "html": "
147
+ scrollEnabled={false}
148
+ source={
149
+ {
150
+ "html": "
144
151
  <!DOCTYPE html>
145
152
  <html>
146
153
  <head>
@@ -171,45 +178,34 @@ exports[`RichTextEditor onMessage recevied event editor-layout should update hei
171
178
  </body>
172
179
  </html>
173
180
  ",
181
+ }
174
182
  }
175
- }
176
- style={
177
- [
178
- {
179
- "backgroundColor": "transparent",
180
- "fontSize": 16,
181
- "height": 480,
182
- "marginHorizontal": 8,
183
- "minHeight": 24,
184
- "textAlignVertical": "center",
185
- },
186
- {
187
- "backgroundColor": "yellow",
188
- },
189
- ]
190
- }
191
- testID="webview"
192
- />
183
+ style={
184
+ [
185
+ {
186
+ "backgroundColor": "transparent",
187
+ "fontSize": 16,
188
+ "height": 480,
189
+ "marginHorizontal": 8,
190
+ "minHeight": 24,
191
+ "textAlignVertical": "center",
192
+ },
193
+ {
194
+ "backgroundColor": "yellow",
195
+ },
196
+ ]
197
+ }
198
+ testID="webview"
199
+ />
200
+ </View>
193
201
  </View>
194
- </View>
195
- <View
196
- style={
197
- [
198
- {
199
- "minHeight": 16,
200
- "paddingLeft": 16,
201
- "paddingTop": 2,
202
- },
203
- undefined,
204
- ]
205
- }
206
- >
207
202
  <View
208
203
  style={
209
204
  [
210
205
  {
211
- "flexDirection": "row",
212
- "justifyContent": "space-between",
206
+ "minHeight": 16,
207
+ "paddingLeft": 16,
208
+ "paddingTop": 2,
213
209
  },
214
210
  undefined,
215
211
  ]
@@ -219,203 +215,242 @@ exports[`RichTextEditor onMessage recevied event editor-layout should update hei
219
215
  style={
220
216
  [
221
217
  {
222
- "alignItems": "center",
223
- "flex": 1,
224
218
  "flexDirection": "row",
225
- "flexGrow": 4,
226
- "marginRight": 4,
219
+ "justifyContent": "space-between",
227
220
  },
228
221
  undefined,
229
222
  ]
230
223
  }
231
224
  >
232
- <HeroIcon
233
- name="circle-info"
225
+ <View
234
226
  style={
235
227
  [
236
228
  {
237
- "color": "#cb300a",
238
- "fontSize": 16,
229
+ "alignItems": "center",
230
+ "flex": 1,
231
+ "flexDirection": "row",
232
+ "flexGrow": 4,
233
+ "marginRight": 4,
239
234
  },
240
235
  undefined,
241
236
  ]
242
237
  }
243
- testID="input-error-icon"
244
- themeIntent="danger"
245
- themeSize="xsmall"
246
- />
247
- <Text
248
- allowFontScaling={false}
249
- style={
250
- [
251
- {
252
- "color": "#001f23",
253
- "fontFamily": "BeVietnamPro-Regular",
254
- "fontSize": 12,
255
- "letterSpacing": 0.48,
256
- "lineHeight": 16,
257
- },
238
+ >
239
+ <HeroIcon
240
+ name="circle-info"
241
+ style={
258
242
  [
259
243
  {
260
244
  "color": "#cb300a",
261
- "marginLeft": 4,
245
+ "fontSize": 16,
262
246
  },
263
247
  undefined,
264
- ],
265
- ]
266
- }
267
- testID="input-error-message"
268
- themeFontWeight="regular"
269
- themeIntent="body"
270
- >
271
- this is error
272
- </Text>
248
+ ]
249
+ }
250
+ testID="input-error-icon"
251
+ themeIntent="danger"
252
+ themeSize="xsmall"
253
+ />
254
+ <Text
255
+ allowFontScaling={false}
256
+ style={
257
+ [
258
+ {
259
+ "color": "#001f23",
260
+ "fontFamily": "BeVietnamPro-Regular",
261
+ "fontSize": 12,
262
+ "letterSpacing": 0.48,
263
+ "lineHeight": 16,
264
+ },
265
+ [
266
+ {
267
+ "color": "#cb300a",
268
+ "marginLeft": 4,
269
+ },
270
+ undefined,
271
+ ],
272
+ ]
273
+ }
274
+ testID="input-error-message"
275
+ themeFontWeight="regular"
276
+ themeIntent="body"
277
+ >
278
+ this is error
279
+ </Text>
280
+ </View>
273
281
  </View>
274
282
  </View>
275
283
  </View>
284
+ <View
285
+ pointerEvents="box-none"
286
+ position="bottom"
287
+ style={
288
+ [
289
+ {
290
+ "bottom": 0,
291
+ "elevation": 9999,
292
+ "flexDirection": "column-reverse",
293
+ "left": 0,
294
+ "paddingHorizontal": 24,
295
+ "paddingVertical": 16,
296
+ "position": "absolute",
297
+ "right": 0,
298
+ "top": 0,
299
+ },
300
+ undefined,
301
+ ]
302
+ }
303
+ />
276
304
  </View>
277
305
  `;
278
306
 
279
307
  exports[`RichTextEditor should render correctly 1`] = `
280
308
  <View
281
309
  style={
282
- [
283
- {
284
- "marginTop": 8,
285
- "width": "100%",
286
- },
287
- undefined,
288
- ]
310
+ {
311
+ "flex": 1,
312
+ }
289
313
  }
290
314
  >
291
315
  <View
292
316
  style={
293
317
  [
294
318
  {
295
- "alignItems": "center",
296
- "backgroundColor": "#ffffff",
297
- "borderRadius": 8,
298
- "flexDirection": "row",
299
- "padding": 16,
319
+ "marginTop": 8,
320
+ "width": "100%",
300
321
  },
301
322
  undefined,
302
323
  ]
303
324
  }
304
325
  >
305
- <View
306
- style={
307
- [
308
- {
309
- "borderColor": "#cb300a",
310
- "borderRadius": 8,
311
- "borderWidth": 1,
312
- "bottom": 0,
313
- "left": 0,
314
- "position": "absolute",
315
- "right": 0,
316
- "top": 0,
317
- },
318
- undefined,
319
- ]
320
- }
321
- themeFocused={false}
322
- themeState="error"
323
- />
324
326
  <View
325
327
  style={
326
328
  [
327
329
  {
328
330
  "alignItems": "center",
329
- "alignSelf": "stretch",
331
+ "backgroundColor": "#ffffff",
332
+ "borderRadius": 8,
330
333
  "flexDirection": "row",
331
- "flexGrow": 2,
332
- "flexShrink": 1,
334
+ "padding": 16,
333
335
  },
334
336
  undefined,
335
337
  ]
336
338
  }
337
339
  >
338
340
  <View
339
- pointerEvents="none"
340
341
  style={
341
342
  [
342
343
  {
343
- "alignItems": "center",
344
+ "borderColor": "#cb300a",
345
+ "borderRadius": 8,
346
+ "borderWidth": 1,
344
347
  "bottom": 0,
345
- "flexDirection": "row",
346
348
  "left": 0,
347
349
  "position": "absolute",
348
350
  "right": 0,
349
351
  "top": 0,
350
- "zIndex": 9999,
351
352
  },
352
353
  undefined,
353
354
  ]
354
355
  }
355
- themeVariant="text"
356
+ themeFocused={false}
357
+ themeState="error"
358
+ />
359
+ <View
360
+ style={
361
+ [
362
+ {
363
+ "alignItems": "center",
364
+ "alignSelf": "stretch",
365
+ "flexDirection": "row",
366
+ "flexGrow": 2,
367
+ "flexShrink": 1,
368
+ },
369
+ undefined,
370
+ ]
371
+ }
356
372
  >
357
- <Text
358
- allowFontScaling={false}
373
+ <View
374
+ pointerEvents="none"
359
375
  style={
360
376
  [
361
377
  {
362
- "color": "#001f23",
363
- "fontFamily": "BeVietnamPro-Regular",
364
- "fontSize": 16,
365
- "letterSpacing": 0.48,
366
- "lineHeight": 24,
378
+ "alignItems": "center",
379
+ "bottom": 0,
380
+ "flexDirection": "row",
381
+ "left": 0,
382
+ "position": "absolute",
383
+ "right": 0,
384
+ "top": 0,
385
+ "zIndex": 9999,
367
386
  },
387
+ undefined,
388
+ ]
389
+ }
390
+ themeVariant="text"
391
+ >
392
+ <Text
393
+ allowFontScaling={false}
394
+ style={
368
395
  [
369
396
  {
370
- "alignContent": "center",
371
- "alignItems": "center",
372
397
  "color": "#001f23",
373
- "marginTop": -2,
374
- "textAlignVertical": "center",
398
+ "fontFamily": "BeVietnamPro-Regular",
399
+ "fontSize": 16,
400
+ "letterSpacing": 0.48,
401
+ "lineHeight": 24,
375
402
  },
376
- undefined,
377
- ],
378
- ]
403
+ [
404
+ {
405
+ "alignContent": "center",
406
+ "alignItems": "center",
407
+ "color": "#001f23",
408
+ "marginTop": -2,
409
+ "textAlignVertical": "center",
410
+ },
411
+ undefined,
412
+ ],
413
+ ]
414
+ }
415
+ testID="input-label"
416
+ themeIntent="body"
417
+ themeState="error"
418
+ themeTypeface="neutral"
419
+ themeVariant="regular"
420
+ >
421
+ Rich Text Editor
422
+ </Text>
423
+ </View>
424
+ <WebView
425
+ accessibilityState={
426
+ {
427
+ "busy": undefined,
428
+ "checked": undefined,
429
+ "disabled": undefined,
430
+ "expanded": undefined,
431
+ "selected": undefined,
432
+ }
379
433
  }
380
- testID="input-label"
381
- themeIntent="body"
382
- themeState="error"
383
- themeTypeface="neutral"
384
- themeVariant="regular"
385
- >
386
- Rich Text Editor
387
- </Text>
388
- </View>
389
- <WebView
390
- accessibilityState={
391
- {
392
- "busy": undefined,
393
- "checked": undefined,
394
- "disabled": undefined,
395
- "expanded": undefined,
396
- "selected": undefined,
434
+ accessible={true}
435
+ focusable={true}
436
+ hideKeyboardAccessoryView={true}
437
+ keyboardDisplayRequiresUserAction={false}
438
+ onClick={[Function]}
439
+ onResponderGrant={[Function]}
440
+ onResponderMove={[Function]}
441
+ onResponderRelease={[Function]}
442
+ onResponderTerminate={[Function]}
443
+ onResponderTerminationRequest={[Function]}
444
+ onStartShouldSetResponder={[Function]}
445
+ originWhitelist={
446
+ [
447
+ "*",
448
+ ]
397
449
  }
398
- }
399
- accessible={true}
400
- focusable={true}
401
- hideKeyboardAccessoryView={true}
402
- keyboardDisplayRequiresUserAction={false}
403
- onClick={[Function]}
404
- onResponderGrant={[Function]}
405
- onResponderMove={[Function]}
406
- onResponderRelease={[Function]}
407
- onResponderTerminate={[Function]}
408
- onResponderTerminationRequest={[Function]}
409
- onStartShouldSetResponder={[Function]}
410
- originWhitelist={
411
- [
412
- "*",
413
- ]
414
- }
415
- scrollEnabled={false}
416
- source={
417
- {
418
- "html": "
450
+ scrollEnabled={false}
451
+ source={
452
+ {
453
+ "html": "
419
454
  <!DOCTYPE html>
420
455
  <html>
421
456
  <head>
@@ -446,45 +481,34 @@ exports[`RichTextEditor should render correctly 1`] = `
446
481
  </body>
447
482
  </html>
448
483
  ",
484
+ }
449
485
  }
450
- }
451
- style={
452
- [
453
- {
454
- "backgroundColor": "transparent",
455
- "fontSize": 16,
456
- "height": undefined,
457
- "marginHorizontal": 8,
458
- "minHeight": 24,
459
- "textAlignVertical": "center",
460
- },
461
- {
462
- "backgroundColor": "yellow",
463
- },
464
- ]
465
- }
466
- testID="webview"
467
- />
486
+ style={
487
+ [
488
+ {
489
+ "backgroundColor": "transparent",
490
+ "fontSize": 16,
491
+ "height": undefined,
492
+ "marginHorizontal": 8,
493
+ "minHeight": 24,
494
+ "textAlignVertical": "center",
495
+ },
496
+ {
497
+ "backgroundColor": "yellow",
498
+ },
499
+ ]
500
+ }
501
+ testID="webview"
502
+ />
503
+ </View>
468
504
  </View>
469
- </View>
470
- <View
471
- style={
472
- [
473
- {
474
- "minHeight": 16,
475
- "paddingLeft": 16,
476
- "paddingTop": 2,
477
- },
478
- undefined,
479
- ]
480
- }
481
- >
482
505
  <View
483
506
  style={
484
507
  [
485
508
  {
486
- "flexDirection": "row",
487
- "justifyContent": "space-between",
509
+ "minHeight": 16,
510
+ "paddingLeft": 16,
511
+ "paddingTop": 2,
488
512
  },
489
513
  undefined,
490
514
  ]
@@ -494,59 +518,91 @@ exports[`RichTextEditor should render correctly 1`] = `
494
518
  style={
495
519
  [
496
520
  {
497
- "alignItems": "center",
498
- "flex": 1,
499
521
  "flexDirection": "row",
500
- "flexGrow": 4,
501
- "marginRight": 4,
522
+ "justifyContent": "space-between",
502
523
  },
503
524
  undefined,
504
525
  ]
505
526
  }
506
527
  >
507
- <HeroIcon
508
- name="circle-info"
528
+ <View
509
529
  style={
510
530
  [
511
531
  {
512
- "color": "#cb300a",
513
- "fontSize": 16,
532
+ "alignItems": "center",
533
+ "flex": 1,
534
+ "flexDirection": "row",
535
+ "flexGrow": 4,
536
+ "marginRight": 4,
514
537
  },
515
538
  undefined,
516
539
  ]
517
540
  }
518
- testID="input-error-icon"
519
- themeIntent="danger"
520
- themeSize="xsmall"
521
- />
522
- <Text
523
- allowFontScaling={false}
524
- style={
525
- [
526
- {
527
- "color": "#001f23",
528
- "fontFamily": "BeVietnamPro-Regular",
529
- "fontSize": 12,
530
- "letterSpacing": 0.48,
531
- "lineHeight": 16,
532
- },
541
+ >
542
+ <HeroIcon
543
+ name="circle-info"
544
+ style={
533
545
  [
534
546
  {
535
547
  "color": "#cb300a",
536
- "marginLeft": 4,
548
+ "fontSize": 16,
537
549
  },
538
550
  undefined,
539
- ],
540
- ]
541
- }
542
- testID="input-error-message"
543
- themeFontWeight="regular"
544
- themeIntent="body"
545
- >
546
- this is error
547
- </Text>
551
+ ]
552
+ }
553
+ testID="input-error-icon"
554
+ themeIntent="danger"
555
+ themeSize="xsmall"
556
+ />
557
+ <Text
558
+ allowFontScaling={false}
559
+ style={
560
+ [
561
+ {
562
+ "color": "#001f23",
563
+ "fontFamily": "BeVietnamPro-Regular",
564
+ "fontSize": 12,
565
+ "letterSpacing": 0.48,
566
+ "lineHeight": 16,
567
+ },
568
+ [
569
+ {
570
+ "color": "#cb300a",
571
+ "marginLeft": 4,
572
+ },
573
+ undefined,
574
+ ],
575
+ ]
576
+ }
577
+ testID="input-error-message"
578
+ themeFontWeight="regular"
579
+ themeIntent="body"
580
+ >
581
+ this is error
582
+ </Text>
583
+ </View>
548
584
  </View>
549
585
  </View>
550
586
  </View>
587
+ <View
588
+ pointerEvents="box-none"
589
+ position="bottom"
590
+ style={
591
+ [
592
+ {
593
+ "bottom": 0,
594
+ "elevation": 9999,
595
+ "flexDirection": "column-reverse",
596
+ "left": 0,
597
+ "paddingHorizontal": 24,
598
+ "paddingVertical": 16,
599
+ "position": "absolute",
600
+ "right": 0,
601
+ "top": 0,
602
+ },
603
+ undefined,
604
+ ]
605
+ }
606
+ />
551
607
  </View>
552
608
  `;