@hero-design/rn 8.81.2 → 8.82.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (343) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/package.json +1 -1
  3. package/sonar-project.properties +1 -1
  4. package/src/components/DatePicker/DatePickerAndroid.tsx +23 -5
  5. package/src/components/DatePicker/DatePickerIOS.tsx +39 -19
  6. package/src/components/DatePicker/__tests__/DatePickerAndroid.spec.tsx +25 -0
  7. package/src/components/DatePicker/__tests__/DatePickerIOS.spec.tsx +29 -0
  8. package/src/components/DatePicker/index.tsx +2 -2
  9. package/src/components/DatePicker/types.ts +2 -1
  10. package/src/components/Toast/StyledToast.tsx +22 -1
  11. package/src/components/Toast/Toast.tsx +7 -17
  12. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +117 -27
  13. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +16 -6
  14. package/src/theme/components/toast.ts +16 -6
  15. package/stats/8.81.2/rn-stats.html +2 -0
  16. package/testUtils/setup.tsx +22 -11
  17. package/.turbo/turbo-build.log +0 -7
  18. package/es/index.js +0 -37322
  19. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  20. package/lib/index.js +0 -37419
  21. package/types/components/Accordion/AccordionItem.d.ts +0 -15
  22. package/types/components/Accordion/StyledAccordion.d.ts +0 -32
  23. package/types/components/Accordion/index.d.ts +0 -39
  24. package/types/components/Alert/StyledAlert.d.ts +0 -53
  25. package/types/components/Alert/index.d.ts +0 -58
  26. package/types/components/AnimatedScroller/AnimatedFAB.d.ts +0 -12
  27. package/types/components/AnimatedScroller/AnimatedScrollable.d.ts +0 -16
  28. package/types/components/AnimatedScroller/FlatListWithFAB.d.ts +0 -12
  29. package/types/components/AnimatedScroller/ScrollViewWithFAB.d.ts +0 -12
  30. package/types/components/AnimatedScroller/SectionListWithFAB.d.ts +0 -12
  31. package/types/components/AnimatedScroller/index.d.ts +0 -4
  32. package/types/components/Attachment/StyledAttachment.d.ts +0 -28
  33. package/types/components/Attachment/index.d.ts +0 -38
  34. package/types/components/Avatar/Avatar.d.ts +0 -34
  35. package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +0 -30
  36. package/types/components/Avatar/AvatarStack/index.d.ts +0 -35
  37. package/types/components/Avatar/AvatarStack/utils.d.ts +0 -4
  38. package/types/components/Avatar/StyledAvatar.d.ts +0 -34
  39. package/types/components/Avatar/index.d.ts +0 -6
  40. package/types/components/Badge/Status.d.ts +0 -24
  41. package/types/components/Badge/StyledBadge.d.ts +0 -33
  42. package/types/components/Badge/index.d.ts +0 -6
  43. package/types/components/Badge/types.d.ts +0 -53
  44. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -51
  45. package/types/components/BottomNavigation/index.d.ts +0 -45
  46. package/types/components/BottomSheet/BottomSheetContext.d.ts +0 -5
  47. package/types/components/BottomSheet/Footer.d.ts +0 -7
  48. package/types/components/BottomSheet/Header.d.ts +0 -10
  49. package/types/components/BottomSheet/ScrollView.d.ts +0 -3
  50. package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -61
  51. package/types/components/BottomSheet/index.d.ts +0 -74
  52. package/types/components/Box/StyledBox.d.ts +0 -15
  53. package/types/components/Box/config.d.ts +0 -170
  54. package/types/components/Box/index.d.ts +0 -6
  55. package/types/components/Box/types.d.ts +0 -31
  56. package/types/components/Button/Button.d.ts +0 -57
  57. package/types/components/Button/IconButton.d.ts +0 -39
  58. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -20
  59. package/types/components/Button/LoadingIndicator/index.d.ts +0 -27
  60. package/types/components/Button/StyledButton.d.ts +0 -48
  61. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +0 -17
  62. package/types/components/Button/UtilityButton/index.d.ts +0 -24
  63. package/types/components/Button/index.d.ts +0 -10
  64. package/types/components/Calendar/CalendarRowItem.d.ts +0 -12
  65. package/types/components/Calendar/StyledCalendar.d.ts +0 -62
  66. package/types/components/Calendar/helpers.d.ts +0 -3
  67. package/types/components/Calendar/index.d.ts +0 -58
  68. package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -16
  69. package/types/components/Card/DataCard/index.d.ts +0 -22
  70. package/types/components/Card/StyledCard.d.ts +0 -11
  71. package/types/components/Card/index.d.ts +0 -25
  72. package/types/components/Carousel/CardCarousel.d.ts +0 -42
  73. package/types/components/Carousel/CarouselItem.d.ts +0 -7
  74. package/types/components/Carousel/StyledCardCarousel.d.ts +0 -24
  75. package/types/components/Carousel/StyledCarousel.d.ts +0 -54
  76. package/types/components/Carousel/contants.d.ts +0 -2
  77. package/types/components/Carousel/index.d.ts +0 -44
  78. package/types/components/Carousel/types.d.ts +0 -14
  79. package/types/components/Checkbox/StyledCheckbox.d.ts +0 -35
  80. package/types/components/Checkbox/index.d.ts +0 -44
  81. package/types/components/Chip/StyledChip.d.ts +0 -16
  82. package/types/components/Chip/index.d.ts +0 -31
  83. package/types/components/Collapse/StyledCollapse.d.ts +0 -23
  84. package/types/components/Collapse/index.d.ts +0 -20
  85. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -8
  86. package/types/components/ContentNavigator/index.d.ts +0 -43
  87. package/types/components/DatePicker/DatePickerAndroid.d.ts +0 -4
  88. package/types/components/DatePicker/DatePickerCalendar.d.ts +0 -4
  89. package/types/components/DatePicker/DatePickerIOS.d.ts +0 -4
  90. package/types/components/DatePicker/StyledDatePicker.d.ts +0 -9
  91. package/types/components/DatePicker/index.d.ts +0 -4
  92. package/types/components/DatePicker/types.d.ts +0 -78
  93. package/types/components/DatePicker/useCalculateDate.d.ts +0 -4
  94. package/types/components/Divider/StyledDivider.d.ts +0 -12
  95. package/types/components/Divider/index.d.ts +0 -22
  96. package/types/components/Drawer/DragableDrawer/helpers.d.ts +0 -8
  97. package/types/components/Drawer/DragableDrawer/index.d.ts +0 -33
  98. package/types/components/Drawer/StyledDrawer.d.ts +0 -49
  99. package/types/components/Drawer/index.d.ts +0 -27
  100. package/types/components/Empty/StyledEmpty.d.ts +0 -21
  101. package/types/components/Empty/index.d.ts +0 -31
  102. package/types/components/Error/StyledError.d.ts +0 -53
  103. package/types/components/Error/index.d.ts +0 -56
  104. package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -18
  105. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -27
  106. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -18
  107. package/types/components/FAB/ActionGroup/index.d.ts +0 -54
  108. package/types/components/FAB/AnimatedFABIcon.d.ts +0 -7
  109. package/types/components/FAB/FAB.d.ts +0 -40
  110. package/types/components/FAB/Pair/StyledFAB.d.ts +0 -12
  111. package/types/components/FAB/Pair/index.d.ts +0 -16
  112. package/types/components/FAB/StyledFAB.d.ts +0 -21
  113. package/types/components/FAB/index.d.ts +0 -5
  114. package/types/components/FloatingIsland/StyledFloatingIsland.d.ts +0 -19
  115. package/types/components/FloatingIsland/index.d.ts +0 -23
  116. package/types/components/HeroDesignProvider/index.d.ts +0 -4
  117. package/types/components/Icon/AnimatedIcon.d.ts +0 -6
  118. package/types/components/Icon/HeroIcon/index.d.ts +0 -12
  119. package/types/components/Icon/IconList.d.ts +0 -2
  120. package/types/components/Icon/index.d.ts +0 -35
  121. package/types/components/Icon/utils.d.ts +0 -2
  122. package/types/components/Image/index.d.ts +0 -17
  123. package/types/components/List/BasicListItem.d.ts +0 -43
  124. package/types/components/List/ListItem.d.ts +0 -52
  125. package/types/components/List/StyledBasicListItem.d.ts +0 -29
  126. package/types/components/List/StyledListItem.d.ts +0 -51
  127. package/types/components/List/index.d.ts +0 -8
  128. package/types/components/MapPin/Focussed.d.ts +0 -13
  129. package/types/components/MapPin/StyledMapPin.d.ts +0 -31
  130. package/types/components/MapPin/index.d.ts +0 -5
  131. package/types/components/MapPin/types.d.ts +0 -38
  132. package/types/components/Modal/index.d.ts +0 -37
  133. package/types/components/PageControl/StyledPageControl.d.ts +0 -12
  134. package/types/components/PageControl/index.d.ts +0 -22
  135. package/types/components/PinInput/PinCell.d.ts +0 -9
  136. package/types/components/PinInput/StyledPinInput.d.ts +0 -69
  137. package/types/components/PinInput/index.d.ts +0 -69
  138. package/types/components/Portal/PortalHost.d.ts +0 -5
  139. package/types/components/Portal/PortalProvider.d.ts +0 -7
  140. package/types/components/Portal/constants.d.ts +0 -8
  141. package/types/components/Portal/contexts.d.ts +0 -9
  142. package/types/components/Portal/index.d.ts +0 -18
  143. package/types/components/Portal/reducer.d.ts +0 -5
  144. package/types/components/Portal/types.d.ts +0 -22
  145. package/types/components/Portal/usePortal.d.ts +0 -8
  146. package/types/components/Portal/usePortalState.d.ts +0 -1
  147. package/types/components/Progress/ProgressBar.d.ts +0 -18
  148. package/types/components/Progress/ProgressCircle.d.ts +0 -20
  149. package/types/components/Progress/ProgressStep.d.ts +0 -20
  150. package/types/components/Progress/StyledProgressBar.d.ts +0 -18
  151. package/types/components/Progress/StyledProgressCircle.d.ts +0 -46
  152. package/types/components/Progress/StyledStep.d.ts +0 -23
  153. package/types/components/Progress/__tests__/index.spec.d.ts +0 -1
  154. package/types/components/Progress/constants.d.ts +0 -15
  155. package/types/components/Progress/index.d.ts +0 -6
  156. package/types/components/Progress/types.d.ts +0 -1
  157. package/types/components/Radio/Radio.d.ts +0 -38
  158. package/types/components/Radio/RadioGroup.d.ts +0 -36
  159. package/types/components/Radio/StyledRadio.d.ts +0 -30
  160. package/types/components/Radio/index.d.ts +0 -4
  161. package/types/components/Radio/types.d.ts +0 -8
  162. package/types/components/Rate/StyledRate.d.ts +0 -10
  163. package/types/components/Rate/index.d.ts +0 -29
  164. package/types/components/RefreshControl/index.d.ts +0 -5
  165. package/types/components/RichTextEditor/EditorEvent.d.ts +0 -4
  166. package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -18
  167. package/types/components/RichTextEditor/MentionList.d.ts +0 -17
  168. package/types/components/RichTextEditor/RichTextEditor.d.ts +0 -70
  169. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -16
  170. package/types/components/RichTextEditor/StyledToolbar.d.ts +0 -21
  171. package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -2
  172. package/types/components/RichTextEditor/constants.d.ts +0 -9
  173. package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -2
  174. package/types/components/RichTextEditor/index.d.ts +0 -7
  175. package/types/components/RichTextEditor/types.d.ts +0 -1
  176. package/types/components/RichTextEditor/utils/events.d.ts +0 -8
  177. package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -7
  178. package/types/components/Search/SearchOneLine.d.ts +0 -69
  179. package/types/components/Search/SearchSuffixIcon.d.ts +0 -24
  180. package/types/components/Search/SearchTwoLine.d.ts +0 -36
  181. package/types/components/Search/StyledSearch.d.ts +0 -49
  182. package/types/components/Search/index.d.ts +0 -10
  183. package/types/components/Search/utils.d.ts +0 -8
  184. package/types/components/SectionHeading/StyledHeading.d.ts +0 -23
  185. package/types/components/SectionHeading/index.d.ts +0 -45
  186. package/types/components/Select/BaseOptionList.d.ts +0 -8
  187. package/types/components/Select/Footer.d.ts +0 -6
  188. package/types/components/Select/MultiSelect/Option.d.ts +0 -10
  189. package/types/components/Select/MultiSelect/OptionList.d.ts +0 -9
  190. package/types/components/Select/MultiSelect/index.d.ts +0 -30
  191. package/types/components/Select/SingleSelect/Option.d.ts +0 -10
  192. package/types/components/Select/SingleSelect/OptionList.d.ts +0 -11
  193. package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +0 -1
  194. package/types/components/Select/SingleSelect/index.d.ts +0 -23
  195. package/types/components/Select/StyledSelect.d.ts +0 -21
  196. package/types/components/Select/helpers.d.ts +0 -14
  197. package/types/components/Select/index.d.ts +0 -8
  198. package/types/components/Select/types.d.ts +0 -84
  199. package/types/components/Skeleton/StyledSkeleton.d.ts +0 -16
  200. package/types/components/Skeleton/index.d.ts +0 -14
  201. package/types/components/Slider/index.d.ts +0 -53
  202. package/types/components/Spinner/AnimatedSpinner.d.ts +0 -6
  203. package/types/components/Spinner/StyledSpinner.d.ts +0 -34
  204. package/types/components/Spinner/index.d.ts +0 -18
  205. package/types/components/Success/StyledSuccess.d.ts +0 -49
  206. package/types/components/Success/index.d.ts +0 -50
  207. package/types/components/Swipeable/StyledSwipeable.d.ts +0 -10
  208. package/types/components/Swipeable/SwipeableAction.d.ts +0 -27
  209. package/types/components/Swipeable/index.d.ts +0 -49
  210. package/types/components/Switch/SelectorSwitch/Option.d.ts +0 -16
  211. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -19
  212. package/types/components/Switch/SelectorSwitch/index.d.ts +0 -37
  213. package/types/components/Switch/StyledSwitch.d.ts +0 -15
  214. package/types/components/Switch/index.d.ts +0 -28
  215. package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -9
  216. package/types/components/Tabs/SceneView.d.ts +0 -10
  217. package/types/components/Tabs/ScrollableTabs.d.ts +0 -7
  218. package/types/components/Tabs/ScrollableTabsHeader/ScrollableTabsHeader.d.ts +0 -40
  219. package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitHighlightedAnimation.d.ts +0 -9
  220. package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitUnderlinedAnimation.d.ts +0 -10
  221. package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -55
  222. package/types/components/Tabs/StyledTabs.d.ts +0 -51
  223. package/types/components/Tabs/TabWithBadge.d.ts +0 -16
  224. package/types/components/Tabs/index.d.ts +0 -62
  225. package/types/components/Tabs/useHandlePageScroll.d.ts +0 -8
  226. package/types/components/Tabs/useIsFocused.d.ts +0 -6
  227. package/types/components/Tabs/utils.d.ts +0 -2
  228. package/types/components/Tag/StyledTag.d.ts +0 -17
  229. package/types/components/Tag/index.d.ts +0 -27
  230. package/types/components/TextInput/StyledTextInput.d.ts +0 -86
  231. package/types/components/TextInput/index.d.ts +0 -124
  232. package/types/components/TimePicker/StyledTimePicker.d.ts +0 -9
  233. package/types/components/TimePicker/TimePickerAndroid.d.ts +0 -4
  234. package/types/components/TimePicker/TimePickerIOS.d.ts +0 -4
  235. package/types/components/TimePicker/index.d.ts +0 -4
  236. package/types/components/TimePicker/types.d.ts +0 -61
  237. package/types/components/Toast/StyledToast.d.ts +0 -45
  238. package/types/components/Toast/Toast.d.ts +0 -3
  239. package/types/components/Toast/ToastContainer.d.ts +0 -5
  240. package/types/components/Toast/ToastContext.d.ts +0 -12
  241. package/types/components/Toast/ToastProvider.d.ts +0 -11
  242. package/types/components/Toast/index.d.ts +0 -8
  243. package/types/components/Toast/types.d.ts +0 -72
  244. package/types/components/Toolbar/StyledToolbar.d.ts +0 -71
  245. package/types/components/Toolbar/ToolbarGroup.d.ts +0 -14
  246. package/types/components/Toolbar/ToolbarItem.d.ts +0 -31
  247. package/types/components/Toolbar/ToolbarMessage.d.ts +0 -59
  248. package/types/components/Toolbar/index.d.ts +0 -14
  249. package/types/components/Typography/Body/StyledBody.d.ts +0 -14
  250. package/types/components/Typography/Body/__tests__/StyledBody.d.ts +0 -1
  251. package/types/components/Typography/Body/index.d.ts +0 -33
  252. package/types/components/Typography/Caption/StyledCaption.d.ts +0 -12
  253. package/types/components/Typography/Caption/index.d.ts +0 -27
  254. package/types/components/Typography/Label/StyledLabel.d.ts +0 -11
  255. package/types/components/Typography/Label/__tests__/StyledLabel.d.ts +0 -1
  256. package/types/components/Typography/Label/index.d.ts +0 -23
  257. package/types/components/Typography/Text/StyledText.d.ts +0 -13
  258. package/types/components/Typography/Text/index.d.ts +0 -37
  259. package/types/components/Typography/Title/StyledTitle.d.ts +0 -14
  260. package/types/components/Typography/Title/__tests__/StyledTitle.d.ts +0 -1
  261. package/types/components/Typography/Title/index.d.ts +0 -33
  262. package/types/components/Typography/index.d.ts +0 -17
  263. package/types/components/Typography/types.d.ts +0 -6
  264. package/types/index.d.ts +0 -57
  265. package/types/testHelpers/renderWithTheme.d.ts +0 -3
  266. package/types/testHelpers/utils.d.ts +0 -1
  267. package/types/theme/ThemeProvider.d.ts +0 -12
  268. package/types/theme/ThemeSwitcher.d.ts +0 -8
  269. package/types/theme/components/accordion.d.ts +0 -13
  270. package/types/theme/components/alert.d.ts +0 -36
  271. package/types/theme/components/attachment.d.ts +0 -21
  272. package/types/theme/components/avatar.d.ts +0 -50
  273. package/types/theme/components/badge.d.ts +0 -56
  274. package/types/theme/components/bottomNavigation.d.ts +0 -23
  275. package/types/theme/components/bottomSheet.d.ts +0 -38
  276. package/types/theme/components/button.d.ts +0 -72
  277. package/types/theme/components/calendar.d.ts +0 -28
  278. package/types/theme/components/card.d.ts +0 -21
  279. package/types/theme/components/cardCarousel.d.ts +0 -15
  280. package/types/theme/components/carousel.d.ts +0 -36
  281. package/types/theme/components/checkbox.d.ts +0 -27
  282. package/types/theme/components/chip.d.ts +0 -43
  283. package/types/theme/components/contentNavigator.d.ts +0 -7
  284. package/types/theme/components/datePicker.d.ts +0 -7
  285. package/types/theme/components/divider.d.ts +0 -17
  286. package/types/theme/components/drawer.d.ts +0 -30
  287. package/types/theme/components/empty.d.ts +0 -37
  288. package/types/theme/components/error.d.ts +0 -51
  289. package/types/theme/components/fab.d.ts +0 -71
  290. package/types/theme/components/floatingIsland.d.ts +0 -32
  291. package/types/theme/components/icon.d.ts +0 -23
  292. package/types/theme/components/image.d.ts +0 -8
  293. package/types/theme/components/list.d.ts +0 -46
  294. package/types/theme/components/mapPin.d.ts +0 -39
  295. package/types/theme/components/pageControl.d.ts +0 -18
  296. package/types/theme/components/pinInput.d.ts +0 -57
  297. package/types/theme/components/progress.d.ts +0 -51
  298. package/types/theme/components/radio.d.ts +0 -24
  299. package/types/theme/components/rate.d.ts +0 -11
  300. package/types/theme/components/refreshControl.d.ts +0 -7
  301. package/types/theme/components/richTextEditor.d.ts +0 -28
  302. package/types/theme/components/search.d.ts +0 -64
  303. package/types/theme/components/sectionHeading.d.ts +0 -14
  304. package/types/theme/components/select.d.ts +0 -18
  305. package/types/theme/components/skeleton.d.ts +0 -17
  306. package/types/theme/components/slider.d.ts +0 -9
  307. package/types/theme/components/spinner.d.ts +0 -27
  308. package/types/theme/components/success.d.ts +0 -43
  309. package/types/theme/components/swipeable.d.ts +0 -16
  310. package/types/theme/components/switch.d.ts +0 -38
  311. package/types/theme/components/tabs.d.ts +0 -30
  312. package/types/theme/components/tag.d.ts +0 -53
  313. package/types/theme/components/textInput.d.ts +0 -87
  314. package/types/theme/components/timePicker.d.ts +0 -7
  315. package/types/theme/components/toast.d.ts +0 -40
  316. package/types/theme/components/toolbar.d.ts +0 -47
  317. package/types/theme/components/typography.d.ts +0 -165
  318. package/types/theme/getTheme.d.ts +0 -106
  319. package/types/theme/global/borders.d.ts +0 -18
  320. package/types/theme/global/colors/eBens.d.ts +0 -3
  321. package/types/theme/global/colors/global.d.ts +0 -3
  322. package/types/theme/global/colors/globalDark.d.ts +0 -3
  323. package/types/theme/global/colors/jobs.d.ts +0 -3
  324. package/types/theme/global/colors/swag.d.ts +0 -3
  325. package/types/theme/global/colors/swagDark.d.ts +0 -3
  326. package/types/theme/global/colors/swagLight.d.ts +0 -3
  327. package/types/theme/global/colors/swagLightGlobal.d.ts +0 -3
  328. package/types/theme/global/colors/swagLightJobs.d.ts +0 -48
  329. package/types/theme/global/colors/types.d.ts +0 -50
  330. package/types/theme/global/colors/wallet.d.ts +0 -3
  331. package/types/theme/global/colors/work.d.ts +0 -3
  332. package/types/theme/global/index.d.ts +0 -82
  333. package/types/theme/global/scale.d.ts +0 -14
  334. package/types/theme/global/shadows.d.ts +0 -16
  335. package/types/theme/global/sizes.d.ts +0 -14
  336. package/types/theme/global/space.d.ts +0 -16
  337. package/types/theme/global/typography.d.ts +0 -31
  338. package/types/theme/index.d.ts +0 -9
  339. package/types/types.d.ts +0 -14
  340. package/types/utils/functions.d.ts +0 -1
  341. package/types/utils/helpers.d.ts +0 -4
  342. package/types/utils/hooks.d.ts +0 -3
  343. package/types/utils/scale.d.ts +0 -3
