@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
@@ -2,157 +2,269 @@
2
2
 
3
3
  exports[`ScenceView lazy not renders child correctly when the scence is lazy and renders when selectedIndex change to 1 1`] = `
4
4
  <View
5
- accessibilityElementsHidden={true}
6
- importantForAccessibility="no-hide-descendants"
7
5
  style={
8
- [
9
- {
10
- "flex": 1,
11
- },
6
+ {
7
+ "flex": 1,
8
+ }
9
+ }
10
+ >
11
+ <View
12
+ accessibilityElementsHidden={true}
13
+ importantForAccessibility="no-hide-descendants"
14
+ style={
12
15
  [
13
16
  {
14
17
  "flex": 1,
15
- "overflow": "hidden",
16
18
  },
17
- null,
18
- ],
19
- ]
20
- }
21
- testID="scene-view"
22
- />
19
+ [
20
+ {
21
+ "flex": 1,
22
+ "overflow": "hidden",
23
+ },
24
+ null,
25
+ ],
26
+ ]
27
+ }
28
+ testID="scene-view"
29
+ />
30
+ <View
31
+ pointerEvents="box-none"
32
+ position="bottom"
33
+ style={
34
+ [
35
+ {
36
+ "bottom": 0,
37
+ "elevation": 9999,
38
+ "flexDirection": "column-reverse",
39
+ "left": 0,
40
+ "paddingHorizontal": 24,
41
+ "paddingVertical": 16,
42
+ "position": "absolute",
43
+ "right": 0,
44
+ "top": 0,
45
+ },
46
+ undefined,
47
+ ]
48
+ }
49
+ />
50
+ </View>
23
51
  `;
24
52
 
25
53
  exports[`ScenceView lazy not renders child correctly when the scence is lazy and renders when selectedIndex change to 1 2`] = `
26
54
  <View
27
- accessibilityElementsHidden={true}
28
- importantForAccessibility="no-hide-descendants"
29
55
  style={
30
- [
31
- {
32
- "flex": 1,
33
- },
56
+ {
57
+ "flex": 1,
58
+ }
59
+ }
60
+ >
61
+ <View
62
+ accessibilityElementsHidden={true}
63
+ importantForAccessibility="no-hide-descendants"
64
+ style={
34
65
  [
35
66
  {
36
67
  "flex": 1,
37
- "overflow": "hidden",
38
68
  },
39
- null,
40
- ],
41
- ]
42
- }
43
- testID="scene-view"
44
- >
45
- <Text
46
- allowFontScaling={false}
69
+ [
70
+ {
71
+ "flex": 1,
72
+ "overflow": "hidden",
73
+ },
74
+ null,
75
+ ],
76
+ ]
77
+ }
78
+ testID="scene-view"
79
+ >
80
+ <Text
81
+ allowFontScaling={false}
82
+ style={
83
+ [
84
+ {
85
+ "color": "#001f23",
86
+ "fontFamily": "BeVietnamPro-Regular",
87
+ "fontSize": 14,
88
+ "letterSpacing": 0.48,
89
+ "lineHeight": 22,
90
+ },
91
+ undefined,
92
+ ]
93
+ }
94
+ themeIntent="body"
95
+ themeTypeface="neutral"
96
+ themeVariant="small"
97
+ >
98
+ Scene 1
99
+ </Text>
100
+ </View>
101
+ <View
102
+ pointerEvents="box-none"
103
+ position="bottom"
47
104
  style={
48
105
  [
49
106
  {
50
- "color": "#001f23",
51
- "fontFamily": "BeVietnamPro-Regular",
52
- "fontSize": 14,
53
- "letterSpacing": 0.48,
54
- "lineHeight": 22,
107
+ "bottom": 0,
108
+ "elevation": 9999,
109
+ "flexDirection": "column-reverse",
110
+ "left": 0,
111
+ "paddingHorizontal": 24,
112
+ "paddingVertical": 16,
113
+ "position": "absolute",
114
+ "right": 0,
115
+ "top": 0,
55
116
  },
56
117
  undefined,
57
118
  ]
58
119
  }
59
- themeIntent="body"
60
- themeTypeface="neutral"
61
- themeVariant="small"
62
- >
63
- Scene 1
64
- </Text>
120
+ />
65
121
  </View>
66
122
  `;
67
123
 
