@hero-design/rn 8.12.5-alpha.0 → 8.12.5

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 (326) hide show
  1. package/.turbo/turbo-build.log +9 -9
  2. package/.turbo/turbo-publish:npm.log +0 -9
  3. package/es/index.js +58 -53
  4. package/lib/index.js +58 -53
  5. package/package.json +5 -5
  6. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +8 -0
  7. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +12 -0
  8. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +13 -0
  9. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  10. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +21 -4
  11. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +189 -36
  12. package/src/components/Avatar/StyledAvatar.tsx +11 -4
  13. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +21 -4
  14. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +42 -8
  15. package/src/components/Badge/StyledBadge.tsx +4 -2
  16. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +132 -42
  17. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +1 -0
  18. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
  19. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  20. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  21. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +10 -0
  22. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +10 -0
  23. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +5 -0
  24. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
  25. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +2 -0
  26. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +16 -0
  27. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
  28. package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +1 -0
  29. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  30. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +2 -0
  31. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +4 -0
  32. package/src/components/Empty/StyledEmpty.tsx +14 -13
  33. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +76 -20
  34. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +56 -16
  35. package/src/components/FAB/StyledFAB.tsx +3 -2
  36. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +1 -0
  37. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +22 -8
  38. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +4 -0
  39. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +53 -8
  40. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +4 -0
  41. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +4 -0
  42. package/src/components/PinInput/StyledPinInput.tsx +6 -3
  43. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +93 -18
  44. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +73 -13
  45. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +3 -0
  46. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +2 -0
  47. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +3 -0
  48. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +4 -0
  49. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +23 -1
  50. package/src/components/SectionHeading/__tests__/index.spec.tsx +2 -2
  51. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
  52. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +20 -0
  53. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +38 -0
  54. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
  55. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +20 -0
  56. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +35 -0
  57. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +3 -0
  58. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  59. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
  60. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  61. package/src/components/Tabs/ScrollableTabs.tsx +167 -208
  62. package/src/components/Tabs/__tests__/ScrollableTabs.spec.tsx +11 -58
  63. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +24 -7
  64. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +22 -7
  65. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +27 -7
  66. package/src/components/Tag/StyledTag.tsx +3 -2
  67. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +167 -62
  68. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +22 -0
  69. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +51 -0
  70. package/src/components/TextInput/index.tsx +2 -0
  71. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +5 -0
  72. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +7 -0
  73. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +13 -0
  74. package/src/components/Typography/Text/index.tsx +2 -0
  75. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +17 -0
  76. package/src/theme/components/avatar.ts +11 -1
  77. package/src/theme/components/badge.ts +5 -1
  78. package/src/theme/components/pinInput.ts +14 -1
  79. package/src/types.ts +0 -2
  80. package/types/components/Accordion/AccordionItem.d.ts +0 -0
  81. package/types/components/Accordion/StyledAccordion.d.ts +0 -0
  82. package/types/components/Accordion/index.d.ts +0 -0
  83. package/types/components/Alert/StyledAlert.d.ts +0 -0
  84. package/types/components/Alert/index.d.ts +0 -0
  85. package/types/components/Attachment/StyledAttachment.d.ts +0 -0
  86. package/types/components/Attachment/index.d.ts +0 -0
  87. package/types/components/Avatar/Avatar.d.ts +0 -0
  88. package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +0 -0
  89. package/types/components/Avatar/AvatarStack/index.d.ts +0 -0
  90. package/types/components/Avatar/AvatarStack/utils.d.ts +0 -0
  91. package/types/components/Avatar/StyledAvatar.d.ts +4 -5
  92. package/types/components/Avatar/index.d.ts +0 -0
  93. package/types/components/Badge/Status.d.ts +0 -0
  94. package/types/components/Badge/StyledBadge.d.ts +3 -5
  95. package/types/components/Badge/index.d.ts +0 -0
  96. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
  97. package/types/components/BottomNavigation/index.d.ts +0 -0
  98. package/types/components/BottomSheet/BottomSheetContext.d.ts +0 -0
  99. package/types/components/BottomSheet/Footer.d.ts +0 -0
  100. package/types/components/BottomSheet/Header.d.ts +0 -0
  101. package/types/components/BottomSheet/ScrollView.d.ts +0 -0
  102. package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -0
  103. package/types/components/BottomSheet/index.d.ts +0 -0
  104. package/types/components/Box/StyledBox.d.ts +0 -0
  105. package/types/components/Box/config.d.ts +0 -0
  106. package/types/components/Box/index.d.ts +0 -0
  107. package/types/components/Box/types.d.ts +0 -0
  108. package/types/components/Button/Button.d.ts +0 -0
  109. package/types/components/Button/IconButton.d.ts +0 -0
  110. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
  111. package/types/components/Button/LoadingIndicator/index.d.ts +0 -0
  112. package/types/components/Button/StyledButton.d.ts +0 -0
  113. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +0 -0
  114. package/types/components/Button/UtilityButton/index.d.ts +0 -0
  115. package/types/components/Button/index.d.ts +0 -0
  116. package/types/components/Calendar/CalendarRowItem.d.ts +0 -0
  117. package/types/components/Calendar/StyledCalendar.d.ts +0 -0
  118. package/types/components/Calendar/helpers.d.ts +0 -0
  119. package/types/components/Calendar/index.d.ts +0 -0
  120. package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -0
  121. package/types/components/Card/DataCard/index.d.ts +0 -0
  122. package/types/components/Card/StyledCard.d.ts +0 -0
  123. package/types/components/Card/index.d.ts +0 -0
  124. package/types/components/Carousel/CardCarousel.d.ts +0 -0
  125. package/types/components/Carousel/CarouselItem.d.ts +0 -0
  126. package/types/components/Carousel/StyledCardCarousel.d.ts +0 -0
  127. package/types/components/Carousel/StyledCarousel.d.ts +0 -0
  128. package/types/components/Carousel/contants.d.ts +0 -0
  129. package/types/components/Carousel/index.d.ts +0 -0
  130. package/types/components/Carousel/types.d.ts +0 -0
  131. package/types/components/Checkbox/StyledCheckbox.d.ts +0 -0
  132. package/types/components/Checkbox/index.d.ts +0 -0
  133. package/types/components/Collapse/StyledCollapse.d.ts +0 -0
  134. package/types/components/Collapse/index.d.ts +0 -0
  135. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -0
  136. package/types/components/ContentNavigator/index.d.ts +0 -0
  137. package/types/components/DatePicker/DatePickerAndroid.d.ts +0 -0
  138. package/types/components/DatePicker/DatePickerIOS.d.ts +0 -0
  139. package/types/components/DatePicker/StyledDatePicker.d.ts +0 -0
  140. package/types/components/DatePicker/index.d.ts +0 -0
  141. package/types/components/DatePicker/types.d.ts +0 -0
  142. package/types/components/Divider/StyledDivider.d.ts +0 -0
  143. package/types/components/Divider/index.d.ts +0 -0
  144. package/types/components/Drawer/DragableDrawer/helpers.d.ts +0 -0
  145. package/types/components/Drawer/DragableDrawer/index.d.ts +0 -0
  146. package/types/components/Drawer/StyledDrawer.d.ts +0 -0
  147. package/types/components/Drawer/index.d.ts +0 -0
  148. package/types/components/Empty/StyledEmpty.d.ts +5 -9
  149. package/types/components/Empty/index.d.ts +0 -0
  150. package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
  151. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
  152. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
  153. package/types/components/FAB/ActionGroup/index.d.ts +0 -0
  154. package/types/components/FAB/AnimatedFABIcon.d.ts +0 -0
  155. package/types/components/FAB/FAB.d.ts +0 -0
  156. package/types/components/FAB/StyledFAB.d.ts +3 -5
  157. package/types/components/FAB/index.d.ts +0 -0
  158. package/types/components/Icon/AnimatedIcon.d.ts +0 -0
  159. package/types/components/Icon/HeroIcon/index.d.ts +0 -0
  160. package/types/components/Icon/IconList.d.ts +0 -0
  161. package/types/components/Icon/index.d.ts +0 -0
  162. package/types/components/Icon/utils.d.ts +0 -0
  163. package/types/components/Image/index.d.ts +0 -0
  164. package/types/components/List/BasicListItem.d.ts +0 -0
  165. package/types/components/List/ListItem.d.ts +0 -0
  166. package/types/components/List/StyledBasicListItem.d.ts +0 -0
  167. package/types/components/List/StyledListItem.d.ts +0 -0
  168. package/types/components/List/index.d.ts +0 -0
  169. package/types/components/PageControl/StyledPageControl.d.ts +0 -0
  170. package/types/components/PageControl/index.d.ts +0 -0
  171. package/types/components/PinInput/PinCell.d.ts +0 -0
  172. package/types/components/PinInput/StyledPinInput.d.ts +5 -9
  173. package/types/components/PinInput/index.d.ts +0 -0
  174. package/types/components/Progress/ProgressBar.d.ts +0 -0
  175. package/types/components/Progress/ProgressCircle.d.ts +0 -0
  176. package/types/components/Progress/StyledProgressBar.d.ts +0 -0
  177. package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
  178. package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
  179. package/types/components/Progress/constants.d.ts +0 -0
  180. package/types/components/Progress/index.d.ts +0 -0
  181. package/types/components/Progress/types.d.ts +0 -0
  182. package/types/components/Radio/Radio.d.ts +0 -0
  183. package/types/components/Radio/RadioGroup.d.ts +0 -0
  184. package/types/components/Radio/StyledRadio.d.ts +0 -0
  185. package/types/components/Radio/index.d.ts +0 -0
  186. package/types/components/Radio/types.d.ts +0 -0
  187. package/types/components/RefreshControl/index.d.ts +0 -0
  188. package/types/components/RichTextEditor/EditorEvent.d.ts +0 -0
  189. package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -0
  190. package/types/components/RichTextEditor/MentionList.d.ts +0 -0
  191. package/types/components/RichTextEditor/RichTextEditor.d.ts +0 -0
  192. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -0
  193. package/types/components/RichTextEditor/StyledToolbar.d.ts +0 -0
  194. package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -0
  195. package/types/components/RichTextEditor/constants.d.ts +0 -0
  196. package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -0
  197. package/types/components/RichTextEditor/index.d.ts +0 -0
  198. package/types/components/RichTextEditor/types.d.ts +0 -0
  199. package/types/components/RichTextEditor/utils/events.d.ts +0 -0
  200. package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -0
  201. package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
  202. package/types/components/SectionHeading/index.d.ts +0 -0
  203. package/types/components/Select/BaseOptionList.d.ts +0 -0
  204. package/types/components/Select/Footer.d.ts +0 -0
  205. package/types/components/Select/MultiSelect/Option.d.ts +0 -0
  206. package/types/components/Select/MultiSelect/OptionList.d.ts +0 -0
  207. package/types/components/Select/MultiSelect/index.d.ts +0 -0
  208. package/types/components/Select/SingleSelect/Option.d.ts +0 -0
  209. package/types/components/Select/SingleSelect/OptionList.d.ts +0 -0
  210. package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +0 -0
  211. package/types/components/Select/SingleSelect/index.d.ts +0 -0
  212. package/types/components/Select/StyledSelect.d.ts +0 -0
  213. package/types/components/Select/helpers.d.ts +0 -0
  214. package/types/components/Select/index.d.ts +0 -0
  215. package/types/components/Select/types.d.ts +0 -0
  216. package/types/components/Slider/index.d.ts +0 -0
  217. package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
  218. package/types/components/Spinner/StyledSpinner.d.ts +0 -0
  219. package/types/components/Spinner/index.d.ts +0 -0
  220. package/types/components/Swipeable/StyledSwipeable.d.ts +0 -0
  221. package/types/components/Swipeable/SwipeableAction.d.ts +0 -0
  222. package/types/components/Swipeable/index.d.ts +0 -0
  223. package/types/components/Switch/SelectorSwitch/Option.d.ts +0 -0
  224. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -0
  225. package/types/components/Switch/SelectorSwitch/index.d.ts +0 -0
  226. package/types/components/Switch/StyledSwitch.d.ts +0 -0
  227. package/types/components/Switch/index.d.ts +0 -0
  228. package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
  229. package/types/components/Tabs/ScrollableTabs.d.ts +1 -8
  230. package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -0
  231. package/types/components/Tabs/StyledTabs.d.ts +0 -0
  232. package/types/components/Tabs/TabWithBadge.d.ts +0 -0
  233. package/types/components/Tabs/index.d.ts +1 -2
  234. package/types/components/Tabs/utils.d.ts +0 -0
  235. package/types/components/Tag/StyledTag.d.ts +3 -5
  236. package/types/components/Tag/index.d.ts +0 -0
  237. package/types/components/TextInput/StyledTextInput.d.ts +0 -0
  238. package/types/components/TextInput/index.d.ts +0 -0
  239. package/types/components/TimePicker/StyledTimePicker.d.ts +0 -0
  240. package/types/components/TimePicker/TimePickerAndroid.d.ts +0 -0
  241. package/types/components/TimePicker/TimePickerIOS.d.ts +0 -0
  242. package/types/components/TimePicker/index.d.ts +0 -0
  243. package/types/components/TimePicker/types.d.ts +0 -0
  244. package/types/components/Toast/StyledToast.d.ts +0 -0
  245. package/types/components/Toast/Toast.d.ts +0 -0
  246. package/types/components/Toast/ToastContainer.d.ts +0 -0
  247. package/types/components/Toast/ToastContext.d.ts +0 -0
  248. package/types/components/Toast/ToastProvider.d.ts +0 -0
  249. package/types/components/Toast/index.d.ts +0 -0
  250. package/types/components/Toast/types.d.ts +0 -0
  251. package/types/components/Toolbar/StyledToolbar.d.ts +0 -0
  252. package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
  253. package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
  254. package/types/components/Toolbar/index.d.ts +0 -0
  255. package/types/components/Typography/Text/StyledText.d.ts +0 -0
  256. package/types/components/Typography/Text/index.d.ts +1 -1
  257. package/types/components/Typography/index.d.ts +0 -0
  258. package/types/index.d.ts +0 -0
  259. package/types/testHelpers/renderWithTheme.d.ts +0 -0
  260. package/types/theme/ThemeProvider.d.ts +0 -0
  261. package/types/theme/ThemeSwitcher.d.ts +0 -0
  262. package/types/theme/components/accordion.d.ts +0 -0
  263. package/types/theme/components/alert.d.ts +0 -0
  264. package/types/theme/components/attachment.d.ts +0 -0
  265. package/types/theme/components/avatar.d.ts +10 -0
  266. package/types/theme/components/badge.d.ts +3 -0
  267. package/types/theme/components/bottomNavigation.d.ts +0 -0
  268. package/types/theme/components/bottomSheet.d.ts +0 -0
  269. package/types/theme/components/button.d.ts +0 -0
  270. package/types/theme/components/calendar.d.ts +0 -0
  271. package/types/theme/components/card.d.ts +0 -0
  272. package/types/theme/components/cardCarousel.d.ts +0 -0
  273. package/types/theme/components/carousel.d.ts +0 -0
  274. package/types/theme/components/checkbox.d.ts +0 -0
  275. package/types/theme/components/contentNavigator.d.ts +0 -0
  276. package/types/theme/components/datePicker.d.ts +0 -0
  277. package/types/theme/components/divider.d.ts +0 -0
  278. package/types/theme/components/drawer.d.ts +0 -0
  279. package/types/theme/components/empty.d.ts +0 -0
  280. package/types/theme/components/fab.d.ts +0 -0
  281. package/types/theme/components/icon.d.ts +0 -0
  282. package/types/theme/components/image.d.ts +0 -0
  283. package/types/theme/components/list.d.ts +0 -0
  284. package/types/theme/components/pageControl.d.ts +0 -0
  285. package/types/theme/components/pinInput.d.ts +4 -0
  286. package/types/theme/components/progress.d.ts +0 -0
  287. package/types/theme/components/radio.d.ts +0 -0
  288. package/types/theme/components/refreshControl.d.ts +0 -0
  289. package/types/theme/components/richTextEditor.d.ts +0 -0
  290. package/types/theme/components/sectionHeading.d.ts +0 -0
  291. package/types/theme/components/select.d.ts +0 -0
  292. package/types/theme/components/slider.d.ts +0 -0
  293. package/types/theme/components/spinner.d.ts +0 -0
  294. package/types/theme/components/swipeable.d.ts +0 -0
  295. package/types/theme/components/switch.d.ts +0 -0
  296. package/types/theme/components/tabs.d.ts +0 -0
  297. package/types/theme/components/tag.d.ts +0 -0
  298. package/types/theme/components/textInput.d.ts +0 -0
  299. package/types/theme/components/timePicker.d.ts +0 -0
  300. package/types/theme/components/toast.d.ts +0 -0
  301. package/types/theme/components/toolbar.d.ts +0 -0
  302. package/types/theme/components/typography.d.ts +0 -0
  303. package/types/theme/getTheme.d.ts +0 -0
  304. package/types/theme/global/borders.d.ts +0 -0
  305. package/types/theme/global/colors/eBens.d.ts +0 -0
  306. package/types/theme/global/colors/global.d.ts +0 -0
  307. package/types/theme/global/colors/globalDark.d.ts +0 -0
  308. package/types/theme/global/colors/jobs.d.ts +0 -0
  309. package/types/theme/global/colors/swag.d.ts +0 -0
  310. package/types/theme/global/colors/swagDark.d.ts +0 -0
  311. package/types/theme/global/colors/types.d.ts +0 -0
  312. package/types/theme/global/colors/wallet.d.ts +0 -0
  313. package/types/theme/global/colors/work.d.ts +0 -0
  314. package/types/theme/global/index.d.ts +0 -0
  315. package/types/theme/global/scale.d.ts +0 -0
  316. package/types/theme/global/sizes.d.ts +0 -0
  317. package/types/theme/global/space.d.ts +0 -0
  318. package/types/theme/global/typography.d.ts +0 -0
  319. package/types/theme/index.d.ts +0 -0
  320. package/types/types.d.ts +1 -2
  321. package/types/utils/functions.d.ts +0 -0
  322. package/types/utils/helpers.d.ts +0 -0
  323. package/types/utils/hooks.d.ts +0 -0
  324. package/types/utils/scale.d.ts +0 -0
  325. package/.turbo/turbo-build:types.log +0 -2
  326. package/.turbo/turbo-lint.log +0 -149