@@ -1,38 +0,0 @@
1
- import { ViewProps, StyleProp, ViewStyle, ImageProps } from 'react-native';
2
- import { IconName } from '../Icon';
3
- interface BaseMapPinProps extends ViewProps {
4
- /**
5
- * Additional style.
6
- */
7
- style?: StyleProp<ViewStyle>;
8
- /**
9
- * Testing id of the component.
10
- */
11
- testID?: string;
12
- /**
13
- * State of the map pin.
14
- */
15
- state?: 'idle' | 'selected' | 'applied';
16
- }
17
- interface ImageMapPinProps extends BaseMapPinProps {
18
- /**
19
- * Icon to display in the map pin.
20
- */
21
- icon?: never;
22
- /**
23
- * Image to display in the map pin.
24
- */
25
- image: ImageProps;
26
- }
27
- interface IconMapPinProps extends BaseMapPinProps {
28
- /**
29
- * Icon to display in the map pin.
30
- */
31
- icon: IconName;
32
- /**
33
- * Image to display in the map pin.
34
- */
35
- image?: never;
36
- }
37
- export declare type MapPinProps = ImageMapPinProps | IconMapPinProps;
38
- export {};
@@ -1,37 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- export interface ModalProps {
3
- /**
4
- * Content of the modal.
5
- */
6
- children: ReactNode;
7
- /**
8
- * Visibility of the modal
9
- */
10
- visible?: boolean;
11
- /**
12
- * Callback when the modal is shown.
13
- */
14
- onShow?: () => void;
15
- /**
16
- * Callback when the user taps the hardware back button.
17
- */
18
- onRequestClose?: () => void;
19
- /**
20
- * TestID of the modal.
21
- */
22
- testID?: string;
23
- /**
24
- * Animation type of the modal content.
25
- */
26
- animationType?: 'none' | 'slide' | 'fade';
27
- /**
28
- * Whether to show the modal backdrop
29
- */
30
- transparent?: boolean;
31
- /**
32
- * Callback when the modal is dismissed. iOS only.
33
- */
34
- onDismiss?: () => void;
35
- }
36
- declare const ModalWrapper: ({ visible, ...props }: ModalProps) => React.JSX.Element | null;
37
- export default ModalWrapper;
@@ -1,12 +0,0 @@
1
- import { Animated, View } from 'react-native';
2
- declare const StyledPageControl: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
3
- theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
- }, {}, {
6
- ref?: import("react").Ref<View> | undefined;
7
- }>;
8
- declare const StyledPageControlAnimatedView: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
9
- theme?: import("@emotion/react").Theme | undefined;
10
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
11
- }, {}, {}>;
12
- export { StyledPageControl, StyledPageControlAnimatedView };
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import { StyleProp, ViewStyle } from 'react-native';
3
- export interface PageControlProps {
4
- /**
5
- * The number of pages to display
6
- */
7
- numberOfPages: number;
8
- /**
9
- * The current page to display
10
- */
11
- currentPage: number;
12
- /**
13
- * Additional styles
14
- */
15
- style?: StyleProp<ViewStyle>;
16
- /**
17
- * Testing id of the component.
18
- */
19
- testID?: string;
20
- }
21
- declare const PageControl: ({ numberOfPages, currentPage, testID, style, }: PageControlProps) => React.JSX.Element;
22
- export default PageControl;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import type { State } from './StyledPinInput';
3
- declare function PinCell({ value, secure, focused, state, }: {
4
- value: string;
5
- secure?: boolean;
6
- focused?: boolean;
7
- state?: State;
8
- }): React.JSX.Element;
9
- export default PinCell;
@@ -1,69 +0,0 @@
1
- import { TextInput, View } from 'react-native';
2
- export declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
3
- theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
- }, {}, {
6
- ref?: import("react").Ref<View> | undefined;
7
- }>;
8
- export declare const StyledPinWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
9
- theme?: import("@emotion/react").Theme | undefined;
10
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
11
- }, {}, {
12
- ref?: import("react").Ref<View> | undefined;
13
- }>;
14
- export declare type State = 'default' | 'disabled' | 'error';
15
- export declare const StyledCell: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
16
- theme?: import("@emotion/react").Theme | undefined;
17
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
18
- } & {
19
- themeFocused: boolean;
20
- themeState: State;
21
- }, {}, {
22
- ref?: import("react").Ref<View> | undefined;
23
- }>;
24
- export declare const StyledCellText: import("@emotion/native").StyledComponent<import("../Typography/Title").TitleProps & {
25
- theme?: import("@emotion/react").Theme | undefined;
26
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
27
- } & {
28
- themeState: State;
29
- }, {}, {}>;
30
- export declare const StyledSpacer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
31
- theme?: import("@emotion/react").Theme | undefined;
32
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
33
- }, {}, {
34
- ref?: import("react").Ref<View> | undefined;
35
- }>;
36
- export declare const StyledMask: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
37
- theme?: import("@emotion/react").Theme | undefined;
38
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
39
- } & {
40
- themeState: State;
41
- }, {}, {
42
- ref?: import("react").Ref<View> | undefined;
43
- }>;
44
- export declare const StyledFilledMask: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
45
- theme?: import("@emotion/react").Theme | undefined;
46
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
47
- } & {
48
- themeState: State;
49
- }, {}, {
50
- ref?: import("react").Ref<View> | undefined;
51
- }>;
52
- export declare const StyledHiddenInput: import("@emotion/native").StyledComponent<import("react-native").TextInputProps & {
53
- theme?: import("@emotion/react").Theme | undefined;
54
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
55
- } & {
56
- themePinLength: number;
57
- }, {}, {
58
- ref?: import("react").Ref<TextInput> | undefined;
59
- }>;
60
- export declare const StyledErrorContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
61
- theme?: import("@emotion/react").Theme | undefined;
62
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
63
- }, {}, {
64
- ref?: import("react").Ref<View> | undefined;
65
- }>;
66
- export declare const StyledErrorMessage: import("@emotion/native").StyledComponent<import("../Typography/Caption").CaptionProps & {
67
- theme?: import("@emotion/react").Theme | undefined;
68
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
69
- }, {}, {}>;
@@ -1,69 +0,0 @@
1
- import React, { ComponentProps } from 'react';
2
- import { TextInput } from 'react-native';
3
- import type { StyleProp, ViewStyle } from 'react-native';
4
- import type { State } from './StyledPinInput';
5
- interface PinInputProps {
6
- /**
7
- * The value to show for the input.
8
- */
9
- value?: string;
10
- /**
11
- * Callback function that's called when the text changed.
12
- */
13
- onChangeText: (value: string) => void;
14
- /**
15
- * Callback function that's called when the input is completely filled.
16
- */
17
- onFulfill?: (value: string) => void;
18
- /**
19
- * Number of character for the input.
20
- */
21
- length?: number;
22
- disabled?: boolean;
23
- /**
24
- * Whether the pin value is secured using masks.
25
- * By default, this is true, meaning that masks are shown to hide pin value.
26
- */
27
- secure?: boolean;
28
- /**
29
- * If true, focuses the input on componentDidMount.
30
- */
31
- autoFocus?: boolean;
32
- /**
33
- * Error message.
34
- */
35
- error?: string;
36
- /**
37
- * Additional style.
38
- */
39
- style?: StyleProp<ViewStyle>;
40
- /**
41
- * Testing id of the component.
42
- */
43
- testID?: string;
44
- /**
45
- * The text content type of the input.
46
- */
47
- textContentType?: ComponentProps<typeof TextInput>['textContentType'];
48
- /**
49
- * The autofill type of the input.
50
- */
51
- autoComplete?: ComponentProps<typeof TextInput>['autoComplete'];
52
- }
53
- export declare function getState({ disabled, error, }: {
54
- disabled?: boolean;
55
- error?: string;
56
- }): State;
57
- export interface PinInputHandler {
58
- /**
59
- * focus into input
60
- */
61
- focus: () => void;
62
- /**
63
- * blur text input
64
- */
65
- blur: () => void;
66
- }
67
- export declare const normalizeValue: (value?: string, length?: number) => string;
68
- declare const PinInput: React.ForwardRefExoticComponent<PinInputProps & React.RefAttributes<PinInputHandler>>;
69
- export default PinInput;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- export interface PortalHostProps {
3
- name: string;
4
- }
5
- export declare const PortalHost: React.MemoExoticComponent<({ name }: PortalHostProps) => React.JSX.Element>;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import type { ReactNode } from 'react';
3
- export interface PortalProviderProps {
4
- rootHostName?: string;
5
- children: ReactNode | ReactNode[];
6
- }
7
- export declare const PortalProvider: React.MemoExoticComponent<({ rootHostName, children, }: PortalProviderProps) => React.JSX.Element>;
@@ -1,8 +0,0 @@
1
- declare enum ACTIONS {
2
- REGISTER_HOST = 0,
3
- DEREGISTER_HOST = 1,
4
- ADD_UPDATE_PORTAL = 2,
5
- REMOVE_PORTAL = 3
6
- }
7
- declare const INITIAL_STATE: {};
8
- export { ACTIONS, INITIAL_STATE };
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import type { ReactNode } from 'react';
3
- import { ActionTypes } from './types';
4
- export interface PortalType {
5
- name: string;
6
- node: ReactNode;
7
- }
8
- export declare const PortalStateContext: React.Context<Record<string, PortalType[]> | null>;
9
- export declare const PortalDispatchContext: React.Context<React.Dispatch<ActionTypes> | null>;
@@ -1,18 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import { Theme } from '../../theme';
3
- export interface PortalProps {
4
- name?: string;
5
- hostName?: string;
6
- children?: ReactNode | ReactNode[];
7
- /**
8
- * Theme for portal children.
9
- */
10
- theme?: Theme;
11
- }
12
- declare const _default: React.NamedExoticComponent<PortalProps> & {
13
- readonly type: ({ name, hostName, children, theme }: PortalProps) => null;
14
- } & {
15
- Provider: React.MemoExoticComponent<({ rootHostName, children, }: import("./PortalProvider").PortalProviderProps) => React.JSX.Element>;
16
- Host: React.MemoExoticComponent<({ name }: import("./PortalHost").PortalHostProps) => React.JSX.Element>;
17
- };
18
- export default _default;
@@ -1,5 +0,0 @@
1
- import { PortalType } from './contexts';
2
- import type { ActionTypes } from './types';
3
- declare type State = Record<string, Array<PortalType>>;
4
- export declare const reducer: (state: Record<string, Array<PortalType>>, action: ActionTypes) => State;
5
- export {};
@@ -1,22 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import type { ACTIONS } from './constants';
3
- export interface AddUpdatePortalAction {
4
- type: ACTIONS;
5
- hostName: string;
6
- portalName: string;
7
- node: ReactNode;
8
- }
9
- export interface RemovePortalAction {
10
- type: ACTIONS;
11
- hostName: string;
12
- portalName: string;
13
- }
14
- export interface RegisterHostAction {
15
- type: ACTIONS;
16
- hostName: string;
17
- }
18
- export interface UnregisterHostAction {
19
- type: ACTIONS;
20
- hostName: string;
21
- }
22
- export declare type ActionTypes = AddUpdatePortalAction | RemovePortalAction | RegisterHostAction | UnregisterHostAction;
@@ -1,8 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export declare const usePortal: (hostName?: string) => {
3
- registerHost: () => void;
4
- deregisterHost: () => void;
5
- addPortal: (name: string, node: ReactNode) => void;
6
- updatePortal: (name: string, node: ReactNode) => void;
7
- removePortal: (name: string) => void;
8
- };
@@ -1 +0,0 @@
1
- export declare const usePortalState: (hostName: string) => import("./contexts").PortalType[];
@@ -1,18 +0,0 @@
1
- import type { StyleProp, ViewStyle, ViewProps } from 'react-native';
2
- export interface ProgressBarProps extends ViewProps {
3
- /**
4
- * The progress completion percentage: 0-100.
5
- */
6
- value: number;
7
- /**
8
- * Set intent for your progress.
9
- */
10
- intent?: 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'archived' | 'primary-inverted' | 'success-inverted' | 'warning-inverted' | 'danger-inverted' | 'info-inverted' | 'archived-inverted';
11
- /**
12
- * Additional style.
13
- */
14
- style?: StyleProp<ViewStyle>;
15
- testID?: string;
16
- }
17
- declare const ProgressBar: ({ value, intent, style, testID, ...nativeProps }: ProgressBarProps) => JSX.Element;
18
- export default ProgressBar;
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
- import type { ViewProps, StyleProp, ViewStyle } from 'react-native';
3
- export interface ProgressCircleProps extends ViewProps {
4
- /**
5
- * The progress completion percentage: 0-100.
6
- */
7
- value: number;
8
- renderValue?: (value: number) => React.ReactNode;
9
- /**
10
- * Set intent for your progress.
11
- */
12
- intent?: 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'archived' | 'primary-inverted' | 'success-inverted' | 'warning-inverted' | 'danger-inverted' | 'info-inverted' | 'archived-inverted';
13
- /**
14
- * Additional style.
15
- */
16
- style?: StyleProp<ViewStyle>;
17
- testID?: string;
18
- }
19
- declare const ProgressCircle: ({ value, renderValue, intent, style, testID, ...nativeProps }: ProgressCircleProps) => JSX.Element;
20
- export default ProgressCircle;
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
- import { ViewProps } from 'react-native';
3
- export interface ProgressStepProps extends ViewProps {
4
- /**
5
- * The total number of steps.
6
- */
7
- steps: number;
8
- /**
9
- * The current step.
10
- */
11
- current: number;
12
- /**
13
- * Test ID of the component.
14
- */
15
- testID?: string;
16
- }
17
- declare type StepState = 'complete' | 'incomplete' | 'current';
18
- export declare const getStepState: (current: number, index: number) => StepState;
19
- declare const ProgressStep: ({ steps, current, onLayout, ...props }: ProgressStepProps) => React.JSX.Element;
20
- export default ProgressStep;
@@ -1,18 +0,0 @@
1
- import { Animated, View } from 'react-native';
2
- import type { ViewProps } from 'react-native';
3
- import type { ThemeIntent } from './types';
4
- declare const StyledWrapper: import("@emotion/native").StyledComponent<ViewProps & {
5
- theme?: import("@emotion/react").Theme | undefined;
6
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
7
- } & {
8
- themeIntent: ThemeIntent;
9
- }, {}, {
10
- ref?: import("react").Ref<View> | undefined;
11
- }>;
12
- declare const StyledInner: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
13
- theme?: import("@emotion/react").Theme | undefined;
14
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
15
- } & {
16
- themeIntent: ThemeIntent;
17
- }, {}, {}>;
18
- export { StyledWrapper, StyledInner };
@@ -1,46 +0,0 @@
1
- import { View } from 'react-native';
2
- import type { ViewProps } from 'react-native';
3
- import type { ThemeIntent } from './types';
4
- declare const StyledContainer: import("@emotion/native").StyledComponent<ViewProps & {
5
- theme?: import("@emotion/react").Theme | undefined;
6
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
7
- }, {}, {
8
- ref?: import("react").Ref<View> | undefined;
9
- }>;
10
- declare const StyledHalfCircleWrapper: import("@emotion/native").StyledComponent<ViewProps & {
11
- theme?: import("@emotion/react").Theme | undefined;
12
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
13
- }, {}, {
14
- ref?: import("react").Ref<View> | undefined;
15
- }>;
16
- declare const StyledHalfCircleInnerFG: import("@emotion/native").StyledComponent<ViewProps & {
17
- theme?: import("@emotion/react").Theme | undefined;
18
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
19
- } & {
20
- themeIntent: ThemeIntent;
21
- }, {}, {
22
- ref?: import("react").Ref<View> | undefined;
23
- }>;
24
- declare const StyledHalfCircleInnerBG: import("@emotion/native").StyledComponent<ViewProps & {
25
- theme?: import("@emotion/react").Theme | undefined;
26
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
27
- } & {
28
- themeIntent: ThemeIntent;
29
- }, {}, {
30
- ref?: import("react").Ref<View> | undefined;
31
- }>;
32
- declare const StyledDonutCircle: import("@emotion/native").StyledComponent<ViewProps & {
33
- theme?: import("@emotion/react").Theme | undefined;
34
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
35
- }, {}, {
36
- ref?: import("react").Ref<View> | undefined;
37
- }>;
38
- declare const StyledStrokeEnd: import("@emotion/native").StyledComponent<ViewProps & {
39
- theme?: import("@emotion/react").Theme | undefined;
40
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
41
- } & {
42
- themeIntent: ThemeIntent;
43
- }, {}, {
44
- ref?: import("react").Ref<View> | undefined;
45
- }>;
46
- export { StyledContainer, StyledDonutCircle, StyledHalfCircleWrapper, StyledHalfCircleInnerFG, StyledHalfCircleInnerBG, StyledStrokeEnd, };
@@ -1,23 +0,0 @@
1
- declare type StepState = 'complete' | 'incomplete' | 'current';
2
- declare const StyledStepContainer: import("@emotion/native").StyledComponent<import("../Box").BoxProps & {
3
- theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
- }, {}, {}>;
6
- declare const StyledStep: import("@emotion/native").StyledComponent<import("../Box").BoxProps & {
7
- theme?: import("@emotion/react").Theme | undefined;
8
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
9
- } & {
10
- themeState: StepState;
11
- themeWidth: number;
12
- }, {}, {}>;
13
- declare const StyledSingleStepContainer: import("@emotion/native").StyledComponent<import("../Box").BoxProps & {
14
- theme?: import("@emotion/react").Theme | undefined;
15
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
16
- }, {}, {}>;
17
- declare const StyledSingleStep: import("@emotion/native").StyledComponent<import("../Box").BoxProps & {
18
- theme?: import("@emotion/react").Theme | undefined;
19
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
20
- } & {
21
- themeState: 'complete' | 'incomplete';
22
- }, {}, {}>;
23
- export { StyledStepContainer, StyledStep, StyledSingleStepContainer, StyledSingleStep, };
@@ -1 +0,0 @@
1
- export {};
@@ -1,15 +0,0 @@
1
- declare const THEME_INTENT_MAP: {
2
- readonly primary: "primary";
3
- readonly success: "success";
4
- readonly warning: "warning";
5
- readonly danger: "danger";
6
- readonly info: "info";
7
- readonly archived: "archived";
8
- readonly 'primary-inverted': "primaryInverted";
9
- readonly 'success-inverted': "successInverted";
10
- readonly 'warning-inverted': "warningInverted";
11
- readonly 'danger-inverted': "dangerInverted";
12
- readonly 'info-inverted': "infoInverted";
13
- readonly 'archived-inverted': "archivedInverted";
14
- };
15
- export { THEME_INTENT_MAP };
@@ -1,6 +0,0 @@
1
- declare const Progress: {
2
- readonly Circle: ({ value, renderValue, intent, style, testID, ...nativeProps }: import("./ProgressCircle").ProgressCircleProps) => JSX.Element;
3
- readonly Bar: ({ value, intent, style, testID, ...nativeProps }: import("./ProgressBar").ProgressBarProps) => JSX.Element;
4
- readonly Step: ({ steps, current, onLayout, ...props }: import("./ProgressStep").ProgressStepProps) => import("react").JSX.Element;
5
- };
6
- export default Progress;
@@ -1 +0,0 @@
1
- export declare type ThemeIntent = 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'archived' | 'primary-inverted' | 'success-inverted' | 'warning-inverted' | 'danger-inverted' | 'info-inverted' | 'archived-inverted';
@@ -1,38 +0,0 @@
1
- import type { ReactElement, ReactNode } from 'react';
2
- import { StyleProp, ViewStyle } from 'react-native';
3
- export interface RadioProps {
4
- /**
5
- * Whether the radio is checked.
6
- */
7
- checked?: boolean;
8
- /**
9
- * Press event handler.
10
- */
11
- onPress: () => void;
12
- /**
13
- * Radio text.
14
- */
15
- text: string;
16
- /**
17
- * Additional style.
18
- */
19
- style?: StyleProp<ViewStyle>;
20
- /**
21
- * Radio subtext.
22
- */
23
- subText?: string;
24
- /**
25
- * Testing id of the component.
26
- */
27
- testID?: string;
28
- /**
29
- * Idle background color of the Radio.
30
- */
31
- inactiveIntent?: 'light' | 'dark';
32
- /**
33
- * Children to be rendered inside the component.
34
- */
35
- children?: ReactNode;
36
- }
37
- declare const Radio: ({ text, checked, onPress, style, subText, testID, inactiveIntent, children, }: RadioProps) => ReactElement;
38
- export default Radio;
@@ -1,36 +0,0 @@
1
- import type { ReactElement } from 'react';
2
- import type { StyleProp, ViewStyle } from 'react-native';
3
- import type { OptionType } from './types';
4
- export interface RadioGroupProps<T> {
5
- /**
6
- * An array of radio options to be selected.
7
- */
8
- options: OptionType<T>[];
9
- /**
10
- * Radio input value.
11
- */
12
- value: T;
13
- /**
14
- * Press event handler receiving selected radio's value.
15
- */
16
- onPress: (value: T) => void;
17
- /**
18
- * Used to extract a unique key for a given option at the specified index. Key is used for caching and as the react key to track item re-ordering.
19
- * The default extractor checks option.key, and then falls back to using the index, like React does.
20
- */
21
- keyExtractor?: (option: OptionType<T>, index?: number) => string;
22
- /**
23
- * Additional style.
24
- */
25
- style?: StyleProp<ViewStyle>;
26
- /**
27
- * Testing id of the component.
28
- */
29
- testID?: string;
30
- /**
31
- * Idle background color of the Radio.
32
- */
33
- inactiveIntent?: 'light' | 'dark';
34
- }
35
- declare const RadioGroup: <T>({ value, onPress, options, keyExtractor, style, testID, inactiveIntent, }: RadioGroupProps<T>) => ReactElement;
36
- export default RadioGroup;
@@ -1,30 +0,0 @@
1
- import { View } from 'react-native';
2
- declare type RadioIntent = 'light' | 'dark';
3
- declare const Circle: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
4
- theme?: import("@emotion/react").Theme | undefined;
5
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
6
- }, {}, {
7
- ref?: import("react").Ref<View> | undefined;
8
- }>;
9
- declare const InnerCircle: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
10
- theme?: import("@emotion/react").Theme | undefined;
11
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
12
- }, {}, {
13
- ref?: import("react").Ref<View> | undefined;
14
- }>;
15
- declare const Spacer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
16
- theme?: import("@emotion/react").Theme | undefined;
17
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
18
- } & {
19
- themeIntent: RadioIntent;
20
- }, {}, {
21
- ref?: import("react").Ref<View> | undefined;
22
- }>;
23
- declare const StyledRadio: import("@emotion/native").StyledComponent<import("../List/ListItem").ListItemProps & {
24
- theme?: import("@emotion/react").Theme | undefined;
25
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
26
- } & {
27
- themeIntent: RadioIntent;
28
- themeChecked: boolean;
29
- }, {}, {}>;
30
- export { Circle, InnerCircle, Spacer, StyledRadio };