@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,29 +3,57 @@
3
3
  exports[`DataCard renders correctly when intent is archived 1`] = `
4
4
  <View
5
5
  style={
6
- [
7
- {
8
- "borderRadius": 12,
9
- "flexDirection": "row",
10
- "overflow": "hidden",
11
- },
12
- undefined,
13
- ]
6
+ {
7
+ "flex": 1,
8
+ }
14
9
  }
15
10
  >
16
11
  <View
17
12
  style={
18
13
  [
19
14
  {
20
- "backgroundColor": "#abacaf",
21
- "height": "100%",
22
- "width": 16,
15
+ "borderRadius": 12,
16
+ "flexDirection": "row",
17
+ "overflow": "hidden",
18
+ },
19
+ undefined,
20
+ ]
21
+ }
22
+ >
23
+ <View
24
+ style={
25
+ [
26
+ {
27
+ "backgroundColor": "#abacaf",
28
+ "height": "100%",
29
+ "width": 16,
30
+ },
31
+ undefined,
32
+ ]
33
+ }
34
+ testID="data-card-indicator"
35
+ themeIntent="archived"
36
+ />
37
+ </View>
38
+ <View
39
+ pointerEvents="box-none"
40
+ position="bottom"
41
+ style={
42
+ [
43
+ {
44
+ "bottom": 0,
45
+ "elevation": 9999,
46
+ "flexDirection": "column-reverse",
47
+ "left": 0,
48
+ "paddingHorizontal": 24,
49
+ "paddingVertical": 16,
50
+ "position": "absolute",
51
+ "right": 0,
52
+ "top": 0,
23
53
  },
24
54
  undefined,
25
55
  ]
26
56
  }
27
- testID="data-card-indicator"
28
- themeIntent="archived"
29
57
  />
30
58
  </View>
31
59
  `;
@@ -33,29 +61,57 @@ exports[`DataCard renders correctly when intent is archived 1`] = `
33
61
  exports[`DataCard renders correctly when intent is danger 1`] = `
34
62
  <View
35
63
  style={
36
- [
37
- {
38
- "borderRadius": 12,
39
- "flexDirection": "row",
40
- "overflow": "hidden",
41
- },
42
- undefined,
43
- ]
64
+ {
65
+ "flex": 1,
66
+ }
44
67
  }
45
68
  >
46
69
  <View
47
70
  style={
48
71
  [
49
72
  {
50
- "backgroundColor": "#f46363",
51
- "height": "100%",
52
- "width": 16,
73
+ "borderRadius": 12,
74
+ "flexDirection": "row",
75
+ "overflow": "hidden",
76
+ },
77
+ undefined,
78
+ ]
79
+ }
80
+ >
81
+ <View
82
+ style={
83
+ [
84
+ {
85
+ "backgroundColor": "#f46363",
86
+ "height": "100%",
87
+ "width": 16,
88
+ },
89
+ undefined,
90
+ ]
91
+ }
92
+ testID="data-card-indicator"
93
+ themeIntent="danger"
94
+ />
95
+ </View>
96
+ <View
97
+ pointerEvents="box-none"
98
+ position="bottom"
99
+ style={
100
+ [
101
+ {
102
+ "bottom": 0,
103
+ "elevation": 9999,
104
+ "flexDirection": "column-reverse",
105
+ "left": 0,
106
+ "paddingHorizontal": 24,
107
+ "paddingVertical": 16,
108
+ "position": "absolute",
109
+ "right": 0,
110
+ "top": 0,
53
111
  },
54
112
  undefined,
55
113
  ]
56
114
  }
57
- testID="data-card-indicator"
58
- themeIntent="danger"
59
115
  />
60
116
  </View>
61
117
  `;
@@ -63,29 +119,57 @@ exports[`DataCard renders correctly when intent is danger 1`] = `
63
119
  exports[`DataCard renders correctly when intent is info 1`] = `
64
120
  <View
65
121
  style={
66
- [
67
- {
68
- "borderRadius": 12,
69
- "flexDirection": "row",
70
- "overflow": "hidden",
71
- },
72
- undefined,
73
- ]
122
+ {
123
+ "flex": 1,
124
+ }
74
125
  }
75
126
  >
76
127
  <View
77
128
  style={
78
129
  [
79
130
  {
80
- "backgroundColor": "#b5c3fd",
81
- "height": "100%",
82
- "width": 16,
131
+ "borderRadius": 12,
132
+ "flexDirection": "row",
133
+ "overflow": "hidden",
134
+ },
135
+ undefined,
136
+ ]
137
+ }
138
+ >
139
+ <View
140
+ style={
141
+ [
142
+ {
143
+ "backgroundColor": "#b5c3fd",
144
+ "height": "100%",
145
+ "width": 16,
146
+ },
147
+ undefined,
148
+ ]
149
+ }
150
+ testID="data-card-indicator"
151
+ themeIntent="info"
152
+ />
153
+ </View>
154
+ <View
155
+ pointerEvents="box-none"
156
+ position="bottom"
157
+ style={
158
+ [
159
+ {
160
+ "bottom": 0,
161
+ "elevation": 9999,
162
+ "flexDirection": "column-reverse",
163
+ "left": 0,
164
+ "paddingHorizontal": 24,
165
+ "paddingVertical": 16,
166
+ "position": "absolute",
167
+ "right": 0,
168
+ "top": 0,
83
169
  },
84
170
  undefined,
85
171
  ]
86
172
  }
87
- testID="data-card-indicator"
88
- themeIntent="info"
89
173
  />
90
174
  </View>
91
175
  `;
