@hero-design/rn 8.113.1 → 8.115.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 (498) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  3. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  4. package/lib/index.js +782 -399
  5. package/package.json +1 -1
  6. package/src/components/Calendar/__tests__/CalendarRange.spec.tsx +1 -1
  7. package/src/components/Calendar/__tests__/index.spec.tsx +1 -1
  8. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  9. package/src/components/Icon/IconList.ts +3 -0
  10. package/src/components/Progress/SegmentedBar/Legend.tsx +39 -0
  11. package/src/components/Progress/SegmentedBar/StyledLegend.tsx +32 -0
  12. package/src/components/Progress/SegmentedBar/StyledSegmentedBar.tsx +35 -0
  13. package/src/components/Progress/SegmentedBar/__tests__/index.spec.tsx +223 -0
  14. package/src/components/Progress/SegmentedBar/__tests__/utils.spec.tsx +24 -0
  15. package/src/components/Progress/SegmentedBar/constants.ts +40 -0
  16. package/src/components/Progress/SegmentedBar/hooks/colors.ts +102 -0
  17. package/src/components/Progress/SegmentedBar/hooks/validation.ts +121 -0
  18. package/src/components/Progress/SegmentedBar/index.tsx +175 -0
  19. package/src/components/Progress/SegmentedBar/types.ts +85 -0
  20. package/src/components/Progress/SegmentedBar/utils.ts +16 -0
  21. package/src/components/Progress/index.tsx +2 -0
  22. package/src/components/Tabs/ScrollableTabs.tsx +30 -9
  23. package/src/components/Tabs/ScrollableTabsHeader/ScrollableTabsHeader.tsx +1 -1
  24. package/src/components/Tabs/__tests__/ScrollableTabs.spec.tsx +31 -6
  25. package/src/components/Tabs/index.tsx +2 -0
  26. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +8 -0
  27. package/src/theme/components/progress.ts +8 -0
  28. package/src/types.ts +2 -0
  29. package/src/utils/helpers.ts +6 -0
  30. package/.turbo/turbo-build.log +0 -17
  31. package/es/index.js +0 -48751
  32. package/locales/en_AU.js +0 -10
  33. package/locales/en_AU.mjs +0 -8
  34. package/locales/en_CA.js +0 -10
  35. package/locales/en_CA.mjs +0 -8
  36. package/locales/index.js +0 -11
  37. package/locales/index.mjs +0 -9
  38. package/locales/types.js +0 -2
  39. package/locales/types.mjs +0 -1
  40. package/types/components/Accordion/AccordionItem.d.ts +0 -15
  41. package/types/components/Accordion/StyledAccordion.d.ts +0 -30
  42. package/types/components/Accordion/index.d.ts +0 -43
  43. package/types/components/Alert/StyledAlert.d.ts +0 -51
  44. package/types/components/Alert/index.d.ts +0 -66
  45. package/types/components/AnimatedScroller/AnimatedFAB.d.ts +0 -12
  46. package/types/components/AnimatedScroller/AnimatedScrollable.d.ts +0 -16
  47. package/types/components/AnimatedScroller/FlatListWithFAB.d.ts +0 -12
  48. package/types/components/AnimatedScroller/ScrollViewWithFAB.d.ts +0 -12
  49. package/types/components/AnimatedScroller/SectionListWithFAB.d.ts +0 -12
  50. package/types/components/AnimatedScroller/index.d.ts +0 -4
  51. package/types/components/AppCue/StyledAppCue.d.ts +0 -20
  52. package/types/components/AppCue/__tests__/StyledAppCue.d.ts +0 -1
  53. package/types/components/AppCue/index.d.ts +0 -21
  54. package/types/components/AppCue/utils.d.ts +0 -66
  55. package/types/components/Attachment/StyledAttachment.d.ts +0 -26
  56. package/types/components/Attachment/index.d.ts +0 -38
  57. package/types/components/Avatar/Avatar.d.ts +0 -34
  58. package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +0 -30
  59. package/types/components/Avatar/AvatarStack/index.d.ts +0 -36
  60. package/types/components/Avatar/AvatarStack/utils.d.ts +0 -4
  61. package/types/components/Avatar/StyledAvatar.d.ts +0 -32
  62. package/types/components/Avatar/index.d.ts +0 -6
  63. package/types/components/Badge/Count.d.ts +0 -27
  64. package/types/components/Badge/Status.d.ts +0 -23
  65. package/types/components/Badge/StyledBadge.d.ts +0 -43
  66. package/types/components/Badge/constants.d.ts +0 -1
  67. package/types/components/Badge/index.d.ts +0 -8
  68. package/types/components/Badge/types.d.ts +0 -53
  69. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -51
  70. package/types/components/BottomNavigation/index.d.ts +0 -45
  71. package/types/components/BottomSheet/BottomSheetContext.d.ts +0 -5
  72. package/types/components/BottomSheet/Footer.d.ts +0 -7
  73. package/types/components/BottomSheet/Header.d.ts +0 -10
  74. package/types/components/BottomSheet/ScrollView.d.ts +0 -5
  75. package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -59
  76. package/types/components/BottomSheet/index.d.ts +0 -74
  77. package/types/components/Box/StyledBox.d.ts +0 -10
  78. package/types/components/Box/config.d.ts +0 -174
  79. package/types/components/Box/index.d.ts +0 -6
  80. package/types/components/Box/types.d.ts +0 -31
  81. package/types/components/Button/Button.d.ts +0 -64
  82. package/types/components/Button/IconButton.d.ts +0 -39
  83. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -19
  84. package/types/components/Button/LoadingIndicator/index.d.ts +0 -27
  85. package/types/components/Button/StyledButton.d.ts +0 -61
  86. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +0 -15
  87. package/types/components/Button/UtilityButton/index.d.ts +0 -24
  88. package/types/components/Button/index.d.ts +0 -10
  89. package/types/components/Calendar/CalendarRange.d.ts +0 -11
  90. package/types/components/Calendar/CalendarRangeConnector.d.ts +0 -11
  91. package/types/components/Calendar/CalendarRowItem.d.ts +0 -13
  92. package/types/components/Calendar/StyledCalendar.d.ts +0 -61
  93. package/types/components/Calendar/constants.d.ts +0 -4
  94. package/types/components/Calendar/helpers.d.ts +0 -35
  95. package/types/components/Calendar/index.d.ts +0 -9
  96. package/types/components/Calendar/shared/hooks/useCalendarLayout.d.ts +0 -8
  97. package/types/components/Calendar/types.d.ts +0 -58
  98. package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -22
  99. package/types/components/Card/DataCard/index.d.ts +0 -22
  100. package/types/components/Card/StyledCard.d.ts +0 -11
  101. package/types/components/Card/index.d.ts +0 -32
  102. package/types/components/Carousel/CardCarousel.d.ts +0 -46
  103. package/types/components/Carousel/CarouselItem.d.ts +0 -7
  104. package/types/components/Carousel/StyledCardCarousel.d.ts +0 -27
  105. package/types/components/Carousel/StyledCarousel.d.ts +0 -55
  106. package/types/components/Carousel/contants.d.ts +0 -2
  107. package/types/components/Carousel/index.d.ts +0 -46
  108. package/types/components/Carousel/types.d.ts +0 -14
  109. package/types/components/Chart/ChartSelect/StyledChartSelect.d.ts +0 -8
  110. package/types/components/Chart/ChartSelect/index.d.ts +0 -63
  111. package/types/components/Chart/ColumnChart/ColumnChartContent.d.ts +0 -29
  112. package/types/components/Chart/ColumnChart/Segment.d.ts +0 -14
  113. package/types/components/Chart/ColumnChart/StackedSegment.d.ts +0 -32
  114. package/types/components/Chart/ColumnChart/StyledColumnChart.d.ts +0 -8
  115. package/types/components/Chart/ColumnChart/index.d.ts +0 -86
  116. package/types/components/Chart/Line/Line.d.ts +0 -23
  117. package/types/components/Chart/Line/index.d.ts +0 -41
  118. package/types/components/Chart/StyledChart.d.ts +0 -9
  119. package/types/components/Chart/index.d.ts +0 -6
  120. package/types/components/Chart/shared/AxisLabel.d.ts +0 -7
  121. package/types/components/Chart/shared/ChartFrame.d.ts +0 -30
  122. package/types/components/Chart/shared/ChartHeader.d.ts +0 -8
  123. package/types/components/Chart/shared/EmptyState.d.ts +0 -8
  124. package/types/components/Chart/shared/XAxis.d.ts +0 -8
  125. package/types/components/Chart/shared/XAxisGrid.d.ts +0 -8
  126. package/types/components/Chart/shared/YAxis.d.ts +0 -10
  127. package/types/components/Chart/shared/YAxisGrid.d.ts +0 -10
  128. package/types/components/Chart/shared/constants.d.ts +0 -4
  129. package/types/components/Chart/shared/hooks/useColorScale.d.ts +0 -7
  130. package/types/components/Chart/shared/hooks/useCustomColor.d.ts +0 -22
  131. package/types/components/Chart/shared/hooks/useGenerateTicks.d.ts +0 -6
  132. package/types/components/Chart/shared/hooks/useScaleBandX.d.ts +0 -7
  133. package/types/components/Chart/shared/hooks/useScaleLinearY.d.ts +0 -8
  134. package/types/components/Chart/shared/niceNumbers.d.ts +0 -12
  135. package/types/components/Chart/shared/utils.d.ts +0 -11
  136. package/types/components/Chart/types.d.ts +0 -91
  137. package/types/components/Checkbox/DefaultCheckBox.d.ts +0 -40
  138. package/types/components/Checkbox/InlineCheckBox.d.ts +0 -38
  139. package/types/components/Checkbox/StyledDefaultCheckBox.d.ts +0 -33
  140. package/types/components/Checkbox/StyledInlineCheckBox.d.ts +0 -45
  141. package/types/components/Checkbox/index.d.ts +0 -6
  142. package/types/components/Checkbox/utils.d.ts +0 -7
  143. package/types/components/Chip/StyledChip.d.ts +0 -13
  144. package/types/components/Chip/index.d.ts +0 -43
  145. package/types/components/Collapse/StyledCollapse.d.ts +0 -23
  146. package/types/components/Collapse/index.d.ts +0 -20
  147. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -8
  148. package/types/components/ContentNavigator/index.d.ts +0 -43
  149. package/types/components/DatePicker/DatePicker.d.ts +0 -4
  150. package/types/components/DatePicker/DatePickerAndroid.d.ts +0 -7
  151. package/types/components/DatePicker/DatePickerCalendar.d.ts +0 -4
  152. package/types/components/DatePicker/DatePickerIOS.d.ts +0 -7
  153. package/types/components/DatePicker/Dialog/AndroidDialog.d.ts +0 -5
  154. package/types/components/DatePicker/Dialog/IOSDialog.d.ts +0 -4
  155. package/types/components/DatePicker/Dialog/type.d.ts +0 -50
  156. package/types/components/DatePicker/Dialog.d.ts +0 -4
  157. package/types/components/DatePicker/StyledDatePicker.d.ts +0 -16
  158. package/types/components/DatePicker/hooks/useCalculateDate.d.ts +0 -4
  159. package/types/components/DatePicker/hooks/useFormatDate.d.ts +0 -10
  160. package/types/components/DatePicker/hooks/utils.d.ts +0 -6
  161. package/types/components/DatePicker/index.d.ts +0 -6
  162. package/types/components/DatePicker/index.internal.d.ts +0 -7
  163. package/types/components/DatePicker/types.d.ts +0 -109
  164. package/types/components/Divider/StyledDivider.d.ts +0 -12
  165. package/types/components/Divider/index.d.ts +0 -22
  166. package/types/components/Drawer/DragableDrawer/helpers.d.ts +0 -8
  167. package/types/components/Drawer/DragableDrawer/index.d.ts +0 -33
  168. package/types/components/Drawer/StyledDrawer.d.ts +0 -49
  169. package/types/components/Drawer/index.d.ts +0 -27
  170. package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -18
  171. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -31
  172. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -15
  173. package/types/components/FAB/ActionGroup/index.d.ts +0 -55
  174. package/types/components/FAB/AnimatedFABIcon.d.ts +0 -7
  175. package/types/components/FAB/FAB.d.ts +0 -40
  176. package/types/components/FAB/Pair/StyledFAB.d.ts +0 -12
  177. package/types/components/FAB/Pair/index.d.ts +0 -16
  178. package/types/components/FAB/StyledFAB.d.ts +0 -22
  179. package/types/components/FAB/index.d.ts +0 -5
  180. package/types/components/FilterTrigger/StyledFilterTrigger.d.ts +0 -20
  181. package/types/components/FilterTrigger/index.d.ts +0 -39
  182. package/types/components/FloatingIsland/StyledFloatingIsland.d.ts +0 -19
  183. package/types/components/FloatingIsland/index.d.ts +0 -24
  184. package/types/components/HeroDesignProvider/index.d.ts +0 -8
  185. package/types/components/Icon/AnimatedIcon.d.ts +0 -6
  186. package/types/components/Icon/HeroIcon/index.d.ts +0 -12
  187. package/types/components/Icon/IconList.d.ts +0 -2
  188. package/types/components/Icon/index.d.ts +0 -37
  189. package/types/components/Icon/utils.d.ts +0 -3
  190. package/types/components/Illustration/BaseSvg.d.ts +0 -8
  191. package/types/components/Illustration/assets/Add.d.ts +0 -4
  192. package/types/components/Illustration/assets/AllInOneSketch.d.ts +0 -4
  193. package/types/components/Illustration/assets/Boom.d.ts +0 -4
  194. package/types/components/Illustration/assets/Build.d.ts +0 -4
  195. package/types/components/Illustration/assets/CelebrationSketch.d.ts +0 -4
  196. package/types/components/Illustration/assets/Clock.d.ts +0 -4
  197. package/types/components/Illustration/assets/Confetti.d.ts +0 -4
  198. package/types/components/Illustration/assets/Connections.d.ts +0 -4
  199. package/types/components/Illustration/assets/DiySketch.d.ts +0 -4
  200. package/types/components/Illustration/assets/Error.d.ts +0 -4
  201. package/types/components/Illustration/assets/ErrorSketch.d.ts +0 -4
  202. package/types/components/Illustration/assets/FreedomSketch.d.ts +0 -4
  203. package/types/components/Illustration/assets/GrowingSketch.d.ts +0 -4
  204. package/types/components/Illustration/assets/Info.d.ts +0 -4
  205. package/types/components/Illustration/assets/InstantSketch.d.ts +0 -4
  206. package/types/components/Illustration/assets/LiftSketch.d.ts +0 -4
  207. package/types/components/Illustration/assets/List.d.ts +0 -4
  208. package/types/components/Illustration/assets/Location.d.ts +0 -4
  209. package/types/components/Illustration/assets/Lock.d.ts +0 -4
  210. package/types/components/Illustration/assets/Merge.d.ts +0 -4
  211. package/types/components/Illustration/assets/NoResult.d.ts +0 -4
  212. package/types/components/Illustration/assets/Notifications.d.ts +0 -4
  213. package/types/components/Illustration/assets/OnDemandSketch.d.ts +0 -4
  214. package/types/components/Illustration/assets/ProcessingSketch.d.ts +0 -4
  215. package/types/components/Illustration/assets/RemoteJobsSketch.d.ts +0 -4
  216. package/types/components/Illustration/assets/RewardSketch.d.ts +0 -4
  217. package/types/components/Illustration/assets/Search.d.ts +0 -4
  218. package/types/components/Illustration/assets/SearchSketch.d.ts +0 -4
  219. package/types/components/Illustration/assets/SecuritySketch.d.ts +0 -4
  220. package/types/components/Illustration/assets/SentSketch.d.ts +0 -4
  221. package/types/components/Illustration/assets/SpeedSketch.d.ts +0 -4
  222. package/types/components/Illustration/assets/Star.d.ts +0 -4
  223. package/types/components/Illustration/assets/Success.d.ts +0 -4
  224. package/types/components/Illustration/assets/SuperchargeSketch.d.ts +0 -4
  225. package/types/components/Illustration/assets/Unlock.d.ts +0 -4
  226. package/types/components/Illustration/assets/UnlockSketch.d.ts +0 -4
  227. package/types/components/Illustration/assets/User.d.ts +0 -4
  228. package/types/components/Illustration/assets/WorkflowSketch.d.ts +0 -4
  229. package/types/components/Illustration/constants.d.ts +0 -1
  230. package/types/components/Illustration/hooks/useMonoColor.d.ts +0 -5
  231. package/types/components/Illustration/illustrations.d.ts +0 -42
  232. package/types/components/Illustration/index.d.ts +0 -29
  233. package/types/components/Illustration/types.d.ts +0 -7
  234. package/types/components/Image/index.d.ts +0 -21
  235. package/types/components/List/BasicListItem.d.ts +0 -44
  236. package/types/components/List/ListItem.d.ts +0 -52
  237. package/types/components/List/StyledBasicListItem.d.ts +0 -27
  238. package/types/components/List/StyledListItem.d.ts +0 -49
  239. package/types/components/List/index.d.ts +0 -8
  240. package/types/components/LocaleProvider/__tests__/utils.specs.d.ts +0 -1
  241. package/types/components/LocaleProvider/context.d.ts +0 -3
  242. package/types/components/LocaleProvider/hooks.d.ts +0 -5
  243. package/types/components/LocaleProvider/index.d.ts +0 -7
  244. package/types/components/LocaleProvider/utils.d.ts +0 -3
  245. package/types/components/MapPin/Focussed.d.ts +0 -14
  246. package/types/components/MapPin/StyledMapPin.d.ts +0 -41
  247. package/types/components/MapPin/index.d.ts +0 -6
  248. package/types/components/MapPin/types.d.ts +0 -38
  249. package/types/components/Modal/index.d.ts +0 -38
  250. package/types/components/PageControl/StyledPageControl.d.ts +0 -12
  251. package/types/components/PageControl/index.d.ts +0 -22
  252. package/types/components/PinInput/PinCell.d.ts +0 -9
  253. package/types/components/PinInput/StyledPinInput.d.ts +0 -67
  254. package/types/components/PinInput/index.d.ts +0 -73
  255. package/types/components/Portal/PortalHost.d.ts +0 -5
  256. package/types/components/Portal/PortalProvider.d.ts +0 -7
  257. package/types/components/Portal/constants.d.ts +0 -8
  258. package/types/components/Portal/contexts.d.ts +0 -9
  259. package/types/components/Portal/index.d.ts +0 -19
  260. package/types/components/Portal/reducer.d.ts +0 -5
  261. package/types/components/Portal/types.d.ts +0 -23
  262. package/types/components/Portal/usePortal.d.ts +0 -8
  263. package/types/components/Portal/usePortalState.d.ts +0 -1
  264. package/types/components/Progress/ProgressBar.d.ts +0 -19
  265. package/types/components/Progress/ProgressCircle.d.ts +0 -21
  266. package/types/components/Progress/ProgressStep.d.ts +0 -20
  267. package/types/components/Progress/StyledProgressBar.d.ts +0 -18
  268. package/types/components/Progress/StyledProgressCircle.d.ts +0 -15
  269. package/types/components/Progress/StyledStep.d.ts +0 -23
  270. package/types/components/Progress/__tests__/index.spec.d.ts +0 -1
  271. package/types/components/Progress/constants.d.ts +0 -15
  272. package/types/components/Progress/index.d.ts +0 -6
  273. package/types/components/Progress/types.d.ts +0 -1
  274. package/types/components/Radio/Radio.d.ts +0 -43
  275. package/types/components/Radio/RadioGroup.d.ts +0 -40
  276. package/types/components/Radio/StyledRadio.d.ts +0 -30
  277. package/types/components/Radio/index.d.ts +0 -4
  278. package/types/components/Radio/types.d.ts +0 -10
  279. package/types/components/Rate/StyledRate.d.ts +0 -10
  280. package/types/components/Rate/index.d.ts +0 -29
  281. package/types/components/RefreshControl/index.d.ts +0 -5
  282. package/types/components/RichTextEditor/EditorEvent.d.ts +0 -3
  283. package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -18
  284. package/types/components/RichTextEditor/MentionList.d.ts +0 -18
  285. package/types/components/RichTextEditor/RichTextEditor.d.ts +0 -27
  286. package/types/components/RichTextEditor/RichTextEditorInput.d.ts +0 -69
  287. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -7
  288. package/types/components/RichTextEditor/StyledToolbar.d.ts +0 -19
  289. package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -2
  290. package/types/components/RichTextEditor/constants.d.ts +0 -17
  291. package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -2
  292. package/types/components/RichTextEditor/hooks/useRichTextEditorEvents.d.ts +0 -36
  293. package/types/components/RichTextEditor/index.d.ts +0 -71
  294. package/types/components/RichTextEditor/types.d.ts +0 -2
  295. package/types/components/RichTextEditor/utils/events.d.ts +0 -7
  296. package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -7
  297. package/types/components/Search/SearchOneLine.d.ts +0 -73
  298. package/types/components/Search/SearchSuffixIcon.d.ts +0 -24
  299. package/types/components/Search/SearchTwoLine.d.ts +0 -40
  300. package/types/components/Search/StyledSearch.d.ts +0 -49
  301. package/types/components/Search/index.d.ts +0 -10
  302. package/types/components/Search/utils.d.ts +0 -8
  303. package/types/components/SectionHeading/StyledHeading.d.ts +0 -23
  304. package/types/components/SectionHeading/index.d.ts +0 -45
  305. package/types/components/SegmentedControl/SegmentedItem.d.ts +0 -18
  306. package/types/components/SegmentedControl/StyledSegmentedControl.d.ts +0 -26
  307. package/types/components/SegmentedControl/index.d.ts +0 -31
  308. package/types/components/SegmentedControl/types.d.ts +0 -43
  309. package/types/components/Select/BaseOptionList.d.ts +0 -8
  310. package/types/components/Select/Footer.d.ts +0 -6
  311. package/types/components/Select/MultiSelect/Option.d.ts +0 -10
  312. package/types/components/Select/MultiSelect/OptionList.d.ts +0 -9
  313. package/types/components/Select/MultiSelect/index.d.ts +0 -35
  314. package/types/components/Select/MultiSelect/utils.d.ts +0 -2
  315. package/types/components/Select/SingleSelect/Option.d.ts +0 -10
  316. package/types/components/Select/SingleSelect/OptionList.d.ts +0 -11
  317. package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +0 -2
  318. package/types/components/Select/SingleSelect/index.d.ts +0 -28
  319. package/types/components/Select/StyledSelect.d.ts +0 -28
  320. package/types/components/Select/helpers.d.ts +0 -10
  321. package/types/components/Select/index.d.ts +0 -10
  322. package/types/components/Select/index.internal.d.ts +0 -21
  323. package/types/components/Select/types.d.ts +0 -88
  324. package/types/components/Skeleton/StyledSkeleton.d.ts +0 -16
  325. package/types/components/Skeleton/index.d.ts +0 -14
  326. package/types/components/Slider/RangeSlider.d.ts +0 -60
  327. package/types/components/Slider/SingleSlider.d.ts +0 -53
  328. package/types/components/Slider/StyledRangeSlider.d.ts +0 -10
  329. package/types/components/Slider/constants.d.ts +0 -3
  330. package/types/components/Slider/index.d.ts +0 -8
  331. package/types/components/Spinner/AnimatedSpinner.d.ts +0 -6
  332. package/types/components/Spinner/StyledSpinner.d.ts +0 -34
  333. package/types/components/Spinner/index.d.ts +0 -18
  334. package/types/components/StatusScreens/Empty/StyledEmpty.d.ts +0 -27
  335. package/types/components/StatusScreens/Empty/index.d.ts +0 -38
  336. package/types/components/StatusScreens/Error/StyledError.d.ts +0 -59
  337. package/types/components/StatusScreens/Error/index.d.ts +0 -62
  338. package/types/components/StatusScreens/Success/StyledSuccess.d.ts +0 -59
  339. package/types/components/StatusScreens/Success/index.d.ts +0 -56
  340. package/types/components/Swipeable/StyledSwipeable.d.ts +0 -7
  341. package/types/components/Swipeable/SwipeableAction.d.ts +0 -28
  342. package/types/components/Swipeable/index.d.ts +0 -50
  343. package/types/components/Switch/SelectorSwitch/Option.d.ts +0 -14
  344. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -19
  345. package/types/components/Switch/SelectorSwitch/index.d.ts +0 -37
  346. package/types/components/Switch/StyledSwitch.d.ts +0 -15
  347. package/types/components/Switch/index.d.ts +0 -28
  348. package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -9
  349. package/types/components/Tabs/SceneView.d.ts +0 -10
  350. package/types/components/Tabs/ScrollableTabs.d.ts +0 -7
  351. package/types/components/Tabs/ScrollableTabsHeader/ScrollableTabsHeader.d.ts +0 -40
  352. package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitHighlightedAnimation.d.ts +0 -9
  353. package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitUnderlinedAnimation.d.ts +0 -10
  354. package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -55
  355. package/types/components/Tabs/StyledTabs.d.ts +0 -45
  356. package/types/components/Tabs/TabWithBadge.d.ts +0 -17
  357. package/types/components/Tabs/index.d.ts +0 -62
  358. package/types/components/Tabs/useHandlePageScroll.d.ts +0 -8
  359. package/types/components/Tabs/useIsFocused.d.ts +0 -6
  360. package/types/components/Tabs/utils.d.ts +0 -2
  361. package/types/components/Tag/StyledTag.d.ts +0 -17
  362. package/types/components/Tag/index.d.ts +0 -28
  363. package/types/components/TextInput/StyledTextInput.d.ts +0 -89
  364. package/types/components/TextInput/index.d.ts +0 -136
  365. package/types/components/TimePicker/StyledTimePicker.d.ts +0 -16
  366. package/types/components/TimePicker/TimePicker.d.ts +0 -4
  367. package/types/components/TimePicker/TimePickerAndroid.d.ts +0 -4
  368. package/types/components/TimePicker/TimePickerIOS.d.ts +0 -4
  369. package/types/components/TimePicker/index.d.ts +0 -4
  370. package/types/components/TimePicker/index.internal.d.ts +0 -5
  371. package/types/components/TimePicker/types.d.ts +0 -76
  372. package/types/components/Toast/StyledToast.d.ts +0 -57
  373. package/types/components/Toast/Toast.d.ts +0 -4
  374. package/types/components/Toast/ToastContainer.d.ts +0 -5
  375. package/types/components/Toast/ToastContext.d.ts +0 -13
  376. package/types/components/Toast/ToastProvider.d.ts +0 -11
  377. package/types/components/Toast/index.d.ts +0 -8
  378. package/types/components/Toast/types.d.ts +0 -74
  379. package/types/components/Toolbar/StyledToolbar.d.ts +0 -69
  380. package/types/components/Toolbar/ToolbarGroup.d.ts +0 -25
  381. package/types/components/Toolbar/ToolbarItem.d.ts +0 -31
  382. package/types/components/Toolbar/ToolbarMessage.d.ts +0 -58
  383. package/types/components/Toolbar/index.d.ts +0 -14
  384. package/types/components/Typography/Body/StyledBody.d.ts +0 -15
  385. package/types/components/Typography/Body/__tests__/StyledBody.d.ts +0 -1
  386. package/types/components/Typography/Body/index.d.ts +0 -38
  387. package/types/components/Typography/Caption/StyledCaption.d.ts +0 -13
  388. package/types/components/Typography/Caption/index.d.ts +0 -32
  389. package/types/components/Typography/Label/StyledLabel.d.ts +0 -12
  390. package/types/components/Typography/Label/__tests__/StyledLabel.d.ts +0 -1
  391. package/types/components/Typography/Label/index.d.ts +0 -28
  392. package/types/components/Typography/Text/StyledText.d.ts +0 -13
  393. package/types/components/Typography/Text/index.d.ts +0 -40
  394. package/types/components/Typography/Title/StyledTitle.d.ts +0 -15
  395. package/types/components/Typography/Title/__tests__/StyledTitle.d.ts +0 -1
  396. package/types/components/Typography/Title/index.d.ts +0 -38
  397. package/types/components/Typography/index.d.ts +0 -17
  398. package/types/components/Typography/types.d.ts +0 -6
  399. package/types/index.d.ts +0 -64
  400. package/types/index.internal.d.ts +0 -19
  401. package/types/locales/en_AU.d.ts +0 -3
  402. package/types/locales/en_CA.d.ts +0 -3
  403. package/types/locales/index.d.ts +0 -5
  404. package/types/locales/types.d.ts +0 -10
  405. package/types/testHelpers/renderWithTheme.d.ts +0 -86
  406. package/types/testHelpers/utils.d.ts +0 -1
  407. package/types/theme/ThemeProvider.d.ts +0 -12
  408. package/types/theme/ThemeSwitcher.d.ts +0 -9
  409. package/types/theme/components/accordion.d.ts +0 -13
  410. package/types/theme/components/alert.d.ts +0 -48
  411. package/types/theme/components/appCue.d.ts +0 -16
  412. package/types/theme/components/attachment.d.ts +0 -21
  413. package/types/theme/components/avatar.d.ts +0 -50
  414. package/types/theme/components/badge.d.ts +0 -69
  415. package/types/theme/components/bottomNavigation.d.ts +0 -30
  416. package/types/theme/components/bottomSheet.d.ts +0 -29
  417. package/types/theme/components/button.d.ts +0 -127
  418. package/types/theme/components/calendar.d.ts +0 -33
  419. package/types/theme/components/card.d.ts +0 -26
  420. package/types/theme/components/cardCarousel.d.ts +0 -19
  421. package/types/theme/components/carousel.d.ts +0 -36
  422. package/types/theme/components/chart.d.ts +0 -22
  423. package/types/theme/components/checkbox.d.ts +0 -40
  424. package/types/theme/components/chip.d.ts +0 -43
  425. package/types/theme/components/columnChart.d.ts +0 -10
  426. package/types/theme/components/contentNavigator.d.ts +0 -7
  427. package/types/theme/components/datePicker.d.ts +0 -7
  428. package/types/theme/components/divider.d.ts +0 -17
  429. package/types/theme/components/drawer.d.ts +0 -30
  430. package/types/theme/components/empty.d.ts +0 -37
  431. package/types/theme/components/error.d.ts +0 -52
  432. package/types/theme/components/fab.d.ts +0 -73
  433. package/types/theme/components/filterTrigger.d.ts +0 -72
  434. package/types/theme/components/floatingIsland.d.ts +0 -32
  435. package/types/theme/components/icon.d.ts +0 -25
  436. package/types/theme/components/image.d.ts +0 -8
  437. package/types/theme/components/list.d.ts +0 -46
  438. package/types/theme/components/mapPin.d.ts +0 -43
  439. package/types/theme/components/pageControl.d.ts +0 -18
  440. package/types/theme/components/pinInput.d.ts +0 -57
  441. package/types/theme/components/progress.d.ts +0 -51
  442. package/types/theme/components/radio.d.ts +0 -24
  443. package/types/theme/components/rate.d.ts +0 -11
  444. package/types/theme/components/refreshControl.d.ts +0 -7
  445. package/types/theme/components/richTextEditor.d.ts +0 -28
  446. package/types/theme/components/search.d.ts +0 -58
  447. package/types/theme/components/sectionHeading.d.ts +0 -14
  448. package/types/theme/components/segmentedControl.d.ts +0 -55
  449. package/types/theme/components/select.d.ts +0 -18
  450. package/types/theme/components/skeleton.d.ts +0 -17
  451. package/types/theme/components/slider.d.ts +0 -33
  452. package/types/theme/components/spinner.d.ts +0 -27
  453. package/types/theme/components/success.d.ts +0 -45
  454. package/types/theme/components/swipeable.d.ts +0 -16
  455. package/types/theme/components/switch.d.ts +0 -38
  456. package/types/theme/components/tabs.d.ts +0 -31
  457. package/types/theme/components/tag.d.ts +0 -53
  458. package/types/theme/components/textInput.d.ts +0 -95
  459. package/types/theme/components/timePicker.d.ts +0 -7
  460. package/types/theme/components/toast.d.ts +0 -52
  461. package/types/theme/components/toolbar.d.ts +0 -48
  462. package/types/theme/components/typography.d.ts +0 -168
  463. package/types/theme/getTheme.d.ts +0 -119
  464. package/types/theme/global/borders.d.ts +0 -18
  465. package/types/theme/global/colors/__tests__/ehWork.spec.d.ts +0 -1
  466. package/types/theme/global/colors/eBens.d.ts +0 -6
  467. package/types/theme/global/colors/ehJobs.d.ts +0 -3
  468. package/types/theme/global/colors/ehWork.d.ts +0 -3
  469. package/types/theme/global/colors/ehWorkDark.d.ts +0 -3
  470. package/types/theme/global/colors/global.d.ts +0 -3
  471. package/types/theme/global/colors/globalDark.d.ts +0 -3
  472. package/types/theme/global/colors/jobs.d.ts +0 -6
  473. package/types/theme/global/colors/swag.d.ts +0 -6
  474. package/types/theme/global/colors/swagDark.d.ts +0 -6
  475. package/types/theme/global/colors/swagLight.d.ts +0 -6
  476. package/types/theme/global/colors/swagLightGlobal.d.ts +0 -3
  477. package/types/theme/global/colors/swagLightJobs.d.ts +0 -6
  478. package/types/theme/global/colors/swagSystemPalette.d.ts +0 -3
  479. package/types/theme/global/colors/types.d.ts +0 -58
  480. package/types/theme/global/colors/wallet.d.ts +0 -6
  481. package/types/theme/global/colors/work.d.ts +0 -6
  482. package/types/theme/global/index.d.ts +0 -78
  483. package/types/theme/global/scale.d.ts +0 -14
  484. package/types/theme/global/shadows/ehJobs.d.ts +0 -3
  485. package/types/theme/global/shadows/ehWork.d.ts +0 -3
  486. package/types/theme/global/shadows/ehWorkDark.d.ts +0 -3
  487. package/types/theme/global/shadows/index.d.ts +0 -3
  488. package/types/theme/global/shadows/types.d.ts +0 -16
  489. package/types/theme/global/sizes.d.ts +0 -14
  490. package/types/theme/global/space.d.ts +0 -16
  491. package/types/theme/global/typography.d.ts +0 -34
  492. package/types/theme/index.d.ts +0 -9
  493. package/types/types.d.ts +0 -42
  494. package/types/types.internal.d.ts +0 -18
  495. package/types/utils/functions.d.ts +0 -1
  496. package/types/utils/helpers.d.ts +0 -13
  497. package/types/utils/hooks.d.ts +0 -3
  498. package/types/utils/scale.d.ts +0 -1
