@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,5 +1,7 @@
1
- import { View, Image, TouchableOpacity, Text } from 'react-native';
1
+ import { View, Image, TouchableOpacity } from 'react-native';
2
2
  import styled from '@emotion/native';
3
+ import Typography from '../Typography';
4
+ import { TextProps } from '../Typography/Text';
3
5
 
4
6
  type ThemeSize =
5
7
  | 'small'
@@ -31,11 +33,16 @@ const StyledTextWrapper = styled(View)(() => ({
31
33
  height: '100%',
32
34
  }));
33
35
 
34
- const StyledText = styled(Text)<{
35
- themeSize: ThemeSize;
36
- }>(({ themeSize, theme }) => ({
36
+ const StyledText = styled(Typography.Text)<
37
+ TextProps & {
38
+ themeSize: ThemeSize;
39
+ }
40
+ >(({ themeSize, theme }) => ({
37
41
  fontFamily: theme.__hd__.avatar.fonts.default,
38
42
  fontSize: theme.__hd__.avatar.fontSizes[themeSize],
43
+ lineHeight: 0, // auto center
44
+ textAlignVertical: 'center',
45
+ textAlign: 'center',
39
46
  color: theme.__hd__.avatar.colors.text,
40
47
  overflow: 'hidden',
41
48
  }));
@@ -47,18 +47,35 @@ exports[`StyledPressable renders correct style 1`] = `
47
47
 
48
48
  exports[`StyledText renders correct style 1`] = `
49
49
  <Text
50
+ allowFontScaling={false}
50
51
  style={
51
52
  Array [
52
53
  Object {
53
- "color": "#ffffff",
54
+ "color": "#001f23",
54
55
  "fontFamily": "BeVietnamPro-Regular",
55
- "fontSize": 16,
56
- "overflow": "hidden",
56
+ "fontSize": 14,
57
+ "letterSpacing": 0.42,
58
+ "lineHeight": 22,
57
59
  },
58
- undefined,
60
+ Array [
61
+ Object {
62
+ "color": "#ffffff",
63
+ "fontFamily": "BeVietnamPro-Regular",
64
+ "fontSize": 16,
65
+ "lineHeight": 0,
66
+ "overflow": "hidden",
67
+ "textAlign": "center",
68
+ "textAlignVertical": "center",
69
+ },
70
+ undefined,
71
+ ],
59
72
  ]
60
73
  }
74
+ themeFontSize="medium"
75
+ themeFontWeight="regular"
76
+ themeIntent="body"
61
77
  themeSize="small"
78
+ themeTypeface="neutral"
62
79
  >
63
80
  MD
64
81
  </Text>
@@ -43,18 +43,35 @@ exports[`Avatar fallbacks to title when there image failed to load 1`] = `
43
43
  }
44
44
  >
45
45
  <Text
46
+ allowFontScaling={false}
46
47
  style={
47
48
  Array [
48
49
  Object {
49
- "color": "#ffffff",
50
+ "color": "#001f23",
50
51
  "fontFamily": "BeVietnamPro-Regular",
51
- "fontSize": 16,
52
- "overflow": "hidden",
52
+ "fontSize": 14,
53
+ "letterSpacing": 0.42,
54
+ "lineHeight": 22,
53
55
  },
54
- undefined,
56
+ Array [
57
+ Object {
58
+ "color": "#ffffff",
59
+ "fontFamily": "BeVietnamPro-Regular",
60
+ "fontSize": 16,
61
+ "lineHeight": 0,
62
+ "overflow": "hidden",
63
+ "textAlign": "center",
64
+ "textAlignVertical": "center",
65
+ },
66
+ undefined,
67
+ ],
55
68
  ]
56
69
  }
70
+ themeFontSize="medium"
71
+ themeFontWeight="regular"
72
+ themeIntent="body"
57
73
  themeSize="small"
74
+ themeTypeface="neutral"
58
75
  >
59
76
  TT
60
77
  </Text>
@@ -180,18 +197,35 @@ exports[`Avatar shows title when there is no source 1`] = `
180
197
  }
181
198
  >
182
199
  <Text
200
+ allowFontScaling={false}
183
201
  style={
184
202
  Array [
185
203
  Object {
186
- "color": "#ffffff",
204
+ "color": "#001f23",
187
205
  "fontFamily": "BeVietnamPro-Regular",
188
- "fontSize": 16,
189
- "overflow": "hidden",
206
+ "fontSize": 14,
207
+ "letterSpacing": 0.42,
208
+ "lineHeight": 22,
190
209
  },
191
- undefined,
210
+ Array [
211
+ Object {
212
+ "color": "#ffffff",
213
+ "fontFamily": "BeVietnamPro-Regular",
214
+ "fontSize": 16,
215
+ "lineHeight": 0,
216
+ "overflow": "hidden",
217
+ "textAlign": "center",
218
+ "textAlignVertical": "center",
219
+ },
220
+ undefined,
221
+ ],
192
222
  ]
193
223
  }
224
+ themeFontSize="medium"
225
+ themeFontWeight="regular"
226
+ themeIntent="body"
194
227
  themeSize="small"
228
+ themeTypeface="neutral"
195
229
  >
196
230
  TT
197
231
  </Text>
@@ -1,5 +1,6 @@
1
- import { Animated, Text } from 'react-native';
1
+ import { Animated } from 'react-native';
2
2
  import styled from '@emotion/native';
3
+ import Typography from '../Typography';
3
4
 
4
5
  type ThemeIntent =
5
6
  | 'primary'
@@ -27,9 +28,10 @@ const StyledView = styled(Animated.View)<{
27
28
  : undefined,
28
29
  }));