68
124
  exports[`ScenceView lazy renders child correctly when the scence is focused and should not unmount if selected index changed to index which is out of lazyPreloadDistance 1`] = `
69
125
  <View
70
- accessibilityElementsHidden={false}
71
- importantForAccessibility="auto"
72
126
  style={
73
- [
74
- {
75
- "flex": 1,
76
- },
127
+ {
128
+ "flex": 1,
129
+ }
130
+ }
131
+ >
132
+ <View
133
+ accessibilityElementsHidden={false}
134
+ importantForAccessibility="auto"
135
+ style={
77
136
  [
78
137
  {
79
138
  "flex": 1,
80
- "overflow": "hidden",
81
139
  },
140
+ [
141
+ {
142
+ "flex": 1,
143
+ "overflow": "hidden",
144
+ },
145
+ {
146
+ "bottom": 0,
147
+ "left": 0,
148
+ "position": "absolute",
149
+ "right": 0,
150
+ "top": 0,
151
+ },
152
+ ],
153
+ ]
154
+ }
155
+ testID="scene-view"
156
+ >
157
+ <Text
158
+ allowFontScaling={false}
159
+ style={
160
+ [
161
+ {
162
+ "color": "#001f23",
163
+ "fontFamily": "BeVietnamPro-Regular",
164
+ "fontSize": 14,
165
+ "letterSpacing": 0.48,
166
+ "lineHeight": 22,
167
+ },
168
+ undefined,
169
+ ]
170
+ }
171
+ themeIntent="body"
172
+ themeTypeface="neutral"
173
+ themeVariant="small"
174
+ >
175
+ Scene 1
176
+ </Text>
177
+ </View>
178
+ <View
179
+ pointerEvents="box-none"
180
+ position="bottom"
181
+ style={
182
+ [
82
183
  {
83
184
  "bottom": 0,
185
+ "elevation": 9999,
186
+ "flexDirection": "column-reverse",
84
187
  "left": 0,
188
+ "paddingHorizontal": 24,
189
+ "paddingVertical": 16,
85
190
  "position": "absolute",
86
191
  "right": 0,
87
192
  "top": 0,
88
193
  },
89
- ],
90
- ]
91
- }
92
- testID="scene-view"
93
- >
94
- <Text
95
- allowFontScaling={false}
96
- style={
97
- [
98
- {
99
- "color": "#001f23",
100
- "fontFamily": "BeVietnamPro-Regular",
101
- "fontSize": 14,
102
- "letterSpacing": 0.48,
103
- "lineHeight": 22,
104
- },
105
194
  undefined,
106
195
  ]
107
196
  }
108
- themeIntent="body"
109
- themeTypeface="neutral"
110
- themeVariant="small"
111
- >
112
- Scene 1
113
- </Text>
197
+ />
114
198
  </View>
115
199
  `;
116
200
 
117
201
  exports[`ScenceView lazy renders child correctly when the scence is focused and should not unmount if selected index changed to index which is out of lazyPreloadDistance 2`] = `
118
202
  <View
119
- accessibilityElementsHidden={true}
120
- importantForAccessibility="no-hide-descendants"
121
203
  style={
122
- [
123
- {
124
- "flex": 1,
125
- },
204
+ {
205
+ "flex": 1,
206
+ }
207
+ }
208
+ >
209
+ <View
210
+ accessibilityElementsHidden={true}
211
+ importantForAccessibility="no-hide-descendants"
212
+ style={
126
213
  [
127
214
  {
128
215
  "flex": 1,
129
- "overflow": "hidden",
130
216
  },
131
- null,
132
- ],
133
- ]
134
- }
135
- testID="scene-view"
136
- >
137
- <Text
138
- allowFontScaling={false}
217
+ [
218
+ {
219
+ "flex": 1,
220
+ "overflow": "hidden",
221
+ },
222
+ null,
223
+ ],
224
+ ]
225
+ }
226
+ testID="scene-view"
227
+ >
228
+ <Text
229
+ allowFontScaling={false}
230
+ style={
231
+ [
232
+ {
233
+ "color": "#001f23",
234
+ "fontFamily": "BeVietnamPro-Regular",
235
+ "fontSize": 14,
236
+ "letterSpacing": 0.48,
237
+ "lineHeight": 22,
238
+ },
239
+ undefined,
240
+ ]
241
+ }
242
+ themeIntent="body"
243
+ themeTypeface="neutral"
244
+ themeVariant="small"
245
+ >
246
+ Scene 1
247
+ </Text>
248
+ </View>
249
+ <View
250
+ pointerEvents="box-none"
251
+ position="bottom"
139
252
  style={
140
253
  [
141
254
  {
142
- "color": "#001f23",
143
- "fontFamily": "BeVietnamPro-Regular",
144
- "fontSize": 14,
145
- "letterSpacing": 0.48,
146
- "lineHeight": 22,
255
+ "bottom": 0,
256
+ "elevation": 9999,
257
+ "flexDirection": "column-reverse",
258
+ "left": 0,
259
+ "paddingHorizontal": 24,
260
+ "paddingVertical": 16,
261
+ "position": "absolute",
262
+ "right": 0,
263
+ "top": 0,
147
264
  },
148
265
  undefined,
149
266
  ]
150
267
  }
151
- themeIntent="body"
152
- themeTypeface="neutral"
153
- themeVariant="small"
154
- >
155
- Scene 1
156
- </Text>
268
+ />
157
269
  </View>
158
270
  `;