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

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 (350) hide show
  1. package/.turbo/turbo-build.log +3 -3
  2. package/CHANGELOG.md +9 -3
  3. package/es/index.js +48 -20
  4. package/lib/index.js +48 -20
  5. package/package.json +1 -1
  6. package/src/components/Alert/StyledAlert.tsx +3 -2
  7. package/src/components/AnimatedScroller/AnimatedFAB.tsx +4 -6
  8. package/src/components/AnimatedScroller/AnimatedScrollable.tsx +4 -4
  9. package/src/components/AnimatedScroller/FlatListWithFAB.tsx +4 -3
  10. package/src/components/AnimatedScroller/ScrollViewWithFAB.tsx +4 -3
  11. package/src/components/AnimatedScroller/SectionListWithFAB.tsx +4 -3
  12. package/src/components/AnimatedScroller/__tests__/ScrollablesWithFAB.spec.tsx +4 -4
  13. package/src/components/AppCue/index.tsx +2 -4
  14. package/src/components/AppCue/utils.ts +1 -1
  15. package/src/components/Attachment/index.tsx +4 -3
  16. package/src/components/Avatar/AvatarStack/StyledAvatarStack.tsx +2 -1
  17. package/src/components/Avatar/AvatarStack/index.tsx +4 -3
  18. package/src/components/Avatar/StyledAvatar.tsx +1 -1
  19. package/src/components/Badge/index.tsx +1 -1
  20. package/src/components/Badge/types.ts +2 -2
  21. package/src/components/BottomSheet/ScrollView.tsx +4 -5
  22. package/src/components/BottomSheet/StyledBottomSheet.tsx +1 -2
  23. package/src/components/BottomSheet/index.tsx +4 -7
  24. package/src/components/Box/StyledBox.tsx +4 -3
  25. package/src/components/Box/types.ts +5 -5
  26. package/src/components/Button/Button.tsx +4 -2
  27. package/src/components/Calendar/CalendarRange.tsx +1 -1
  28. package/src/components/Calendar/helpers.ts +1 -1
  29. package/src/components/Calendar/index.tsx +1 -1
  30. package/src/components/Calendar/shared/hooks/useCalendarLayout.ts +1 -1
  31. package/src/components/Carousel/CardCarousel.tsx +2 -4
  32. package/src/components/Carousel/CarouselItem.tsx +1 -1
  33. package/src/components/Carousel/StyledCardCarousel.tsx +6 -3
  34. package/src/components/Carousel/StyledCarousel.tsx +2 -1
  35. package/src/components/Carousel/__tests__/CardCarousel.spec.tsx +4 -2
  36. package/src/components/Carousel/__tests__/index.spec.tsx +2 -2
  37. package/src/components/Carousel/index.tsx +5 -13
  38. package/src/components/Carousel/types.ts +2 -2
  39. package/src/components/Chart/ChartSelect/index.tsx +2 -1
  40. package/src/components/Chart/ColumnChart/ColumnChartContent.tsx +1 -1
  41. package/src/components/Chart/ColumnChart/StackedSegment.tsx +1 -1
  42. package/src/components/Chart/ColumnChart/__tests__/index.spec.tsx +2 -1
  43. package/src/components/Chart/ColumnChart/index.tsx +2 -2
  44. package/src/components/Chart/Line/Line.tsx +1 -1
  45. package/src/components/Chart/Line/__tests__/index.spec.tsx +2 -1
  46. package/src/components/Chart/Line/index.tsx +2 -2
  47. package/src/components/Chart/shared/ChartFrame.tsx +2 -2
  48. package/src/components/Chart/shared/ChartHeader.tsx +2 -2
  49. package/src/components/Chart/shared/EmptyState.tsx +3 -2
  50. package/src/components/Chart/shared/XAxis.tsx +1 -1
  51. package/src/components/Chart/shared/XAxisGrid.tsx +1 -1
  52. package/src/components/Chart/shared/YAxis.tsx +1 -1
  53. package/src/components/Chart/shared/YAxisGrid.tsx +1 -1
  54. package/src/components/Chart/shared/__tests__/ChartFrame.spec.tsx +2 -1
  55. package/src/components/Chart/shared/__tests__/XAXisGrid.spec.tsx +2 -1
  56. package/src/components/Chart/shared/__tests__/XAxis.spec.tsx +2 -1
  57. package/src/components/Chart/shared/__tests__/YAxis.spec.tsx +2 -1
  58. package/src/components/Chart/shared/__tests__/YAxisGrid.spec.tsx +2 -1
  59. package/src/components/Chart/shared/niceNumbers.ts +1 -1
  60. package/src/components/Chip/index.tsx +4 -3
  61. package/src/components/DatePicker/Dialog/AndroidDialog.tsx +3 -4
  62. package/src/components/DatePicker/Dialog/IOSDialog.tsx +3 -4
  63. package/src/components/DatePicker/Dialog/__tests__/AndroidDialog.spec.tsx +2 -1
  64. package/src/components/DatePicker/Dialog/__tests__/IOSDialog.spec.tsx +1 -1
  65. package/src/components/DatePicker/Dialog.tsx +1 -1
  66. package/src/components/DatePicker/hooks/useCalculateDate.tsx +1 -1
  67. package/src/components/DatePicker/hooks/utils.ts +1 -1
  68. package/src/components/DatePicker/index.internal.tsx +2 -2
  69. package/src/components/DatePicker/index.tsx +2 -2
  70. package/src/components/DatePicker/types.ts +1 -1
  71. package/src/components/FAB/ActionGroup/ActionItem.tsx +1 -1
  72. package/src/components/FAB/ActionGroup/__tests__/index.spec.tsx +2 -1
  73. package/src/components/FAB/ActionGroup/index.tsx +1 -1
  74. package/src/components/FAB/FAB.tsx +1 -2
  75. package/src/components/FAB/Pair/__tests__/index.spec.tsx +2 -1
  76. package/src/components/FAB/Pair/index.tsx +2 -2
  77. package/src/components/FAB/StyledFAB.tsx +2 -1
  78. package/src/components/FAB/__tests__/index.spec.tsx +2 -1
  79. package/src/components/FilterTrigger/StyledFilterTrigger.tsx +1 -1
  80. package/src/components/FilterTrigger/__tests__/index.spec.tsx +2 -1
  81. package/src/components/FilterTrigger/index.tsx +1 -1
  82. package/src/components/FloatingIsland/index.tsx +4 -3
  83. package/src/components/HeroDesignProvider/index.tsx +3 -2
  84. package/src/components/List/ListItem.tsx +2 -2
  85. package/src/components/LocaleProvider/context.ts +1 -1
  86. package/src/components/LocaleProvider/index.tsx +1 -1
  87. package/src/components/LocaleProvider/utils.ts +1 -1
  88. package/src/components/MapPin/Focussed.tsx +1 -1
  89. package/src/components/MapPin/index.tsx +2 -2
  90. package/src/components/MapPin/types.ts +2 -2
  91. package/src/components/Modal/index.tsx +1 -1
  92. package/src/components/PageControl/index.tsx +2 -1
  93. package/src/components/PinInput/index.tsx +3 -3
  94. package/src/components/Portal/PortalHost.tsx +1 -1
  95. package/src/components/Portal/contexts.ts +3 -2
  96. package/src/components/Portal/index.tsx +4 -2
  97. package/src/components/Portal/reducer.ts +1 -1
  98. package/src/components/Portal/usePortal.ts +2 -1
  99. package/src/components/Progress/ProgressStep.tsx +1 -1
  100. package/src/components/Radio/Radio.tsx +1 -1
  101. package/src/components/Radio/types.ts +2 -2
  102. package/src/components/Rate/index.tsx +2 -1
  103. package/src/components/RefreshControl/__tests__/index.spec.tsx +2 -1
  104. package/src/components/RefreshControl/index.tsx +2 -4
  105. package/src/components/RichTextEditor/EditorToolbar.tsx +1 -1
  106. package/src/components/RichTextEditor/RichTextEditor.tsx +2 -2
  107. package/src/components/RichTextEditor/utils/events.ts +1 -1
  108. package/src/components/RichTextEditor/utils/rnWebView.ts +1 -1
  109. package/src/components/Search/SearchOneLine.tsx +2 -2
  110. package/src/components/Search/SearchSuffixIcon.tsx +3 -3
  111. package/src/components/Search/SearchTwoLine.tsx +2 -2
  112. package/src/components/Search/StyledSearch.tsx +2 -1
  113. package/src/components/Search/utils.tsx +2 -1
  114. package/src/components/SegmentedControl/SegmentedItem.tsx +3 -2
  115. package/src/components/SegmentedControl/__tests__/index.spec.tsx +2 -1
  116. package/src/components/SegmentedControl/index.tsx +1 -1
  117. package/src/components/Select/BaseOptionList.tsx +2 -1
  118. package/src/components/Select/MultiSelect/OptionList.tsx +2 -1
  119. package/src/components/Select/MultiSelect/index.tsx +2 -1
  120. package/src/components/Select/MultiSelect/utils.ts +1 -1
  121. package/src/components/Select/SingleSelect/OptionList.tsx +3 -6
  122. package/src/components/Select/SingleSelect/index.tsx +2 -1
  123. package/src/components/Select/index.tsx +1 -1
  124. package/src/components/Select/types.ts +1 -1
  125. package/src/components/Skeleton/index.tsx +4 -9
  126. package/src/components/Slider/RangeSlider.tsx +2 -1
  127. package/src/components/Slider/SingleSlider.tsx +1 -1
  128. package/src/components/StatusScreens/Empty/index.tsx +6 -3
  129. package/src/components/StatusScreens/Error/StyledError.tsx +8 -0
  130. package/src/components/StatusScreens/Error/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
  131. package/src/components/StatusScreens/Error/index.tsx +9 -12
  132. package/src/components/StatusScreens/StatusIcon/__tests__/index.spec.tsx +2 -1
  133. package/src/components/StatusScreens/StatusIcon/assets/Add.tsx +1 -1
  134. package/src/components/StatusScreens/StatusIcon/assets/Boom.tsx +1 -1
  135. package/src/components/StatusScreens/StatusIcon/assets/Build.tsx +1 -1
  136. package/src/components/StatusScreens/StatusIcon/assets/Clock.tsx +1 -1
  137. package/src/components/StatusScreens/StatusIcon/assets/Confetti.tsx +1 -1
  138. package/src/components/StatusScreens/StatusIcon/assets/Connections.tsx +1 -1
  139. package/src/components/StatusScreens/StatusIcon/assets/Error.tsx +1 -1
  140. package/src/components/StatusScreens/StatusIcon/assets/Info.tsx +1 -1
  141. package/src/components/StatusScreens/StatusIcon/assets/List.tsx +1 -1
  142. package/src/components/StatusScreens/StatusIcon/assets/Location.tsx +1 -1
  143. package/src/components/StatusScreens/StatusIcon/assets/Lock.tsx +1 -1
  144. package/src/components/StatusScreens/StatusIcon/assets/Merge.tsx +1 -1
  145. package/src/components/StatusScreens/StatusIcon/assets/NoResult.tsx +1 -1
  146. package/src/components/StatusScreens/StatusIcon/assets/Notifications.tsx +1 -1
  147. package/src/components/StatusScreens/StatusIcon/assets/Search.tsx +1 -1
  148. package/src/components/StatusScreens/StatusIcon/assets/Star.tsx +1 -1
  149. package/src/components/StatusScreens/StatusIcon/assets/Success.tsx +1 -1
  150. package/src/components/StatusScreens/StatusIcon/assets/Unlock.tsx +1 -1
  151. package/src/components/StatusScreens/StatusIcon/assets/User.tsx +1 -1
  152. package/src/components/StatusScreens/Success/StyledSuccess.tsx +14 -0
  153. package/src/components/StatusScreens/Success/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  154. package/src/components/StatusScreens/Success/index.tsx +13 -8
  155. package/src/components/Swipeable/SwipeableAction.tsx +5 -3
  156. package/src/components/Swipeable/index.tsx +2 -7
  157. package/src/components/Switch/SelectorSwitch/Option.tsx +2 -1
  158. package/src/components/Switch/SelectorSwitch/index.tsx +3 -10
  159. package/src/components/Switch/index.tsx +2 -1
  160. package/src/components/Tabs/ScrollableTabsHeader/ScrollableTabsHeader.tsx +2 -8
  161. package/src/components/Tabs/TabWithBadge.tsx +2 -1
  162. package/src/components/Tabs/index.tsx +1 -1
  163. package/src/components/Tabs/useHandlePageScroll.tsx +1 -1
  164. package/src/components/Tag/index.tsx +2 -1
  165. package/src/components/TextInput/__tests__/index.spec.tsx +1 -1
  166. package/src/components/TextInput/index.tsx +4 -8
  167. package/src/components/TimePicker/index.internal.tsx +2 -2
  168. package/src/components/TimePicker/index.tsx +1 -1
  169. package/src/components/TimePicker/types.ts +1 -1
  170. package/src/components/Toast/StyledToast.tsx +4 -3
  171. package/src/components/Toolbar/StyledToolbar.tsx +1 -1
  172. package/src/components/Toolbar/ToolbarItem.tsx +1 -1
  173. package/src/components/Toolbar/ToolbarMessage.tsx +2 -2
  174. package/src/components/Toolbar/index.tsx +1 -1
  175. package/src/components/Typography/Caption/StyledCaption.tsx +2 -1
  176. package/src/emotion.d.ts +1 -1
  177. package/src/locales/en_AU.ts +1 -1
  178. package/src/locales/en_CA.ts +1 -1
  179. package/src/theme/ThemeSwitcher.tsx +2 -1
  180. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +6 -3
  181. package/src/theme/components/datePicker.ts +1 -1
  182. package/src/theme/components/error.ts +3 -2
  183. package/src/theme/components/success.ts +3 -1
  184. package/src/theme/components/timePicker.ts +1 -1
  185. package/src/theme/getTheme.ts +19 -10
  186. package/src/theme/global/colors/ehJobs.ts +1 -1
  187. package/src/theme/global/colors/ehWorkDark.ts +1 -1
  188. package/src/theme/global/colors/swagLight.ts +1 -1
  189. package/src/theme/global/colors/swagLightJobs.ts +1 -1
  190. package/src/theme/global/colors/swagSystemPalette.ts +1 -1
  191. package/src/theme/global/shadows/index.ts +1 -1
  192. package/src/types.ts +26 -19
  193. package/stats/8.105.4/rn-stats.html +4844 -0
  194. package/types/components/Alert/StyledAlert.d.ts +2 -2
  195. package/types/components/AnimatedScroller/AnimatedFAB.d.ts +3 -3
  196. package/types/components/AnimatedScroller/AnimatedScrollable.d.ts +3 -3
  197. package/types/components/AnimatedScroller/FlatListWithFAB.d.ts +3 -3
  198. package/types/components/AnimatedScroller/ScrollViewWithFAB.d.ts +3 -3
  199. package/types/components/AnimatedScroller/SectionListWithFAB.d.ts +3 -3
  200. package/types/components/AppCue/index.d.ts +2 -2
  201. package/types/components/AppCue/utils.d.ts +1 -1
  202. package/types/components/Attachment/index.d.ts +3 -3
  203. package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +1 -1
  204. package/types/components/Avatar/AvatarStack/index.d.ts +4 -3
  205. package/types/components/Avatar/StyledAvatar.d.ts +1 -1
  206. package/types/components/Badge/index.d.ts +1 -1
  207. package/types/components/Badge/types.d.ts +2 -2
  208. package/types/components/BottomSheet/ScrollView.d.ts +2 -1
  209. package/types/components/BottomSheet/StyledBottomSheet.d.ts +2 -2
  210. package/types/components/BottomSheet/index.d.ts +1 -2
  211. package/types/components/Box/StyledBox.d.ts +2 -2
  212. package/types/components/Box/types.d.ts +5 -5
  213. package/types/components/Button/Button.d.ts +1 -1
  214. package/types/components/Calendar/CalendarRange.d.ts +1 -1
  215. package/types/components/Calendar/helpers.d.ts +1 -1
  216. package/types/components/Calendar/index.d.ts +1 -1
  217. package/types/components/Calendar/shared/hooks/useCalendarLayout.d.ts +1 -1
  218. package/types/components/Carousel/CardCarousel.d.ts +1 -1
  219. package/types/components/Carousel/CarouselItem.d.ts +1 -1
  220. package/types/components/Carousel/StyledCardCarousel.d.ts +4 -3
  221. package/types/components/Carousel/StyledCarousel.d.ts +2 -1
  222. package/types/components/Carousel/index.d.ts +4 -3
  223. package/types/components/Carousel/types.d.ts +2 -2
  224. package/types/components/Chart/ChartSelect/index.d.ts +1 -1
  225. package/types/components/Chart/ColumnChart/ColumnChartContent.d.ts +1 -1
  226. package/types/components/Chart/ColumnChart/StackedSegment.d.ts +1 -1
  227. package/types/components/Chart/ColumnChart/index.d.ts +2 -2
  228. package/types/components/Chart/Line/Line.d.ts +1 -1
  229. package/types/components/Chart/Line/index.d.ts +2 -2
  230. package/types/components/Chart/shared/ChartFrame.d.ts +1 -1
  231. package/types/components/Chart/shared/ChartHeader.d.ts +2 -2
  232. package/types/components/Chart/shared/EmptyState.d.ts +1 -1
  233. package/types/components/Chart/shared/XAxis.d.ts +1 -1
  234. package/types/components/Chart/shared/XAxisGrid.d.ts +1 -1
  235. package/types/components/Chart/shared/YAxis.d.ts +1 -1
  236. package/types/components/Chart/shared/YAxisGrid.d.ts +1 -1
  237. package/types/components/Chart/shared/niceNumbers.d.ts +1 -1
  238. package/types/components/Chip/index.d.ts +4 -3
  239. package/types/components/DatePicker/Dialog/AndroidDialog.d.ts +1 -1
  240. package/types/components/DatePicker/Dialog/IOSDialog.d.ts +1 -1
  241. package/types/components/DatePicker/Dialog.d.ts +1 -1
  242. package/types/components/DatePicker/hooks/useCalculateDate.d.ts +1 -1
  243. package/types/components/DatePicker/hooks/utils.d.ts +1 -1
  244. package/types/components/DatePicker/index.d.ts +2 -2
  245. package/types/components/DatePicker/index.internal.d.ts +2 -2
  246. package/types/components/DatePicker/types.d.ts +1 -1
  247. package/types/components/FAB/ActionGroup/ActionItem.d.ts +1 -1
  248. package/types/components/FAB/FAB.d.ts +1 -1
  249. package/types/components/FAB/Pair/index.d.ts +2 -2
  250. package/types/components/FAB/StyledFAB.d.ts +2 -1
  251. package/types/components/FilterTrigger/index.d.ts +1 -1
  252. package/types/components/FloatingIsland/index.d.ts +4 -3
  253. package/types/components/HeroDesignProvider/index.d.ts +2 -2
  254. package/types/components/List/ListItem.d.ts +2 -2
  255. package/types/components/LocaleProvider/context.d.ts +1 -1
  256. package/types/components/LocaleProvider/index.d.ts +1 -1
  257. package/types/components/LocaleProvider/utils.d.ts +1 -1
  258. package/types/components/MapPin/Focussed.d.ts +1 -1
  259. package/types/components/MapPin/index.d.ts +1 -1
  260. package/types/components/MapPin/types.d.ts +2 -2
  261. package/types/components/Modal/index.d.ts +2 -1
  262. package/types/components/PageControl/index.d.ts +1 -1
  263. package/types/components/PinInput/index.d.ts +3 -3
  264. package/types/components/Portal/contexts.d.ts +2 -2
  265. package/types/components/Portal/index.d.ts +3 -2
  266. package/types/components/Portal/reducer.d.ts +1 -1
  267. package/types/components/Portal/usePortal.d.ts +1 -1
  268. package/types/components/Progress/ProgressStep.d.ts +1 -1
  269. package/types/components/Radio/Radio.d.ts +1 -1
  270. package/types/components/Radio/types.d.ts +2 -2
  271. package/types/components/Rate/index.d.ts +1 -1
  272. package/types/components/RefreshControl/index.d.ts +1 -1
  273. package/types/components/RichTextEditor/EditorToolbar.d.ts +1 -1
  274. package/types/components/RichTextEditor/RichTextEditor.d.ts +1 -1
  275. package/types/components/RichTextEditor/utils/events.d.ts +1 -1
  276. package/types/components/RichTextEditor/utils/rnWebView.d.ts +1 -1
  277. package/types/components/Search/SearchOneLine.d.ts +2 -2
  278. package/types/components/Search/SearchSuffixIcon.d.ts +3 -3
  279. package/types/components/Search/SearchTwoLine.d.ts +2 -2
  280. package/types/components/Search/utils.d.ts +1 -1
  281. package/types/components/SegmentedControl/index.d.ts +1 -1
  282. package/types/components/Select/BaseOptionList.d.ts +1 -1
  283. package/types/components/Select/MultiSelect/OptionList.d.ts +1 -1
  284. package/types/components/Select/MultiSelect/index.d.ts +1 -1
  285. package/types/components/Select/MultiSelect/utils.d.ts +1 -1
  286. package/types/components/Select/SingleSelect/OptionList.d.ts +2 -2
  287. package/types/components/Select/SingleSelect/index.d.ts +1 -1
  288. package/types/components/Select/index.d.ts +1 -1
  289. package/types/components/Select/types.d.ts +1 -1
  290. package/types/components/Skeleton/index.d.ts +1 -1
  291. package/types/components/Slider/RangeSlider.d.ts +1 -1
  292. package/types/components/Slider/SingleSlider.d.ts +1 -1
  293. package/types/components/StatusScreens/Empty/index.d.ts +5 -3
  294. package/types/components/StatusScreens/Error/StyledError.d.ts +7 -1
  295. package/types/components/StatusScreens/Error/index.d.ts +5 -4
  296. package/types/components/StatusScreens/StatusIcon/assets/Add.d.ts +1 -1
  297. package/types/components/StatusScreens/StatusIcon/assets/Boom.d.ts +1 -1
  298. package/types/components/StatusScreens/StatusIcon/assets/Build.d.ts +1 -1
  299. package/types/components/StatusScreens/StatusIcon/assets/Clock.d.ts +1 -1
  300. package/types/components/StatusScreens/StatusIcon/assets/Confetti.d.ts +1 -1
  301. package/types/components/StatusScreens/StatusIcon/assets/Connections.d.ts +1 -1
  302. package/types/components/StatusScreens/StatusIcon/assets/Error.d.ts +1 -1
  303. package/types/components/StatusScreens/StatusIcon/assets/Info.d.ts +1 -1
  304. package/types/components/StatusScreens/StatusIcon/assets/List.d.ts +1 -1
  305. package/types/components/StatusScreens/StatusIcon/assets/Location.d.ts +1 -1
  306. package/types/components/StatusScreens/StatusIcon/assets/Lock.d.ts +1 -1
  307. package/types/components/StatusScreens/StatusIcon/assets/Merge.d.ts +1 -1
  308. package/types/components/StatusScreens/StatusIcon/assets/NoResult.d.ts +1 -1
  309. package/types/components/StatusScreens/StatusIcon/assets/Notifications.d.ts +1 -1
  310. package/types/components/StatusScreens/StatusIcon/assets/Search.d.ts +1 -1
  311. package/types/components/StatusScreens/StatusIcon/assets/Star.d.ts +1 -1
  312. package/types/components/StatusScreens/StatusIcon/assets/Success.d.ts +1 -1
  313. package/types/components/StatusScreens/StatusIcon/assets/Unlock.d.ts +1 -1
  314. package/types/components/StatusScreens/StatusIcon/assets/User.d.ts +1 -1
  315. package/types/components/StatusScreens/Success/StyledSuccess.d.ts +11 -1
  316. package/types/components/StatusScreens/Success/index.d.ts +6 -5
  317. package/types/components/Swipeable/SwipeableAction.d.ts +4 -3
  318. package/types/components/Swipeable/index.d.ts +2 -1
  319. package/types/components/Switch/SelectorSwitch/Option.d.ts +1 -1
  320. package/types/components/Switch/SelectorSwitch/index.d.ts +2 -2
  321. package/types/components/Tabs/ScrollableTabsHeader/ScrollableTabsHeader.d.ts +1 -1
  322. package/types/components/Tabs/TabWithBadge.d.ts +2 -1
  323. package/types/components/Tabs/index.d.ts +1 -1
  324. package/types/components/Tabs/useHandlePageScroll.d.ts +1 -1
  325. package/types/components/Tag/index.d.ts +1 -1
  326. package/types/components/TextInput/index.d.ts +2 -3
  327. package/types/components/TimePicker/index.d.ts +1 -1
  328. package/types/components/TimePicker/index.internal.d.ts +2 -2
  329. package/types/components/TimePicker/types.d.ts +1 -1
  330. package/types/components/Toast/StyledToast.d.ts +3 -3
  331. package/types/components/Toolbar/StyledToolbar.d.ts +1 -1
  332. package/types/components/Toolbar/ToolbarItem.d.ts +1 -1
  333. package/types/components/Toolbar/ToolbarMessage.d.ts +2 -3
  334. package/types/components/Toolbar/index.d.ts +1 -1
  335. package/types/components/Typography/Caption/StyledCaption.d.ts +1 -1
  336. package/types/locales/en_AU.d.ts +1 -1
  337. package/types/locales/en_CA.d.ts +1 -1
  338. package/types/theme/ThemeSwitcher.d.ts +2 -1
  339. package/types/theme/components/datePicker.d.ts +1 -1
  340. package/types/theme/components/error.d.ts +1 -0
  341. package/types/theme/components/success.d.ts +2 -0
  342. package/types/theme/components/timePicker.d.ts +1 -1
  343. package/types/theme/getTheme.d.ts +10 -10
  344. package/types/theme/global/colors/ehJobs.d.ts +1 -1
  345. package/types/theme/global/colors/ehWorkDark.d.ts +1 -1
  346. package/types/theme/global/colors/swagLight.d.ts +1 -1
  347. package/types/theme/global/colors/swagLightJobs.d.ts +1 -1
  348. package/types/theme/global/colors/swagSystemPalette.d.ts +1 -1
  349. package/types/theme/global/shadows/index.d.ts +1 -1
  350. package/types/types.d.ts +19 -19