29
30
 
30
- const StyledText = styled(Text)(({ theme }) => ({
31
+ const StyledText = styled(Typography.Text)(({ theme }) => ({
31
32
  fontFamily: theme.__hd__.badge.fonts.default,
32
33
  fontSize: theme.__hd__.badge.fontSizes.default,
34
+ lineHeight: theme.__hd__.badge.lineHeights.default,
33
35
  color: theme.__hd__.badge.colors.text,
34
36
  includeFontPadding: false,
35
37
  textAlignVertical: 'center',
@@ -24,19 +24,34 @@ exports[`Badge has danger style when intent is danger 1`] = `
24
24
  themePadding="wideContent"
25
25
  >
26
26
  <Text
27
+ allowFontScaling={false}
27
28
  style={
28
29
  Array [
29
30
  Object {
30
- "color": "#ffffff",
31
- "fontFamily": "BeVietnamPro-SemiBold",
32
- "fontSize": 12,
33
- "includeFontPadding": false,
34
- "textAlign": "center",
35
- "textAlignVertical": "center",
31
+ "color": "#001f23",
32
+ "fontFamily": "BeVietnamPro-Regular",
33
+ "fontSize": 14,
34
+ "letterSpacing": 0.42,
35
+ "lineHeight": 22,
36
36
  },
37
- undefined,
37
+ Array [
38
+ Object {
39
+ "color": "#ffffff",
40
+ "fontFamily": "BeVietnamPro-SemiBold",
41
+ "fontSize": 12,
42
+ "includeFontPadding": false,
43
+ "lineHeight": 20,
44
+ "textAlign": "center",
45
+ "textAlignVertical": "center",
46
+ },
47
+ undefined,
48
+ ],
38
49
  ]
39
50
  }
51
+ themeFontSize="medium"
52
+ themeFontWeight="regular"
53
+ themeIntent="body"
54
+ themeTypeface="neutral"
40
55
  >
41
56
  DECLINED
42
57
  </Text>
@@ -67,19 +82,34 @@ exports[`Badge has info style when intent is info 1`] = `
67
82
  themePadding="wideContent"
68
83
  >
69
84
  <Text
85
+ allowFontScaling={false}
70
86
  style={
71
87
  Array [
72
88
  Object {
73
- "color": "#ffffff",
74
- "fontFamily": "BeVietnamPro-SemiBold",
75
- "fontSize": 12,
76
- "includeFontPadding": false,
77
- "textAlign": "center",
78
- "textAlignVertical": "center",
89
+ "color": "#001f23",
90
+ "fontFamily": "BeVietnamPro-Regular",
91
+ "fontSize": 14,
92
+ "letterSpacing": 0.42,
93
+ "lineHeight": 22,
79
94
  },
80
- undefined,
95
+ Array [
96
+ Object {
97
+ "color": "#ffffff",
98
+ "fontFamily": "BeVietnamPro-SemiBold",
99
+ "fontSize": 12,
100
+ "includeFontPadding": false,
101
+ "lineHeight": 20,
102
+ "textAlign": "center",
103
+ "textAlignVertical": "center",
104
+ },
105
+ undefined,
106
+ ],
81
107
  ]
82
108
  }
109
+ themeFontSize="medium"
110
+ themeFontWeight="regular"
111
+ themeIntent="body"
112
+ themeTypeface="neutral"
83
113
  >
84
114
  SUBMITTED
85
115
  </Text>
@@ -110,19 +140,34 @@ exports[`Badge has info style when intent is primary 1`] = `
110
140
  themePadding="wideContent"
111
141
  >
112
142
  <Text
143
+ allowFontScaling={false}
113
144
  style={
114
145
  Array [
115
146
  Object {
116
- "color": "#ffffff",
117
- "fontFamily": "BeVietnamPro-SemiBold",
118
- "fontSize": 12,
119
- "includeFontPadding": false,
120
- "textAlign": "center",
121
- "textAlignVertical": "center",
147
+ "color": "#001f23",
148
+ "fontFamily": "BeVietnamPro-Regular",
149
+ "fontSize": 14,
150
+ "letterSpacing": 0.42,
151
+ "lineHeight": 22,
122
152
  },
123
- undefined,
153
+ Array [
154
+ Object {
155
+ "color": "#ffffff",
156
+ "fontFamily": "BeVietnamPro-SemiBold",
157
+ "fontSize": 12,
158
+ "includeFontPadding": false,
159
+ "lineHeight": 20,
160
+ "textAlign": "center",
161
+ "textAlignVertical": "center",
162
+ },
163
+ undefined,
164
+ ],
124
165
  ]
125
166
  }
167
+ themeFontSize="medium"
168
+ themeFontWeight="regular"
169
+ themeIntent="body"
170
+ themeTypeface="neutral"
126
171
  >
127
172
  PRIMARY
128
173
  </Text>
@@ -153,19 +198,34 @@ exports[`Badge has success style when intent is success 1`] = `
153
198
  themePadding="wideContent"
154
199
  >
155
200
  <Text
201
+ allowFontScaling={false}
156
202
  style={
157
203
  Array [
158
204
  Object {
159
- "color": "#ffffff",
160
- "fontFamily": "BeVietnamPro-SemiBold",
161
- "fontSize": 12,
162
- "includeFontPadding": false,
163
- "textAlign": "center",
164
- "textAlignVertical": "center",
205
+ "color": "#001f23",
206
+ "fontFamily": "BeVietnamPro-Regular",
207
+ "fontSize": 14,
208
+ "letterSpacing": 0.42,
209
+ "lineHeight": 22,
165
210
  },
166
- undefined,
211
+ Array [
212
+ Object {
213
+ "color": "#ffffff",
214
+ "fontFamily": "BeVietnamPro-SemiBold",
215
+ "fontSize": 12,
216
+ "includeFontPadding": false,
217
+ "lineHeight": 20,
218
+ "textAlign": "center",
219
+ "textAlignVertical": "center",
220
+ },
221
+ undefined,
222
+ ],
167
223
  ]
168
224
  }
225
+ themeFontSize="medium"
226
+ themeFontWeight="regular"
227
+ themeIntent="body"
228
+ themeTypeface="neutral"
169
229
  >
170
230
  APPROVED
171
231
  </Text>
@@ -196,19 +256,34 @@ exports[`Badge has warning style when intent is warning 1`] = `
196
256
  themePadding="wideContent"
197
257
  >
198
258
  <Text
259
+ allowFontScaling={false}
199
260
  style={
200
261
  Array [
201
262
  Object {
202
- "color": "#ffffff",
203
- "fontFamily": "BeVietnamPro-SemiBold",
204
- "fontSize": 12,
205
- "includeFontPadding": false,
206
- "textAlign": "center",
207
- "textAlignVertical": "center",
263
+ "color": "#001f23",
264
+ "fontFamily": "BeVietnamPro-Regular",
265
+ "fontSize": 14,
266
+ "letterSpacing": 0.42,
267
+ "lineHeight": 22,
208
268
  },
209
- undefined,
269
+ Array [
270
+ Object {
271
+ "color": "#ffffff",
272
+ "fontFamily": "BeVietnamPro-SemiBold",
273
+ "fontSize": 12,
274
+ "includeFontPadding": false,
275
+ "lineHeight": 20,
276
+ "textAlign": "center",
277
+ "textAlignVertical": "center",
278
+ },
279
+ undefined,
280
+ ],
210
281
  ]
211
282
  }
283
+ themeFontSize="medium"
284
+ themeFontWeight="regular"
285
+ themeIntent="body"
286
+ themeTypeface="neutral"
212
287
  >
213
288
  PENDING
214
289
  </Text>
@@ -240,19 +315,34 @@ exports[`Badge renders correctly with custom props 1`] = `
240
315
  themePadding="wideContent"
241
316
  >
242
317
  <Text
318
+ allowFontScaling={false}
243
319
  style={
244
320
  Array [
245
321
  Object {
246
- "color": "#ffffff",
247
- "fontFamily": "BeVietnamPro-SemiBold",
248
- "fontSize": 12,
249
- "includeFontPadding": false,
250
- "textAlign": "center",
251
- "textAlignVertical": "center",
322
+ "color": "#001f23",
323
+ "fontFamily": "BeVietnamPro-Regular",
324
+ "fontSize": 14,
325
+ "letterSpacing": 0.42,
326
+ "lineHeight": 22,
252
327
  },
253
- undefined,
328
+ Array [
329
+ Object {
330
+ "color": "#ffffff",
331
+ "fontFamily": "BeVietnamPro-SemiBold",
332
+ "fontSize": 12,
333
+ "includeFontPadding": false,
334
+ "lineHeight": 20,
335
+ "textAlign": "center",
336
+ "textAlignVertical": "center",
337
+ },
338
+ undefined,
339
+ ],
254
340
  ]
255
341
  }
342
+ themeFontSize="medium"
343
+ themeFontWeight="regular"
344
+ themeIntent="body"
345
+ themeTypeface="neutral"
256
346
  >
257
347
  50+
258
348
  </Text>
@@ -44,6 +44,7 @@ exports[`Status Badge renders correctly 1`] = `
44
44
  exports[`Status Badge renders correctly with intent 1`] = `
45
45
  <View>
46
46
  <Text
47
+ allowFontScaling={false}
47
48
  style={
48
49
  Array [
49
50
  Object {
@@ -134,6 +134,7 @@ exports[`BottomNavigation renders correctly 1`] = `
134
134
  themeSize="medium"
135
135
  />
136
136
  <Text
137
+ allowFontScaling={false}
137
138
  numberOfLines={1}
138
139
  style={
139
140
  Array [
@@ -196,6 +197,7 @@ exports[`BottomNavigation renders correctly 1`] = `
196
197
  themeSize="medium"
197
198
  />
198
199
  <Text
200
+ allowFontScaling={false}
199
201
  numberOfLines={1}
200
202
  style={
201
203
  Array [
@@ -258,6 +260,7 @@ exports[`BottomNavigation renders correctly 1`] = `
258
260
  themeSize="medium"
259
261
  />
260
262
  <Text
263
+ allowFontScaling={false}
261
264
  numberOfLines={1}
262
265
  style={
263
266
  Array [
@@ -320,6 +323,7 @@ exports[`BottomNavigation renders correctly 1`] = `
320
323
  themeSize="medium"
321
324
  />
322
325
  <Text
326
+ allowFontScaling={false}
323
327
  numberOfLines={1}
324
328
  style={
325
329
  Array [
@@ -136,6 +136,7 @@ exports[`BottomSheet renders correctly with open state 1`] = `
136
136
  }
137
137
  >
138
138
  <Text
139
+ allowFontScaling={false}
139
140
  style={
140
141
  Array [
141
142
  Object {
@@ -53,6 +53,7 @@ exports[`UtilityButton snapshot has intent primary style 1`] = `
53
53
  />
54
54
  </View>
55
55
  <Text
56
+ allowFontScaling={false}
56
57
  style={
57
58
  Array [
58
59
  Object {
@@ -136,6 +137,7 @@ exports[`UtilityButton snapshot has intent text style 1`] = `
136
137
  />
137
138
  </View>
138
139
  <Text
140
+ allowFontScaling={false}
139
141
  style={
140
142
  Array [
141
143
  Object {
@@ -32,6 +32,7 @@ exports[`Button renders correctly 1`] = `
32
32
  }
33
33
  >
34
34
  <Text
35
+ allowFontScaling={false}
35
36
  disabled={false}
36
37
  ellipsizeMode="tail"
37
38
  numberOfLines={1}
@@ -246,6 +247,7 @@ exports[`Button renders correctly 3`] = `
246
247
  }
247
248
  >
248
249
  <Text
250
+ allowFontScaling={false}
249
251
  disabled={true}
250
252
  ellipsizeMode="tail"
251
253
  numberOfLines={1}
@@ -316,6 +318,7 @@ exports[`Button renders correctly 4`] = `
316
318
  }
317
319
  >
318
320
  <Text
321
+ allowFontScaling={false}
319
322
  disabled={false}
320
323
  ellipsizeMode="tail"
321
324
  numberOfLines={1}
@@ -534,6 +537,7 @@ exports[`Button renders correctly 6`] = `
534
537
  }
535
538
  >
536
539
  <Text
540
+ allowFontScaling={false}
537
541
  disabled={true}
538
542
  ellipsizeMode="tail"
539
543
  numberOfLines={1}
@@ -602,6 +606,7 @@ exports[`Button renders correctly 7`] = `
602
606
  }
603
607
  >
604
608
  <Text
609
+ allowFontScaling={false}
605
610
  disabled={false}
606
611
  ellipsizeMode="tail"
607
612
  numberOfLines={1}
@@ -816,6 +821,7 @@ exports[`Button renders correctly 9`] = `
816
821
  }
817
822
  >
818
823
  <Text
824
+ allowFontScaling={false}
819
825
  disabled={true}
820
826
  ellipsizeMode="tail"
821
827
  numberOfLines={1}
@@ -884,6 +890,7 @@ exports[`Button renders correctly 10`] = `
884
890
  }
885
891
  >
886
892
  <Text
893
+ allowFontScaling={false}
887
894
  disabled={false}
888
895
  ellipsizeMode="tail"
889
896
  numberOfLines={1}
@@ -1098,6 +1105,7 @@ exports[`Button renders correctly 12`] = `
1098
1105
  }
1099
1106
  >
1100
1107
  <Text
1108
+ allowFontScaling={false}
1101
1109
  disabled={true}
1102
1110
  ellipsizeMode="tail"
1103
1111
  numberOfLines={1}
@@ -1166,6 +1174,7 @@ exports[`Button renders correctly 13`] = `
1166
1174
  }
1167
1175
  >
1168
1176
  <Text
1177
+ allowFontScaling={false}
1169
1178
  disabled={false}
1170
1179
  ellipsizeMode="tail"
1171
1180
  numberOfLines={1}
@@ -1380,6 +1389,7 @@ exports[`Button renders correctly 15`] = `
1380
1389
  }
1381
1390
  >
1382
1391
  <Text
1392
+ allowFontScaling={false}
1383
1393
  disabled={true}
1384
1394
  ellipsizeMode="tail"
1385
1395
  numberOfLines={1}
@@ -597,6 +597,7 @@ exports[`StyledButtonIconWrapper has right style 1`] = `
597
597
 
598
598
  exports[`StyledButtonText has filled-danger style 1`] = `
599
599
  <Text
600
+ allowFontScaling={false}
600
601
  style={
601
602
  Array [
602
603
  Object {
@@ -631,6 +632,7 @@ exports[`StyledButtonText has filled-danger style 1`] = `
631
632
 
632
633
  exports[`StyledButtonText has filled-primary style 1`] = `
633
634
  <Text
635
+ allowFontScaling={false}
634
636
  style={
635
637
  Array [
636
638
  Object {
@@ -665,6 +667,7 @@ exports[`StyledButtonText has filled-primary style 1`] = `
665
667
 
666
668
  exports[`StyledButtonText has filled-secondary style 1`] = `
667
669
  <Text
670
+ allowFontScaling={false}
668
671
  style={
669
672
  Array [
670
673
  Object {
@@ -699,6 +702,7 @@ exports[`StyledButtonText has filled-secondary style 1`] = `
699
702
 
700
703
  exports[`StyledButtonText has outlined-danger style 1`] = `
701
704
  <Text
705
+ allowFontScaling={false}
702
706
  style={
703
707
  Array [
704
708
  Object {
@@ -733,6 +737,7 @@ exports[`StyledButtonText has outlined-danger style 1`] = `
733
737
 
734
738
  exports[`StyledButtonText has outlined-primary style 1`] = `
735
739
  <Text
740
+ allowFontScaling={false}
736
741
  style={
737
742
  Array [
738
743
  Object {
@@ -767,6 +772,7 @@ exports[`StyledButtonText has outlined-primary style 1`] = `
767
772
 
768
773
  exports[`StyledButtonText has outlined-secondary style 1`] = `
769
774
  <Text
775
+ allowFontScaling={false}
770
776
  style={
771
777
  Array [
772
778
  Object {
@@ -801,6 +807,7 @@ exports[`StyledButtonText has outlined-secondary style 1`] = `
801
807
 
802
808
  exports[`StyledButtonText has text-danger style 1`] = `
803
809
  <Text
810
+ allowFontScaling={false}
804
811
  style={
805
812
  Array [
806
813
  Object {
@@ -835,6 +842,7 @@ exports[`StyledButtonText has text-danger style 1`] = `
835
842
 
836
843
  exports[`StyledButtonText has text-primary style 1`] = `
837
844
  <Text
845
+ allowFontScaling={false}
838
846
  style={
839
847
  Array [
840
848
  Object {
@@ -869,6 +877,7 @@ exports[`StyledButtonText has text-primary style 1`] = `
869
877
 
870
878
  exports[`StyledButtonText has text-secondary style 1`] = `
871
879
  <Text
880
+ allowFontScaling={false}
872
881
  style={
873
882
  Array [
874
883
  Object {
@@ -903,6 +912,7 @@ exports[`StyledButtonText has text-secondary style 1`] = `
903
912
 
904
913
  exports[`StyledButtonText renders disabled correctly 1`] = `
905
914
  <Text
915
+ allowFontScaling={false}
906
916
  disabled={true}
907
917
  style={
908
918
  Array [
@@ -42,6 +42,7 @@ exports[`CalendarRowItem renders correctly 1`] = `
42
42
  }
43
43
  >
44
44
  <Text
45
+ allowFontScaling={false}
45
46
  style={
46
47
  Array [
47
48
  Object {
@@ -124,6 +125,7 @@ exports[`CalendarRowItem renders correctly 2`] = `
124
125
  }
125
126
  >
126
127
  <Text
128
+ allowFontScaling={false}
127
129
  style={
128
130
  Array [
129
131
  Object {
@@ -206,6 +208,7 @@ exports[`CalendarRowItem renders correctly when is current date 1`] = `
206
208
  }
207
209
  >
208
210
  <Text
211
+ allowFontScaling={false}
209
212
  style={
210
213
  Array [
211
214
  Object {
@@ -288,6 +291,7 @@ exports[`CalendarRowItem renders correctly when selected, and is current date eq
288
291
  }
289
292
  >
290
293
  <Text
294
+ allowFontScaling={false}
291
295
  style={
292
296
  Array [
293
297
  Object {
@@ -370,6 +374,7 @@ exports[`CalendarRowItem renders correctly when selected, and is current date eq
370
374
  }
371
375
  >
372
376
  <Text
377
+ allowFontScaling={false}
373
378
  style={
374
379
  Array [
375
380
  Object {