@@ -93,29 +177,57 @@ exports[`DataCard renders correctly when intent is info 1`] = `
93
177
  exports[`DataCard renders correctly when intent is success 1`] = `
94
178
  <View
95
179
  style={
96
- [
97
- {
98
- "borderRadius": 12,
99
- "flexDirection": "row",
100
- "overflow": "hidden",
101
- },
102
- undefined,
103
- ]
180
+ {
181
+ "flex": 1,
182
+ }
104
183
  }
105
184
  >
106
185
  <View
107
186
  style={
108
187
  [
109
188
  {
110
- "backgroundColor": "#5ace7d",
111
- "height": "100%",
112
- "width": 16,
189
+ "borderRadius": 12,
190
+ "flexDirection": "row",
191
+ "overflow": "hidden",
192
+ },
193
+ undefined,
194
+ ]
195
+ }
196
+ >
197
+ <View
198
+ style={
199
+ [
200
+ {
201
+ "backgroundColor": "#5ace7d",
202
+ "height": "100%",
203
+ "width": 16,
204
+ },
205
+ undefined,
206
+ ]
207
+ }
208
+ testID="data-card-indicator"
209
+ themeIntent="success"
210
+ />
211
+ </View>
212
+ <View
213
+ pointerEvents="box-none"
214
+ position="bottom"
215
+ style={
216
+ [
217
+ {
218
+ "bottom": 0,
219
+ "elevation": 9999,
220
+ "flexDirection": "column-reverse",
221
+ "left": 0,
222
+ "paddingHorizontal": 24,
223
+ "paddingVertical": 16,
224
+ "position": "absolute",
225
+ "right": 0,
226
+ "top": 0,
113
227
  },
114
228
  undefined,
115
229
  ]
116
230
  }
117
- testID="data-card-indicator"
118
- themeIntent="success"
119
231
  />
120
232
  </View>
121
233
  `;
@@ -123,29 +235,57 @@ exports[`DataCard renders correctly when intent is success 1`] = `
123
235
  exports[`DataCard renders correctly when intent is warning 1`] = `
124
236
  <View
125
237
  style={
126
- [
127
- {
128
- "borderRadius": 12,
129
- "flexDirection": "row",
130
- "overflow": "hidden",
131
- },
132
- undefined,
133
- ]
238
+ {
239
+ "flex": 1,
240
+ }
134
241
  }
135
242
  >
136
243
  <View
137
244
  style={
138
245
  [
139
246
  {
140
- "backgroundColor": "#ffbe71",
141
- "height": "100%",
142
- "width": 16,
247
+ "borderRadius": 12,
248
+ "flexDirection": "row",
249
+ "overflow": "hidden",
250
+ },
251
+ undefined,
252
+ ]
253
+ }
254
+ >
255
+ <View
256
+ style={
257
+ [
258
+ {
259
+ "backgroundColor": "#ffbe71",
260
+ "height": "100%",
261
+ "width": 16,
262
+ },
263
+ undefined,
264
+ ]
265
+ }
266
+ testID="data-card-indicator"
267
+ themeIntent="warning"
268
+ />
269
+ </View>
270
+ <View
271
+ pointerEvents="box-none"
272
+ position="bottom"
273
+ style={
274
+ [
275
+ {
276
+ "bottom": 0,
277
+ "elevation": 9999,
278
+ "flexDirection": "column-reverse",
279
+ "left": 0,
280
+ "paddingHorizontal": 24,
281
+ "paddingVertical": 16,
282
+ "position": "absolute",
283
+ "right": 0,
284
+ "top": 0,
143
285
  },
144
286
  undefined,
145
287
  ]
146
288
  }
147
- testID="data-card-indicator"
148
- themeIntent="warning"
149
289
  />
150
290
  </View>
151
291
  `;
@@ -3,13 +3,41 @@
3
3
  exports[`StyledCard renders correct basic style 1`] = `
4
4
  <View
5
5
  style={
6
- [
7
- {
8
- "borderRadius": 12,
9
- "overflow": "hidden",
10
- },
11
- undefined,
12
- ]
6
+ {
7
+ "flex": 1,
8
+ }
13
9
  }
14
- />
10
+ >
11
+ <View
12
+ style={
13
+ [
14
+ {
15
+ "borderRadius": 12,
16
+ "overflow": "hidden",
17
+ },
18
+ undefined,
19
+ ]
20
+ }
21
+ />
22
+ <View
23
+ pointerEvents="box-none"
24
+ position="bottom"
25
+ style={
26
+ [
27
+ {
28
+ "bottom": 0,
29
+ "elevation": 9999,
30
+ "flexDirection": "column-reverse",
31
+ "left": 0,
32
+ "paddingHorizontal": 24,
33
+ "paddingVertical": 16,
34
+ "position": "absolute",
35
+ "right": 0,
36
+ "top": 0,
37
+ },
38
+ undefined,
39
+ ]
40
+ }
41
+ />
42
+ </View>
15
43
  `;