@hero-design/rn 8.1.0 → 8.2.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 (80) hide show
  1. package/.turbo/turbo-build.log +9 -9
  2. package/es/index.js +4179 -4058
  3. package/jest.config.js +1 -1
  4. package/lib/index.js +4179 -4058
  5. package/package.json +11 -12
  6. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +0 -8
  7. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +0 -12
  8. package/src/components/Alert/StyledAlert.tsx +4 -2
  9. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +120 -5
  10. package/src/components/Alert/__tests__/index.spec.tsx +14 -0
  11. package/src/components/Alert/index.tsx +13 -3
  12. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  13. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +5 -1
  14. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +45 -9
  15. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +0 -1
  16. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +16 -2
  17. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +0 -6
  18. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +0 -2
  19. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +1 -278
  20. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +0 -70
  21. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  22. package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +0 -1
  23. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +5 -10
  24. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +0 -5
  25. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +0 -3
  26. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +30 -6
  27. package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +0 -1
  28. package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  29. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +20 -4
  30. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +7 -0
  31. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +14 -4
  32. package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  33. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +0 -6
  34. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +0 -14
  35. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +0 -2
  36. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  37. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  38. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +10 -2
  39. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +30 -7
  40. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +0 -4
  41. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +0 -4
  42. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
  43. package/src/components/PinInput/index.tsx +1 -0
  44. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +0 -11
  45. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +10 -2
  46. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +15 -3
  47. package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +0 -7
  48. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +2 -0
  49. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +5 -1
  50. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +60 -19
  51. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +539 -3057
  52. package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +7 -2
  53. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +5 -1
  54. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +60 -19
  55. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +491 -2745
  56. package/src/components/Select/SingleSelect/__tests__/index.spec.tsx +1 -1
  57. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +0 -7
  58. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +0 -28
  59. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +0 -7
  60. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +0 -3
  61. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +0 -3
  62. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  63. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +0 -1
  64. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  65. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +0 -11
  66. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +0 -2
  67. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
  68. package/src/components/TextInput/StyledTextInput.tsx +2 -0
  69. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +6 -0
  70. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +19 -1
  71. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +13 -1
  72. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +20 -5
  73. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +0 -13
  74. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +30 -6
  75. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +30 -6
  76. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +4 -0
  77. package/src/theme/components/textInput.ts +6 -1
  78. package/types/components/Alert/StyledAlert.d.ts +1 -0
  79. package/types/components/Alert/index.d.ts +5 -1
  80. package/types/theme/components/textInput.d.ts +4 -0
@@ -2,7 +2,13 @@
2
2
 
3
3
  exports[`Avatar fallbacks to title when there image failed to load 1`] = `
4
4
  <View
5
+ accessibilityState={
6
+ Object {
7
+ "disabled": true,
8
+ }
9
+ }
5
10
  accessible={true}
11
+ collapsable={false}
6
12
  focusable={false}
7
13
  onClick={[Function]}
8
14
  onResponderGrant={[Function]}
@@ -79,10 +85,14 @@ exports[`Avatar fallbacks to title when there image failed to load 1`] = `
79
85
 
80
86
  exports[`Avatar prioritizes source over title 1`] = `
81
87
  <View
88
+ accessibilityState={
89
+ Object {
90
+ "disabled": true,
91
+ }
92
+ }
82
93
  accessible={true}
83
94
  collapsable={false}
84
95
  focusable={false}
85
- nativeID="animatedComponent"
86
96
  onClick={[Function]}
87
97
  onResponderGrant={[Function]}
88
98
  onResponderMove={[Function]}
@@ -128,10 +138,14 @@ exports[`Avatar prioritizes source over title 1`] = `
128
138
 
129
139
  exports[`Avatar shows title when there is no source 1`] = `
130
140
  <View
141
+ accessibilityState={
142
+ Object {
143
+ "disabled": true,
144
+ }
145
+ }
131
146
  accessible={true}
132
147
  collapsable={false}
133
148
  focusable={false}
134
- nativeID="animatedComponent"
135
149
  onClick={[Function]}
136
150
  onResponderGrant={[Function]}
137
151
  onResponderMove={[Function]}
@@ -3,7 +3,6 @@
3
3
  exports[`Badge has danger style when intent is danger 1`] = `
4
4
  <View
5
5
  collapsable={false}
