@hero-design/rn 8.0.2 → 8.2.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 (79) hide show
  1. package/.turbo/turbo-build.log +9 -9
  2. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  3. package/es/index.js +55 -48
  4. package/jest.config.js +1 -1
  5. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  6. package/lib/index.js +55 -48
  7. package/package.json +10 -11
  8. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +0 -8
  9. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +0 -12
  10. package/src/components/Alert/StyledAlert.tsx +4 -2
  11. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +120 -5
  12. package/src/components/Alert/__tests__/index.spec.tsx +14 -0
  13. package/src/components/Alert/index.tsx +13 -3
  14. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  15. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +5 -1
  16. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +45 -9
  17. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +0 -1
  18. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +16 -2
  19. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +0 -6
  20. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +0 -2
  21. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +1 -278
  22. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +0 -70
  23. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  24. package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +0 -1
  25. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +5 -10
  26. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +0 -5
  27. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +0 -3
  28. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +30 -6
  29. package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +0 -1
  30. package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  31. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +20 -4
  32. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +6 -0
  33. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +13 -4
  34. package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  35. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +0 -6
  36. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +0 -14
  37. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +0 -2
  38. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  39. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  40. package/src/components/Icon/IconList.ts +2 -0
  41. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  42. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +10 -2
  43. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +30 -7
  44. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +0 -4
  45. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +0 -4
  46. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +0 -11
  47. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +10 -2
  48. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +15 -3
  49. package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +0 -7
  50. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +5 -1
  51. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +60 -19
  52. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +533 -3057
  53. package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +7 -2
  54. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +5 -1
  55. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +60 -19
  56. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +485 -2745
  57. package/src/components/Select/SingleSelect/__tests__/index.spec.tsx +1 -1
  58. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +0 -7
  59. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +0 -28
  60. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +0 -7
  61. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +0 -3
  62. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +0 -3
  63. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  64. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +0 -1
  65. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  66. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +0 -11
  67. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +0 -2
  68. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
  69. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  70. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +11 -1
  71. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +18 -5
  72. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +0 -13
  73. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +30 -6
  74. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +30 -6
  75. package/types/components/Alert/StyledAlert.d.ts +1 -0
  76. package/types/components/Alert/index.d.ts +5 -1
  77. package/types/components/Icon/IconList.d.ts +1 -1
  78. package/types/components/Icon/index.d.ts +1 -1
  79. package/types/components/Icon/utils.d.ts +1 -1
@@ -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]}