@@ -1,9 +1,9 @@
1
- @hero-design/rn:build: cache hit, replaying output f482b851404033d4
2
- @hero-design/rn:build: $ yarn build:js && yarn build:types
3
- @hero-design/rn:build: $ rollup -c
4
- @hero-design/rn:build: 
5
- @hero-design/rn:build: src/index.ts → lib/index.js, es/index.js...
6
- @hero-design/rn:build: (!) Plugin replace: @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.
7
- @hero-design/rn:build: (!) Plugin node-resolve: preferring built-in module 'events' over local alternative at '/Volumes/Data/Projects/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
8
- @hero-design/rn:build: created lib/index.js, es/index.js in 30s
9
- @hero-design/rn:build: $ tsc --noEmit false --emitDeclarationOnly --project tsconfig.prod.json
1
+ @hero-design/rn:build: cache hit, replaying output 30919d84667a450d
2
+ @hero-design/rn:build: $ yarn build:js && yarn build:types
3
+ @hero-design/rn:build: $ rollup -c
4
+ @hero-design/rn:build: 
5
+ @hero-design/rn:build: src/index.ts → lib/index.js, es/index.js...
6
+ @hero-design/rn:build: (!) Plugin replace: @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.
7
+ @hero-design/rn:build: (!) Plugin node-resolve: preferring built-in module 'events' over local alternative at '/root/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
8
+ @hero-design/rn:build: created lib/index.js, es/index.js in 27.4s
9
+ @hero-design/rn:build: $ tsc --noEmit false --emitDeclarationOnly --project tsconfig.prod.json
@@ -1,9 +0,0 @@
1
- @hero-design/rn:publish:npm: cache hit, replaying output 507c34f3e0a508f6
2
- @hero-design/rn:publish:npm: $ yarn publish --access public
3
- @hero-design/rn:publish:npm: [1/4] Bumping version...
4
- @hero-design/rn:publish:npm: info Current version: 8.12.0-rc.0
5
- @hero-design/rn:publish:npm: [2/4] Logging in...
6
- @hero-design/rn:publish:npm: [3/4] Publishing...
7
- @hero-design/rn:publish:npm: success Published.
8
- @hero-design/rn:publish:npm: [4/4] Revoking token...
9
- @hero-design/rn:publish:npm: info Not revoking login token, specified via config file.
package/es/index.js CHANGED
@@ -1723,6 +1723,16 @@ var getAvatarTheme = function getAvatarTheme(theme) {
1723
1723
  xxxxlarge: theme.space.xlarge * 1.5,
1724
1724
  xxxxxlarge: theme.space.xxlarge * 1.5
1725
1725
  };
