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

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 (353) hide show
  1. package/.turbo/turbo-build.log +7 -0
  2. package/CHANGELOG.md +11 -1
  3. package/assets/fonts/Saiga-Light.otf +0 -0
  4. package/assets/fonts/Saiga-Medium.otf +0 -0
  5. package/assets/fonts/Saiga-Regular.otf +0 -0
  6. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  7. package/es/index.js +37391 -0
  8. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  9. package/lib/index.js +37488 -0
  10. package/package.json +1 -1
  11. package/src/components/BottomSheet/index.tsx +15 -13
  12. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +11 -11
  13. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  14. package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +8 -8
  15. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  16. package/src/components/Icon/IconList.ts +14 -0
  17. package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +5 -5
  18. package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +4 -4
  19. package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  20. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +1 -1
  21. package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +6 -6
  22. package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
  23. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +21 -21
  24. package/src/theme/global/scale.ts +1 -1
  25. package/src/theme/global/typography.ts +2 -2
  26. package/stats/8.82.0/rn-stats.html +4842 -0
  27. package/stats/8.82.1/rn-stats.html +4844 -0
  28. package/types/components/Accordion/AccordionItem.d.ts +15 -0
  29. package/types/components/Accordion/StyledAccordion.d.ts +32 -0
  30. package/types/components/Accordion/index.d.ts +39 -0
  31. package/types/components/Alert/StyledAlert.d.ts +53 -0
  32. package/types/components/Alert/index.d.ts +58 -0
  33. package/types/components/AnimatedScroller/AnimatedFAB.d.ts +12 -0
  34. package/types/components/AnimatedScroller/AnimatedScrollable.d.ts +16 -0
  35. package/types/components/AnimatedScroller/FlatListWithFAB.d.ts +12 -0
  36. package/types/components/AnimatedScroller/ScrollViewWithFAB.d.ts +12 -0
  37. package/types/components/AnimatedScroller/SectionListWithFAB.d.ts +12 -0
  38. package/types/components/AnimatedScroller/index.d.ts +4 -0
  39. package/types/components/Attachment/StyledAttachment.d.ts +28 -0
  40. package/types/components/Attachment/index.d.ts +38 -0
  41. package/types/components/Avatar/Avatar.d.ts +34 -0
  42. package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +30 -0
  43. package/types/components/Avatar/AvatarStack/index.d.ts +35 -0
  44. package/types/components/Avatar/AvatarStack/utils.d.ts +4 -0
  45. package/types/components/Avatar/StyledAvatar.d.ts +34 -0
  46. package/types/components/Avatar/index.d.ts +6 -0
  47. package/types/components/Badge/Status.d.ts +24 -0
  48. package/types/components/Badge/StyledBadge.d.ts +33 -0
  49. package/types/components/Badge/index.d.ts +6 -0
  50. package/types/components/Badge/types.d.ts +53 -0
  51. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +51 -0
  52. package/types/components/BottomNavigation/index.d.ts +45 -0
  53. package/types/components/BottomSheet/BottomSheetContext.d.ts +5 -0
  54. package/types/components/BottomSheet/Footer.d.ts +7 -0
  55. package/types/components/BottomSheet/Header.d.ts +10 -0
  56. package/types/components/BottomSheet/ScrollView.d.ts +3 -0
  57. package/types/components/BottomSheet/StyledBottomSheet.d.ts +61 -0
  58. package/types/components/BottomSheet/index.d.ts +74 -0
  59. package/types/components/Box/StyledBox.d.ts +15 -0
  60. package/types/components/Box/config.d.ts +170 -0
  61. package/types/components/Box/index.d.ts +6 -0
  62. package/types/components/Box/types.d.ts +31 -0
  63. package/types/components/Button/Button.d.ts +57 -0
  64. package/types/components/Button/IconButton.d.ts +39 -0
  65. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +20 -0
  66. package/types/components/Button/LoadingIndicator/index.d.ts +27 -0
  67. package/types/components/Button/StyledButton.d.ts +48 -0
  68. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +17 -0
  69. package/types/components/Button/UtilityButton/index.d.ts +24 -0
  70. package/types/components/Button/index.d.ts +10 -0
  71. package/types/components/Calendar/CalendarRowItem.d.ts +12 -0
  72. package/types/components/Calendar/StyledCalendar.d.ts +62 -0
  73. package/types/components/Calendar/helpers.d.ts +3 -0
  74. package/types/components/Calendar/index.d.ts +58 -0
  75. package/types/components/Card/DataCard/StyledDataCard.d.ts +16 -0
  76. package/types/components/Card/DataCard/index.d.ts +22 -0
  77. package/types/components/Card/StyledCard.d.ts +11 -0
  78. package/types/components/Card/index.d.ts +25 -0
  79. package/types/components/Carousel/CardCarousel.d.ts +42 -0
  80. package/types/components/Carousel/CarouselItem.d.ts +7 -0
  81. package/types/components/Carousel/StyledCardCarousel.d.ts +24 -0
  82. package/types/components/Carousel/StyledCarousel.d.ts +54 -0
  83. package/types/components/Carousel/contants.d.ts +2 -0
  84. package/types/components/Carousel/index.d.ts +44 -0
  85. package/types/components/Carousel/types.d.ts +14 -0
  86. package/types/components/Checkbox/StyledCheckbox.d.ts +35 -0
  87. package/types/components/Checkbox/index.d.ts +44 -0
  88. package/types/components/Chip/StyledChip.d.ts +16 -0
  89. package/types/components/Chip/index.d.ts +31 -0
  90. package/types/components/Collapse/StyledCollapse.d.ts +23 -0
  91. package/types/components/Collapse/index.d.ts +20 -0
  92. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +8 -0
  93. package/types/components/ContentNavigator/index.d.ts +43 -0
  94. package/types/components/DatePicker/DatePickerAndroid.d.ts +7 -0
  95. package/types/components/DatePicker/DatePickerCalendar.d.ts +4 -0
  96. package/types/components/DatePicker/DatePickerIOS.d.ts +7 -0
  97. package/types/components/DatePicker/StyledDatePicker.d.ts +9 -0
  98. package/types/components/DatePicker/index.d.ts +4 -0
  99. package/types/components/DatePicker/types.d.ts +79 -0
  100. package/types/components/DatePicker/useCalculateDate.d.ts +4 -0
  101. package/types/components/Divider/StyledDivider.d.ts +12 -0
  102. package/types/components/Divider/index.d.ts +22 -0
  103. package/types/components/Drawer/DragableDrawer/helpers.d.ts +8 -0
  104. package/types/components/Drawer/DragableDrawer/index.d.ts +33 -0
  105. package/types/components/Drawer/StyledDrawer.d.ts +49 -0
  106. package/types/components/Drawer/index.d.ts +27 -0
  107. package/types/components/Empty/StyledEmpty.d.ts +21 -0
  108. package/types/components/Empty/index.d.ts +31 -0
  109. package/types/components/Error/StyledError.d.ts +53 -0
  110. package/types/components/Error/index.d.ts +56 -0
  111. package/types/components/FAB/ActionGroup/ActionItem.d.ts +18 -0
  112. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +27 -0
  113. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +18 -0
  114. package/types/components/FAB/ActionGroup/index.d.ts +54 -0
  115. package/types/components/FAB/AnimatedFABIcon.d.ts +7 -0
  116. package/types/components/FAB/FAB.d.ts +40 -0
  117. package/types/components/FAB/Pair/StyledFAB.d.ts +12 -0
  118. package/types/components/FAB/Pair/index.d.ts +16 -0
  119. package/types/components/FAB/StyledFAB.d.ts +21 -0
  120. package/types/components/FAB/index.d.ts +5 -0
  121. package/types/components/FloatingIsland/StyledFloatingIsland.d.ts +19 -0
  122. package/types/components/FloatingIsland/index.d.ts +23 -0
  123. package/types/components/HeroDesignProvider/index.d.ts +4 -0
  124. package/types/components/Icon/AnimatedIcon.d.ts +6 -0
  125. package/types/components/Icon/HeroIcon/index.d.ts +12 -0
  126. package/types/components/Icon/IconList.d.ts +2 -0
  127. package/types/components/Icon/index.d.ts +35 -0
  128. package/types/components/Icon/utils.d.ts +2 -0
  129. package/types/components/Image/index.d.ts +17 -0
  130. package/types/components/List/BasicListItem.d.ts +43 -0
  131. package/types/components/List/ListItem.d.ts +52 -0
  132. package/types/components/List/StyledBasicListItem.d.ts +29 -0
  133. package/types/components/List/StyledListItem.d.ts +51 -0
  134. package/types/components/List/index.d.ts +8 -0
  135. package/types/components/MapPin/Focussed.d.ts +13 -0
  136. package/types/components/MapPin/StyledMapPin.d.ts +31 -0
  137. package/types/components/MapPin/index.d.ts +5 -0
  138. package/types/components/MapPin/types.d.ts +38 -0
  139. package/types/components/Modal/index.d.ts +37 -0
  140. package/types/components/PageControl/StyledPageControl.d.ts +12 -0
  141. package/types/components/PageControl/index.d.ts +22 -0
  142. package/types/components/PinInput/PinCell.d.ts +9 -0
  143. package/types/components/PinInput/StyledPinInput.d.ts +69 -0
  144. package/types/components/PinInput/index.d.ts +69 -0
  145. package/types/components/Portal/PortalHost.d.ts +5 -0
  146. package/types/components/Portal/PortalProvider.d.ts +7 -0
  147. package/types/components/Portal/constants.d.ts +8 -0
  148. package/types/components/Portal/contexts.d.ts +9 -0
  149. package/types/components/Portal/index.d.ts +18 -0
  150. package/types/components/Portal/reducer.d.ts +5 -0
  151. package/types/components/Portal/types.d.ts +22 -0
  152. package/types/components/Portal/usePortal.d.ts +8 -0
  153. package/types/components/Portal/usePortalState.d.ts +1 -0
  154. package/types/components/Progress/ProgressBar.d.ts +18 -0
  155. package/types/components/Progress/ProgressCircle.d.ts +20 -0
  156. package/types/components/Progress/ProgressStep.d.ts +20 -0
  157. package/types/components/Progress/StyledProgressBar.d.ts +18 -0
  158. package/types/components/Progress/StyledProgressCircle.d.ts +46 -0
  159. package/types/components/Progress/StyledStep.d.ts +23 -0
  160. package/types/components/Progress/__tests__/index.spec.d.ts +1 -0
  161. package/types/components/Progress/constants.d.ts +15 -0
  162. package/types/components/Progress/index.d.ts +6 -0
  163. package/types/components/Progress/types.d.ts +1 -0
  164. package/types/components/Radio/Radio.d.ts +38 -0
  165. package/types/components/Radio/RadioGroup.d.ts +36 -0
  166. package/types/components/Radio/StyledRadio.d.ts +30 -0
  167. package/types/components/Radio/index.d.ts +4 -0
  168. package/types/components/Radio/types.d.ts +8 -0
  169. package/types/components/Rate/StyledRate.d.ts +10 -0
  170. package/types/components/Rate/index.d.ts +29 -0
  171. package/types/components/RefreshControl/index.d.ts +5 -0
  172. package/types/components/RichTextEditor/EditorEvent.d.ts +4 -0
  173. package/types/components/RichTextEditor/EditorToolbar.d.ts +18 -0
  174. package/types/components/RichTextEditor/MentionList.d.ts +17 -0
  175. package/types/components/RichTextEditor/RichTextEditor.d.ts +70 -0
  176. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +16 -0
  177. package/types/components/RichTextEditor/StyledToolbar.d.ts +21 -0
  178. package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +2 -0
  179. package/types/components/RichTextEditor/constants.d.ts +9 -0
  180. package/types/components/RichTextEditor/heroEditorApp.d.ts +2 -0
  181. package/types/components/RichTextEditor/index.d.ts +7 -0
  182. package/types/components/RichTextEditor/types.d.ts +1 -0
  183. package/types/components/RichTextEditor/utils/events.d.ts +8 -0
  184. package/types/components/RichTextEditor/utils/rnWebView.d.ts +7 -0
  185. package/types/components/Search/SearchOneLine.d.ts +69 -0
  186. package/types/components/Search/SearchSuffixIcon.d.ts +24 -0
  187. package/types/components/Search/SearchTwoLine.d.ts +36 -0
  188. package/types/components/Search/StyledSearch.d.ts +49 -0
  189. package/types/components/Search/index.d.ts +10 -0
  190. package/types/components/Search/utils.d.ts +8 -0
  191. package/types/components/SectionHeading/StyledHeading.d.ts +23 -0
  192. package/types/components/SectionHeading/index.d.ts +45 -0
  193. package/types/components/Select/BaseOptionList.d.ts +8 -0
  194. package/types/components/Select/Footer.d.ts +6 -0
  195. package/types/components/Select/MultiSelect/Option.d.ts +10 -0
  196. package/types/components/Select/MultiSelect/OptionList.d.ts +9 -0
  197. package/types/components/Select/MultiSelect/index.d.ts +30 -0
  198. package/types/components/Select/SingleSelect/Option.d.ts +10 -0
  199. package/types/components/Select/SingleSelect/OptionList.d.ts +11 -0
  200. package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +1 -0
  201. package/types/components/Select/SingleSelect/index.d.ts +23 -0
  202. package/types/components/Select/StyledSelect.d.ts +21 -0
  203. package/types/components/Select/helpers.d.ts +14 -0
  204. package/types/components/Select/index.d.ts +8 -0
  205. package/types/components/Select/types.d.ts +84 -0
  206. package/types/components/Skeleton/StyledSkeleton.d.ts +16 -0
  207. package/types/components/Skeleton/index.d.ts +14 -0
  208. package/types/components/Slider/index.d.ts +53 -0
  209. package/types/components/Spinner/AnimatedSpinner.d.ts +6 -0
  210. package/types/components/Spinner/StyledSpinner.d.ts +34 -0
  211. package/types/components/Spinner/index.d.ts +18 -0
  212. package/types/components/Success/StyledSuccess.d.ts +49 -0
  213. package/types/components/Success/index.d.ts +50 -0
  214. package/types/components/Swipeable/StyledSwipeable.d.ts +10 -0
  215. package/types/components/Swipeable/SwipeableAction.d.ts +27 -0
  216. package/types/components/Swipeable/index.d.ts +49 -0
  217. package/types/components/Switch/SelectorSwitch/Option.d.ts +16 -0
  218. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +19 -0
  219. package/types/components/Switch/SelectorSwitch/index.d.ts +37 -0
  220. package/types/components/Switch/StyledSwitch.d.ts +15 -0
  221. package/types/components/Switch/index.d.ts +28 -0
  222. package/types/components/Tabs/ActiveTabIndicator.d.ts +9 -0
  223. package/types/components/Tabs/SceneView.d.ts +10 -0
  224. package/types/components/Tabs/ScrollableTabs.d.ts +7 -0
  225. package/types/components/Tabs/ScrollableTabsHeader/ScrollableTabsHeader.d.ts +40 -0
  226. package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitHighlightedAnimation.d.ts +9 -0
  227. package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitUnderlinedAnimation.d.ts +10 -0
  228. package/types/components/Tabs/StyledScrollableTabs.d.ts +55 -0
  229. package/types/components/Tabs/StyledTabs.d.ts +51 -0
  230. package/types/components/Tabs/TabWithBadge.d.ts +16 -0
  231. package/types/components/Tabs/index.d.ts +62 -0
  232. package/types/components/Tabs/useHandlePageScroll.d.ts +8 -0
  233. package/types/components/Tabs/useIsFocused.d.ts +6 -0
  234. package/types/components/Tabs/utils.d.ts +2 -0
  235. package/types/components/Tag/StyledTag.d.ts +17 -0
  236. package/types/components/Tag/index.d.ts +27 -0
  237. package/types/components/TextInput/StyledTextInput.d.ts +86 -0
  238. package/types/components/TextInput/index.d.ts +124 -0
  239. package/types/components/TimePicker/StyledTimePicker.d.ts +9 -0
  240. package/types/components/TimePicker/TimePickerAndroid.d.ts +4 -0
  241. package/types/components/TimePicker/TimePickerIOS.d.ts +4 -0
  242. package/types/components/TimePicker/index.d.ts +4 -0
  243. package/types/components/TimePicker/types.d.ts +61 -0
  244. package/types/components/Toast/StyledToast.d.ts +59 -0
  245. package/types/components/Toast/Toast.d.ts +3 -0
  246. package/types/components/Toast/ToastContainer.d.ts +5 -0
  247. package/types/components/Toast/ToastContext.d.ts +12 -0
  248. package/types/components/Toast/ToastProvider.d.ts +11 -0
  249. package/types/components/Toast/index.d.ts +8 -0
  250. package/types/components/Toast/types.d.ts +72 -0
  251. package/types/components/Toolbar/StyledToolbar.d.ts +71 -0
  252. package/types/components/Toolbar/ToolbarGroup.d.ts +14 -0
  253. package/types/components/Toolbar/ToolbarItem.d.ts +31 -0
  254. package/types/components/Toolbar/ToolbarMessage.d.ts +59 -0
  255. package/types/components/Toolbar/index.d.ts +14 -0
  256. package/types/components/Typography/Body/StyledBody.d.ts +14 -0
  257. package/types/components/Typography/Body/__tests__/StyledBody.d.ts +1 -0
  258. package/types/components/Typography/Body/index.d.ts +33 -0
  259. package/types/components/Typography/Caption/StyledCaption.d.ts +12 -0
  260. package/types/components/Typography/Caption/index.d.ts +27 -0
  261. package/types/components/Typography/Label/StyledLabel.d.ts +11 -0
  262. package/types/components/Typography/Label/__tests__/StyledLabel.d.ts +1 -0
  263. package/types/components/Typography/Label/index.d.ts +23 -0
  264. package/types/components/Typography/Text/StyledText.d.ts +13 -0
  265. package/types/components/Typography/Text/index.d.ts +37 -0
  266. package/types/components/Typography/Title/StyledTitle.d.ts +14 -0
  267. package/types/components/Typography/Title/__tests__/StyledTitle.d.ts +1 -0
  268. package/types/components/Typography/Title/index.d.ts +33 -0
  269. package/types/components/Typography/index.d.ts +17 -0
  270. package/types/components/Typography/types.d.ts +6 -0
  271. package/types/index.d.ts +57 -0
  272. package/types/testHelpers/renderWithTheme.d.ts +3 -0
  273. package/types/testHelpers/utils.d.ts +1 -0
  274. package/types/theme/ThemeProvider.d.ts +12 -0
  275. package/types/theme/ThemeSwitcher.d.ts +8 -0
  276. package/types/theme/components/accordion.d.ts +13 -0
  277. package/types/theme/components/alert.d.ts +36 -0
  278. package/types/theme/components/attachment.d.ts +21 -0
  279. package/types/theme/components/avatar.d.ts +50 -0
  280. package/types/theme/components/badge.d.ts +56 -0
  281. package/types/theme/components/bottomNavigation.d.ts +23 -0
  282. package/types/theme/components/bottomSheet.d.ts +38 -0
  283. package/types/theme/components/button.d.ts +72 -0
  284. package/types/theme/components/calendar.d.ts +28 -0
  285. package/types/theme/components/card.d.ts +21 -0
  286. package/types/theme/components/cardCarousel.d.ts +15 -0
  287. package/types/theme/components/carousel.d.ts +36 -0
  288. package/types/theme/components/checkbox.d.ts +27 -0
  289. package/types/theme/components/chip.d.ts +43 -0
  290. package/types/theme/components/contentNavigator.d.ts +7 -0
  291. package/types/theme/components/datePicker.d.ts +7 -0
  292. package/types/theme/components/divider.d.ts +17 -0
  293. package/types/theme/components/drawer.d.ts +30 -0
  294. package/types/theme/components/empty.d.ts +37 -0
  295. package/types/theme/components/error.d.ts +51 -0
  296. package/types/theme/components/fab.d.ts +71 -0
  297. package/types/theme/components/floatingIsland.d.ts +32 -0
  298. package/types/theme/components/icon.d.ts +23 -0
  299. package/types/theme/components/image.d.ts +8 -0
  300. package/types/theme/components/list.d.ts +46 -0
  301. package/types/theme/components/mapPin.d.ts +39 -0
  302. package/types/theme/components/pageControl.d.ts +18 -0
  303. package/types/theme/components/pinInput.d.ts +57 -0
  304. package/types/theme/components/progress.d.ts +51 -0
  305. package/types/theme/components/radio.d.ts +24 -0
  306. package/types/theme/components/rate.d.ts +11 -0
  307. package/types/theme/components/refreshControl.d.ts +7 -0
  308. package/types/theme/components/richTextEditor.d.ts +28 -0
  309. package/types/theme/components/search.d.ts +64 -0
  310. package/types/theme/components/sectionHeading.d.ts +14 -0
  311. package/types/theme/components/select.d.ts +18 -0
  312. package/types/theme/components/skeleton.d.ts +17 -0
  313. package/types/theme/components/slider.d.ts +9 -0
  314. package/types/theme/components/spinner.d.ts +27 -0
  315. package/types/theme/components/success.d.ts +43 -0
  316. package/types/theme/components/swipeable.d.ts +16 -0
  317. package/types/theme/components/switch.d.ts +38 -0
  318. package/types/theme/components/tabs.d.ts +30 -0
  319. package/types/theme/components/tag.d.ts +53 -0
  320. package/types/theme/components/textInput.d.ts +87 -0
  321. package/types/theme/components/timePicker.d.ts +7 -0
  322. package/types/theme/components/toast.d.ts +50 -0
  323. package/types/theme/components/toolbar.d.ts +47 -0
  324. package/types/theme/components/typography.d.ts +165 -0
  325. package/types/theme/getTheme.d.ts +106 -0
  326. package/types/theme/global/borders.d.ts +18 -0
  327. package/types/theme/global/colors/eBens.d.ts +3 -0
  328. package/types/theme/global/colors/global.d.ts +3 -0
  329. package/types/theme/global/colors/globalDark.d.ts +3 -0
  330. package/types/theme/global/colors/jobs.d.ts +3 -0
  331. package/types/theme/global/colors/swag.d.ts +3 -0
  332. package/types/theme/global/colors/swagDark.d.ts +3 -0
  333. package/types/theme/global/colors/swagLight.d.ts +3 -0
  334. package/types/theme/global/colors/swagLightGlobal.d.ts +3 -0
  335. package/types/theme/global/colors/swagLightJobs.d.ts +48 -0
  336. package/types/theme/global/colors/types.d.ts +50 -0
  337. package/types/theme/global/colors/wallet.d.ts +3 -0
  338. package/types/theme/global/colors/work.d.ts +3 -0
  339. package/types/theme/global/index.d.ts +82 -0
  340. package/types/theme/global/scale.d.ts +14 -0
  341. package/types/theme/global/shadows.d.ts +16 -0
  342. package/types/theme/global/sizes.d.ts +14 -0
  343. package/types/theme/global/space.d.ts +16 -0
  344. package/types/theme/global/typography.d.ts +31 -0
  345. package/types/theme/index.d.ts +9 -0
  346. package/types/types.d.ts +14 -0
  347. package/types/utils/functions.d.ts +1 -0
  348. package/types/utils/helpers.d.ts +4 -0
  349. package/types/utils/hooks.d.ts +3 -0
  350. package/types/utils/scale.d.ts +3 -0
  351. package/assets/fonts/RebondGrotesque-Light.otf +0 -0
  352. package/assets/fonts/RebondGrotesque-SemiBold.otf +0 -0
  353. package/assets/fonts/RebondGrotesque.otf +0 -0
