@hero-design/rn 8.113.0 → 8.114.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 (540) hide show
  1. package/CHANGELOG.md +23 -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 +674 -439
  5. package/package.json +4 -4
  6. package/src/components/Alert/index.tsx +1 -1
  7. package/src/components/Badge/Count.tsx +2 -2
  8. package/src/components/Badge/Status.tsx +2 -2
  9. package/src/components/Badge/index.tsx +2 -1
  10. package/src/components/BottomNavigation/StyledBottomNavigation.tsx +1 -1
  11. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +32 -36
  12. package/src/components/BottomNavigation/__tests__/index.spec.tsx +17 -8
  13. package/src/components/BottomNavigation/index.tsx +4 -5
  14. package/src/components/BottomSheet/ScrollView.tsx +2 -1
  15. package/src/components/BottomSheet/index.tsx +1 -1
  16. package/src/components/Button/Button.tsx +2 -2
  17. package/src/components/Calendar/__tests__/CalendarRange.spec.tsx +1 -1
  18. package/src/components/Calendar/__tests__/index.spec.tsx +4 -9
  19. package/src/components/Card/DataCard/index.tsx +2 -2
  20. package/src/components/Card/index.tsx +2 -2
  21. package/src/components/Carousel/index.tsx +2 -2
  22. package/src/components/DatePicker/Dialog/__tests__/IOSDialog.spec.tsx +0 -6
  23. package/src/components/DatePicker/__tests__/DatePickerCalendar.spec.tsx +2 -10
  24. package/src/components/DatePicker/__tests__/DatePickerIOS.spec.tsx +27 -0
  25. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +176 -728
  26. package/src/components/Drawer/DragableDrawer/index.tsx +2 -2
  27. package/src/components/Drawer/index.tsx +2 -2
  28. package/src/components/FAB/__tests__/index.spec.tsx +33 -8
  29. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  30. package/src/components/Icon/IconList.ts +3 -0
  31. package/src/components/Image/index.tsx +2 -1
  32. package/src/components/List/BasicListItem.tsx +2 -1
  33. package/src/components/List/ListItem.tsx +1 -1
  34. package/src/components/MapPin/Focussed.tsx +2 -1
  35. package/src/components/MapPin/index.tsx +2 -1
  36. package/src/components/Modal/__tests__/index.spec.tsx +46 -0
  37. package/src/components/Modal/index.tsx +121 -149
  38. package/src/components/Progress/ProgressBar.tsx +2 -1
  39. package/src/components/Progress/ProgressCircle.tsx +2 -1
  40. package/src/components/Progress/SegmentedBar/Legend.tsx +39 -0
  41. package/src/components/Progress/SegmentedBar/StyledLegend.tsx +32 -0
  42. package/src/components/Progress/SegmentedBar/StyledSegmentedBar.tsx +30 -0
  43. package/src/components/Progress/SegmentedBar/__tests__/index.spec.tsx +115 -0
  44. package/src/components/Progress/SegmentedBar/__tests__/utils.spec.tsx +24 -0
  45. package/src/components/Progress/SegmentedBar/constants.ts +8 -0
  46. package/src/components/Progress/SegmentedBar/hooks/validation.ts +71 -0
  47. package/src/components/Progress/SegmentedBar/index.tsx +153 -0
  48. package/src/components/Progress/SegmentedBar/types.ts +62 -0
  49. package/src/components/Progress/SegmentedBar/utils.ts +16 -0
  50. package/src/components/Progress/index.tsx +2 -0
  51. package/src/components/RichTextEditor/MentionList.tsx +2 -1
  52. package/src/components/Tabs/ScrollableTabs.tsx +30 -9
  53. package/src/components/Tabs/ScrollableTabsHeader/ScrollableTabsHeader.tsx +5 -7
  54. package/src/components/Tabs/__tests__/ScrollableTabs.spec.tsx +74 -38
  55. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +105 -129
  56. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +30 -42
  57. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +0 -683
  58. package/src/components/Tabs/__tests__/index.spec.tsx +37 -25
  59. package/src/components/Tabs/index.tsx +4 -2
  60. package/src/components/Tag/index.tsx +1 -1
  61. package/src/components/TimePicker/__tests__/TimePickerIOS.spec.tsx +0 -6
  62. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +237 -282
  63. package/src/components/Toast/Toast.tsx +2 -1
  64. package/src/components/Toolbar/ToolbarItem.tsx +2 -1
  65. package/src/components/Typography/Label/index.tsx +1 -1
  66. package/src/testHelpers/renderWithTheme.tsx +2 -1
  67. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +9 -1
  68. package/src/theme/components/bottomNavigation.ts +1 -1
  69. package/src/theme/components/progress.ts +8 -0
  70. package/src/types.ts +2 -0
  71. package/src/utils/helpers.ts +6 -0
  72. package/.turbo/turbo-build.log +0 -17
  73. package/es/index.js +0 -48768
  74. package/locales/en_AU.js +0 -10
  75. package/locales/en_AU.mjs +0 -8
  76. package/locales/en_CA.js +0 -10
  77. package/locales/en_CA.mjs +0 -8
  78. package/locales/index.js +0 -11
  79. package/locales/index.mjs +0 -9
  80. package/locales/types.js +0 -2
  81. package/locales/types.mjs +0 -1
  82. package/types/components/Accordion/AccordionItem.d.ts +0 -15
  83. package/types/components/Accordion/StyledAccordion.d.ts +0 -30
  84. package/types/components/Accordion/index.d.ts +0 -43
  85. package/types/components/Alert/StyledAlert.d.ts +0 -51
  86. package/types/components/Alert/index.d.ts +0 -66
  87. package/types/components/AnimatedScroller/AnimatedFAB.d.ts +0 -12
  88. package/types/components/AnimatedScroller/AnimatedScrollable.d.ts +0 -16
  89. package/types/components/AnimatedScroller/FlatListWithFAB.d.ts +0 -12
  90. package/types/components/AnimatedScroller/ScrollViewWithFAB.d.ts +0 -12
  91. package/types/components/AnimatedScroller/SectionListWithFAB.d.ts +0 -12
  92. package/types/components/AnimatedScroller/index.d.ts +0 -4
  93. package/types/components/AppCue/StyledAppCue.d.ts +0 -20
  94. package/types/components/AppCue/__tests__/StyledAppCue.d.ts +0 -1
  95. package/types/components/AppCue/index.d.ts +0 -21
  96. package/types/components/AppCue/utils.d.ts +0 -66
  97. package/types/components/Attachment/StyledAttachment.d.ts +0 -26
  98. package/types/components/Attachment/index.d.ts +0 -38
  99. package/types/components/Avatar/Avatar.d.ts +0 -34
  100. package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +0 -30
  101. package/types/components/Avatar/AvatarStack/index.d.ts +0 -36
  102. package/types/components/Avatar/AvatarStack/utils.d.ts +0 -4
  103. package/types/components/Avatar/StyledAvatar.d.ts +0 -32
  104. package/types/components/Avatar/index.d.ts +0 -6
  105. package/types/components/Badge/Count.d.ts +0 -27
  106. package/types/components/Badge/Status.d.ts +0 -23
  107. package/types/components/Badge/StyledBadge.d.ts +0 -43
  108. package/types/components/Badge/constants.d.ts +0 -1
  109. package/types/components/Badge/index.d.ts +0 -7
  110. package/types/components/Badge/types.d.ts +0 -53
  111. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -51
  112. package/types/components/BottomNavigation/index.d.ts +0 -45
  113. package/types/components/BottomSheet/BottomSheetContext.d.ts +0 -5
  114. package/types/components/BottomSheet/Footer.d.ts +0 -7
  115. package/types/components/BottomSheet/Header.d.ts +0 -10
  116. package/types/components/BottomSheet/ScrollView.d.ts +0 -5
  117. package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -59
  118. package/types/components/BottomSheet/index.d.ts +0 -74
  119. package/types/components/Box/StyledBox.d.ts +0 -10
  120. package/types/components/Box/config.d.ts +0 -174
  121. package/types/components/Box/index.d.ts +0 -6
  122. package/types/components/Box/types.d.ts +0 -31
  123. package/types/components/Button/Button.d.ts +0 -64
  124. package/types/components/Button/IconButton.d.ts +0 -39
  125. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -19
  126. package/types/components/Button/LoadingIndicator/index.d.ts +0 -27
  127. package/types/components/Button/StyledButton.d.ts +0 -61
  128. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +0 -15
  129. package/types/components/Button/UtilityButton/index.d.ts +0 -24
  130. package/types/components/Button/index.d.ts +0 -10
  131. package/types/components/Calendar/CalendarRange.d.ts +0 -11
  132. package/types/components/Calendar/CalendarRangeConnector.d.ts +0 -11
  133. package/types/components/Calendar/CalendarRowItem.d.ts +0 -13
  134. package/types/components/Calendar/StyledCalendar.d.ts +0 -61
  135. package/types/components/Calendar/constants.d.ts +0 -4
  136. package/types/components/Calendar/helpers.d.ts +0 -35
  137. package/types/components/Calendar/index.d.ts +0 -9
  138. package/types/components/Calendar/shared/hooks/useCalendarLayout.d.ts +0 -8
  139. package/types/components/Calendar/types.d.ts +0 -58
  140. package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -22
  141. package/types/components/Card/DataCard/index.d.ts +0 -22
  142. package/types/components/Card/StyledCard.d.ts +0 -11
  143. package/types/components/Card/index.d.ts +0 -32
  144. package/types/components/Carousel/CardCarousel.d.ts +0 -46
  145. package/types/components/Carousel/CarouselItem.d.ts +0 -7
  146. package/types/components/Carousel/StyledCardCarousel.d.ts +0 -27
  147. package/types/components/Carousel/StyledCarousel.d.ts +0 -55
  148. package/types/components/Carousel/contants.d.ts +0 -2
  149. package/types/components/Carousel/index.d.ts +0 -46
  150. package/types/components/Carousel/types.d.ts +0 -14
  151. package/types/components/Chart/ChartSelect/StyledChartSelect.d.ts +0 -8
  152. package/types/components/Chart/ChartSelect/index.d.ts +0 -63
  153. package/types/components/Chart/ColumnChart/ColumnChartContent.d.ts +0 -29
  154. package/types/components/Chart/ColumnChart/Segment.d.ts +0 -14
  155. package/types/components/Chart/ColumnChart/StackedSegment.d.ts +0 -32
  156. package/types/components/Chart/ColumnChart/StyledColumnChart.d.ts +0 -8
  157. package/types/components/Chart/ColumnChart/index.d.ts +0 -86
  158. package/types/components/Chart/Line/Line.d.ts +0 -23
  159. package/types/components/Chart/Line/index.d.ts +0 -41
  160. package/types/components/Chart/StyledChart.d.ts +0 -9
  161. package/types/components/Chart/index.d.ts +0 -6
  162. package/types/components/Chart/shared/AxisLabel.d.ts +0 -7
  163. package/types/components/Chart/shared/ChartFrame.d.ts +0 -30
  164. package/types/components/Chart/shared/ChartHeader.d.ts +0 -8
  165. package/types/components/Chart/shared/EmptyState.d.ts +0 -8
  166. package/types/components/Chart/shared/XAxis.d.ts +0 -8
  167. package/types/components/Chart/shared/XAxisGrid.d.ts +0 -8
  168. package/types/components/Chart/shared/YAxis.d.ts +0 -10
  169. package/types/components/Chart/shared/YAxisGrid.d.ts +0 -10
  170. package/types/components/Chart/shared/constants.d.ts +0 -4
  171. package/types/components/Chart/shared/hooks/useColorScale.d.ts +0 -7
  172. package/types/components/Chart/shared/hooks/useCustomColor.d.ts +0 -22
  173. package/types/components/Chart/shared/hooks/useGenerateTicks.d.ts +0 -6
  174. package/types/components/Chart/shared/hooks/useScaleBandX.d.ts +0 -7
  175. package/types/components/Chart/shared/hooks/useScaleLinearY.d.ts +0 -8
  176. package/types/components/Chart/shared/niceNumbers.d.ts +0 -12
  177. package/types/components/Chart/shared/utils.d.ts +0 -11
  178. package/types/components/Chart/types.d.ts +0 -91
  179. package/types/components/Checkbox/DefaultCheckBox.d.ts +0 -40
  180. package/types/components/Checkbox/InlineCheckBox.d.ts +0 -38
  181. package/types/components/Checkbox/StyledDefaultCheckBox.d.ts +0 -33
  182. package/types/components/Checkbox/StyledInlineCheckBox.d.ts +0 -45
  183. package/types/components/Checkbox/index.d.ts +0 -6
  184. package/types/components/Checkbox/utils.d.ts +0 -7
  185. package/types/components/Chip/StyledChip.d.ts +0 -13
  186. package/types/components/Chip/index.d.ts +0 -43
  187. package/types/components/Collapse/StyledCollapse.d.ts +0 -23
  188. package/types/components/Collapse/index.d.ts +0 -20
  189. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -8
  190. package/types/components/ContentNavigator/index.d.ts +0 -43
  191. package/types/components/DatePicker/DatePicker.d.ts +0 -4
  192. package/types/components/DatePicker/DatePickerAndroid.d.ts +0 -7
  193. package/types/components/DatePicker/DatePickerCalendar.d.ts +0 -4
  194. package/types/components/DatePicker/DatePickerIOS.d.ts +0 -7
  195. package/types/components/DatePicker/Dialog/AndroidDialog.d.ts +0 -5
  196. package/types/components/DatePicker/Dialog/IOSDialog.d.ts +0 -4
  197. package/types/components/DatePicker/Dialog/type.d.ts +0 -50
  198. package/types/components/DatePicker/Dialog.d.ts +0 -4
  199. package/types/components/DatePicker/StyledDatePicker.d.ts +0 -16
  200. package/types/components/DatePicker/hooks/useCalculateDate.d.ts +0 -4
  201. package/types/components/DatePicker/hooks/useFormatDate.d.ts +0 -10
  202. package/types/components/DatePicker/hooks/utils.d.ts +0 -6
  203. package/types/components/DatePicker/index.d.ts +0 -6
  204. package/types/components/DatePicker/index.internal.d.ts +0 -7
  205. package/types/components/DatePicker/types.d.ts +0 -109
  206. package/types/components/Divider/StyledDivider.d.ts +0 -12
  207. package/types/components/Divider/index.d.ts +0 -22
  208. package/types/components/Drawer/DragableDrawer/helpers.d.ts +0 -8
  209. package/types/components/Drawer/DragableDrawer/index.d.ts +0 -33
  210. package/types/components/Drawer/StyledDrawer.d.ts +0 -49
  211. package/types/components/Drawer/index.d.ts +0 -27
  212. package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -18
  213. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -31
  214. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -15
  215. package/types/components/FAB/ActionGroup/index.d.ts +0 -55
  216. package/types/components/FAB/AnimatedFABIcon.d.ts +0 -7
  217. package/types/components/FAB/FAB.d.ts +0 -40
  218. package/types/components/FAB/Pair/StyledFAB.d.ts +0 -12
  219. package/types/components/FAB/Pair/index.d.ts +0 -16
  220. package/types/components/FAB/StyledFAB.d.ts +0 -22
  221. package/types/components/FAB/index.d.ts +0 -5
  222. package/types/components/FilterTrigger/StyledFilterTrigger.d.ts +0 -20
  223. package/types/components/FilterTrigger/index.d.ts +0 -39
  224. package/types/components/FloatingIsland/StyledFloatingIsland.d.ts +0 -19
  225. package/types/components/FloatingIsland/index.d.ts +0 -24
  226. package/types/components/HeroDesignProvider/index.d.ts +0 -8
  227. package/types/components/Icon/AnimatedIcon.d.ts +0 -6
  228. package/types/components/Icon/HeroIcon/index.d.ts +0 -12
  229. package/types/components/Icon/IconList.d.ts +0 -2
  230. package/types/components/Icon/index.d.ts +0 -37
  231. package/types/components/Icon/utils.d.ts +0 -3
  232. package/types/components/Illustration/BaseSvg.d.ts +0 -8
  233. package/types/components/Illustration/assets/Add.d.ts +0 -4
  234. package/types/components/Illustration/assets/AllInOneSketch.d.ts +0 -4
  235. package/types/components/Illustration/assets/Boom.d.ts +0 -4
  236. package/types/components/Illustration/assets/Build.d.ts +0 -4
  237. package/types/components/Illustration/assets/CelebrationSketch.d.ts +0 -4
  238. package/types/components/Illustration/assets/Clock.d.ts +0 -4
  239. package/types/components/Illustration/assets/Confetti.d.ts +0 -4
  240. package/types/components/Illustration/assets/Connections.d.ts +0 -4
  241. package/types/components/Illustration/assets/DiySketch.d.ts +0 -4
  242. package/types/components/Illustration/assets/Error.d.ts +0 -4
  243. package/types/components/Illustration/assets/ErrorSketch.d.ts +0 -4
  244. package/types/components/Illustration/assets/FreedomSketch.d.ts +0 -4
  245. package/types/components/Illustration/assets/GrowingSketch.d.ts +0 -4
  246. package/types/components/Illustration/assets/Info.d.ts +0 -4
  247. package/types/components/Illustration/assets/InstantSketch.d.ts +0 -4
  248. package/types/components/Illustration/assets/LiftSketch.d.ts +0 -4
  249. package/types/components/Illustration/assets/List.d.ts +0 -4
  250. package/types/components/Illustration/assets/Location.d.ts +0 -4
  251. package/types/components/Illustration/assets/Lock.d.ts +0 -4
  252. package/types/components/Illustration/assets/Merge.d.ts +0 -4
  253. package/types/components/Illustration/assets/NoResult.d.ts +0 -4
  254. package/types/components/Illustration/assets/Notifications.d.ts +0 -4
  255. package/types/components/Illustration/assets/OnDemandSketch.d.ts +0 -4
  256. package/types/components/Illustration/assets/ProcessingSketch.d.ts +0 -4
  257. package/types/components/Illustration/assets/RemoteJobsSketch.d.ts +0 -4
  258. package/types/components/Illustration/assets/RewardSketch.d.ts +0 -4
  259. package/types/components/Illustration/assets/Search.d.ts +0 -4
  260. package/types/components/Illustration/assets/SearchSketch.d.ts +0 -4
  261. package/types/components/Illustration/assets/SecuritySketch.d.ts +0 -4
  262. package/types/components/Illustration/assets/SentSketch.d.ts +0 -4
  263. package/types/components/Illustration/assets/SpeedSketch.d.ts +0 -4
  264. package/types/components/Illustration/assets/Star.d.ts +0 -4
  265. package/types/components/Illustration/assets/Success.d.ts +0 -4
  266. package/types/components/Illustration/assets/SuperchargeSketch.d.ts +0 -4
  267. package/types/components/Illustration/assets/Unlock.d.ts +0 -4
  268. package/types/components/Illustration/assets/UnlockSketch.d.ts +0 -4
  269. package/types/components/Illustration/assets/User.d.ts +0 -4
  270. package/types/components/Illustration/assets/WorkflowSketch.d.ts +0 -4
  271. package/types/components/Illustration/constants.d.ts +0 -1
  272. package/types/components/Illustration/hooks/useMonoColor.d.ts +0 -5
  273. package/types/components/Illustration/illustrations.d.ts +0 -42
  274. package/types/components/Illustration/index.d.ts +0 -29
  275. package/types/components/Illustration/types.d.ts +0 -7
  276. package/types/components/Image/index.d.ts +0 -20
  277. package/types/components/List/BasicListItem.d.ts +0 -43
  278. package/types/components/List/ListItem.d.ts +0 -52
  279. package/types/components/List/StyledBasicListItem.d.ts +0 -27
  280. package/types/components/List/StyledListItem.d.ts +0 -49
  281. package/types/components/List/index.d.ts +0 -8
  282. package/types/components/LocaleProvider/__tests__/utils.specs.d.ts +0 -1
  283. package/types/components/LocaleProvider/context.d.ts +0 -3
  284. package/types/components/LocaleProvider/hooks.d.ts +0 -5
  285. package/types/components/LocaleProvider/index.d.ts +0 -7
  286. package/types/components/LocaleProvider/utils.d.ts +0 -3
  287. package/types/components/MapPin/Focussed.d.ts +0 -13
  288. package/types/components/MapPin/StyledMapPin.d.ts +0 -41
  289. package/types/components/MapPin/index.d.ts +0 -5
  290. package/types/components/MapPin/types.d.ts +0 -38
  291. package/types/components/Modal/index.d.ts +0 -38
  292. package/types/components/PageControl/StyledPageControl.d.ts +0 -12
  293. package/types/components/PageControl/index.d.ts +0 -22
  294. package/types/components/PinInput/PinCell.d.ts +0 -9
  295. package/types/components/PinInput/StyledPinInput.d.ts +0 -67
  296. package/types/components/PinInput/index.d.ts +0 -73
  297. package/types/components/Portal/PortalHost.d.ts +0 -5
  298. package/types/components/Portal/PortalProvider.d.ts +0 -7
  299. package/types/components/Portal/constants.d.ts +0 -8
  300. package/types/components/Portal/contexts.d.ts +0 -9
  301. package/types/components/Portal/index.d.ts +0 -19
  302. package/types/components/Portal/reducer.d.ts +0 -5
  303. package/types/components/Portal/types.d.ts +0 -23
  304. package/types/components/Portal/usePortal.d.ts +0 -8
  305. package/types/components/Portal/usePortalState.d.ts +0 -1
  306. package/types/components/Progress/ProgressBar.d.ts +0 -18
  307. package/types/components/Progress/ProgressCircle.d.ts +0 -20
  308. package/types/components/Progress/ProgressStep.d.ts +0 -20
  309. package/types/components/Progress/StyledProgressBar.d.ts +0 -18
  310. package/types/components/Progress/StyledProgressCircle.d.ts +0 -15
  311. package/types/components/Progress/StyledStep.d.ts +0 -23
  312. package/types/components/Progress/__tests__/index.spec.d.ts +0 -1
  313. package/types/components/Progress/constants.d.ts +0 -15
  314. package/types/components/Progress/index.d.ts +0 -6
  315. package/types/components/Progress/types.d.ts +0 -1
  316. package/types/components/Radio/Radio.d.ts +0 -43
  317. package/types/components/Radio/RadioGroup.d.ts +0 -40
  318. package/types/components/Radio/StyledRadio.d.ts +0 -30
  319. package/types/components/Radio/index.d.ts +0 -4
  320. package/types/components/Radio/types.d.ts +0 -10
  321. package/types/components/Rate/StyledRate.d.ts +0 -10
  322. package/types/components/Rate/index.d.ts +0 -29
  323. package/types/components/RefreshControl/index.d.ts +0 -5
  324. package/types/components/RichTextEditor/EditorEvent.d.ts +0 -3
  325. package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -18
  326. package/types/components/RichTextEditor/MentionList.d.ts +0 -17
  327. package/types/components/RichTextEditor/RichTextEditor.d.ts +0 -27
  328. package/types/components/RichTextEditor/RichTextEditorInput.d.ts +0 -69
  329. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -7
  330. package/types/components/RichTextEditor/StyledToolbar.d.ts +0 -19
  331. package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -2
  332. package/types/components/RichTextEditor/constants.d.ts +0 -17
  333. package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -2
  334. package/types/components/RichTextEditor/hooks/useRichTextEditorEvents.d.ts +0 -36
  335. package/types/components/RichTextEditor/index.d.ts +0 -71
  336. package/types/components/RichTextEditor/types.d.ts +0 -2
  337. package/types/components/RichTextEditor/utils/events.d.ts +0 -7
  338. package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -7
  339. package/types/components/Search/SearchOneLine.d.ts +0 -73
  340. package/types/components/Search/SearchSuffixIcon.d.ts +0 -24
  341. package/types/components/Search/SearchTwoLine.d.ts +0 -40
  342. package/types/components/Search/StyledSearch.d.ts +0 -49
  343. package/types/components/Search/index.d.ts +0 -10
  344. package/types/components/Search/utils.d.ts +0 -8
  345. package/types/components/SectionHeading/StyledHeading.d.ts +0 -23
  346. package/types/components/SectionHeading/index.d.ts +0 -45
  347. package/types/components/SegmentedControl/SegmentedItem.d.ts +0 -18
  348. package/types/components/SegmentedControl/StyledSegmentedControl.d.ts +0 -26
  349. package/types/components/SegmentedControl/index.d.ts +0 -31
  350. package/types/components/SegmentedControl/types.d.ts +0 -43
  351. package/types/components/Select/BaseOptionList.d.ts +0 -8
  352. package/types/components/Select/Footer.d.ts +0 -6
  353. package/types/components/Select/MultiSelect/Option.d.ts +0 -10
  354. package/types/components/Select/MultiSelect/OptionList.d.ts +0 -9
  355. package/types/components/Select/MultiSelect/index.d.ts +0 -35
  356. package/types/components/Select/MultiSelect/utils.d.ts +0 -2
  357. package/types/components/Select/SingleSelect/Option.d.ts +0 -10
  358. package/types/components/Select/SingleSelect/OptionList.d.ts +0 -11
  359. package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +0 -2
  360. package/types/components/Select/SingleSelect/index.d.ts +0 -28
  361. package/types/components/Select/StyledSelect.d.ts +0 -28
  362. package/types/components/Select/helpers.d.ts +0 -10
  363. package/types/components/Select/index.d.ts +0 -10
  364. package/types/components/Select/index.internal.d.ts +0 -21
  365. package/types/components/Select/types.d.ts +0 -88
  366. package/types/components/Skeleton/StyledSkeleton.d.ts +0 -16
  367. package/types/components/Skeleton/index.d.ts +0 -14
  368. package/types/components/Slider/RangeSlider.d.ts +0 -60
  369. package/types/components/Slider/SingleSlider.d.ts +0 -53
  370. package/types/components/Slider/StyledRangeSlider.d.ts +0 -10
  371. package/types/components/Slider/constants.d.ts +0 -3
  372. package/types/components/Slider/index.d.ts +0 -8
  373. package/types/components/Spinner/AnimatedSpinner.d.ts +0 -6
  374. package/types/components/Spinner/StyledSpinner.d.ts +0 -34
  375. package/types/components/Spinner/index.d.ts +0 -18
  376. package/types/components/StatusScreens/Empty/StyledEmpty.d.ts +0 -27
  377. package/types/components/StatusScreens/Empty/index.d.ts +0 -38
  378. package/types/components/StatusScreens/Error/StyledError.d.ts +0 -59
  379. package/types/components/StatusScreens/Error/index.d.ts +0 -62
  380. package/types/components/StatusScreens/Success/StyledSuccess.d.ts +0 -59
  381. package/types/components/StatusScreens/Success/index.d.ts +0 -56
  382. package/types/components/Swipeable/StyledSwipeable.d.ts +0 -7
  383. package/types/components/Swipeable/SwipeableAction.d.ts +0 -28
  384. package/types/components/Swipeable/index.d.ts +0 -50
  385. package/types/components/Switch/SelectorSwitch/Option.d.ts +0 -14
  386. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -19
  387. package/types/components/Switch/SelectorSwitch/index.d.ts +0 -37
  388. package/types/components/Switch/StyledSwitch.d.ts +0 -15
  389. package/types/components/Switch/index.d.ts +0 -28
  390. package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -9
  391. package/types/components/Tabs/SceneView.d.ts +0 -10
  392. package/types/components/Tabs/ScrollableTabs.d.ts +0 -7
  393. package/types/components/Tabs/ScrollableTabsHeader/ScrollableTabsHeader.d.ts +0 -40
  394. package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitHighlightedAnimation.d.ts +0 -9
  395. package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitUnderlinedAnimation.d.ts +0 -10
  396. package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -55
  397. package/types/components/Tabs/StyledTabs.d.ts +0 -45
  398. package/types/components/Tabs/TabWithBadge.d.ts +0 -17
  399. package/types/components/Tabs/index.d.ts +0 -62
  400. package/types/components/Tabs/useHandlePageScroll.d.ts +0 -8
  401. package/types/components/Tabs/useIsFocused.d.ts +0 -6
  402. package/types/components/Tabs/utils.d.ts +0 -2
  403. package/types/components/Tag/StyledTag.d.ts +0 -17
  404. package/types/components/Tag/index.d.ts +0 -28
  405. package/types/components/TextInput/StyledTextInput.d.ts +0 -89
  406. package/types/components/TextInput/index.d.ts +0 -136
  407. package/types/components/TimePicker/StyledTimePicker.d.ts +0 -16
  408. package/types/components/TimePicker/TimePicker.d.ts +0 -4
  409. package/types/components/TimePicker/TimePickerAndroid.d.ts +0 -4
  410. package/types/components/TimePicker/TimePickerIOS.d.ts +0 -4
  411. package/types/components/TimePicker/index.d.ts +0 -4
  412. package/types/components/TimePicker/index.internal.d.ts +0 -5
  413. package/types/components/TimePicker/types.d.ts +0 -76
  414. package/types/components/Toast/StyledToast.d.ts +0 -57
  415. package/types/components/Toast/Toast.d.ts +0 -3
  416. package/types/components/Toast/ToastContainer.d.ts +0 -5
  417. package/types/components/Toast/ToastContext.d.ts +0 -13
  418. package/types/components/Toast/ToastProvider.d.ts +0 -11
  419. package/types/components/Toast/index.d.ts +0 -8
  420. package/types/components/Toast/types.d.ts +0 -74
  421. package/types/components/Toolbar/StyledToolbar.d.ts +0 -69
  422. package/types/components/Toolbar/ToolbarGroup.d.ts +0 -25
  423. package/types/components/Toolbar/ToolbarItem.d.ts +0 -31
  424. package/types/components/Toolbar/ToolbarMessage.d.ts +0 -58
  425. package/types/components/Toolbar/index.d.ts +0 -14
  426. package/types/components/Typography/Body/StyledBody.d.ts +0 -15
  427. package/types/components/Typography/Body/__tests__/StyledBody.d.ts +0 -1
  428. package/types/components/Typography/Body/index.d.ts +0 -38
  429. package/types/components/Typography/Caption/StyledCaption.d.ts +0 -13
  430. package/types/components/Typography/Caption/index.d.ts +0 -32
  431. package/types/components/Typography/Label/StyledLabel.d.ts +0 -12
  432. package/types/components/Typography/Label/__tests__/StyledLabel.d.ts +0 -1
  433. package/types/components/Typography/Label/index.d.ts +0 -28
  434. package/types/components/Typography/Text/StyledText.d.ts +0 -13
  435. package/types/components/Typography/Text/index.d.ts +0 -40
  436. package/types/components/Typography/Title/StyledTitle.d.ts +0 -15
  437. package/types/components/Typography/Title/__tests__/StyledTitle.d.ts +0 -1
  438. package/types/components/Typography/Title/index.d.ts +0 -38
  439. package/types/components/Typography/index.d.ts +0 -17
  440. package/types/components/Typography/types.d.ts +0 -6
  441. package/types/index.d.ts +0 -64
  442. package/types/index.internal.d.ts +0 -19
  443. package/types/locales/en_AU.d.ts +0 -3
  444. package/types/locales/en_CA.d.ts +0 -3
  445. package/types/locales/index.d.ts +0 -5
  446. package/types/locales/types.d.ts +0 -10
  447. package/types/testHelpers/renderWithTheme.d.ts +0 -3
  448. package/types/testHelpers/utils.d.ts +0 -1
  449. package/types/theme/ThemeProvider.d.ts +0 -12
  450. package/types/theme/ThemeSwitcher.d.ts +0 -9
  451. package/types/theme/components/accordion.d.ts +0 -13
  452. package/types/theme/components/alert.d.ts +0 -48
  453. package/types/theme/components/appCue.d.ts +0 -16
  454. package/types/theme/components/attachment.d.ts +0 -21
  455. package/types/theme/components/avatar.d.ts +0 -50
  456. package/types/theme/components/badge.d.ts +0 -69
  457. package/types/theme/components/bottomNavigation.d.ts +0 -30
  458. package/types/theme/components/bottomSheet.d.ts +0 -29
  459. package/types/theme/components/button.d.ts +0 -127
  460. package/types/theme/components/calendar.d.ts +0 -33
  461. package/types/theme/components/card.d.ts +0 -26
  462. package/types/theme/components/cardCarousel.d.ts +0 -19
  463. package/types/theme/components/carousel.d.ts +0 -36
  464. package/types/theme/components/chart.d.ts +0 -22
  465. package/types/theme/components/checkbox.d.ts +0 -40
  466. package/types/theme/components/chip.d.ts +0 -43
  467. package/types/theme/components/columnChart.d.ts +0 -10
  468. package/types/theme/components/contentNavigator.d.ts +0 -7
  469. package/types/theme/components/datePicker.d.ts +0 -7
  470. package/types/theme/components/divider.d.ts +0 -17
  471. package/types/theme/components/drawer.d.ts +0 -30
  472. package/types/theme/components/empty.d.ts +0 -37
  473. package/types/theme/components/error.d.ts +0 -52
  474. package/types/theme/components/fab.d.ts +0 -73
  475. package/types/theme/components/filterTrigger.d.ts +0 -72
  476. package/types/theme/components/floatingIsland.d.ts +0 -32
  477. package/types/theme/components/icon.d.ts +0 -25
  478. package/types/theme/components/image.d.ts +0 -8
  479. package/types/theme/components/list.d.ts +0 -46
  480. package/types/theme/components/mapPin.d.ts +0 -43
  481. package/types/theme/components/pageControl.d.ts +0 -18
  482. package/types/theme/components/pinInput.d.ts +0 -57
  483. package/types/theme/components/progress.d.ts +0 -51
  484. package/types/theme/components/radio.d.ts +0 -24
  485. package/types/theme/components/rate.d.ts +0 -11
  486. package/types/theme/components/refreshControl.d.ts +0 -7
  487. package/types/theme/components/richTextEditor.d.ts +0 -28
  488. package/types/theme/components/search.d.ts +0 -58
  489. package/types/theme/components/sectionHeading.d.ts +0 -14
  490. package/types/theme/components/segmentedControl.d.ts +0 -55
  491. package/types/theme/components/select.d.ts +0 -18
  492. package/types/theme/components/skeleton.d.ts +0 -17
  493. package/types/theme/components/slider.d.ts +0 -33
  494. package/types/theme/components/spinner.d.ts +0 -27
  495. package/types/theme/components/success.d.ts +0 -45
  496. package/types/theme/components/swipeable.d.ts +0 -16
  497. package/types/theme/components/switch.d.ts +0 -38
  498. package/types/theme/components/tabs.d.ts +0 -31
  499. package/types/theme/components/tag.d.ts +0 -53
  500. package/types/theme/components/textInput.d.ts +0 -95
  501. package/types/theme/components/timePicker.d.ts +0 -7
  502. package/types/theme/components/toast.d.ts +0 -52
  503. package/types/theme/components/toolbar.d.ts +0 -48
  504. package/types/theme/components/typography.d.ts +0 -168
  505. package/types/theme/getTheme.d.ts +0 -119
  506. package/types/theme/global/borders.d.ts +0 -18
  507. package/types/theme/global/colors/__tests__/ehWork.spec.d.ts +0 -1
  508. package/types/theme/global/colors/eBens.d.ts +0 -6
  509. package/types/theme/global/colors/ehJobs.d.ts +0 -3
  510. package/types/theme/global/colors/ehWork.d.ts +0 -3
  511. package/types/theme/global/colors/ehWorkDark.d.ts +0 -3
  512. package/types/theme/global/colors/global.d.ts +0 -3
  513. package/types/theme/global/colors/globalDark.d.ts +0 -3
  514. package/types/theme/global/colors/jobs.d.ts +0 -6
  515. package/types/theme/global/colors/swag.d.ts +0 -6
  516. package/types/theme/global/colors/swagDark.d.ts +0 -6
  517. package/types/theme/global/colors/swagLight.d.ts +0 -6
  518. package/types/theme/global/colors/swagLightGlobal.d.ts +0 -3
  519. package/types/theme/global/colors/swagLightJobs.d.ts +0 -6
  520. package/types/theme/global/colors/swagSystemPalette.d.ts +0 -3
  521. package/types/theme/global/colors/types.d.ts +0 -58
  522. package/types/theme/global/colors/wallet.d.ts +0 -6
  523. package/types/theme/global/colors/work.d.ts +0 -6
  524. package/types/theme/global/index.d.ts +0 -78
  525. package/types/theme/global/scale.d.ts +0 -14
  526. package/types/theme/global/shadows/ehJobs.d.ts +0 -3
  527. package/types/theme/global/shadows/ehWork.d.ts +0 -3
  528. package/types/theme/global/shadows/ehWorkDark.d.ts +0 -3
  529. package/types/theme/global/shadows/index.d.ts +0 -3
  530. package/types/theme/global/shadows/types.d.ts +0 -16
  531. package/types/theme/global/sizes.d.ts +0 -14
  532. package/types/theme/global/space.d.ts +0 -16
  533. package/types/theme/global/typography.d.ts +0 -34
  534. package/types/theme/index.d.ts +0 -9
  535. package/types/types.d.ts +0 -42
  536. package/types/types.internal.d.ts +0 -18
  537. package/types/utils/functions.d.ts +0 -1
  538. package/types/utils/helpers.d.ts +0 -13
  539. package/types/utils/hooks.d.ts +0 -3
  540. package/types/utils/scale.d.ts +0 -1