@@ -1,109 +0,0 @@
1
- import type { TextInputProps as NativeTextInputProps, StyleProp, ViewStyle } from 'react-native';
2
- import type { TextInputProps } from '../TextInput';
3
- export interface DatePickerProps {
4
- /**
5
- * Date picker input label.
6
- */
7
- label: string;
8
- /**
9
- * Current date value. Must be in correct default format or format provided via format prop.
10
- */
11
- value?: Date;
12
- /**
13
- * Datepicker variants.
14
- * - default: is default UI of Android or iOS
15
- * - calendar: calendar UI
16
- * - month-year: month and year UI
17
- */
18
- variant?: 'default' | 'calendar' | 'month-year';
19
- /**
20
- * Mininum date. Restrict the range of possible date values.
21
- */
22
- minDate?: Date;
23
- /**
24
- * Maximum date. Restrict the range of possible date values.
25
- */
26
- maxDate?: Date;
27
- /**
28
- * Input placeholder. Date format will be used as placeholder if not specified.
29
- */
30
- placeholder?: string;
31
- /**
32
- * Callback that is called when new value is selected.
33
- */
34
- onChange: (value: Date) => void;
35
- /**
36
- * Confirm label text. iOS only.
37
- */
38
- confirmLabel: string;
39
- /**
40
- * Date format. Default format is dd/MM/yyyy.
41
- * Following date-fns's format (https://date-fns.org/v2.16.1/docs/format).
42
- */
43
- displayFormat?: string;
44
- /**
45
- * Whether the Date picker is disabled.
46
- */
47
- disabled?: boolean;
48
- /**
49
- * Error message to display.
50
- */
51
- error?: string;
52
- /**
53
- * Whether the value is required, if true, an asterisk will be appended to the label.
54
- */
55
- required?: boolean;
56
- /**
57
- * The helper text to display.
58
- */
59
- helpText?: string;
60
- /**
61
- * Addtional style.
62
- */
63
- style?: StyleProp<ViewStyle>;
64
- /**
65
- * Testing id of the component.
66
- */
67
- testID?: string;
68
- /**
69
- * Calendar variant prop. Label for the confirm button of the month picker, Android only.
70
- */
71
- monthPickerConfirmLabel?: string;
72
- /**
73
- * Calendar variant prop. Label for the cancel button of the month picker, Android only.
74
- */
75
- monthPickerCancelLabel?: string;
76
- /**
77
- * Supported orientations for the DatePicker modal, iOS only.
78
- */
79
- supportedOrientations?: ('portrait' | 'landscape')[];
80
- /**
81
- * Locale for the date picker, iOS only.
82
- */
83
- locale?: string;
84
- /**
85
- * [Android only] autoTheme will automatically set the theme based on the device's light mode or dark mode.
86
- * */
87
- autoTheme?: boolean;
88
- /**
89
- * Custom renderer for the selected value. The function provides the current date object and the formatted date string for the current display format.
90
- */
91
- renderSelectedValue?: (value: {
92
- date: Date;
93
- formattedDateString: string;
94
- }, props?: NativeTextInputProps) => React.ReactNode;
95
- }
96
- export interface InternalDatePickerProps extends DatePickerProps {
97
- /**
98
- * Props that are passed to TextInput.
99
- */
100
- inputProps?: Pick<TextInputProps, 'loading' | 'numberOfLines'>;
101
- /**
102
- * Whether the component is used within a FormGroup for styling purposes.
103
- */
104
- groupStyleEnabled?: boolean;
105
- /**
106
- * Input component to use instead of the default TextInput.
107
- */
108
- TextInputComponent?: React.ComponentType<TextInputProps>;
109
- }
@@ -1,12 +0,0 @@
1
- import { View } from 'react-native';
2
- type MarginSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
3
- declare const StyledDivider: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
4
- theme?: import("@emotion/react").Theme;
5
- as?: React.ElementType;
6
- } & {
7
- themeMarginHorizontal?: MarginSize;
8
- themeMarginVertical?: MarginSize;
9
- }, {}, {
10
- ref?: import("react").Ref<View> | undefined;
11
- }>;
12
- export { StyledDivider };
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import type { StyleProp, ViewStyle, ViewProps } from 'react-native';
3
- interface DividerProps extends ViewProps {
4
- /**
5
- * Horizontal margin size. There is no margin by default.
6
- */
7
- marginHorizontal?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
8
- /**
9
- * Vertical margin size. There is no margin by default.
10
- */
11
- marginVertical?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
12
- /**
13
- * Additional style.
14
- */
15
- style?: StyleProp<ViewStyle>;
16
- /**
17
- * Testing id of the component.
18
- */
19
- testID?: string;
20
- }
21
- declare const Divider: ({ marginHorizontal, marginVertical, style, testID, ...nativeProps }: DividerProps) => React.JSX.Element;
22
- export default Divider;
@@ -1,8 +0,0 @@
1
- export declare const getOffset: (height: number, percentage: number) => number;
2
- export type SnapPointsData = {
3
- list: number[];
4
- minHeightOffset: number;
5
- maxHeightOffset: number;
6
- };
7
- export declare const calculateSnapPointsData: (minimumHeight: number, height: number, snapPoints: number[]) => SnapPointsData;
8
- export declare const calculateAnimatedToValue: (position: number, heightSnapPoints: number[]) => number;
@@ -1,33 +0,0 @@
1
- import type { ReactElement, ReactNode } from 'react';
2
- export interface DragableDrawerProps {
3
- /**
4
- * Drawer's content.
5
- */
6
- children?: ReactNode;
7
- /**
8
- * Initial visible height percentage of the drawer. Can be used to programmatically control the drawer height. Range: [0,100].
9
- */
10
- initialHeightPercentage?: number;
11
- /**
12
- * Mininum visible height percentage of the drawer. This will be the lowest point in snap points list. Range: [0,100].
13
- */
14
- minimumHeightPercentage?: number;
15
- /**
16
- * Callback function is called when the drawer expand to max position.
17
- */
18
- onExpanded?: () => void;
19
- /**
20
- * Callback function is called when the drawer collapsed to min position.
21
- */
22
- onCollapsed?: () => void;
23
- /**
24
- * Testing id of the component.
25
- */
26
- testID?: string;
27
- /**
28
- * Nearest height snap points that the drawer will attach to on release gesture. Range: [0,100]
29
- */
30
- snapPoints?: number[];
31
- }
32
- declare const DragableDrawer: ({ children, initialHeightPercentage, minimumHeightPercentage, snapPoints, onExpanded, onCollapsed, testID, }: DragableDrawerProps) => ReactElement;
33
- export default DragableDrawer;
@@ -1,49 +0,0 @@
1
- import { Animated, 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;
5
- as?: React.ElementType;
6
- } & {
7
- enableShadow: boolean;
8
- }, {}, {
9
- ref?: import("react").Ref<View> | undefined;
10
- }>;
11
- declare const StyledDragableContainer: import("@emotion/native").StyledComponent<ViewProps & {
12
- theme?: import("@emotion/react").Theme;
13
- as?: React.ElementType;
14
- } & {
15
- enableShadow: boolean;
16
- }, {}, {
17
- ref?: import("react").Ref<View> | undefined;
18
- }>;
19
- declare const StyledBackdrop: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").PressableProps & import("react").RefAttributes<View>> & {
20
- theme?: import("@emotion/react").Theme;
21
- as?: React.ElementType;
22
- }, {}, {}>;
23
- declare const StyledDrawerContainer: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
24
- theme?: import("@emotion/react").Theme;
25
- as?: React.ElementType;
26
- } & {
27
- enableShadow: boolean;
28
- }, {}, {}>;
29
- declare const StyledDragableDrawerContainer: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
30
- theme?: import("@emotion/react").Theme;
31
- as?: React.ElementType;
32
- } & {
33
- enableShadow: boolean;
34
- }, {}, {}>;
35
- declare const StyledHandlerContainer: import("@emotion/native").StyledComponent<ViewProps & {
36
- theme?: import("@emotion/react").Theme;
37
- as?: React.ElementType;
38
- }, {}, {
39
- ref?: import("react").Ref<View> | undefined;
40
- }>;
41
- declare const StyledHandler: import("@emotion/native").StyledComponent<ViewProps & {
42
- theme?: import("@emotion/react").Theme;
43
- as?: React.ElementType;
44
- } & {
45
- active?: boolean;
46
- }, {}, {
47
- ref?: import("react").Ref<View> | undefined;
48
- }>;
49
- export { StyledBackdrop, StyledContainer, StyledDrawerContainer, StyledHandlerContainer, StyledHandler, StyledDragableContainer, StyledDragableDrawerContainer, };
@@ -1,27 +0,0 @@
1
- import type { ReactElement, ReactNode } from 'react';
2
- interface DrawerProps {
3
- /**
4
- * Drawer's visibility.
5
- */
6
- visible: boolean;
7
- /**
8
- * Drawer's content.
9
- */
10
- children?: ReactNode;
11
- /**
12
- * Enable the drawer's backdrop.
13
- */
14
- hasBackdrop?: boolean;
15
- /**
16
- * Callback when the drawer is dismissed by interacting outside of the drawer.
17
- */
18
- onDismiss?: () => void;
19
- /**
20
- * Testing id of the component.
21
- * */
22
- testID?: string;
23
- }
24
- declare const _default: (({ visible, children, hasBackdrop, onDismiss, testID, }: DrawerProps) => ReactElement) & {
25
- Dragable: ({ children, initialHeightPercentage, minimumHeightPercentage, snapPoints, onExpanded, onCollapsed, testID, }: import("./DragableDrawer").DragableDrawerProps) => ReactElement;
26
- };
27
- export default _default;
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import type { ComponentProps } from 'react';
3
- import { type StyleProp, type ViewStyle } from 'react-native';
4
- import type Icon from '../../Icon';
5
- export interface ActionItemProps {
6
- testID?: string;
7
- title: string;
8
- icon: ComponentProps<typeof Icon>['icon'];
9
- onPress?: () => void;
10
- style?: StyleProp<ViewStyle>;
11
- key?: string;
12
- }
13
- interface AnimatedActionItemProps extends ActionItemProps {
14
- index: number;
15
- active?: boolean;
16
- }
17
- declare const ActionItem: ({ icon, title, onPress, style, testID, index, active, }: AnimatedActionItemProps) => React.JSX.Element;
18
- export default ActionItem;
@@ -1,31 +0,0 @@
1
- import { Animated, 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;
5
- as?: React.ElementType;
6
- }, {}, {
7
- ref?: import("react").Ref<View> | undefined;
8
- }>;
9
- declare const StyledContainerInModal: import("@emotion/native").StyledComponent<ViewProps & {
10
- theme?: import("@emotion/react").Theme;
11
- as?: React.ElementType;
12
- }, {}, {
13
- ref?: import("react").Ref<View> | undefined;
14
- }>;
15
- declare const StyledActionGroupContainer: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
16
- theme?: import("@emotion/react").Theme;
17
- as?: React.ElementType;
18
- }, {}, {}>;
19
- declare const StyledFAB: import("@emotion/native").StyledComponent<import("../FAB").FABProps & import("react").RefAttributes<import("../FAB").FABHandles> & {
20
- theme?: import("@emotion/react").Theme;
21
- as?: React.ElementType;
22
- }, {}, {}>;
23
- declare const StyledBackdropPressable: import("@emotion/native").StyledComponent<import("react-native").PressableProps & import("react").RefAttributes<View> & {
24
- theme?: import("@emotion/react").Theme;
25
- as?: React.ElementType;
26
- }, {}, {}>;
27
- declare const StyledBackdrop: import("@emotion/native").StyledComponent<import("../../Box").BoxProps & {
28
- theme?: import("@emotion/react").Theme;
29
- as?: React.ElementType;
30
- }, {}, {}>;
31
- export { StyledActionGroupContainer, StyledBackdrop, StyledBackdropPressable, StyledContainer, StyledContainerInModal, StyledFAB, };
@@ -1,15 +0,0 @@
1
- import type { TouchableOpacityProps } from 'react-native';
2
- import type { IconProps } from '../../Icon';
3
- declare const StyledActionItem: import("@emotion/native").StyledComponent<TouchableOpacityProps & import("react").RefAttributes<import("react-native").View> & {
4
- theme?: import("@emotion/react").Theme;
5
- as?: React.ElementType;
6
- }, {}, {}>;
7
- declare const StyledActionItemText: import("@emotion/native").StyledComponent<import("../../..").BodyProps & {
8
- theme?: import("@emotion/react").Theme;
9
- as?: React.ElementType;
10
- } & TouchableOpacityProps, {}, {}>;
11
- declare const StyledIcon: import("@emotion/native").StyledComponent<IconProps & {
12
- theme?: import("@emotion/react").Theme;
13
- as?: React.ElementType;
14
- }, {}, {}>;
15
- export { StyledIcon, StyledActionItem, StyledActionItemText };
@@ -1,55 +0,0 @@
1
- import React from 'react';
2
- import type { StyleProp, ViewStyle } from 'react-native';
3
- import type { IconName } from '../../Icon';
4
- import type { ActionItemProps } from './ActionItem';
5
- export type ActionGroupHandles = {
6
- showFAB: () => void;
7
- collapseFAB: () => void;
8
- hideFAB: () => void;
9
- };
10
- export interface ActionGroupProps {
11
- /**
12
- * @deprecated FAB.ActionGroup's `headerTitle` prop will be removed in the next major release. Please remove it.
13
- *
14
- * Title of the action group header.
15
- */
16
- headerTitle?: string;
17
- /**
18
- * This function is called on pressing the FAB button.
19
- * */
20
- onPress?: () => void;
21
- /**
22
- * This function is called on pressing the FAB backdrop.
23
- * */
24
- onBackdropPress?: () => void;
25
- /**
26
- * Specify if the FAB button is in active state and the action group is shown.
27
- * */
28
- active?: boolean;
29
- /**
30
- * Title of the floating action button
31
- */
32
- fabTitle?: string;
33
- /**
34
- * Icon name of the floating action button
35
- */
36
- fabIcon?: IconName;
37
- /**
38
- * Additional style.
39
- */
40
- style?: StyleProp<ViewStyle>;
41
- /**
42
- * Action items of the action group.
43
- * */
44
- items?: Array<ActionItemProps>;
45
- /**
46
- * Testing id of the component.
47
- */
48
- testID?: string;
49
- /**
50
- * Supported orientations for the ActionGroup modal, iOS only.
51
- */
52
- supportedOrientations?: ('portrait' | 'landscape')[];
53
- }
54
- declare const ActionGroup: React.ForwardRefExoticComponent<ActionGroupProps & React.RefAttributes<ActionGroupHandles>>;
55
- export default ActionGroup;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import type { IconProps } from '../Icon';
3
- type Props = {
4
- active?: boolean;
5
- } & IconProps;
6
- declare const AnimatedFABIcon: ({ active, ...iconProps }: Props) => React.JSX.Element;
7
- export { AnimatedFABIcon };
@@ -1,40 +0,0 @@
1
- import React from 'react';
2
- import type { StyleProp, ViewStyle } from 'react-native';
3
- import type { IconName } from '../Icon';
4
- export type FABHandles = {
5
- show: () => void;
6
- collapse: () => void;
7
- hide: () => void;
8
- };
9
- export interface FABProps {
10
- /**
11
- * Name of the Icon.
12
- */
13
- icon: IconName;
14
- /**
15
- * title of the component.
16
- */
17
- title?: string;
18
- /**
19
- * This function is called on pressing the button.
20
- */
21
- onPress?: () => void;
22
- /**
23
- * Specify if the button is animated.
24
- */
25
- animated?: boolean;
26
- /**
27
- * Specify if the button is in active state. It only works if animated is true.
28
- */
29
- active?: boolean;
30
- /**
31
- * Additional style.
32
- */
33
- style?: StyleProp<ViewStyle>;
34
- /**
35
- * Testing id of the component.
36
- */
37
- testID?: string;
38
- }
39
- declare const FAB: React.ForwardRefExoticComponent<FABProps & React.RefAttributes<FABHandles>>;
40
- export default FAB;
@@ -1,12 +0,0 @@
1
- declare const StyledFABPairWrapper: import("@emotion/native").StyledComponent<import("../../Box").BoxProps & {
2
- theme?: import("@emotion/react").Theme;
3
- as?: React.ElementType;
4
- }, {}, {}>;
5
- declare const StyledFAB: import("@emotion/native").StyledComponent<import("../FAB").FABProps & import("react").RefAttributes<import("../FAB").FABHandles> & {
6
- theme?: import("@emotion/react").Theme;
7
- as?: React.ElementType;
8
- } & {
9
- iconOnly?: boolean;
10
- isLast?: boolean;
11
- }, {}, {}>;
12
- export { StyledFABPairWrapper, StyledFAB };
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import type { ViewProps } from 'react-native';
3
- import type { FABProps } from '../FAB';
4
- export type InnerFABProps = Pick<FABProps, 'icon' | 'title' | 'onPress' | 'testID'>;
5
- export interface FABPairProps extends ViewProps {
6
- /**
7
- * Configuration for the main FAB.
8
- */
9
- fabConfig: InnerFABProps;
10
- /**
11
- * Callback to be called when the cancel FAB is pressed.
12
- */
13
- onCancel: () => void;
14
- }
15
- declare const Pair: ({ fabConfig, onCancel, ...props }: FABPairProps) => React.JSX.Element;
16
- export default Pair;
@@ -1,22 +0,0 @@
1
- import type { TextProps } from 'react-native';
2
- import { Animated } from 'react-native';
3
- import type { IconProps } from '../Icon';
4
- declare const StyledFAB: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").TouchableOpacityProps & import("react").RefAttributes<import("react-native").View>> & {
5
- theme?: import("@emotion/react").Theme;
6
- as?: React.ElementType;
7
- } & {
8
- themeActive?: boolean;
9
- }, {}, {}>;
10
- declare const StyledFABIcon: import("@emotion/native").StyledComponent<IconProps & {
11
- theme?: import("@emotion/react").Theme;
12
- as?: React.ElementType;
13
- }, {}, {}>;
14
- declare const StyledFABText: import("@emotion/native").StyledComponent<import("../..").BodyProps & {
15
- theme?: import("@emotion/react").Theme;
16
- as?: React.ElementType;
17
- } & TextProps, {}, {}>;
18
- declare const StyledIconContainer: import("@emotion/native").StyledComponent<import("../Box").BoxProps & {
19
- theme?: import("@emotion/react").Theme;
20
- as?: React.ElementType;
21
- }, {}, {}>;
22
- export { StyledFAB, StyledFABIcon, StyledFABText, StyledIconContainer };
@@ -1,5 +0,0 @@
1
- declare const _default: import("react").ForwardRefExoticComponent<import("./FAB").FABProps & import("react").RefAttributes<import("./FAB").FABHandles>> & {
2
- ActionGroup: import("react").ForwardRefExoticComponent<import("./ActionGroup").ActionGroupProps & import("react").RefAttributes<import("./ActionGroup").ActionGroupHandles>>;
3
- Pair: ({ fabConfig, onCancel, ...props }: import("./Pair").FABPairProps) => import("react").JSX.Element;
4
- };
5
- export default _default;
@@ -1,20 +0,0 @@
1
- type Variant = 'filled' | 'outlined' | 'ghost';
2
- export declare const StyledFilterWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & import("react").RefAttributes<import("react-native").View> & {
3
- theme?: import("@emotion/react").Theme;
4
- as?: React.ElementType;
5
- } & {
6
- themeActive: boolean;
7
- themeVariant: Variant;
8
- themeHasLabel: boolean;
9
- }, {}, {}>;
10
- export declare const StyledBadge: import("@emotion/native").StyledComponent<(import("../Badge").BadgeProps & {
11
- theme?: import("@emotion/react").Theme;
12
- as?: React.ElementType;
13
- }) & {
14
- themeHasLabel: boolean;
15
- }, {}, {}>;
16
- export declare const StyledText: import("@emotion/native").StyledComponent<import("../..").BodyProps & {
17
- theme?: import("@emotion/react").Theme;
18
- as?: React.ElementType;
19
- }, {}, {}>;
20
- export {};
@@ -1,39 +0,0 @@
1
- import React from 'react';
2
- import type { StyleProp, ViewStyle } from 'react-native';
3
- import type { IconName } from '../Icon';
4
- export interface FilterTriggerProps {
5
- /**
6
- * The label of the FilterTrigger.
7
- */
8
- label?: string;
9
- /**
10
- * Whether the filter is currently active
11
- */
12
- active?: boolean;
13
- /**
14
- * The number of active filters
15
- */
16
- filterCount?: number;
17
- /**
18
- * The testID of the FilterTrigger.
19
- */
20
- testID?: string;
21
- /**
22
- * The style of the FilterTrigger.
23
- */
24
- style?: StyleProp<ViewStyle>;
25
- /**
26
- * The onPress callback
27
- */
28
- onPress?: () => void;
29
- /**
30
- * The variant of the FilterTrigger.
31
- */
32
- variant?: 'filled' | 'outlined' | 'ghost';
33
- /**
34
- * The suffix of the FilterTrigger.
35
- */
36
- suffix?: IconName;
37
- }
38
- declare const FilterTrigger: ({ label, active, filterCount, variant, suffix, onPress, testID, style, }: FilterTriggerProps) => React.JSX.Element;
39
- export default FilterTrigger;
@@ -1,19 +0,0 @@
1
- declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & import("react").RefAttributes<import("react-native").View> & {
2
- theme?: import("@emotion/react").Theme;
3
- as?: React.ElementType;
4
- }, {}, {
5
- ref?: import("react").Ref<any> | undefined;
6
- }>;
7
- declare const StyledPrefixWrapper: import("@emotion/native").StyledComponent<import("../Box").BoxProps & {
8
- theme?: import("@emotion/react").Theme;
9
- as?: React.ElementType;
10
- }, {}, {}>;
11
- declare const StyledSuffixWrapper: import("@emotion/native").StyledComponent<import("../Box").BoxProps & {
12
- theme?: import("@emotion/react").Theme;
13
- as?: React.ElementType;
14
- }, {}, {}>;
15
- declare const StyledIcon: import("@emotion/native").StyledComponent<import("../Icon").IconProps & {
16
- theme?: import("@emotion/react").Theme;
17
- as?: React.ElementType;
18
- }, {}, {}>;
19
- export { StyledWrapper, StyledPrefixWrapper, StyledSuffixWrapper, StyledIcon };
@@ -1,24 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import React from 'react';
3
- import type { ViewProps } from 'react-native';
4
- import type { IconName } from '../Icon';
5
- interface FloatingIslandProps extends ViewProps {
6
- /**
7
- * Callback that is called when the floating island is pressed.
8
- */
9
- onPress?: () => void;
10
- /**
11
- * Children of the floating island.
12
- */
13
- children: ReactNode;
14
- /**
15
- * Prefix element that is displayed before the children.
16
- */
17
- prefix?: IconName | ReactNode;
18
- /**
19
- * Suffix element that is displayed after the children.
20
- */
21
- suffix?: IconName | ReactNode;
22
- }
23
- declare const FloatingIsland: ({ onPress, onLayout, style, children, prefix, suffix, ...props }: FloatingIslandProps) => React.JSX.Element;
24
- export default FloatingIsland;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import type { ThemeProviderProps } from '../../theme/ThemeProvider';
3
- import type { LocaleValues } from '../../locales/types';
4
- interface HeroDesignProviderProps extends ThemeProviderProps {
5
- locale?: LocaleValues;
6
- }
7
- declare const HeroDesignProvider: ({ theme, locale, children, }: HeroDesignProviderProps) => React.JSX.Element;
8
- export default HeroDesignProvider;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import type { ComponentProps } from 'react';
3
- import StyledHeroIcon from './HeroIcon';
4
- type AnimatedIconProps = ComponentProps<typeof StyledHeroIcon>;
5
- declare const AnimatedIcon: ({ style, ...otherProps }: AnimatedIconProps) => React.JSX.Element;
6
- export default AnimatedIcon;
@@ -1,12 +0,0 @@
1
- type ThemeSize = 'xxxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
2
- type ThemeIntent = 'text' | 'primary' | 'secondary' | 'info' | 'danger' | 'success' | 'warning' | 'disabled-text' | 'text-inverted' | 'muted' | 'inactive';
3
- declare const StyledHeroIcon: import("@emotion/native").StyledComponent<import("react-native-vector-icons/Icon").IconProps & {
4
- theme?: import("@emotion/react").Theme;
5
- as?: React.ElementType;
6
- } & {
7
- themeSize: ThemeSize;
8
- themeIntent: ThemeIntent;
9
- }, {}, {
10
- ref?: import("react").Ref<import("react-native-vector-icons/Icon").Icon> | undefined;
11
- }>;
12
- export default StyledHeroIcon;