@@ -0,0 +1,48 @@
1
+ import { TouchableHighlight, View } from 'react-native';
2
+ import type { Theme } from '@emotion/react';
3
+ declare type Intent = 'primary' | 'secondary' | 'danger';
4
+ declare type ThemeVariant = 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'text-primary' | 'text-secondary' | 'text-danger';
5
+ declare const StyledButtonContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableHighlightProps & {
6
+ theme?: Theme | undefined;
7
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
8
+ } & {
9
+ disabled?: boolean | undefined;
10
+ themeButtonVariant: ThemeVariant;
11
+ loading?: boolean | undefined;
12
+ themeInlineText?: boolean | undefined;
13
+ }, {}, {
14
+ ref?: import("react").Ref<TouchableHighlight> | undefined;
15
+ }>;
16
+ declare const StyledButtonText: import("@emotion/native").StyledComponent<import("../Typography/Title").TitleProps & {
17
+ theme?: Theme | undefined;
18
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
19
+ } & {
20
+ disabled?: boolean | undefined;
21
+ themeButtonVariant: ThemeVariant;
22
+ }, {}, {}>;
23
+ declare const StyledButtonTitleOfVariantText: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
24
+ theme?: Theme | undefined;
25
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
26
+ } & {
27
+ disabled?: boolean | undefined;
28
+ themeButtonVariant: 'text-primary' | 'text-secondary' | 'text-danger';
29
+ themeIsPressed?: boolean | undefined;
30
+ }, {}, {}>;
31
+ declare const StyledButtonIconWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
32
+ theme?: Theme | undefined;
33
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
34
+ } & {
35
+ themePosition: 'left' | 'right';
36
+ }, {}, {
37
+ ref?: import("react").Ref<View> | undefined;
38
+ }>;
39
+ declare const StyledButtonIcon: import("@emotion/native").StyledComponent<import("../Icon").IconProps & {
40
+ theme?: Theme | undefined;
41
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
42
+ } & {
43
+ disabled?: boolean | undefined;
44
+ themeButtonVariant: ThemeVariant;
45
+ themeIsPressed?: boolean | undefined;
46
+ }, {}, {}>;
47
+ export { StyledButtonContainer, StyledButtonText, StyledButtonIconWrapper, StyledButtonIcon, StyledButtonTitleOfVariantText, };
48
+ export type { Intent, ThemeVariant };
@@ -0,0 +1,17 @@
1
+ import { View, TouchableOpacity } from 'react-native';
2
+ export declare const ButtonContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
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<TouchableOpacity> | undefined;
7
+ }>;
8
+ export declare const IconWrapper: 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 const ButtonText: import("@emotion/native").StyledComponent<import("../../Typography/Body").BodyProps & {
15
+ theme?: import("@emotion/react").Theme | undefined;
16
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
17
+ }, {}, {}>;
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import type { ReactChild } from 'react';
3
+ import type { ViewProps } from 'react-native';
4
+ import type { IconName } from '../../Icon';
5
+ export interface UtilityButtonProps extends ViewProps {
6
+ /**
7
+ * Places an icon within the button, before the button's text
8
+ */
9
+ icon: IconName;
10
+ /**
11
+ * Set the handler to handle press event.
12
+ */
13
+ onPress: () => void;
14
+ /**
15
+ * Button label.
16
+ */
17
+ text: ReactChild;
18
+ /**
19
+ * Visual intent color to apply to button.
20
+ */
21
+ intent?: 'primary' | 'text';
22
+ }
23
+ declare const UtilityButton: ({ icon, onPress, text, testID, intent, style, hitSlop, }: UtilityButtonProps) => React.JSX.Element;
24
+ export default UtilityButton;
@@ -0,0 +1,10 @@
1
+ import type { FunctionComponent } from 'react';
2
+ import IconButton from './IconButton';
3
+ import UtilityButton from './UtilityButton';
4
+ import type { ButtonProps } from './Button';
5
+ interface CompoundButtonProps extends FunctionComponent<ButtonProps> {
6
+ Icon: typeof IconButton;
7
+ Utility: typeof UtilityButton;
8
+ }
9
+ declare const CompoundButton: CompoundButtonProps;
10
+ export default CompoundButton;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ export interface CalendarRowItemProps {
3
+ date?: Date;
4
+ onPress?: () => void;
5
+ isCurrent?: boolean;
6
+ isSelected?: boolean;
7
+ textIntent?: 'body' | 'subdued';
8
+ marked?: boolean;
9
+ itemWidth?: number;
10
+ }
11
+ declare const CalendarRowItem: ({ date, onPress, isCurrent, isSelected, textIntent, marked, itemWidth, }: CalendarRowItemProps) => React.JSX.Element;
12
+ export default CalendarRowItem;
@@ -0,0 +1,62 @@
1
+ import { TouchableOpacity, View } from 'react-native';
2
+ import type { ViewProps } from 'react-native';
3
+ declare const StyledContainer: import("@emotion/native").StyledComponent<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 StyledCalendarHeader: import("@emotion/native").StyledComponent<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 StyledCalendarDayNameCell: import("@emotion/native").StyledComponent<ViewProps & {
16
+ theme?: import("@emotion/react").Theme | undefined;
17
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
18
+ } & {
19
+ themeItemWidth?: number | undefined;
20
+ }, {}, {
21
+ ref?: import("react").Ref<View> | undefined;
22
+ }>;
23
+ declare const StyledCalendarCell: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
24
+ theme?: import("@emotion/react").Theme | undefined;
25
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
26
+ } & {
27
+ variant?: "selected" | "default" | "current" | undefined;
28
+ themeItemWidth?: number | undefined;
29
+ }, {}, {
30
+ ref?: import("react").Ref<TouchableOpacity> | undefined;
31
+ }>;
32
+ declare const StyledCalendarRow: 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 StyledCalendarRowItem: 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
+ themeItemWidth?: number | undefined;
43
+ }, {}, {
44
+ ref?: import("react").Ref<View> | undefined;
45
+ }>;
46
+ declare const StyledDisabledCalendarRowItem: import("@emotion/native").StyledComponent<ViewProps & {
47
+ theme?: import("@emotion/react").Theme | undefined;
48
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
49
+ } & {
50
+ themeItemWidth?: number | undefined;
51
+ }, {}, {
52
+ ref?: import("react").Ref<View> | undefined;
53
+ }>;
54
+ declare const StyledMark: import("@emotion/native").StyledComponent<ViewProps & {
55
+ theme?: import("@emotion/react").Theme | undefined;
56
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
57
+ } & {
58
+ variant: 'primary' | 'inverted';
59
+ }, {}, {
60
+ ref?: import("react").Ref<View> | undefined;
61
+ }>;
62
+ export { StyledContainer, StyledCalendarHeader, StyledCalendarRow, StyledCalendarRowItem, StyledDisabledCalendarRowItem, StyledCalendarDayNameCell, StyledCalendarCell, StyledMark, };
@@ -0,0 +1,3 @@
1
+ export declare const initArray: <T>(length: number, func: (value: number) => T) => T[];
2
+ export declare const isEqDate: (dateA?: Date, dateB?: Date) => boolean;
3
+ export declare const getValidDate: (date: Date, minDate?: Date, maxDate?: Date) => Date | undefined;
@@ -0,0 +1,58 @@
1
+ import React from 'react';
2
+ export interface CalendarProps {
3
+ /**
4
+ * Selected date value.
5
+ */
6
+ value?: Date;
7
+ /**
8
+ * Visible date of month that calendar opens to display. Default is now.
9
+ */
10
+ visibleDate: Date;
11
+ /**
12
+ * Mininum date. Restrict the range of possible date values.
13
+ */
14
+ minDate?: Date;
15
+ /**
16
+ * Maximum date. Restrict the range of possible date values.
17
+ */
18
+ maxDate?: Date;
19
+ /**
20
+ * Callback is called when selected date value is changed.
21
+ */
22
+ onChange?: (date: Date) => void;
23
+ /**
24
+ * Handler to be called when the user taps the previous button.
25
+ */
26
+ onPreviousPress?: () => void;
27
+ /**
28
+ * Handler to be called when the user taps the next button.
29
+ */
30
+ onNextPress?: () => void;
31
+ /**
32
+ * Handler to be called when the user taps the title.
33
+ */
34
+ onTitlePress?: () => void;
35
+ /**
36
+ * Mark dates to display on calendar.
37
+ */
38
+ markedDates?: Date[];
39
+ /**
40
+ * Testing id of the component.
41
+ */
42
+ testID?: string;
43
+ /**
44
+ * Callback when header month is changed, passing this prop will disable onTitlePress.
45
+ */
46
+ onMonthChange?: (date: Date) => void;
47
+ onToggleMonthPicker?: (visible: boolean) => void;
48
+ /**
49
+ * Label for the confirm button of the month picker, Android only.
50
+ */
51
+ monthPickerConfirmLabel?: string;
52
+ /**
53
+ * Label for the cancel button of the month picker, Android only.
54
+ */
55
+ monthPickerCancelLabel?: string;
56
+ }
57
+ declare const Calendar: ({ value, visibleDate, onChange, onPreviousPress, onNextPress, onTitlePress, minDate, maxDate, markedDates, testID, onMonthChange, onToggleMonthPicker, monthPickerConfirmLabel, monthPickerCancelLabel, }: CalendarProps) => React.JSX.Element;
58
+ export default Calendar;
@@ -0,0 +1,16 @@
1
+ import { View } from 'react-native';
2
+ declare const StyledDataCard: 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 Indicator: 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
+ themeIntent: 'success' | 'info' | 'warning' | 'danger' | 'archived' | 'primary';
13
+ }, {}, {
14
+ ref?: import("react").Ref<View> | undefined;
15
+ }>;
16
+ export { StyledDataCard, Indicator };
@@ -0,0 +1,22 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { StyleProp, ViewStyle, ViewProps } from 'react-native';
3
+ export interface DataCardProps extends ViewProps {
4
+ /**
5
+ * Card's content.
6
+ */
7
+ children?: ReactNode;
8
+ /**
9
+ * Visual intent color to apply to card.
10
+ */
11
+ intent?: 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'archived';
12
+ /**
13
+ * Additional style.
14
+ */
15
+ style?: StyleProp<ViewStyle>;
16
+ /**
17
+ * Testing id of the component.
18
+ */
19
+ testID?: string;
20
+ }
21
+ declare const DataCard: ({ intent, children, ...nativeProps }: DataCardProps) => JSX.Element;
22
+ export default DataCard;
@@ -0,0 +1,11 @@
1
+ import { View } from 'react-native';
2
+ declare const StyledCard: 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
+ themeIntent?: "neutral" | "primary" | "success" | "warning" | "danger" | "archived" | undefined;
7
+ themeVariant?: "basic" | "super-round" | undefined;
8
+ }, {}, {
9
+ ref?: import("react").Ref<View> | undefined;
10
+ }>;
11
+ export { StyledCard };
@@ -0,0 +1,25 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { StyleProp, ViewProps, ViewStyle } from 'react-native';
3
+ export interface CardProps extends ViewProps {
4
+ /**
5
+ * Card's content.
6
+ */
7
+ children?: ReactNode;
8
+ /**
9
+ * Visual intent color to apply to card.
10
+ */
11
+ intent?: 'primary' | 'success' | 'warning' | 'danger' | 'archived' | 'neutral';
12
+ /**
13
+ * Additional style.
14
+ */
15
+ style?: StyleProp<ViewStyle>;
16
+ /**
17
+ * Testing id of the component.
18
+ */
19
+ testID?: string;
20
+ variant?: 'basic' | 'super-round';
21
+ }
22
+ declare const _default: (({ intent, children, variant, ...nativeProps }: CardProps) => JSX.Element) & {
23
+ Data: ({ intent, children, ...nativeProps }: import("./DataCard").DataCardProps) => JSX.Element;
24
+ };
25
+ export default _default;
@@ -0,0 +1,42 @@
1
+ import React from 'react';
2
+ import { LayoutChangeEvent, StyleProp, ViewStyle } from 'react-native';
3
+ export declare type CardCarouselHandles = {
4
+ snapToIndex: (index: number) => void;
5
+ };
6
+ export interface CardCarouselProps {
7
+ /**
8
+ * Whether to scroll automatically.
9
+ */
10
+ autoPlay?: boolean;
11
+ /**
12
+ * Set interval of each slide.
13
+ */
14
+ autoPlayInterval?: number;
15
+ /**
16
+ * onItemIndexChange event handler receiving index of selected Item.
17
+ */
18
+ onItemIndexChange?: (index: number) => void;
19
+ /**
20
+ * Carousel items.
21
+ */
22
+ items: React.ReactNode[];
23
+ /**
24
+ * Indicates hide or show page control.
25
+ */
26
+ hidePageControl?: boolean;
27
+ /**
28
+ * Additional styles
29
+ */
30
+ style?: StyleProp<ViewStyle>;
31
+ /**
32
+ * Testing id of the component.
33
+ */
34
+ testID?: string;
35
+ /**
36
+ * Component ref.
37
+ */
38
+ ref?: React.Ref<CardCarouselHandles>;
39
+ onLayout?: (event: LayoutChangeEvent) => void;
40
+ }
41
+ export declare const getCardCarouselValidIndex: (index: number, length: number) => number;
42
+ export declare const CardCarousel: React.ForwardRefExoticComponent<Omit<CardCarouselProps, "ref"> & React.RefAttributes<CardCarouselHandles>>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { CarouselData } from './types';
3
+ interface CarouselItemProps extends Omit<CarouselData, 'background'> {
4
+ width: number;
5
+ }
6
+ declare const CarouselItem: ({ width, image, content, heading, body, }: CarouselItemProps) => React.JSX.Element;
7
+ export default CarouselItem;
@@ -0,0 +1,24 @@
1
+ import { View, ViewProps } from 'react-native';
2
+ import { CardProps } from '../Card';
3
+ import { PageControlProps } from '../PageControl';
4
+ declare const StyledPageControl: import("@emotion/native").StyledComponent<PageControlProps & {
5
+ theme?: import("@emotion/react").Theme | undefined;
6
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
7
+ }, {}, {}>;
8
+ declare const StyledWrapper: import("@emotion/native").StyledComponent<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
+ declare const StyledCard: import("@emotion/native").StyledComponent<CardProps & {
15
+ theme?: import("@emotion/react").Theme | undefined;
16
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
17
+ }, {}, {}>;
18
+ declare const StyledItemWrapper: import("@emotion/native").StyledComponent<ViewProps & {
19
+ theme?: import("@emotion/react").Theme | undefined;
20
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
21
+ }, {}, {
22
+ ref?: import("react").Ref<View> | undefined;
23
+ }>;
24
+ export { StyledCard, StyledItemWrapper, StyledWrapper, StyledPageControl };
@@ -0,0 +1,54 @@
1
+ import { View, ImageResizeMode } from 'react-native';
2
+ declare const StyledBackDrop: 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
+ themeSlideBackground: string;
7
+ }, {}, {
8
+ ref?: import("react").Ref<View> | undefined;
9
+ }>;
10
+ declare const StyledCarouselView: import("@emotion/native").StyledComponent<import("react-native").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 StyledCarouselHeading: import("@emotion/native").StyledComponent<import("../Typography/Title").TitleProps & {
17
+ theme?: import("@emotion/react").Theme | undefined;
18
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
19
+ }, {}, {}>;
20
+ declare const StyledCarouselImage: import("@emotion/native").StyledComponent<import("../Image").ImageProps & {
21
+ theme?: import("@emotion/react").Theme | undefined;
22
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
23
+ }, {}, {}>;
24
+ declare const StyledCustomSizeCarouselImage: import("@emotion/native").StyledComponent<import("../Image").ImageProps & {
25
+ theme?: import("@emotion/react").Theme | undefined;
26
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
27
+ } & {
28
+ themeHeight?: number | `${number}%` | undefined;
29
+ themeWidth?: number | `${number}%` | undefined;
30
+ themeResizeMode?: ImageResizeMode | undefined;
31
+ }, {}, {}>;
32
+ declare const StyledCarouselContentWrapper: import("@emotion/native").StyledComponent<import("../Box").BoxProps & {
33
+ theme?: import("@emotion/react").Theme | undefined;
34
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
35
+ } & {
36
+ width: number;
37
+ }, {}, {}>;
38
+ declare const StyledCarouselFooterWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
39
+ theme?: import("@emotion/react").Theme | undefined;
40
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
41
+ }, {}, {
42
+ ref?: import("react").Ref<View> | undefined;
43
+ }>;
44
+ declare const StyledPageControl: import("@emotion/native").StyledComponent<import("../PageControl").PageControlProps & {
45
+ theme?: import("@emotion/react").Theme | undefined;
46
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
47
+ }, {}, {}>;
48
+ declare const StyledPageControlWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
49
+ theme?: import("@emotion/react").Theme | undefined;
50
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
51
+ }, {}, {
52
+ ref?: import("react").Ref<View> | undefined;
53
+ }>;
54
+ export { StyledBackDrop, StyledCarouselView, StyledCarouselHeading, StyledCarouselImage, StyledCarouselContentWrapper, StyledCarouselFooterWrapper, StyledCustomSizeCarouselImage, StyledPageControl, StyledPageControlWrapper, };
@@ -0,0 +1,2 @@
1
+ export declare const ITEM_WIDTH_RATE = 0.85;
2
+ export declare const VIEW_POSITION_CENTER = 0.5;
@@ -0,0 +1,44 @@
1
+ import React, { Dispatch, SetStateAction } from 'react';
2
+ import { StyleProp, ViewProps, ViewStyle } from 'react-native';
3
+ import { CarouselData } from './types';
4
+ interface CarouselProps extends ViewProps {
5
+ /**
6
+ * Additional style.
7
+ */
8
+ style?: StyleProp<ViewStyle>;
9
+ /**
10
+ * Testing id of the component.
11
+ */
12
+ testID?: string;
13
+ /**
14
+ * onItemIndexChange event handler receiving index of selected Item.
15
+ */
16
+ onItemIndexChange?: Dispatch<SetStateAction<number>>;
17
+ /**
18
+ * Carousel data.
19
+ */
20
+ items: CarouselData[];
21
+ /**
22
+ * Render action elements function.
23
+ */
24
+ renderActions?: (pageIndex: number) => JSX.Element;
25
+ /**
26
+ * @deprecated will be removed in 9.0.0
27
+ *
28
+ * Should show paginations
29
+ */
30
+ shouldShowPagination?: (pageIndex: number) => boolean;
31
+ /**
32
+ * Current selected item index.
33
+ */
34
+ selectedItemIndex?: number;
35
+ /**
36
+ * position of the page control
37
+ */
38
+ pageControlPosition?: 'top' | 'bottom';
39
+ }
40
+ export declare function useStateFromProp<T>(initialValue: T): [T, Dispatch<SetStateAction<T>>];
41
+ declare const _default: (({ items, onItemIndexChange, renderActions, selectedItemIndex, style, shouldShowPagination, testID, pageControlPosition, ...nativeProps }: CarouselProps) => React.JSX.Element) & {
42
+ Card: React.ForwardRefExoticComponent<Omit<import("./CardCarousel").CardCarouselProps, "ref"> & React.RefAttributes<import("./CardCarousel").CardCarouselHandles>>;
43
+ };
44
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import { ReactNode } from 'react';
2
+ import { ImageSourcePropType, ImageResizeMode } from 'react-native';
3
+ export declare type CarouselImageProps = ImageSourcePropType & {
4
+ height?: number | `${number}%`;
5
+ width?: number | `${number}%`;
6
+ resizeMode?: ImageResizeMode;
7
+ };
8
+ export declare type CarouselData = {
9
+ image?: CarouselImageProps | string;
10
+ content?: ReactNode;
11
+ heading?: string;
12
+ body?: string;
13
+ background: string;
14
+ };
@@ -0,0 +1,35 @@
1
+ import { TouchableOpacity, View } from 'react-native';
2
+ declare type CheckboxThemeState = 'default' | 'disabled' | 'readonly';
3
+ export declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
6
+ } & {
7
+ themeState: CheckboxThemeState;
8
+ }, {}, {
9
+ ref?: import("react").Ref<TouchableOpacity> | undefined;
10
+ }>;
11
+ export declare const StyledDescription: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
12
+ theme?: import("@emotion/react").Theme | undefined;
13
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
14
+ }, {}, {}>;
15
+ export declare const StyledCheckboxContainer: 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
+ ref?: import("react").Ref<View> | undefined;
20
+ }>;
21
+ export declare const StyledCheckbox: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
22
+ theme?: import("@emotion/react").Theme | undefined;
23
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
24
+ } & {
25
+ themeState: CheckboxThemeState;
26
+ }, {}, {
27
+ ref?: import("react").Ref<View> | undefined;
28
+ }>;
29
+ export declare const StyledCheckMark: import("@emotion/native").StyledComponent<import("../Icon").IconProps & {
30
+ theme?: import("@emotion/react").Theme | undefined;
31
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
32
+ } & {
33
+ themeState: CheckboxThemeState;
34
+ }, {}, {}>;
35
+ export {};
@@ -0,0 +1,44 @@
1
+ import React from 'react';
2
+ import type { StyleProp, ViewStyle } from 'react-native';
3
+ export interface CheckboxProps {
4
+ /**
5
+ * Control whether the switch is checked
6
+ */
7
+ checked?: boolean;
8
+ /**
9
+ * Checkbox's description.
10
+ */
11
+ description?: string;
12
+ /**
13
+ * @deprecated This prop will be removed in the next major release. Checkboxes will always have border.
14
+ * Whether the border is shown.
15
+ */
16
+ withBorder?: boolean;
17
+ /**
18
+ * Whether the switch is disabled
19
+ */
20
+ disabled?: boolean;
21
+ /**
22
+ * Event handler.
23
+ */
24
+ onPress?: () => void;
25
+ /**
26
+ * Additional style.
27
+ */
28
+ style?: StyleProp<ViewStyle>;
29
+ /**
30
+ * Testing id of the component.
31
+ */
32
+ testID?: string;
33
+ /**
34
+ * Readonly of the checkbox.
35
+ */
36
+ readonly?: boolean;
37
+ }
38
+ declare type getStateType = {
39
+ disabled: boolean;
40
+ readonly: boolean;
41
+ };
42
+ export declare const getThemeState: ({ disabled, readonly }: getStateType) => "default" | "disabled" | "readonly";
43
+ declare const Checkbox: ({ checked, description, withBorder, disabled, onPress, style, testID, readonly, }: CheckboxProps) => React.JSX.Element;
44
+ export default Checkbox;
@@ -0,0 +1,16 @@
1
+ import { TouchableOpacity } from 'react-native';
2
+ declare type StyledChipWrapperProps = {
3
+ themeVariant?: 'outlined' | 'filled' | 'compact' | 'compact-outlined';
4
+ themeSelected?: boolean;
5
+ };
6
+ declare const StyledChipWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
7
+ theme?: import("@emotion/react").Theme | undefined;
8
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
9
+ } & StyledChipWrapperProps, {}, {
10
+ ref?: import("react").Ref<TouchableOpacity> | undefined;
11
+ }>;
12
+ declare const StyledChipIcon: import("@emotion/native").StyledComponent<import("../Icon").IconProps & {
13
+ theme?: import("@emotion/react").Theme | undefined;
14
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
15
+ }, {}, {}>;
16
+ export { StyledChipWrapper, StyledChipIcon };
@@ -0,0 +1,31 @@
1
+ import React, { ReactNode } from 'react';
2
+ import { ViewProps } from 'react-native';
3
+ import { IconName } from '../Icon';
4
+ export interface ChipProps extends ViewProps {
5
+ /**
6
+ * The label of the chip.
7
+ */
8
+ label: string | ReactNode;
9
+ /**
10
+ * Variant of the chip.
11
+ */
12
+ variant?: 'outlined' | 'filled' | 'compact' | 'compact-outlined';
13
+ /**
14
+ * Whether the chip is selected.
15
+ */
16
+ selected?: boolean;
17
+ /**
18
+ * Icon of the chip.
19
+ */
20
+ icon?: IconName;
21
+ /**
22
+ * Callback when the chip is pressed.
23
+ */
24
+ onPress?: () => void;
25
+ /**
26
+ * Whether to show the selected icon when using outlined variant.
27
+ */
28
+ showSelectedIcon?: boolean;
29
+ }
30
+ declare const Chip: ({ label, variant, selected, icon, onPress, showSelectedIcon, ...otherProps }: ChipProps) => React.JSX.Element;
31
+ export default Chip;