package/locales/en_AU.js DELETED
@@ -1,10 +0,0 @@
1
- 'use strict';
2
-
3
- const locale = {
4
- lang: 'en-AU',
5
- dateTimeFormats: {
6
- fullDate: 'dd/MM/yyyy',
7
- },
8
- };
9
-
10
- module.exports = locale;
package/locales/en_AU.mjs DELETED
@@ -1,8 +0,0 @@
1
- const locale = {
2
- lang: 'en-AU',
3
- dateTimeFormats: {
4
- fullDate: 'dd/MM/yyyy',
5
- },
6
- };
7
-
8
- export { locale as default };
package/locales/en_CA.js DELETED
@@ -1,10 +0,0 @@
1
- 'use strict';
2
-
3
- const locale = {
4
- lang: 'en-CA',
5
- dateTimeFormats: {
6
- fullDate: 'MMM dd, yyyy',
7
- },
8
- };
9
-
10
- module.exports = locale;
package/locales/en_CA.mjs DELETED
@@ -1,8 +0,0 @@
1
- const locale = {
2
- lang: 'en-CA',
3
- dateTimeFormats: {
4
- fullDate: 'MMM dd, yyyy',
5
- },
6
- };
7
-
8
- export { locale as default };
package/locales/index.js DELETED
@@ -1,11 +0,0 @@
1
- 'use strict';
2
-
3
- var locales_en_AU = require('./en_AU.js');
4
- var locales_en_CA = require('./en_CA.js');
5
-
6
- var index = {
7
- 'en-AU': locales_en_AU,
8
- 'en-CA': locales_en_CA,
9
- };
10
-
11
- module.exports = index;
package/locales/index.mjs DELETED
@@ -1,9 +0,0 @@
1
- import locale from './en_AU.mjs';
2
- import locale$1 from './en_CA.mjs';
3
-
4
- var index = {
5
- 'en-AU': locale,
6
- 'en-CA': locale$1,
7
- };
8
-
9
- export { index as default };
package/locales/types.js DELETED
@@ -1,2 +0,0 @@
1
- 'use strict';
2
-
package/locales/types.mjs DELETED
@@ -1 +0,0 @@
1
-
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import type { ReactElement } from 'react';
3
- import type { StyleProp, ViewStyle } from 'react-native';
4
- import type { Variant } from './StyledAccordion';
5
- type AccordionItemProps = {
6
- header: string | ReactElement;
7
- content: ReactElement;
8
- open?: boolean;
9
- onPress?: () => void;
10
- variant?: Variant;
11
- style?: StyleProp<ViewStyle>;
12
- testID?: string;
13
- };
14
- declare const AccordionItem: ({ header, content, open, onPress, variant, style, testID, }: AccordionItemProps) => React.JSX.Element;
15
- export default AccordionItem;
@@ -1,30 +0,0 @@
1
- import { View } from 'react-native';
2
- export type Variant = 'default' | 'card';
3
- export declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
4
- theme?: import("@emotion/react").Theme;
5
- as?: React.ElementType;
6
- }, {}, {
7
- ref?: import("react").Ref<View> | undefined;
8
- }>;
9
- export declare const StyledItemWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
10
- theme?: import("@emotion/react").Theme;
11
- as?: React.ElementType;
12
- } & {
13
- themeVariant: Variant;
14
- }, {}, {
15
- ref?: import("react").Ref<View> | undefined;
16
- }>;
17
- export declare const StyledHeaderWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & import("react").RefAttributes<View> & {
18
- theme?: import("@emotion/react").Theme;
19
- as?: React.ElementType;
20
- }, {}, {}>;
21
- export declare const StyledCollapse: import("@emotion/native").StyledComponent<import("../Collapse").CollapseProps & {
22
- theme?: import("@emotion/react").Theme;
23
- as?: React.ElementType;
24
- }, {}, {}>;
25
- export declare const Spacer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
26
- theme?: import("@emotion/react").Theme;
27
- as?: React.ElementType;
28
- }, {}, {
29
- ref?: import("react").Ref<View> | undefined;
30
- }>;
@@ -1,43 +0,0 @@
1
- import React from 'react';
2
- import type { Key, ReactElement } from 'react';
3
- import type { StyleProp, ViewStyle } from 'react-native';
4
- export interface AccordionProps<K extends Key> {
5
- /**
6
- * List of accordion items to be rendered. Each item must have an unique key.
7
- */
8
- items: {
9
- header: string | ReactElement;
10
- content: ReactElement;
11
- key: K;
12
- style?: StyleProp<ViewStyle>;
13
- testID?: string;
14
- }[];
15
- /**
16
- * Key of the active item.
17
- * When activeItemKey and onItemPress is passed, the component is fully controlled.
18
- * Otherwise, it would be uncontrolled.
19
- */
20
- activeItemKey?: K;
21
- /**
22
- * Callback invoked when an item is pressed.
23
- */
24
- onItemPress?: (key: K) => void;
25
- /**
26
- * Item type.
27
- */
28
- variant?: 'default' | 'card';
29
- /**
30
- * Additional style.
31
- */
32
- style?: StyleProp<ViewStyle>;
33
- /**
34
- * Testing id of the component.
35
- */
36
- testID?: string;
37
- /**
38
- * If true, indicates that the Accordion is accessible to screen readers.
39
- */
40
- accessible?: boolean;
41
- }
42
- declare const Accordion: <K extends Key>({ items, activeItemKey, onItemPress, variant, style, testID, accessible, }: AccordionProps<K>) => React.JSX.Element;
43
- export default Accordion;
@@ -1,51 +0,0 @@
1
- import { View } from 'react-native';
2
- import type { ViewProps } from 'react-native';
3
- import type { TextProps } from '../Typography/Text';
4
- import type { IconProps } from '../Icon';
5
- type ThemeIntent = 'success' | 'info' | 'warning' | 'error' | 'notification';
6
- declare const Container: import("@emotion/native").StyledComponent<ViewProps & {
7
- theme?: import("@emotion/react").Theme;
8
- as?: React.ElementType;
9
- } & {
10
- themeVariant: "rounded" | "unrounded";
11
- themeIntent: ThemeIntent;
12
- }, {}, {
13
- ref?: import("react").Ref<View> | undefined;
14
- }>;
15
- declare const IconContainer: import("@emotion/native").StyledComponent<ViewProps & {
16
- theme?: import("@emotion/react").Theme;
17
- as?: React.ElementType;
18
- }, {}, {
19
- ref?: import("react").Ref<View> | undefined;
20
- }>;
21
- declare const StyledIcon: import("@emotion/native").StyledComponent<IconProps & {
22
- theme?: import("@emotion/react").Theme;
23
- as?: React.ElementType;
24
- } & {
25
- themeIntent: ThemeIntent;
26
- }, {}, {}>;
27
- declare const TextContainer: import("@emotion/native").StyledComponent<ViewProps & {
28
- theme?: import("@emotion/react").Theme;
29
- as?: React.ElementType;
30
- }, {}, {
31
- ref?: import("react").Ref<View> | undefined;
32
- }>;
33
- declare const StyledBody: import("@emotion/native").StyledComponent<import("../..").BodyProps & {
34
- theme?: import("@emotion/react").Theme;
35
- as?: React.ElementType;
36
- } & TextProps & {
37
- themeIntent: ThemeIntent;
38
- }, {}, {}>;
39
- declare const ContentContainer: import("@emotion/native").StyledComponent<ViewProps & {
40
- theme?: import("@emotion/react").Theme;
41
- as?: React.ElementType;
42
- } & {
43
- showDivider: boolean;
44
- }, {}, {
45
- ref?: import("react").Ref<View> | undefined;
46
- }>;
47
- declare const CTAWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & import("react").RefAttributes<View> & {
48
- theme?: import("@emotion/react").Theme;
49
- as?: React.ElementType;
50
- }, {}, {}>;
51
- export { Container, ContentContainer, TextContainer, IconContainer, CTAWrapper, StyledBody, StyledIcon, };
@@ -1,66 +0,0 @@
1
- import type { ReactElement } from 'react';
2
- import type { StyleProp, ViewStyle } from 'react-native';
3
- import type { IconName } from '../Icon';
4
- /**
5
- * @deprecated Use 'success' | 'info' | 'warning' | 'error' instead.
6
- */
7
- type DeprecatedIntent = 'notification';
8
- type ValidIntent = 'success' | 'info' | 'warning' | 'error';
9
- interface BasicAlertProps {
10
- /**
11
- * Alert title.
12
- */
13
- title?: string | ReactElement;
14
- /**
15
- * Alert content.
16
- */
17
- content: string | ReactElement;
18
- /**
19
- * Icon name of the alert.
20
- * - undefined: use default icon according to Alert intent.
21
- * - null: no icon at all.
22
- * - IconName: an icon identifier from hero-design icon list.
23
- */
24
- icon?: null | IconName;
25
- /**
26
- * Visual intent color to apply to alert.
27
- *
28
- *
29
- * ⚠️ 'notification' intent is deprecated and will be removed in the next major release. Please use other intents instead.
30
- */
31
- intent?: ValidIntent | DeprecatedIntent;
32
- /**
33
- * Closing callback. When onClose is available, an X button will be rendered on the right side of alert. The callback will be called when user clicks on X button.
34
- * - undefined: no action button.
35
- */
36
- onClose?: () => void;
37
- /**
38
- * Alert variant.
39
- */
40
- variant?: 'unrounded' | 'rounded';
41
- /**
42
- * Addtional style.
43
- */
44
- style?: StyleProp<ViewStyle>;
45
- /**
46
- * Testing id of the component.
47
- */
48
- testID?: string;
49
- /**
50
- * Action label at the right side of the alert.
51
- * - undefined: a close icon.
52
- */
53
- actionLabel?: string;
54
- }
55
- type AlertProps = (BasicAlertProps & {
56
- actionLabel?: undefined;
57
- }) | (BasicAlertProps & {
58
- onClose: () => void;
59
- /**
60
- * Action label at the right side of the alert.
61
- * - undefined: a close icon.
62
- */
63
- actionLabel: string;
64
- });
65
- declare const Alert: ({ content, icon, title, intent, onClose, variant, style, testID, actionLabel, }: AlertProps) => JSX.Element;
66
- export default Alert;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import type { Animated } from 'react-native';
3
- import type { ActionGroupProps } from '../FAB/ActionGroup';
4
- import type { FABProps } from '../FAB/FAB';
5
- interface AnimatedFABProps {
6
- fabProps: FABProps | ActionGroupProps;
7
- contentOffsetY: Animated.Value;
8
- contentHeight: Animated.Value;
9
- layoutHeight: Animated.Value;
10
- }
11
- declare const AnimatedFAB: ({ fabProps, contentOffsetY, contentHeight, layoutHeight, }: AnimatedFABProps) => React.JSX.Element;
12
- export default AnimatedFAB;
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import type { FlatListProps, ScrollViewProps as RnScrollViewProps, SectionListProps } from 'react-native';
3
- import type { ActionGroupProps } from '../FAB/ActionGroup';
4
- import type { FABProps } from '../FAB/FAB';
5
- interface AnimatedScrollerProps<T> {
6
- /**
7
- * Scroll component, it can be ScrollView, FlatList or SectionList.
8
- */
9
- ScrollComponent: React.ReactElement<RnScrollViewProps | FlatListProps<T> | SectionListProps<T>>;
10
- /**
11
- * FAB or FAB.ActionGroup props.
12
- */
13
- fabProps: FABProps | ActionGroupProps;
14
- }
15
- declare function AnimatedScroller<T>({ ScrollComponent, fabProps, }: AnimatedScrollerProps<T>): React.JSX.Element;
16
- export default AnimatedScroller;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import type { FlatListProps } from 'react-native';
3
- import type { FABProps } from '../FAB/FAB';
4
- import type { ActionGroupProps } from '../FAB/ActionGroup';
5
- export interface FlatListWithFABProps<T> extends FlatListProps<T> {
6
- /**
7
- * FAB or FAB.ActionGroup props props.
8
- */
9
- fabProps: FABProps | ActionGroupProps;
10
- }
11
- declare function FlatListWithFAB<T>({ fabProps, ...props }: FlatListWithFABProps<T>): React.JSX.Element;
12
- export default FlatListWithFAB;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import type { ScrollViewProps } from 'react-native';
3
- import type { ActionGroupProps } from '../FAB/ActionGroup';
4
- import type { FABProps } from '../FAB/FAB';
5
- export interface ScrollViewWithFABProps extends ScrollViewProps {
6
- /**
7
- * FAB or FAB.ActionGroup props props.
8
- */
9
- fabProps: FABProps | ActionGroupProps;
10
- }
11
- declare const ScrollViewWithFAB: ({ fabProps, ...props }: ScrollViewWithFABProps) => React.JSX.Element;
12
- export default ScrollViewWithFAB;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import type { SectionListProps } from 'react-native';
3
- import type { ActionGroupProps } from '../FAB/ActionGroup';
4
- import type { FABProps } from '../FAB/FAB';
5
- interface SectionListWithFABProps<T> extends SectionListProps<T> {
6
- /**
7
- * FAB or FAB.ActionGroup props props.
8
- */
9
- fabProps: FABProps | ActionGroupProps;
10
- }
11
- declare function SectionListWithFAB<T>({ fabProps, ...props }: SectionListWithFABProps<T>): React.JSX.Element;
12
- export default SectionListWithFAB;
@@ -1,4 +0,0 @@
1
- import ScrollViewWithFAB from './ScrollViewWithFAB';
2
- import FlatListWithFAB from './FlatListWithFAB';
3
- import SectionListWithFAB from './SectionListWithFAB';
4
- export { ScrollViewWithFAB, FlatListWithFAB, SectionListWithFAB };
@@ -1,20 +0,0 @@
1
- import { View, Animated } from 'react-native';
2
- export type Placement = 'top' | 'bottom' | 'right' | 'left' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
3
- export declare const StyledContent: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
4
- theme?: import("@emotion/react").Theme;
5
- as?: React.ElementType;
6
- }, {}, {
7
- ref?: import("react").Ref<View> | undefined;
8
- }>;
9
- export declare const StyledContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
10
- theme?: import("@emotion/react").Theme;
11
- as?: React.ElementType;
12
- }, {}, {
13
- ref?: import("react").Ref<View> | undefined;
14
- }>;
15
- export declare const StyledIconContainer: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
16
- theme?: import("@emotion/react").Theme;
17
- as?: React.ElementType;
18
- } & {
19
- themePlacement: Placement;
20
- }, {}, {}>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import type { StyleProp, ViewStyle } from 'react-native';
3
- import type { Placement } from './StyledAppCue';
4
- interface AppCueProps {
5
- content: string | React.ReactElement;
6
- target: React.ReactElement;
7
- /**
8
- * The Position of the App Cue.
9
- */
10
- placement?: Placement;
11
- /**
12
- * Additional style.
13
- */
14
- style?: StyleProp<ViewStyle>;
15
- /**
16
- * Testing ID of the component.
17
- */
18
- testID?: string;
19
- }
20
- declare const AppCue: ({ target, content, placement, style, testID, }: AppCueProps) => React.JSX.Element;
21
- export default AppCue;
@@ -1,66 +0,0 @@
1
- import type { Placement } from './StyledAppCue';
2
- /**
3
- * Calculates the position of an element based on its placement relative to a reference position.
4
- *
5
- * @param {Object} params - The parameters for calculating the position.
6
- * @param {Object} params.position - The position and size of target element.
7
- * @param {number} params.position.pageX - The X coordinate of the target position.
8
- * @param {number} params.position.pageY - The Y coordinate of the target position.
9
- * @param {number} params.position.width - The width of the reference element.
10
- * @param {number} params.position.height - The height of the reference element.
11
- * @param {Object} params.contentSize - The size of the App Cue content.
12
- * @param {number} params.contentSize.width - The width of the content.
13
- * @param {number} params.contentSize.height - The height of the content.
14
- * @param {Placement} params.placement - The placement of the content relative to the reference position ('top', 'bottom', 'right', 'left').
15
- * @param {number} params.offset - The offset distance to display an arrow.
16
- *
17
- * @returns {Object} The calculated position of the App Cue.
18
- * @returns {number} return.x - The X coordinate of the App Cue.
19
- * @returns {number} return.y - The Y coordinate of the App Cue.
20
- */
21
- export declare const calculatePosition: ({ placement, position, contentSize, offset, windowWidth, }: {
22
- position: {
23
- pageX: number;
24
- pageY: number;
25
- width: number;
26
- height: number;
27
- };
28
- contentSize: {
29
- width: number;
30
- height: number;
31
- };
32
- placement: Placement;
33
- offset: number;
34
- windowWidth: number;
35
- }) => {
36
- left?: number;
37
- top?: number;
38
- bottom?: number;
39
- right?: number;
40
- };
41
- /**
42
- * Calculates the maximum width of the content based on its position, offset, placement, and window width.
43
- *
44
- * @param {Object} params - The parameters for the calculation.
45
- * @param {Object} params.position - The position and dimensions of the target element.
46
- * @param {number} params.position.pageX - The X coordinate of the target element.
47
- * @param {number} params.position.pageY - The Y coordinate of the target element.
48
- * @param {number} params.position.width - The width of the target element.
49
- * @param {number} params.position.height - The height of the target element.
50
- * @param {number} params.offset - The offset value to display an arrow.
51
- * @param {Placement} params.placement - The placement of the content relative to the element.
52
- * @param {number} params.windowWidth - The width of the window.
53
- *
54
- * @returns {number | undefined} The maximum width of the content.
55
- */
56
- export declare const calulateContentMaxWidth: ({ position, offset, placement, windowWidth, }: {
57
- position: {
58
- pageX: number;
59
- pageY: number;
60
- width: number;
61
- height: number;
62
- };
63
- offset: number;
64
- placement: Placement;
65
- windowWidth: number;
66
- }) => number | undefined;
@@ -1,26 +0,0 @@
1
- import { View } from 'react-native';
2
- declare const StyledContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
3
- theme?: import("@emotion/react").Theme;
4
- as?: React.ElementType;
5
- }, {}, {
6
- ref?: import("react").Ref<View> | undefined;
7
- }>;
8
- declare const StyledContentContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
9
- theme?: import("@emotion/react").Theme;
10
- as?: React.ElementType;
11
- } & {
12
- themeHighlighted: boolean;
13
- }, {}, {
14
- ref?: import("react").Ref<View> | undefined;
15
- }>;
16
- declare const StyledTextContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
17
- theme?: import("@emotion/react").Theme;
18
- as?: React.ElementType;
19
- }, {}, {
20
- ref?: import("react").Ref<View> | undefined;
21
- }>;
22
- declare const StyledCTAWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & import("react").RefAttributes<View> & {
23
- theme?: import("@emotion/react").Theme;
24
- as?: React.ElementType;
25
- }, {}, {}>;
26
- export { StyledContainer, StyledContentContainer, StyledCTAWrapper, StyledTextContainer, };
@@ -1,38 +0,0 @@
1
- import React from 'react';
2
- import type { ReactElement } from 'react';
3
- import type { StyleProp, ViewStyle } from 'react-native';
4
- import type { IconProps } from '../Icon';
5
- import type { ImageProps } from '../Image';
6
- interface AttachmentProps {
7
- /**
8
- * Attachment filename.
9
- */
10
- filename?: string;
11
- /**
12
- * Attachment preview element.
13
- */
14
- previewElement: ReactElement<ImageProps | IconProps>;
15
- /**
16
- * Removing callback. When onRemove is available, a trash icon will be rendered on the right side. The callback will be called when user clicks on trash icon.
17
- */
18
- onRemove?: () => void;
19
- /**
20
- * Downloading callback. When onDownload is available, a download icon will be rendered on the right side. The callback will be called when user clicks on download icon.
21
- */
22
- onDownload?: () => void;
23
- /**
24
- * The background of the attachment's content will be highlighted if backgroundHighlighted is true.
25
- * Default value is false.
26
- */
27
- backgroundHighlighted?: boolean;
28
- /**
29
- * Addtional style.
30
- */
31
- style?: StyleProp<ViewStyle>;
32
- /**
33
- * Testing id of the component.
34
- */
35
- testID?: string;
36
- }
37
- declare const Attachment: ({ filename, previewElement, onRemove, onDownload, backgroundHighlighted, style, testID, }: AttachmentProps) => React.JSX.Element;
38
- export default Attachment;
@@ -1,34 +0,0 @@
1
- import React from 'react';
2
- import type { ImageSourcePropType, StyleProp, ViewProps, ViewStyle } from 'react-native';
3
- export interface AvatarProps extends ViewProps {
4
- /**
5
- * Callback function when pressing component.
6
- */
7
- onPress?: () => void;
8
- /**
9
- * Image source to be displayed on avatar.
10
- */
11
- source?: ImageSourcePropType;
12
- /**
13
- * Renders title in the placeholder.
14
- */
15
- title?: string;
16
- /**
17
- * Intent of the Icon.
18
- */
19
- intent?: 'primary' | 'info' | 'danger' | 'success' | 'warning';
20
- /**
21
- * Size of the avatar.
22
- */
23
- size?: 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'xxxlarge' | 'xxxxlarge' | 'xxxxxlarge';
24
- /**
25
- * Additional style.
26
- */
27
- style?: StyleProp<ViewStyle>;
28
- /**
29
- * Testing id of the component.
30
- */
31
- testID?: string;
32
- }
33
- declare const Avatar: ({ onPress, source, testID, style, title, size, intent, }: AvatarProps) => React.JSX.Element | null;
34
- export default Avatar;
@@ -1,30 +0,0 @@
1
- import { View } from 'react-native';
2
- import type { AvatarProps } from '../Avatar';
3
- type ThemeVariant = 'horizontal' | 'vertical';
4
- export declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
5
- theme?: import("@emotion/react").Theme;
6
- as?: React.ElementType;
7
- } & {
8
- themeSize: Required<AvatarProps>["size"];
9
- themeAvatarCount: number;
10
- themeVariant: ThemeVariant;
11
- themeHasSurplus: boolean;
12
- }, {}, {
13
- ref?: import("react").Ref<View> | undefined;
14
- }>;
15
- export declare const StyledAvatar: import("@emotion/native").StyledComponent<AvatarProps & {
16
- theme?: import("@emotion/react").Theme;
17
- as?: React.ElementType;
18
- } & {
19
- themeIndex: number;
20
- themeVariant: ThemeVariant;
21
- }, {}, {}>;
22
- export declare const StyledSurplusContainer: import("@emotion/native").StyledComponent<import("../../Box").BoxProps & {
23
- theme?: import("@emotion/react").Theme;
24
- as?: React.ElementType;
25
- } & {
26
- themeIndex: number;
27
- themeSize: AvatarProps["size"];
28
- themeVariant: ThemeVariant;
29
- }, {}, {}>;
30
- export {};
@@ -1,36 +0,0 @@
1
- import type { ReactElement, ReactNode } from 'react';
2
- import React from 'react';
3
- import type { StyleProp, ViewStyle } from 'react-native';
4
- import type { AvatarProps } from '../Avatar';
5
- export interface AvatarStackProps extends Pick<AvatarProps, 'size'> {
6
- /**
7
- * Avatar elements to be rendered.
8
- */
9
- children: ReactElement<Omit<AvatarProps, 'size' | 'style'>>[];
10
- /**
11
- * Max avatars to show.
12
- */
13
- max?: number;
14
- /**
15
- * The total number of avatars. Used for calculating the number of extra avatars.
16
- */
17
- total?: number;
18
- /**
19
- * Custom renderer of extraAvatars.
20
- */
21
- renderSurplus?: (value: number) => ReactNode;
22
- /**
23
- * Additional style.
24
- */
25
- style?: StyleProp<ViewStyle>;
26
- /**
27
- * Testing id of the component.
28
- */
29
- testID?: string;
30
- /**
31
- * Variant of the avatar stack.
32
- */
33
- variant?: 'horizontal' | 'vertical';
34
- }
35
- declare const AvatarStack: ({ children, max, size, style, testID, variant, total, renderSurplus, }: AvatarStackProps) => React.JSX.Element;
36
- export default AvatarStack;
@@ -1,4 +0,0 @@
1
- /**
2
- * Hook that returns a memoized and shuffled array of visualisation colors for Avatar.
3
- */
4
- export declare const useAvatarColors: () => string[];