6
- nativeID="animatedComponent"
7
6
  style={
8
7
  Object {
9
8
  "alignItems": "center",
@@ -47,7 +46,6 @@ exports[`Badge has danger style when intent is danger 1`] = `
47
46
  exports[`Badge has info style when intent is info 1`] = `
48
47
  <View
49
48
  collapsable={false}
50
- nativeID="animatedComponent"
51
49
  style={
52
50
  Object {
53
51
  "alignItems": "center",
@@ -91,7 +89,6 @@ exports[`Badge has info style when intent is info 1`] = `
91
89
  exports[`Badge has info style when intent is primary 1`] = `
92
90
  <View
93
91
  collapsable={false}
94
- nativeID="animatedComponent"
95
92
  style={
96
93
  Object {
97
94
  "alignItems": "center",
@@ -135,7 +132,6 @@ exports[`Badge has info style when intent is primary 1`] = `
135
132
  exports[`Badge has success style when intent is success 1`] = `
136
133
  <View
137
134
  collapsable={false}
138
- nativeID="animatedComponent"
139
135
  style={
140
136
  Object {
141
137
  "alignItems": "center",
@@ -179,7 +175,6 @@ exports[`Badge has success style when intent is success 1`] = `
179
175
  exports[`Badge has warning style when intent is warning 1`] = `
180
176
  <View
181
177
  collapsable={false}
182
- nativeID="animatedComponent"
183
178
  style={
184
179
  Object {
185
180
  "alignItems": "center",
@@ -223,7 +218,6 @@ exports[`Badge has warning style when intent is warning 1`] = `
223
218
  exports[`Badge renders correctly with custom props 1`] = `
224
219
  <View
225
220
  collapsable={false}
226
- nativeID="animatedComponent"
227
221
  style={
228
222
  Object {
229
223
  "alignItems": "center",
@@ -19,7 +19,6 @@ exports[`Status Badge renders correctly 1`] = `
19
19
  />
20
20
  <View
21
21
  collapsable={false}
22
- nativeID="animatedComponent"
23
22
  style={
24
23
  Object {
25
24
  "backgroundColor": "#de350b",
@@ -66,7 +65,6 @@ exports[`Status Badge renders correctly with intent 1`] = `
66
65
  </Text>
67
66
  <View
68
67
  collapsable={false}
69
- nativeID="animatedComponent"
70
68
  style={
71
69
  Object {
72
70
  "backgroundColor": "#017d6d",
@@ -6,280 +6,7 @@ exports[`BottomSheet renders correctly with close state 1`] = `
6
6
  onRequestClose={[MockFunction]}
7
7
  transparent={true}
8
8
  visible={false}
9
- >
10
- <View
11
- pointerEvents="box-none"
12
- style={
13
- Array [
14
- Object {
15
- "bottom": 0,
16
- "flexDirection": "column-reverse",
17
- "left": 0,
18
- "position": "absolute",
19
- "right": 0,
20
- "top": 0,
21
- },
22
- undefined,
23
- ]
24
- }
25
- >
26
- <View
27
- onLayout={[Function]}
28
- style={
29
- Array [
30
- Array [
31
- Object {
32
- "flex": 1,
33
- "flexDirection": "column-reverse",
34
- },
35
- undefined,
36
- ],
37
- Object {
38
- "paddingBottom": 0,
39
- },
40
- ]
41
- }
42
- >
43
- <View
44
- accessible={true}
45
- collapsable={false}
46
- focusable={true}
47
- nativeID="animatedComponent"
48
- onBlur={[Function]}
49
- onClick={[Function]}
50
- onFocus={[Function]}
51
- onResponderGrant={[Function]}
52
- onResponderMove={[Function]}
53
- onResponderRelease={[Function]}
54
- onResponderTerminate={[Function]}
55
- onResponderTerminationRequest={[Function]}
56
- onStartShouldSetResponder={[Function]}
57
- style={
58
- Object {
59
- "backgroundColor": "#000000",
60
- "bottom": 0,
61
- "left": 0,
62
- "opacity": 0.48,
63
- "position": "absolute",
64
- "right": 0,
65
- "top": 0,
66
- }
67
- }
68
- />
69
- <RCTSafeAreaView
70
- collapsable={false}
71
- emulateUnlessSupported={true}
72
- nativeID="animatedComponent"
73
- style={
74
- Object {
75
- "backgroundColor": "#ffffff",
76
- "borderTopLeftRadius": 16,
77
- "borderTopRightRadius": 16,
78
- "elevation": 10,
79
- "maxHeight": "94%",
80
- "shadowColor": "#001f23",
81
- "shadowOffset": Object {
82
- "height": 3,
83
- "width": 0,
84
- },
85
- "shadowOpacity": 0.4,
86
- "shadowRadius": 16,
87
- "transform": Array [
88
- Object {
89
- "scaleY": 1,
90
- },
91
- Object {
92
- "translateY": 0,
93
- },
94
- ],
95
- "width": "100%",
96
- }
97
- }
98
- >
99
- <View
100
- style={
101
- Array [
102
- Object {
103
- "flexDirection": "row",
104
- "paddingHorizontal": 16,
105
- "paddingVertical": 8,
106
- },
107
- undefined,
108
- ]
109
- }
110
- >
111
- <View
112
- style={
113
- Array [
114
- Object {
115
- "flex": 1,
116
- "justifyContent": "center",
117
- },
118
- undefined,
119
- ]
120
- }
121
- >
122
- <Text
123
- style={
124
- Array [
125
- Object {
126
- "color": "#001f23",
127
- "fontFamily": "BeVietnamPro-SemiBold",
128
- "fontSize": 16,
129
- "letterSpacing": 0.48,
130
- "lineHeight": 24,
131
- },
132
- undefined,
133
- ]
134
- }
135
- themeFontSize="large"
136
- themeFontWeight="semi-bold"
137
- themeIntent="body"
138
- themeTypeface="neutral"
139
- >
140
- Title
141
- </Text>
142
- </View>
143
- <View
144
- style={
145
- Array [
146
- Object {
147
- "alignItems": "center",
148
- "height": 48,
149
- "justifyContent": "center",
150
- "marginLeft": 12,
151
- "width": 48,
152
- },
153
- undefined,
154
- ]
155
- }
156
- >
157
- <View
158
- accessible={true}
159
- collapsable={false}
160
- focusable={true}
161
- nativeID="animatedComponent"
162
- onClick={[Function]}
163
- onResponderGrant={[Function]}
164
- onResponderMove={[Function]}
165
- onResponderRelease={[Function]}
166
- onResponderTerminate={[Function]}
167
- onResponderTerminationRequest={[Function]}
168
- onStartShouldSetResponder={[Function]}
169
- style={
170
- Object {
171
- "opacity": 1,
172
- }
173
- }
174
- testID="bottom-sheet-close-icon"
175
- >
176
- <HeroIcon
177
- name="cancel"
178
- style={
179
- Array [
180
- Object {
181
- "color": "#001f23",
182
- "fontSize": 16,
183
- },
184
- undefined,
185
- ]
186
- }
187
- themeIntent="text"
188
- themeSize="xsmall"
189
- />
190
- </View>
191
- </View>
192
- </View>
193
- <View
194
- style={
195
- Array [
196
- Object {
197
- "borderBottomColor": "#e8e9ea",
198
- "borderBottomWidth": 1,
199
- "maxWidth": "100%",
200
- },
201
- undefined,
202
- ]
203
- }
204
- />
205
- <Text>
206
- Content
207
- </Text>
208
- <View>
209
- <View
210
- style={
211
- Array [
212
- Object {
213
- "borderBottomColor": "#e8e9ea",
214
- "borderBottomWidth": 1,
215
- "maxWidth": "100%",
216
- },
217
- undefined,
218
- ]
219
- }
220
- />
221
- <View
222
- style={
223
- Array [
224
- Object {
225
- "alignItems": "center",
226
- "flexDirection": "row",
227
- "justifyContent": "flex-end",
228
- "paddingHorizontal": 12,
229
- "paddingVertical": 2,
230
- },
231
- undefined,
232
- ]
233
- }
234
- >
235
- <View
236
- accessibilityRole="button"
237
- accessible={true}
238
- collapsable={false}
239
- focusable={false}
240
- nativeID="animatedComponent"
241
- onClick={[Function]}
242
- onResponderGrant={[Function]}
243
- onResponderMove={[Function]}
244
- onResponderRelease={[Function]}
245
- onResponderTerminate={[Function]}
246
- onResponderTerminationRequest={[Function]}
247
- onStartShouldSetResponder={[Function]}
248
- style={
249
- Object {
250
- "opacity": 1,
251
- }
252
- }
253
- >
254
- <View
255
- style={
256
- Array [
257
- Object {},
258
- ]
259
- }
260
- >
261
- <Text
262
- style={
263
- Array [
264
- Object {
265
- "color": "#007AFF",
266
- "fontSize": 18,
267
- "margin": 8,
268
- "textAlign": "center",
269
- },
270
- ]
271
- }
272
- >
273
- Footer CTA
274
- </Text>
275
- </View>
276
- </View>
277
- </View>
278
- </View>
279
- </RCTSafeAreaView>
280
- </View>
281
- </View>
282
- </Modal>
9
+ />
283
10
  `;
284
11
 
285
12
  exports[`BottomSheet renders correctly with open state 1`] = `
@@ -326,7 +53,6 @@ exports[`BottomSheet renders correctly with open state 1`] = `
326
53
  accessible={true}
327
54
  collapsable={false}
328
55
  focusable={true}
329
- nativeID="animatedComponent"
330
56
  onBlur={[Function]}
331
57
  onClick={[Function]}
332
58
  onFocus={[Function]}
@@ -351,7 +77,6 @@ exports[`BottomSheet renders correctly with open state 1`] = `
351
77
  <RCTSafeAreaView
352
78
  collapsable={false}
353
79
  emulateUnlessSupported={true}
354
- nativeID="animatedComponent"
355
80
  style={
356
81
  Object {
357
82
  "backgroundColor": "#ffffff",
@@ -440,7 +165,6 @@ exports[`BottomSheet renders correctly with open state 1`] = `
440
165
  accessible={true}
441
166
  collapsable={false}
442
167
  focusable={true}
443
- nativeID="animatedComponent"
444
168
  onClick={[Function]}
445
169
  onResponderGrant={[Function]}
446
170
  onResponderMove={[Function]}
@@ -519,7 +243,6 @@ exports[`BottomSheet renders correctly with open state 1`] = `
519
243
  accessible={true}
520
244
  collapsable={false}
521
245
  focusable={false}
522
- nativeID="animatedComponent"
523
246
  onClick={[Function]}
524
247
  onResponderGrant={[Function]}
525
248
  onResponderMove={[Function]}