@@ -1,4 +1,4 @@
1
- (node:4275) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
1
+ (node:3308) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
2
2
  (Use `node --trace-warnings ...` to show where the warning was created)
3
3
  
4
4
  src/index.ts → lib/index.js, es/index.js...
@@ -15,9 +15,9 @@ node_modules/d3-selection/src/selection/index.js -> node_modules/d3-selection/sr
15
15
     ~~~~~~~~~~~~~~~~~~~
16
16
  
17
17
  (!) [plugin node-resolve] preferring built-in module 'events' over local alternative at '/home/runner/work/hero-design/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning.or passing a function to 'preferBuiltins' to provide more fine-grained control over which built-in modules to prefer.
18
- created lib/index.js, es/index.js in 1m 13.9s
18
+ created lib/index.js, es/index.js in 1m 10.3s
19
19
  
20
20
  /home/runner/work/hero-design/hero-design/packages/rn/src/locales/en_AU.ts, /home/runner/work/hero-design/hero-design/packages/rn/src/locales/en_CA.ts, /home/runner/work/hero-design/hero-design/packages/rn/src/locales/index.ts, /home/runner/work/hero-design/hero-design/packages/rn/src/locales/types.ts → ., ....
21
21
  (!) Generated empty chunks
22
22
  "locales/types" and "locales/types"