1726
+ var lineHeights = {
1727
+ small: theme.lineHeights.large,
1728
+ medium: theme.lineHeights.xlarge,
1729
+ large: theme.lineHeights.xxlarge,
1730
+ xlarge: theme.lineHeights.xxxlarge,
1731
+ xxlarge: theme.lineHeights.medium * 2,
1732
+ xxxlarge: theme.lineHeights.large * 1.5,
1733
+ xxxxlarge: theme.lineHeights.xlarge * 1.5,
1734
+ xxxxxlarge: theme.lineHeights.xxlarge * 1.5
1735
+ };
1726
1736
  var radii = {
1727
1737
  rounded: theme.radii.rounded
1728
1738
  };
@@ -1731,7 +1741,8 @@ var getAvatarTheme = function getAvatarTheme(theme) {
1731
1741
  sizes: sizes,
1732
1742
  radii: radii,
1733
1743
  fonts: fonts,
1734
- fontSizes: fontSizes
1744
+ fontSizes: fontSizes,
1745
+ lineHeights: lineHeights
1735
1746
  };
1736
1747
  };
1737
1748
 
@@ -1751,6 +1762,9 @@ var getBadgeTheme = function getBadgeTheme(theme) {
1751
1762
  var fontSizes = {
1752
1763
  "default": theme.fontSizes.small
1753
1764
  };
1765
+ var lineHeights = {
1766
+ "default": theme.lineHeights.small
1767
+ };
1754
1768
  var sizes = {
1755
1769
  height: theme.fontSizes.small + theme.sizes.small,
1756
1770
  minWidth: theme.fontSizes.small + theme.sizes.small,
@@ -1767,7 +1781,8 @@ var getBadgeTheme = function getBadgeTheme(theme) {
1767
1781
  fonts: fonts,
1768
1782
  fontSizes: fontSizes,
1769
1783
  sizes: sizes,
1770
- space: space
1784
+ space: space,
1785
+ lineHeights: lineHeights
1771
1786
  };
1772
1787
  };
1773
1788
 
@@ -2337,6 +2352,10 @@ var getPinInputTheme = function getPinInputTheme(theme) {
2337
2352
  cellText: theme.fontSizes.xxxxlarge,
2338
2353
  errorMessage: theme.fontSizes.small
2339
2354
  };
2355
+ var lineHeights = {
2356
+ cellText: theme.lineHeights.xxxxlarge,
2357
+ errorMessage: theme.fontSizes.small
2358
+ };
2340
2359
  var sizes = {
2341
2360
  cellWidth: theme.sizes.xxlarge,
2342
2361
  cellHeight: theme.sizes.xxxlarge,
@@ -2352,6 +2371,7 @@ var getPinInputTheme = function getPinInputTheme(theme) {
2352
2371
  };
2353
2372
  return {
2354
2373
  borderWidths: borderWidths,
2374
+ lineHeights: lineHeights,
2355
2375
  colors: colors,
2356
2376
  fonts: fonts,
2357
2377
  fontSizes: fontSizes,
@@ -5958,7 +5978,7 @@ var StyledText$3 = index$a(Text$1)(function (_ref) {
5958
5978
  });
5959
5979
  });
5960
5980
 
5961
- var _excluded$p = ["children", "fontSize", "fontWeight", "intent", "typeface"];
5981
+ var _excluded$p = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
5962
5982
  var Text = function Text(_ref) {
5963
5983
  var children = _ref.children,
5964
5984
  _ref$fontSize = _ref.fontSize,
@@ -5969,12 +5989,15 @@ var Text = function Text(_ref) {
5969
5989
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
5970
5990
  _ref$typeface = _ref.typeface,
5971
5991
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
5992
+ _ref$allowFontScaling = _ref.allowFontScaling,
5993
+ allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
5972
5994
  nativeProps = _objectWithoutProperties(_ref, _excluded$p);
5973
5995
  return /*#__PURE__*/React.createElement(StyledText$3, _extends$1({}, nativeProps, {
5974
5996
  themeFontSize: fontSize,
5975
5997
  themeFontWeight: fontWeight,
5976
5998
  themeIntent: intent,
5977
- themeTypeface: typeface
5999
+ themeTypeface: typeface,
6000
+ allowFontScaling: allowFontScaling
5978
6001
  }), children);
5979
6002
  };
5980
6003
 
@@ -6808,12 +6831,15 @@ var StyledTextWrapper$1 = index$a(View)(function () {
6808
6831
  height: '100%'
6809
6832
  };
6810
6833
  });
6811
- var StyledText$2 = index$a(Text$1)(function (_ref2) {
6834
+ var StyledText$2 = index$a(Typography.Text)(function (_ref2) {
6812
6835
  var themeSize = _ref2.themeSize,
6813
6836
  theme = _ref2.theme;
6814
6837
  return {
6815
6838
  fontFamily: theme.__hd__.avatar.fonts["default"],
6816
6839
  fontSize: theme.__hd__.avatar.fontSizes[themeSize],
6840
+ lineHeight: 0,
6841
+ textAlignVertical: 'center',
6842
+ textAlign: 'center',
6817
6843
  color: theme.__hd__.avatar.colors.text,
6818
6844
  overflow: 'hidden'
6819
6845
  };
@@ -6962,11 +6988,12 @@ var StyledView$2 = index$a(Animated.View)(function (_ref) {
6962
6988
  paddingHorizontal: themePadding === 'wideContent' ? theme.__hd__.badge.space.horizontalPadding : undefined
6963
6989
  };
6964
6990
  });
6965
- var StyledText$1 = index$a(Text$1)(function (_ref2) {
6991
+ var StyledText$1 = index$a(Typography.Text)(function (_ref2) {
6966
6992
  var theme = _ref2.theme;
6967
6993
  return {
6968
6994
  fontFamily: theme.__hd__.badge.fonts["default"],
6969
6995
  fontSize: theme.__hd__.badge.fontSizes["default"],
6996
+ lineHeight: theme.__hd__.badge.lineHeights["default"],
6970
6997
  color: theme.__hd__.badge.colors.text,
6971
6998
  includeFontPadding: false,
6972
6999
  textAlignVertical: 'center',
@@ -11516,7 +11543,7 @@ var StyledErrorAndMaxLengthContainer = index$a(View)(function () {
11516
11543
  };
11517
11544
  });
11518
11545
 
11519
- var _excluded$a = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "helpText", "value", "defaultValue", "renderInputValue"];
11546
+ var _excluded$a = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling"];
11520
11547
  var getVariant$1 = function getVariant(_ref) {
11521
11548
  var disabled = _ref.disabled,
11522
11549
  error = _ref.error,
@@ -11562,6 +11589,8 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
11562
11589
  value = _ref2.value,
11563
11590
  defaultValue = _ref2.defaultValue,
11564
11591
  renderInputValue = _ref2.renderInputValue,
11592
+ _ref2$allowFontScalin = _ref2.allowFontScaling,
11593
+ allowFontScaling = _ref2$allowFontScalin === void 0 ? false : _ref2$allowFontScalin,
11565
11594
  nativeProps = _objectWithoutProperties(_ref2, _excluded$a);
11566
11595
  var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
11567
11596
  var isEmptyValue = displayText.length === 0;
@@ -11650,7 +11679,8 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
11650
11679
  },
11651
11680
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
11652
11681
  // @ts-ignore
11653
- accessibilityLabelledBy: accessibilityLabelledBy
11682
+ accessibilityLabelledBy: accessibilityLabelledBy,
11683
+ allowFontScaling: allowFontScaling
11654
11684
  }, nativeProps), {}, {
11655
11685
  onFocus: function onFocus(event) {
11656
11686
  var _nativeProps$onFocus;
@@ -12187,7 +12217,7 @@ var StyledWrapper$5 = index$a(View)(function (_ref) {
12187
12217
  padding: theme.__hd__.empty.space.wrapperPadding
12188
12218
  };
12189
12219
  });
12190
- var StyledTitle = index$a(Text$1)(function (_ref2) {
12220
+ var StyledTitle = index$a(Typography.Text)(function (_ref2) {
12191
12221
  var theme = _ref2.theme,
12192
12222
  themeVariant = _ref2.themeVariant;
12193
12223
  return {
@@ -12198,7 +12228,7 @@ var StyledTitle = index$a(Text$1)(function (_ref2) {
12198
12228
  color: themeVariant === 'dark' ? theme.__hd__.empty.colors.invertedText : theme.__hd__.empty.colors.text
12199
12229
  };
12200
12230
  });
12201
- var StyledDescription = index$a(Text$1)(function (_ref3) {
12231
+ var StyledDescription = index$a(Typography.Text)(function (_ref3) {
12202
12232
  var theme = _ref3.theme,
12203
12233
  themeVariant = _ref3.themeVariant;
12204
12234
  return {
@@ -12255,7 +12285,7 @@ var StyledFABIcon = index$a(Icon)(function (_ref2) {
12255
12285
  textAlign: 'center'
12256
12286
  };
12257
12287
  });
12258
- var StyledFABText = index$a(Text$1)(function (_ref3) {
12288
+ var StyledFABText = index$a(Typography.Text)(function (_ref3) {
12259
12289
  var theme = _ref3.theme;
12260
12290
  return {
12261
12291
  fontFamily: theme.__hd__.fab.fonts.title,
@@ -12738,12 +12768,13 @@ var StyledCell = index$a(View)(function (_ref) {
12738
12768
  borderColor: theme.__hd__.pinInput.colors[themeState]
12739
12769
  };
12740
12770
  });
12741
- var StyledCellText = index$a(Text$1)(function (_ref2) {
12771
+ var StyledCellText = index$a(Typography.Text)(function (_ref2) {
12742
12772
  var theme = _ref2.theme,
12743
12773
  themeState = _ref2.themeState;
12744
12774
  return {
12745
12775
  fontFamily: theme.__hd__.pinInput.fonts.cellText,
12746
12776
  fontSize: theme.__hd__.pinInput.fontSizes.cellText,
12777
+ lineHeight: theme.__hd__.pinInput.lineHeights.cellText,
12747
12778
  color: theme.__hd__.pinInput.colors[themeState]
12748
12779
  };
12749
12780
  });
@@ -12794,10 +12825,11 @@ var StyledErrorContainer = index$a(View)(function (_ref7) {
12794
12825
  var theme = _ref7.theme;
12795
12826
  return {
12796
12827
  flexDirection: 'row',
12797
- paddingTop: theme.__hd__.pinInput.space.errorMessagePadding
12828
+ paddingTop: theme.__hd__.pinInput.space.errorMessagePadding,
12829
+ alignItems: 'center'
12798
12830
  };
12799
12831
  });
12800
- var StyledErrorMessage = index$a(Text$1)(function (_ref8) {
12832
+ var StyledErrorMessage = index$a(Typography.Text)(function (_ref8) {
12801
12833
  var theme = _ref8.theme;
12802
12834
  return {
12803
12835
  fontFamily: theme.__hd__.pinInput.fonts.errorMessage,
@@ -14496,9 +14528,8 @@ var getTabItem$1 = function getTabItem(_ref) {
14496
14528
  color: color
14497
14529
  });
14498
14530
  };
14499
- var ScrollableTab = /*#__PURE__*/forwardRef(function (_ref2, ref) {
14500
- var _ref2$onTabPress = _ref2.onTabPress,
14501
- onTabPress = _ref2$onTabPress === void 0 ? noop : _ref2$onTabPress,
14531
+ var ScrollableTab = function ScrollableTab(_ref2) {
14532
+ var onTabPress = _ref2.onTabPress,
14502
14533
  selectedTabKey = _ref2.selectedTabKey,
14503
14534
  tabs = _ref2.tabs,
14504
14535
  containerStyle = _ref2.containerStyle,
@@ -14520,46 +14551,20 @@ var ScrollableTab = /*#__PURE__*/forwardRef(function (_ref2, ref) {
14520
14551
  var tabsAnims = useAnimatedValueArray(tabs.map(function (_, i) {
14521
14552
  return i === selectedTabIndex ? 1 : 0;
14522
14553
  }));
14523
- React.useImperativeHandle(ref, function () {
14524
- return {
14525
- selectTabKey: function selectTabKey(tabKey) {
14526
- var index = tabs.findIndex(function (item) {
14527
- return item.key === tabKey;
14528
- });
14529
- if (index !== -1) {
14530
- var _flatListRef$current, _pagerViewRef$current;
14531
- (_flatListRef$current = flatListRef.current) === null || _flatListRef$current === void 0 ? void 0 : _flatListRef$current.scrollToIndex({
14532
- index: index,
14533
- viewPosition: 0.5
14534
- });
14535
- (_pagerViewRef$current = pagerViewRef.current) === null || _pagerViewRef$current === void 0 ? void 0 : _pagerViewRef$current.setPage(index);
14536
- if (onTabPress) {
14537
- onTabPress(tabKey);
14538
- }
14539
- }
14540
- },
14541
- getFlatListRef: function getFlatListRef() {
14542
- return flatListRef.current;
14543
- },
14544
- getPagerViewRef: function getPagerViewRef() {
14545
- return pagerViewRef.current;
14546
- }
14547
- };
14548
- }, [pagerViewRef, flatListRef, tabs]);
14549
14554
  React.useEffect(function () {
14550
14555
  var timeoutHandle = null;
14551
14556
  if (selectedTabIndex !== -1) {
14552
- var _flatListRef$current2;
14553
- (_flatListRef$current2 = flatListRef.current) === null || _flatListRef$current2 === void 0 ? void 0 : _flatListRef$current2.scrollToIndex({
14557
+ var _flatListRef$current;
14558
+ (_flatListRef$current = flatListRef.current) === null || _flatListRef$current === void 0 ? void 0 : _flatListRef$current.scrollToIndex({
14554
14559
  index: selectedTabIndex,
14555
14560
  viewPosition: 0.5
14556
14561
  });
14557
14562
  // If the selected tab is changed too quickly, the setPage is crashed and not work anymore
14558
14563
  // We apply throttle to prevent this issue https://github.com/Thinkei/hero-design/issues/1715
14559
14564
  timeoutHandle = setTimeout(function () {
14560
- var _pagerViewRef$current2;
14565
+ var _pagerViewRef$current;
14561
14566
  // use no animation to prevent unexpected behavior if users select tab too quickly
14562
- (_pagerViewRef$current2 = pagerViewRef.current) === null || _pagerViewRef$current2 === void 0 ? void 0 : _pagerViewRef$current2.setPageWithoutAnimation(selectedTabIndex);
14567
+ (_pagerViewRef$current = pagerViewRef.current) === null || _pagerViewRef$current === void 0 ? void 0 : _pagerViewRef$current.setPageWithoutAnimation(selectedTabIndex);
14563
14568
  }, 200);
14564
14569
  }
14565
14570
  var animation = Animated.parallel(_toConsumableArray(tabs.map(function (_, i) {
@@ -14576,7 +14581,7 @@ var ScrollableTab = /*#__PURE__*/forwardRef(function (_ref2, ref) {
14576
14581
  clearTimeout(timeoutHandle);
14577
14582
  }
14578
14583
  };
14579
- }, [selectedTabIndex, selectedTabKey, pagerViewRef]);
14584
+ }, [selectedTabIndex, pagerViewRef]);
14580
14585
  return /*#__PURE__*/React.createElement(TabContainer, {
14581
14586
  style: containerStyle,
14582
14587
  testID: componentTestID
@@ -14595,8 +14600,8 @@ var ScrollableTab = /*#__PURE__*/forwardRef(function (_ref2, ref) {
14595
14600
  onScrollToIndexFailed: function onScrollToIndexFailed(_ref3) {
14596
14601
  var index = _ref3.index;
14597
14602
  setTimeout(function () {
14598
- var _flatListRef$current3;
14599
- return (_flatListRef$current3 = flatListRef.current) === null || _flatListRef$current3 === void 0 ? void 0 : _flatListRef$current3.scrollToIndex({
14603
+ var _flatListRef$current2;
14604
+ return (_flatListRef$current2 = flatListRef.current) === null || _flatListRef$current2 === void 0 ? void 0 : _flatListRef$current2.scrollToIndex({
14600
14605
  index: index,
14601
14606
  viewPosition: 0.5
14602
14607
  });
@@ -14652,7 +14657,7 @@ var ScrollableTab = /*#__PURE__*/forwardRef(function (_ref2, ref) {
14652
14657
  onPageSelected: function onPageSelected(e) {
14653
14658
  var index = e.nativeEvent.position;
14654
14659
  var selectedItem = tabs[index];
14655
- if (selectedItem && selectedItem.key !== selectedTabKey) {
14660
+ if (selectedItem) {
14656
14661
  onTabPress(selectedItem.key);
14657
14662
  }
14658
14663
  },
@@ -14672,7 +14677,7 @@ var ScrollableTab = /*#__PURE__*/forwardRef(function (_ref2, ref) {
14672
14677
  collapsable: false
14673
14678
  }, isLazyScreen ? null : component);
14674
14679
  })));
14675
- });
14680
+ };
14676
14681
 
14677
14682
  var getTabItem = function getTabItem(_ref) {
14678
14683
  var item = _ref.item,
@@ -14833,7 +14838,7 @@ var StyledView = index$a(View)(function (_ref) {
14833
14838
  backgroundColor: backgroundColor
14834
14839
  };
14835
14840
  });
14836
- var StyledText = index$a(Text$1)(function (_ref3) {
14841
+ var StyledText = index$a(Typography.Text)(function (_ref3) {
14837
14842
  var themeIntent = _ref3.themeIntent,
14838
14843
  themeVariant = _ref3.themeVariant,
14839
14844
  theme = _ref3.theme;
package/lib/index.js CHANGED
@@ -1752,6 +1752,16 @@ var getAvatarTheme = function getAvatarTheme(theme) {
1752
1752
  xxxxlarge: theme.space.xlarge * 1.5,
1753
1753
  xxxxxlarge: theme.space.xxlarge * 1.5
1754
1754
  };
1755
+ var lineHeights = {
1756
+ small: theme.lineHeights.large,
1757
+ medium: theme.lineHeights.xlarge,
1758
+ large: theme.lineHeights.xxlarge,
1759
+ xlarge: theme.lineHeights.xxxlarge,
1760
+ xxlarge: theme.lineHeights.medium * 2,
1761
+ xxxlarge: theme.lineHeights.large * 1.5,
1762
+ xxxxlarge: theme.lineHeights.xlarge * 1.5,
1763
+ xxxxxlarge: theme.lineHeights.xxlarge * 1.5
1764
+ };
1755
1765
  var radii = {
1756
1766
  rounded: theme.radii.rounded
1757
1767
  };
@@ -1760,7 +1770,8 @@ var getAvatarTheme = function getAvatarTheme(theme) {
1760
1770
  sizes: sizes,
1761
1771
  radii: radii,
1762
1772
  fonts: fonts,
1763
- fontSizes: fontSizes
1773
+ fontSizes: fontSizes,
1774
+ lineHeights: lineHeights
1764
1775
  };
1765
1776
  };
1766
1777
 
@@ -1780,6 +1791,9 @@ var getBadgeTheme = function getBadgeTheme(theme) {
1780
1791
  var fontSizes = {
1781
1792
  "default": theme.fontSizes.small
1782
1793
  };
1794
+ var lineHeights = {
1795
+ "default": theme.lineHeights.small
1796
+ };
1783
1797
  var sizes = {
1784
1798
  height: theme.fontSizes.small + theme.sizes.small,
1785
1799
  minWidth: theme.fontSizes.small + theme.sizes.small,
@@ -1796,7 +1810,8 @@ var getBadgeTheme = function getBadgeTheme(theme) {
1796
1810
  fonts: fonts,
1797
1811
  fontSizes: fontSizes,
1798
1812
  sizes: sizes,
1799
- space: space
1813
+ space: space,
1814
+ lineHeights: lineHeights
1800
1815
  };
1801
1816
  };
1802
1817
 
@@ -2366,6 +2381,10 @@ var getPinInputTheme = function getPinInputTheme(theme) {
2366
2381
  cellText: theme.fontSizes.xxxxlarge,
2367
2382
  errorMessage: theme.fontSizes.small
2368
2383
  };
2384
+ var lineHeights = {
2385
+ cellText: theme.lineHeights.xxxxlarge,
2386
+ errorMessage: theme.fontSizes.small
2387
+ };
2369
2388
  var sizes = {
2370
2389
  cellWidth: theme.sizes.xxlarge,
2371
2390
  cellHeight: theme.sizes.xxxlarge,
@@ -2381,6 +2400,7 @@ var getPinInputTheme = function getPinInputTheme(theme) {
2381
2400
  };
2382
2401
  return {
2383
2402
  borderWidths: borderWidths,
2403
+ lineHeights: lineHeights,
2384
2404
  colors: colors,
2385
2405
  fonts: fonts,
2386
2406
  fontSizes: fontSizes,
@@ -5987,7 +6007,7 @@ var StyledText$3 = index$a(reactNative.Text)(function (_ref) {
5987
6007
  });
5988
6008
  });
5989
6009
 
5990
- var _excluded$p = ["children", "fontSize", "fontWeight", "intent", "typeface"];
6010
+ var _excluded$p = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
5991
6011
  var Text = function Text(_ref) {
5992
6012
  var children = _ref.children,
5993
6013
  _ref$fontSize = _ref.fontSize,
@@ -5998,12 +6018,15 @@ var Text = function Text(_ref) {
5998
6018
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
5999
6019
  _ref$typeface = _ref.typeface,
6000
6020
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
6021
+ _ref$allowFontScaling = _ref.allowFontScaling,
6022
+ allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
6001
6023
  nativeProps = _objectWithoutProperties(_ref, _excluded$p);
6002
6024
  return /*#__PURE__*/React__default["default"].createElement(StyledText$3, _extends$1({}, nativeProps, {
6003
6025
  themeFontSize: fontSize,
6004
6026
  themeFontWeight: fontWeight,
6005
6027
  themeIntent: intent,
6006
- themeTypeface: typeface
6028
+ themeTypeface: typeface,
6029
+ allowFontScaling: allowFontScaling
6007
6030
  }), children);
6008
6031
  };
6009
6032
 
@@ -6837,12 +6860,15 @@ var StyledTextWrapper$1 = index$a(reactNative.View)(function () {
6837
6860
  height: '100%'
6838
6861
  };
6839
6862
  });
6840
- var StyledText$2 = index$a(reactNative.Text)(function (_ref2) {
6863
+ var StyledText$2 = index$a(Typography.Text)(function (_ref2) {
6841
6864
  var themeSize = _ref2.themeSize,
6842
6865
  theme = _ref2.theme;
6843
6866
  return {
6844
6867
  fontFamily: theme.__hd__.avatar.fonts["default"],
6845
6868
  fontSize: theme.__hd__.avatar.fontSizes[themeSize],
6869
+ lineHeight: 0,
6870
+ textAlignVertical: 'center',
6871
+ textAlign: 'center',
6846
6872
  color: theme.__hd__.avatar.colors.text,
6847
6873
  overflow: 'hidden'
6848
6874
  };
@@ -6991,11 +7017,12 @@ var StyledView$2 = index$a(reactNative.Animated.View)(function (_ref) {
6991
7017
  paddingHorizontal: themePadding === 'wideContent' ? theme.__hd__.badge.space.horizontalPadding : undefined
6992
7018
  };
6993
7019
  });
6994
- var StyledText$1 = index$a(reactNative.Text)(function (_ref2) {
7020
+ var StyledText$1 = index$a(Typography.Text)(function (_ref2) {
6995
7021
  var theme = _ref2.theme;
6996
7022
  return {
6997
7023
  fontFamily: theme.__hd__.badge.fonts["default"],
6998
7024
  fontSize: theme.__hd__.badge.fontSizes["default"],
7025
+ lineHeight: theme.__hd__.badge.lineHeights["default"],
6999
7026
  color: theme.__hd__.badge.colors.text,
7000
7027
  includeFontPadding: false,
7001
7028
  textAlignVertical: 'center',
@@ -11545,7 +11572,7 @@ var StyledErrorAndMaxLengthContainer = index$a(reactNative.View)(function () {
11545
11572
  };
11546
11573
  });
11547
11574
 
11548
- var _excluded$a = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "helpText", "value", "defaultValue", "renderInputValue"];
11575
+ var _excluded$a = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling"];
11549
11576
  var getVariant$1 = function getVariant(_ref) {
11550
11577
  var disabled = _ref.disabled,
11551
11578
  error = _ref.error,
@@ -11591,6 +11618,8 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
11591
11618
  value = _ref2.value,
11592
11619
  defaultValue = _ref2.defaultValue,
11593
11620
  renderInputValue = _ref2.renderInputValue,
11621
+ _ref2$allowFontScalin = _ref2.allowFontScaling,
11622
+ allowFontScaling = _ref2$allowFontScalin === void 0 ? false : _ref2$allowFontScalin,
11594
11623
  nativeProps = _objectWithoutProperties(_ref2, _excluded$a);
11595
11624
  var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
11596
11625
  var isEmptyValue = displayText.length === 0;
@@ -11679,7 +11708,8 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
11679
11708
  },
11680
11709
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
11681
11710
  // @ts-ignore
11682
- accessibilityLabelledBy: accessibilityLabelledBy
11711
+ accessibilityLabelledBy: accessibilityLabelledBy,
11712
+ allowFontScaling: allowFontScaling
11683
11713
  }, nativeProps), {}, {
11684
11714
  onFocus: function onFocus(event) {
11685
11715
  var _nativeProps$onFocus;
@@ -12216,7 +12246,7 @@ var StyledWrapper$5 = index$a(reactNative.View)(function (_ref) {
12216
12246
  padding: theme.__hd__.empty.space.wrapperPadding
12217
12247
  };
12218
12248
  });
12219
- var StyledTitle = index$a(reactNative.Text)(function (_ref2) {
12249
+ var StyledTitle = index$a(Typography.Text)(function (_ref2) {
12220
12250
  var theme = _ref2.theme,
12221
12251
  themeVariant = _ref2.themeVariant;
12222
12252
  return {
@@ -12227,7 +12257,7 @@ var StyledTitle = index$a(reactNative.Text)(function (_ref2) {
12227
12257
  color: themeVariant === 'dark' ? theme.__hd__.empty.colors.invertedText : theme.__hd__.empty.colors.text
12228
12258
  };
12229
12259
  });
12230
- var StyledDescription = index$a(reactNative.Text)(function (_ref3) {
12260
+ var StyledDescription = index$a(Typography.Text)(function (_ref3) {
12231
12261
  var theme = _ref3.theme,
12232
12262
  themeVariant = _ref3.themeVariant;
12233
12263
  return {
@@ -12284,7 +12314,7 @@ var StyledFABIcon = index$a(Icon)(function (_ref2) {
12284
12314
  textAlign: 'center'
12285
12315
  };
12286
12316
  });
12287
- var StyledFABText = index$a(reactNative.Text)(function (_ref3) {
12317
+ var StyledFABText = index$a(Typography.Text)(function (_ref3) {
12288
12318
  var theme = _ref3.theme;
12289
12319
  return {
12290
12320
  fontFamily: theme.__hd__.fab.fonts.title,
@@ -12767,12 +12797,13 @@ var StyledCell = index$a(reactNative.View)(function (_ref) {
12767
12797
  borderColor: theme.__hd__.pinInput.colors[themeState]
12768
12798
  };
12769
12799
  });
12770
- var StyledCellText = index$a(reactNative.Text)(function (_ref2) {
12800
+ var StyledCellText = index$a(Typography.Text)(function (_ref2) {
12771
12801
  var theme = _ref2.theme,
12772
12802
  themeState = _ref2.themeState;
12773
12803
  return {
12774
12804
  fontFamily: theme.__hd__.pinInput.fonts.cellText,
12775
12805
  fontSize: theme.__hd__.pinInput.fontSizes.cellText,
12806
+ lineHeight: theme.__hd__.pinInput.lineHeights.cellText,
12776
12807
  color: theme.__hd__.pinInput.colors[themeState]
12777
12808
  };
12778
12809
  });
@@ -12823,10 +12854,11 @@ var StyledErrorContainer = index$a(reactNative.View)(function (_ref7) {
12823
12854
  var theme = _ref7.theme;
12824
12855
  return {
12825
12856
  flexDirection: 'row',
12826
- paddingTop: theme.__hd__.pinInput.space.errorMessagePadding
12857
+ paddingTop: theme.__hd__.pinInput.space.errorMessagePadding,
12858
+ alignItems: 'center'
12827
12859
  };
12828
12860
  });
12829
- var StyledErrorMessage = index$a(reactNative.Text)(function (_ref8) {
12861
+ var StyledErrorMessage = index$a(Typography.Text)(function (_ref8) {
12830
12862
  var theme = _ref8.theme;
12831
12863
  return {
12832
12864
  fontFamily: theme.__hd__.pinInput.fonts.errorMessage,
@@ -14525,9 +14557,8 @@ var getTabItem$1 = function getTabItem(_ref) {
14525
14557
  color: color
14526
14558
  });
14527
14559
  };
14528
- var ScrollableTab = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
14529
- var _ref2$onTabPress = _ref2.onTabPress,
14530
- onTabPress = _ref2$onTabPress === void 0 ? noop : _ref2$onTabPress,
14560
+ var ScrollableTab = function ScrollableTab(_ref2) {
14561
+ var onTabPress = _ref2.onTabPress,
14531
14562
  selectedTabKey = _ref2.selectedTabKey,
14532
14563
  tabs = _ref2.tabs,
14533
14564
  containerStyle = _ref2.containerStyle,
@@ -14549,46 +14580,20 @@ var ScrollableTab = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
14549
14580
  var tabsAnims = useAnimatedValueArray(tabs.map(function (_, i) {
14550
14581
  return i === selectedTabIndex ? 1 : 0;
14551
14582
  }));
14552
- React__default["default"].useImperativeHandle(ref, function () {
14553
- return {
14554
- selectTabKey: function selectTabKey(tabKey) {
14555
- var index = tabs.findIndex(function (item) {
14556
- return item.key === tabKey;
14557
- });
14558
- if (index !== -1) {
14559
- var _flatListRef$current, _pagerViewRef$current;
14560
- (_flatListRef$current = flatListRef.current) === null || _flatListRef$current === void 0 ? void 0 : _flatListRef$current.scrollToIndex({
14561
- index: index,
14562
- viewPosition: 0.5
14563
- });
14564
- (_pagerViewRef$current = pagerViewRef.current) === null || _pagerViewRef$current === void 0 ? void 0 : _pagerViewRef$current.setPage(index);
14565
- if (onTabPress) {
14566
- onTabPress(tabKey);
14567
- }
14568
- }
14569
- },
14570
- getFlatListRef: function getFlatListRef() {
14571
- return flatListRef.current;
14572
- },
14573
- getPagerViewRef: function getPagerViewRef() {
14574
- return pagerViewRef.current;
14575
- }
14576
- };
14577
- }, [pagerViewRef, flatListRef, tabs]);
14578
14583
  React__default["default"].useEffect(function () {
14579
14584
  var timeoutHandle = null;
14580
14585
  if (selectedTabIndex !== -1) {
14581
- var _flatListRef$current2;
14582
- (_flatListRef$current2 = flatListRef.current) === null || _flatListRef$current2 === void 0 ? void 0 : _flatListRef$current2.scrollToIndex({
14586
+ var _flatListRef$current;
14587
+ (_flatListRef$current = flatListRef.current) === null || _flatListRef$current === void 0 ? void 0 : _flatListRef$current.scrollToIndex({
14583
14588
  index: selectedTabIndex,
14584
14589
  viewPosition: 0.5
14585
14590
  });
14586
14591
  // If the selected tab is changed too quickly, the setPage is crashed and not work anymore
14587
14592
  // We apply throttle to prevent this issue https://github.com/Thinkei/hero-design/issues/1715
14588
14593
  timeoutHandle = setTimeout(function () {
14589
- var _pagerViewRef$current2;
14594
+ var _pagerViewRef$current;
14590
14595
  // use no animation to prevent unexpected behavior if users select tab too quickly
14591
- (_pagerViewRef$current2 = pagerViewRef.current) === null || _pagerViewRef$current2 === void 0 ? void 0 : _pagerViewRef$current2.setPageWithoutAnimation(selectedTabIndex);
14596
+ (_pagerViewRef$current = pagerViewRef.current) === null || _pagerViewRef$current === void 0 ? void 0 : _pagerViewRef$current.setPageWithoutAnimation(selectedTabIndex);
14592
14597
  }, 200);
14593
14598
  }
14594
14599
  var animation = reactNative.Animated.parallel(_toConsumableArray(tabs.map(function (_, i) {
@@ -14605,7 +14610,7 @@ var ScrollableTab = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
14605
14610
  clearTimeout(timeoutHandle);
14606
14611
  }
14607
14612
  };
14608
- }, [selectedTabIndex, selectedTabKey, pagerViewRef]);
14613
+ }, [selectedTabIndex, pagerViewRef]);
14609
14614
  return /*#__PURE__*/React__default["default"].createElement(TabContainer, {
14610
14615
  style: containerStyle,
14611
14616
  testID: componentTestID
@@ -14624,8 +14629,8 @@ var ScrollableTab = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
14624
14629
  onScrollToIndexFailed: function onScrollToIndexFailed(_ref3) {
14625
14630
  var index = _ref3.index;
14626
14631
  setTimeout(function () {
14627
- var _flatListRef$current3;
14628
- return (_flatListRef$current3 = flatListRef.current) === null || _flatListRef$current3 === void 0 ? void 0 : _flatListRef$current3.scrollToIndex({
14632
+ var _flatListRef$current2;
14633
+ return (_flatListRef$current2 = flatListRef.current) === null || _flatListRef$current2 === void 0 ? void 0 : _flatListRef$current2.scrollToIndex({
14629
14634
  index: index,
14630
14635
  viewPosition: 0.5
14631
14636
  });
@@ -14681,7 +14686,7 @@ var ScrollableTab = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
14681
14686
  onPageSelected: function onPageSelected(e) {
14682
14687
  var index = e.nativeEvent.position;
14683
14688
  var selectedItem = tabs[index];
14684
- if (selectedItem && selectedItem.key !== selectedTabKey) {
14689
+ if (selectedItem) {
14685
14690
  onTabPress(selectedItem.key);
14686
14691
  }
14687
14692
  },
@@ -14701,7 +14706,7 @@ var ScrollableTab = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
14701
14706
  collapsable: false
14702
14707
  }, isLazyScreen ? null : component);
14703
14708
  })));
14704
- });
14709
+ };
14705
14710
 
14706
14711
  var getTabItem = function getTabItem(_ref) {
14707
14712
  var item = _ref.item,
@@ -14862,7 +14867,7 @@ var StyledView = index$a(reactNative.View)(function (_ref) {
14862
14867
  backgroundColor: backgroundColor
14863
14868
  };
14864
14869
  });
14865
- var StyledText = index$a(reactNative.Text)(function (_ref3) {
14870
+ var StyledText = index$a(Typography.Text)(function (_ref3) {
14866
14871
  var themeIntent = _ref3.themeIntent,
14867
14872
  themeVariant = _ref3.themeVariant,
14868
14873
  theme = _ref3.theme;