23
- created ., . in 22.6s
23
+ created ., . in 22s
package/CHANGELOG.md CHANGED
@@ -1,12 +1,18 @@
1
1
  # @hero-design/rn
2
2
 
3
- ## 8.105.4-alpha.0
3
+ ## 8.105.4
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - [#3497](https://github.com/Thinkei/hero-design/pull/3497) [`e92d1dab57316441e7b5054debe823328e1a1083`](https://github.com/Thinkei/hero-design/commit/e92d1dab57316441e7b5054debe823328e1a1083) Thanks [@luanlai2201](https://github.com/luanlai2201)! - [Font] replace playful font to Saiga
7
+ - [#4161](https://github.com/Thinkei/hero-design/pull/4161) [`627837da7838e5a3295dc4dece3de83cbcc19c4b`](https://github.com/Thinkei/hero-design/commit/627837da7838e5a3295dc4dece3de83cbcc19c4b) Thanks [@ttkien](https://github.com/ttkien)! - [Empty]
8
8
 
9
- - [#4123](https://github.com/Thinkei/hero-design/pull/4123) [`ecc5905dec81783858f57595a0af4306ff3b0b89`](https://github.com/Thinkei/hero-design/commit/ecc5905dec81783858f57595a0af4306ff3b0b89) Thanks [@truongnguyen-eh](https://github.com/truongnguyen-eh)! - [ANG-3740] Resolve conflict between alpha and master-react-18
9
+ - deprecate variant, image
10
+
11
+ [Success][error]
12
+
13
+ - deprecate image
14
+ - reduce icon size
15
+ - increase Primary Buttons margin from medium to large
10
16
 
11
17
  ## 8.105.3
12
18
 
package/es/index.js CHANGED
@@ -6138,14 +6138,15 @@ var getErrorTheme = function getErrorTheme(theme) {
6138
6138
  imageMarginBottom: theme.space.large,
6139
6139
  wrapperPadding: theme.space.large,
6140
6140
  button: {
6141
- wrapperHorizontalPadding: theme.space.medium,
6141
+ wrapperHorizontalPadding: theme.space.large,
6142
6142
  wrapperVerticalPadding: theme.space.xxxlarge,
6143
6143
  margin: theme.space.medium,
6144
6144
  padding: theme.space.medium
6145
6145
  }
6146
6146
  };
6147
6147
  var sizes = {
6148
- image: theme.sizes['19xlarge']
6148
+ image: theme.sizes['6xlarge'],
6149
+ icon: theme.sizes['6xlarge']
6149
6150
  };
6150
6151
  var colors = {
6151
6152
  title: theme.colors.onDefaultGlobalSurface,
@@ -6663,14 +6664,16 @@ var getSuccessTheme = function getSuccessTheme(theme) {
6663
6664
  imageMarginBottom: theme.space.xlarge,
6664
6665
  wrapperPadding: theme.space.large,
6665
6666
  button: {
6666
- wrapperHorizontalPadding: theme.space.medium,
6667
+ wrapperHorizontalPadding: theme.space.large,
6667
6668
  wrapperVerticalPadding: theme.space.xxxlarge,
6668
6669
  margin: theme.space.medium,
6669
- padding: theme.space.medium
6670
+ padding: theme.space.medium,
6671
+ secondaryCTAMarginTop: theme.space.medium
6670
6672
  }
6671
6673
  };
6672
6674
  var sizes = {
6673
- image: theme.sizes['19xlarge']
6675
+ image: theme.sizes['19xlarge'],
6676
+ icon: theme.sizes['6xlarge']
6674
6677
  };
6675
6678
  var colors = {
6676
6679
  title: theme.colors.onDefaultGlobalSurface,
@@ -22600,8 +22603,17 @@ var StyledErrorImageContainer = index$b(View)(function (_ref6) {
22600
22603
  alignItems: 'center'
22601
22604
  };
22602
22605
  });
22603
- var StyledErrorImage = index$b(Image)(function (_ref7) {
22606
+ var StyledErrorIconContainer = index$b(View)(function (_ref7) {
22604
22607
  var theme = _ref7.theme;
22608
+ return {
22609
+ marginBottom: theme.__hd__.error.space.imageMarginBottom,
22610
+ width: theme.__hd__.error.sizes.icon,
22611
+ height: theme.__hd__.error.sizes.icon,
22612
+ alignItems: 'center'
22613
+ };
22614
+ });
22615
+ var StyledErrorImage = index$b(Image)(function (_ref8) {
22616
+ var theme = _ref8.theme;
22605
22617
  return {
22606
22618
  marginBottom: theme.__hd__.error.space.imageMarginBottom,
22607
22619
  width: theme.__hd__.error.sizes.image,
@@ -22609,16 +22621,16 @@ var StyledErrorImage = index$b(Image)(function (_ref7) {
22609
22621
  resizeMode: 'contain'
22610
22622
  };
22611
22623
  });
22612
- var StyledErrorTitle = index$b(Typography.Title)(function (_ref8) {
22613
- var theme = _ref8.theme;
22624
+ var StyledErrorTitle = index$b(Typography.Title)(function (_ref9) {
22625
+ var theme = _ref9.theme;
22614
22626
  return {
22615
22627
  textAlign: 'center',
22616
22628
  marginBottom: theme.__hd__.error.space.titleMarginBottom,
22617
22629
  color: theme.__hd__.error.colors.title
22618
22630
  };
22619
22631
  });
22620
- var StyledErrorDescription = index$b(Typography.Body)(function (_ref9) {
22621
- var theme = _ref9.theme;
22632
+ var StyledErrorDescription = index$b(Typography.Body)(function (_ref10) {
22633
+ var theme = _ref10.theme;
22622
22634
  return {
22623
22635
  textAlign: 'center',
22624
22636
  color: theme.__hd__.error.colors.description
@@ -22644,7 +22656,7 @@ var renderImageOrIcon$1 = function renderImageOrIcon(_ref) {
22644
22656
  var image = _ref.image,
22645
22657
  icon = _ref.icon;
22646
22658
  if (icon) {
22647
- return /*#__PURE__*/React__default.createElement(StyledErrorImageContainer, null, /*#__PURE__*/React__default.createElement(StatusIcon, {
22659
+ return /*#__PURE__*/React__default.createElement(StyledErrorIconContainer, null, /*#__PURE__*/React__default.createElement(StatusIcon, {
22648
22660
  icon: icon,
22649
22661
  testID: "error-icon"
22650
22662
  }));
@@ -25887,23 +25899,32 @@ var StyledSuccessImageContainer = index$b(View)(function (_ref4) {
25887
25899
  alignItems: 'center'
25888
25900
  };
25889
25901
  });
25890
- var StyledSuccessTitle = index$b(Typography.Title)(function (_ref5) {
25902
+ var StyledSuccessIconContainer = index$b(View)(function (_ref5) {
25891
25903
  var theme = _ref5.theme;
25904
+ return {
25905
+ marginBottom: theme.__hd__.success.space.imageMarginBottom,
25906
+ width: theme.__hd__.success.sizes.icon,
25907
+ height: theme.__hd__.success.sizes.icon,
25908
+ alignItems: 'center'
25909
+ };
25910
+ });
25911
+ var StyledSuccessTitle = index$b(Typography.Title)(function (_ref6) {
25912
+ var theme = _ref6.theme;
25892
25913
  return {
25893
25914
  textAlign: 'center',
25894
25915
  marginBottom: theme.__hd__.success.space.titleMarginBottom,
25895
25916
  color: theme.__hd__.success.colors.title
25896
25917
  };
25897
25918
  });
25898
- var StyledSuccessDescription = index$b(Typography.Body)(function (_ref6) {
25899
- var theme = _ref6.theme;
25919
+ var StyledSuccessDescription = index$b(Typography.Body)(function (_ref7) {
25920
+ var theme = _ref7.theme;
25900
25921
  return {
25901
25922
  textAlign: 'center',
25902
25923
  color: theme.__hd__.success.colors.description
25903
25924
  };
25904
25925
  });
25905
- var StyledSuccessButtonContainer = index$b(View)(function (_ref7) {
25906
- var theme = _ref7.theme;
25926
+ var StyledSuccessButtonContainer = index$b(View)(function (_ref8) {
25927
+ var theme = _ref8.theme;
25907
25928
  return {
25908
25929
  display: 'flex',
25909
25930
  flexDirection: 'column',
@@ -25913,12 +25934,19 @@ var StyledSuccessButtonContainer = index$b(View)(function (_ref7) {
25913
25934
  paddingVertical: theme.__hd__.success.space.button.wrapperVerticalPadding
25914
25935
  };
25915
25936
  });
25916
- var StyledSuccessButtonPrimary = index$b(CompoundButton)(function (_ref8) {
25917
- var theme = _ref8.theme;
25937
+ var StyledSuccessButtonPrimary = index$b(CompoundButton)(function (_ref9) {
25938
+ var theme = _ref9.theme;
25918
25939
  return {
25919
25940
  padding: theme.__hd__.success.space.button.padding
25920
25941
  };
25921
25942
  });
25943
+ var StyledSuccessButtonSecondary = index$b(CompoundButton)(function (_ref10) {
25944
+ var theme = _ref10.theme;
25945
+ return {
25946
+ padding: theme.__hd__.success.space.button.padding,
25947
+ marginTop: theme.__hd__.success.space.button.secondaryCTAMarginTop
25948
+ };
25949
+ });
25922
25950
  var StyledSuccessModal = index$b(ModalWrapper)({
25923
25951
  height: '100%',
25924
25952
  width: '100%'
@@ -25942,7 +25970,7 @@ var renderImageOrIcon = function renderImageOrIcon(_ref) {
25942
25970
  var image = _ref.image,
25943
25971
  icon = _ref.icon;
25944
25972
  if (icon) {
25945
- return /*#__PURE__*/React__default.createElement(StyledSuccessImageContainer, null, /*#__PURE__*/React__default.createElement(StatusIcon, {
25973
+ return /*#__PURE__*/React__default.createElement(StyledSuccessIconContainer, null, /*#__PURE__*/React__default.createElement(StatusIcon, {
25946
25974
  icon: icon,
25947
25975
  testID: "success-icon"
25948
25976
  }));
@@ -25979,7 +26007,7 @@ var SuccessPage = function SuccessPage(_ref2) {
25979
26007
  }, title), typeof description === 'string' ? /*#__PURE__*/React__default.createElement(StyledSuccessDescription, null, description) : description), !!ctaText && /*#__PURE__*/React__default.createElement(StyledSuccessButtonContainer, null, /*#__PURE__*/React__default.createElement(StyledSuccessButtonPrimary, {
25980
26008
  text: ctaText,
25981
26009
  onPress: onCtaPress
25982
- }), !!showSecondaryButton && /*#__PURE__*/React__default.createElement(StyledSuccessButtonPrimary, {
26010
+ }), !!showSecondaryButton && /*#__PURE__*/React__default.createElement(StyledSuccessButtonSecondary, {
25983
26011
  variant: "text",
25984
26012
  text: secondaryCtaText,
25985
26013
  onPress: onSecondaryCtaPress
package/lib/index.js CHANGED
@@ -6167,14 +6167,15 @@ var getErrorTheme = function getErrorTheme(theme) {
6167
6167
  imageMarginBottom: theme.space.large,
6168
6168
  wrapperPadding: theme.space.large,
6169
6169
  button: {
6170
- wrapperHorizontalPadding: theme.space.medium,
6170
+ wrapperHorizontalPadding: theme.space.large,
6171
6171
  wrapperVerticalPadding: theme.space.xxxlarge,
6172
6172
  margin: theme.space.medium,
6173
6173
  padding: theme.space.medium
6174
6174
  }
6175
6175
  };
6176
6176
  var sizes = {
6177
- image: theme.sizes['19xlarge']
6177
+ image: theme.sizes['6xlarge'],
6178
+ icon: theme.sizes['6xlarge']
6178
6179
  };
6179
6180
  var colors = {
6180
6181
  title: theme.colors.onDefaultGlobalSurface,
@@ -6692,14 +6693,16 @@ var getSuccessTheme = function getSuccessTheme(theme) {
6692
6693
  imageMarginBottom: theme.space.xlarge,
6693
6694
  wrapperPadding: theme.space.large,
6694
6695
  button: {
6695
- wrapperHorizontalPadding: theme.space.medium,
6696
+ wrapperHorizontalPadding: theme.space.large,
6696
6697
  wrapperVerticalPadding: theme.space.xxxlarge,
6697
6698
  margin: theme.space.medium,
6698
- padding: theme.space.medium
6699
+ padding: theme.space.medium,
6700
+ secondaryCTAMarginTop: theme.space.medium
6699
6701
  }
6700
6702
  };
6701
6703
  var sizes = {
6702
- image: theme.sizes['19xlarge']
6704
+ image: theme.sizes['19xlarge'],
6705
+ icon: theme.sizes['6xlarge']
6703
6706
  };
6704
6707
  var colors = {
6705
6708
  title: theme.colors.onDefaultGlobalSurface,
@@ -22629,8 +22632,17 @@ var StyledErrorImageContainer = index$b(reactNative.View)(function (_ref6) {
22629
22632
  alignItems: 'center'
22630
22633
  };
22631
22634
  });
22632
- var StyledErrorImage = index$b(Image)(function (_ref7) {
22635
+ var StyledErrorIconContainer = index$b(reactNative.View)(function (_ref7) {
22633
22636
  var theme = _ref7.theme;
22637
+ return {
22638
+ marginBottom: theme.__hd__.error.space.imageMarginBottom,
22639
+ width: theme.__hd__.error.sizes.icon,
22640
+ height: theme.__hd__.error.sizes.icon,
22641
+ alignItems: 'center'
22642
+ };
22643
+ });
22644
+ var StyledErrorImage = index$b(Image)(function (_ref8) {
22645
+ var theme = _ref8.theme;
22634
22646
  return {
22635
22647
  marginBottom: theme.__hd__.error.space.imageMarginBottom,
22636
22648
  width: theme.__hd__.error.sizes.image,
@@ -22638,16 +22650,16 @@ var StyledErrorImage = index$b(Image)(function (_ref7) {
22638
22650
  resizeMode: 'contain'
22639
22651
  };
22640
22652
  });
22641
- var StyledErrorTitle = index$b(Typography.Title)(function (_ref8) {
22642
- var theme = _ref8.theme;
22653
+ var StyledErrorTitle = index$b(Typography.Title)(function (_ref9) {
22654
+ var theme = _ref9.theme;
22643
22655
  return {
22644
22656
  textAlign: 'center',
22645
22657
  marginBottom: theme.__hd__.error.space.titleMarginBottom,
22646
22658
  color: theme.__hd__.error.colors.title
22647
22659
  };
22648
22660
  });
22649
- var StyledErrorDescription = index$b(Typography.Body)(function (_ref9) {
22650
- var theme = _ref9.theme;
22661
+ var StyledErrorDescription = index$b(Typography.Body)(function (_ref10) {
22662
+ var theme = _ref10.theme;
22651
22663
  return {
22652
22664
  textAlign: 'center',
22653
22665
  color: theme.__hd__.error.colors.description
@@ -22673,7 +22685,7 @@ var renderImageOrIcon$1 = function renderImageOrIcon(_ref) {
22673
22685
  var image = _ref.image,
22674
22686
  icon = _ref.icon;
22675
22687
  if (icon) {
22676
- return /*#__PURE__*/React__namespace.default.createElement(StyledErrorImageContainer, null, /*#__PURE__*/React__namespace.default.createElement(StatusIcon, {
22688
+ return /*#__PURE__*/React__namespace.default.createElement(StyledErrorIconContainer, null, /*#__PURE__*/React__namespace.default.createElement(StatusIcon, {
22677
22689
  icon: icon,
22678
22690
  testID: "error-icon"
22679
22691
  }));
@@ -25916,23 +25928,32 @@ var StyledSuccessImageContainer = index$b(reactNative.View)(function (_ref4) {
25916
25928
  alignItems: 'center'
25917
25929
  };
25918
25930
  });
25919
- var StyledSuccessTitle = index$b(Typography.Title)(function (_ref5) {
25931
+ var StyledSuccessIconContainer = index$b(reactNative.View)(function (_ref5) {
25920
25932
  var theme = _ref5.theme;
25933
+ return {
25934
+ marginBottom: theme.__hd__.success.space.imageMarginBottom,
25935
+ width: theme.__hd__.success.sizes.icon,
25936
+ height: theme.__hd__.success.sizes.icon,
25937
+ alignItems: 'center'
25938
+ };
25939
+ });
25940
+ var StyledSuccessTitle = index$b(Typography.Title)(function (_ref6) {
25941
+ var theme = _ref6.theme;
25921
25942
  return {
25922
25943
  textAlign: 'center',
25923
25944
  marginBottom: theme.__hd__.success.space.titleMarginBottom,
25924
25945
  color: theme.__hd__.success.colors.title
25925
25946
  };
25926
25947
  });
25927
- var StyledSuccessDescription = index$b(Typography.Body)(function (_ref6) {
25928
- var theme = _ref6.theme;
25948
+ var StyledSuccessDescription = index$b(Typography.Body)(function (_ref7) {
25949
+ var theme = _ref7.theme;
25929
25950
  return {
25930
25951
  textAlign: 'center',
25931
25952
  color: theme.__hd__.success.colors.description
25932
25953
  };
25933
25954
  });
25934
- var StyledSuccessButtonContainer = index$b(reactNative.View)(function (_ref7) {
25935
- var theme = _ref7.theme;
25955
+ var StyledSuccessButtonContainer = index$b(reactNative.View)(function (_ref8) {
25956
+ var theme = _ref8.theme;
25936
25957
  return {
25937
25958
  display: 'flex',
25938
25959
  flexDirection: 'column',
@@ -25942,12 +25963,19 @@ var StyledSuccessButtonContainer = index$b(reactNative.View)(function (_ref7) {
25942
25963
  paddingVertical: theme.__hd__.success.space.button.wrapperVerticalPadding
25943
25964
  };
25944
25965
  });
25945
- var StyledSuccessButtonPrimary = index$b(CompoundButton)(function (_ref8) {
25946
- var theme = _ref8.theme;
25966
+ var StyledSuccessButtonPrimary = index$b(CompoundButton)(function (_ref9) {
25967
+ var theme = _ref9.theme;
25947
25968
  return {
25948
25969
  padding: theme.__hd__.success.space.button.padding
25949
25970
  };
25950
25971
  });
25972
+ var StyledSuccessButtonSecondary = index$b(CompoundButton)(function (_ref10) {
25973
+ var theme = _ref10.theme;
25974
+ return {
25975
+ padding: theme.__hd__.success.space.button.padding,
25976
+ marginTop: theme.__hd__.success.space.button.secondaryCTAMarginTop
25977
+ };
25978
+ });
25951
25979
  var StyledSuccessModal = index$b(ModalWrapper)({
25952
25980
  height: '100%',
25953
25981
  width: '100%'
@@ -25971,7 +25999,7 @@ var renderImageOrIcon = function renderImageOrIcon(_ref) {
25971
25999
  var image = _ref.image,
25972
26000
  icon = _ref.icon;
25973
26001
  if (icon) {
25974
- return /*#__PURE__*/React__namespace.default.createElement(StyledSuccessImageContainer, null, /*#__PURE__*/React__namespace.default.createElement(StatusIcon, {
26002
+ return /*#__PURE__*/React__namespace.default.createElement(StyledSuccessIconContainer, null, /*#__PURE__*/React__namespace.default.createElement(StatusIcon, {
25975
26003
  icon: icon,
25976
26004
  testID: "success-icon"
25977
26005
  }));
@@ -26008,7 +26036,7 @@ var SuccessPage = function SuccessPage(_ref2) {
26008
26036
  }, title), typeof description === 'string' ? /*#__PURE__*/React__namespace.default.createElement(StyledSuccessDescription, null, description) : description), !!ctaText && /*#__PURE__*/React__namespace.default.createElement(StyledSuccessButtonContainer, null, /*#__PURE__*/React__namespace.default.createElement(StyledSuccessButtonPrimary, {
26009
26037
  text: ctaText,
26010
26038
  onPress: onCtaPress
26011
- }), !!showSecondaryButton && /*#__PURE__*/React__namespace.default.createElement(StyledSuccessButtonPrimary, {
26039
+ }), !!showSecondaryButton && /*#__PURE__*/React__namespace.default.createElement(StyledSuccessButtonSecondary, {
26012
26040
  variant: "text",
26013
26041
  text: secondaryCtaText,
26014
26042
  onPress: onSecondaryCtaPress
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "8.105.4-alpha.0",
3
+ "version": "8.105.4",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -3,8 +3,9 @@ import { TouchableOpacity, View } from 'react-native';
3
3
  import type { ComponentProps } from 'react';
4
4
  import type { ViewProps } from 'react-native';
5
5
  import Typography from '../Typography';
6
- import { TextProps } from '../Typography/Text';
7
- import Icon, { IconProps } from '../Icon';
6
+ import type { TextProps } from '../Typography/Text';
7
+ import type { IconProps } from '../Icon';
8
+ import Icon from '../Icon';
8
9
 
9
10
  type ThemeIntent = 'success' | 'info' | 'warning' | 'error' | 'notification';
10
11
  const Container = styled(View)<{
@@ -1,11 +1,9 @@
1
1
  import React from 'react';
2
- import { Animated } from 'react-native';
2
+ import type { Animated } from 'react-native';
3
3
  import FAB from '../FAB';
4
- import ActionGroup, {
5
- ActionGroupHandles,
6
- ActionGroupProps,
7
- } from '../FAB/ActionGroup';
8
- import { FABHandles, FABProps } from '../FAB/FAB';
4
+ import type { ActionGroupHandles, ActionGroupProps } from '../FAB/ActionGroup';
5
+ import ActionGroup from '../FAB/ActionGroup';
6
+ import type { FABHandles, FABProps } from '../FAB/FAB';
9
7
 
10
8
  const LAST_BREAKPOINT = 100;
11
9
  const MIDDLE_BREAKPOINT = 250;
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
- import {
3
- Animated,
2
+ import type {
4
3
  FlatListProps,
5
4
  ScrollViewProps as RnScrollViewProps,
6
5
  SectionListProps,
7
6
  } from 'react-native';
8
- import { ActionGroupProps } from '../FAB/ActionGroup';
9
- import { FABProps } from '../FAB/FAB';
7
+ import { Animated } from 'react-native';
8
+ import type { ActionGroupProps } from '../FAB/ActionGroup';
9
+ import type { FABProps } from '../FAB/FAB';
10
10
  import AnimatedFAB from './AnimatedFAB';
11
11
 
12
12
  export interface AnimatedScrollerProps<T> {
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
- import { FlatList, FlatListProps } from 'react-native';
3
- import { FABProps } from '../FAB/FAB';
2
+ import type { FlatListProps } from 'react-native';
3
+ import { FlatList } from 'react-native';
4
+ import type { FABProps } from '../FAB/FAB';
4
5
  import AnimatedScroller from './AnimatedScrollable';
5
- import { ActionGroupProps } from '../FAB/ActionGroup';
6
+ import type { ActionGroupProps } from '../FAB/ActionGroup';
6
7
 
7
8
  export interface FlatListWithFABProps<T> extends FlatListProps<T> {
8
9
  /**
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
- import { ScrollView, ScrollViewProps } from 'react-native';
2
+ import type { ScrollViewProps } from 'react-native';
3
+ import { ScrollView } from 'react-native';
3
4
  import AnimatedScroller from './AnimatedScrollable';
4
- import { ActionGroupProps } from '../FAB/ActionGroup';
5
- import { FABProps } from '../FAB/FAB';
5
+ import type { ActionGroupProps } from '../FAB/ActionGroup';
6
+ import type { FABProps } from '../FAB/FAB';
6
7
 
7
8
  export interface ScrollViewWithFABProps extends ScrollViewProps {
8
9
  /**
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
- import { SectionList, SectionListProps } from 'react-native';
2
+ import type { SectionListProps } from 'react-native';
3
+ import { SectionList } from 'react-native';
3
4
  import AnimatedScroller from './AnimatedScrollable';
4
- import { ActionGroupProps } from '../FAB/ActionGroup';
5
- import { FABProps } from '../FAB/FAB';
5
+ import type { ActionGroupProps } from '../FAB/ActionGroup';
6
+ import type { FABProps } from '../FAB/FAB';
6
7
 
7
8
  export interface SectionListWithFABProps<T> extends SectionListProps<T> {
8
9
  /**
@@ -4,11 +4,11 @@ import { fireEvent } from '@testing-library/react-native';
4
4
  import renderWithTheme from '../../../testHelpers/renderWithTheme';
5
5
  import { FlatListWithFAB, ScrollViewWithFAB, SectionListWithFAB } from '..';
6
6
  import Box from '../../Box';
7
- import { ActionGroupProps } from '../../FAB/ActionGroup';
8
- import { FABProps } from '../../FAB/FAB';
7
+ import type { ActionGroupProps } from '../../FAB/ActionGroup';
8
+ import type { FABProps } from '../../FAB/FAB';
9
9
  import Typography from '../../Typography';
10
- import { ScrollViewWithFABProps } from '../ScrollViewWithFAB';
11
- import { FlatListWithFABProps } from '../FlatListWithFAB';
10
+ import type { ScrollViewWithFABProps } from '../ScrollViewWithFAB';
11
+ import type { FlatListWithFABProps } from '../FlatListWithFAB';
12
12
  import SectionHeading from '../../SectionHeading';
13
13
 
14
14
  const ExampleScrollViewWithFAB = ({ fabProps }: ScrollViewWithFABProps) => (
@@ -1,16 +1,14 @@
1
1
  import React, { useCallback, useLayoutEffect, useRef } from 'react';
2
+ import type { LayoutChangeEvent, StyleProp, ViewStyle } from 'react-native';
2
3
  import {
3
4
  Modal,
4
5
  View,
5
6
  TouchableWithoutFeedback,
6
- LayoutChangeEvent,
7
- StyleProp,
8
- ViewStyle,
9
7
  StyleSheet,
10
8
  useWindowDimensions,
11
9
  } from 'react-native';
10
+ import type { Placement } from './StyledAppCue';
12
11
  import {
13
- Placement,
14
12
  StyledContainer,
15
13
  StyledContent,
16
14
  StyledIconContainer,
@@ -1,4 +1,4 @@
1
- import { Placement } from './StyledAppCue';
1
+ import type { Placement } from './StyledAppCue';
2
2
 
3
3
  /**
4
4
  * Calculates the position of an element based on its placement relative to a reference position.
@@ -1,15 +1,16 @@
1
1
  import React from 'react';
2
2
  import type { ReactElement } from 'react';
3
- import { StyleProp, ViewStyle } from 'react-native';
3
+ import type { StyleProp, ViewStyle } from 'react-native';
4
4
  import {
5
5
  StyledContainer,
6
6
  StyledContentContainer,
7
7
  StyledCTAWrapper,
8
8
  StyledTextContainer,
9
9
  } from './StyledAttachment';
10
- import Icon, { IconProps } from '../Icon';
10
+ import type { IconProps } from '../Icon';
11
+ import Icon from '../Icon';
11
12
  import Typography from '../Typography';
12
- import { ImageProps } from '../Image';
13
+ import type { ImageProps } from '../Image';
13
14
 
14
15
  interface AttachmentProps {
15
16
  /**
@@ -1,6 +1,7 @@
1
1
  import styled from '@emotion/native';
2
2
  import { View } from 'react-native';
3
- import Avatar, { AvatarProps } from '../Avatar';
3
+ import type { AvatarProps } from '../Avatar';
4
+ import Avatar from '../Avatar';
4
5
  import Box from '../../Box';
5
6
 
6
7
  const VISIBLE_RATIO = 0.7;
@@ -1,6 +1,7 @@
1
- import React, { ReactElement, ReactNode } from 'react';
2
- import { StyleProp, ViewStyle } from 'react-native';
3
- import { AvatarProps } from '../Avatar';
1
+ import type { ReactElement, ReactNode } from 'react';
2
+ import React from 'react';
3
+ import type { StyleProp, ViewStyle } from 'react-native';
4
+ import type { AvatarProps } from '../Avatar';
4
5
  import {
5
6
  StyledAvatar,
6
7
  StyledSurplusContainer,
@@ -1,7 +1,7 @@
1
1
  import { View, Image, TouchableOpacity, Platform } from 'react-native';
2
2
  import styled from '@emotion/native';
3
3
  import Typography from '../Typography';
4
- import { TextProps } from '../Typography/Text';
4
+ import type { TextProps } from '../Typography/Text';
5
5
 
6
6
  type ThemeSize =
7
7
  | 'small'
@@ -3,7 +3,7 @@ import React, { useMemo } from 'react';
3
3
  import { StyledView, StyledText, StyledIcon } from './StyledBadge';
4
4
  import BadgeStatus from './Status';
5
5
  import BadgeCount from './Count';
6
- import { BasicBadgeProps, IconBadgeProps } from './types';
6
+ import type { BasicBadgeProps, IconBadgeProps } from './types';
7
7
  import { DEFAULT_MAX_NUMBER } from './constants';
8
8
 
9
9
  export type BadgeProps = BasicBadgeProps | IconBadgeProps;
@@ -1,5 +1,5 @@
1
- import { Animated, StyleProp, ViewStyle } from 'react-native';
2
- import { IconName } from '../Icon';
1
+ import type { Animated, StyleProp, ViewStyle } from 'react-native';
2
+ import type { IconName } from '../Icon';
3
3
 
4
4
  interface BaseBadgeProps extends React.ComponentProps<typeof Animated.View> {
5
5
  /**
@@ -1,13 +1,12 @@
1
1
  import React, { useContext, useCallback, forwardRef } from 'react';
2
- import {
2
+ import type {
3
3
  NativeScrollEvent,
4
4
  NativeSyntheticEvent,
5
- ScrollView,
6
5
  ScrollViewProps,
7
6
  } from 'react-native';
8
- import BottomSheetContext, {
9
- BottomSheetContextType,
10
- } from './BottomSheetContext';
7
+ import { ScrollView } from 'react-native';
8
+ import type { BottomSheetContextType } from './BottomSheetContext';
9
+ import BottomSheetContext from './BottomSheetContext';
11
10
 
12
11
  const BottomSheetScrollView = forwardRef<ScrollView, ScrollViewProps>(
13
12
  ({ scrollEventThrottle = 100, ...props }, ref): JSX.Element => {
@@ -1,10 +1,9 @@
1
1
  import styled from '@emotion/native';
2
2
  import type { ComponentProps } from 'react';
3
- import type { ViewProps } from 'react-native';
3
+ import type { ViewProps, KeyboardAvoidingViewProps } from 'react-native';
4
4
  import {
5
5
  Animated,
6
6
  KeyboardAvoidingView,
7
- KeyboardAvoidingViewProps,
8
7
  Pressable,
9
8
  SafeAreaView,
10
9
  StyleSheet,
@@ -1,14 +1,11 @@
1
1
  import type { ReactElement, ReactNode } from 'react';
2
2
  import React, { useEffect, useMemo, useRef, useState } from 'react';
3
- import type { StyleProp, ViewStyle } from 'react-native';
4
- import {
5
- Animated,
6
- Dimensions,
7
- Easing,
3
+ import type {
4
+ StyleProp,
5
+ ViewStyle,
8
6
  KeyboardAvoidingViewProps,
9
- Modal,
10
- Platform,
11
7
  } from 'react-native';
8
+ import { Animated, Dimensions, Easing, Modal, Platform } from 'react-native';
12
9
  import BottomSheetContext from './BottomSheetContext';
13
10
  import Footer from './Footer';
14
11
  import Header from './Header';
@@ -1,9 +1,10 @@
1
1
  import styled from '@emotion/native';
2
- import { Theme } from '@emotion/react';
2
+ import type { Theme } from '@emotion/react';
3
3
  import { View } from 'react-native';
4
- import { FlexStyleProps, StyleProps, ThemeScale } from './types';
4
+ import type { FlexStyleProps, StyleProps, ThemeScale } from './types';
5
5
  import { pick } from '../../utils/helpers';
6
- import config, { ConfigType, flexPropsKey } from './config';
6
+ import type { ConfigType } from './config';
7
+ import config, { flexPropsKey } from './config';
7
8
 
8
9
  export const getThemeValue = (
9
10
  theme: Theme,