@hero-design/rn 8.113.1 → 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 (497) hide show
  1. package/CHANGELOG.md +12 -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 +651 -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 +30 -0
  13. package/src/components/Progress/SegmentedBar/__tests__/index.spec.tsx +115 -0
  14. package/src/components/Progress/SegmentedBar/__tests__/utils.spec.tsx +24 -0
  15. package/src/components/Progress/SegmentedBar/constants.ts +8 -0
  16. package/src/components/Progress/SegmentedBar/hooks/validation.ts +71 -0
  17. package/src/components/Progress/SegmentedBar/index.tsx +153 -0
  18. package/src/components/Progress/SegmentedBar/types.ts +62 -0
  19. package/src/components/Progress/SegmentedBar/utils.ts +16 -0
  20. package/src/components/Progress/index.tsx +2 -0
  21. package/src/components/Tabs/ScrollableTabs.tsx +30 -9
  22. package/src/components/Tabs/ScrollableTabsHeader/ScrollableTabsHeader.tsx +1 -1
  23. package/src/components/Tabs/__tests__/ScrollableTabs.spec.tsx +31 -6
  24. package/src/components/Tabs/index.tsx +2 -0
  25. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +8 -0
  26. package/src/theme/components/progress.ts +8 -0
  27. package/src/types.ts +2 -0
  28. package/src/utils/helpers.ts +6 -0
  29. package/.turbo/turbo-build.log +0 -17
  30. package/es/index.js +0 -48751
  31. package/locales/en_AU.js +0 -10
  32. package/locales/en_AU.mjs +0 -8
  33. package/locales/en_CA.js +0 -10
  34. package/locales/en_CA.mjs +0 -8
  35. package/locales/index.js +0 -11
  36. package/locales/index.mjs +0 -9
  37. package/locales/types.js +0 -2
  38. package/locales/types.mjs +0 -1
  39. package/types/components/Accordion/AccordionItem.d.ts +0 -15
  40. package/types/components/Accordion/StyledAccordion.d.ts +0 -30
  41. package/types/components/Accordion/index.d.ts +0 -43
  42. package/types/components/Alert/StyledAlert.d.ts +0 -51
  43. package/types/components/Alert/index.d.ts +0 -66
  44. package/types/components/AnimatedScroller/AnimatedFAB.d.ts +0 -12
  45. package/types/components/AnimatedScroller/AnimatedScrollable.d.ts +0 -16
  46. package/types/components/AnimatedScroller/FlatListWithFAB.d.ts +0 -12
  47. package/types/components/AnimatedScroller/ScrollViewWithFAB.d.ts +0 -12
  48. package/types/components/AnimatedScroller/SectionListWithFAB.d.ts +0 -12
  49. package/types/components/AnimatedScroller/index.d.ts +0 -4
  50. package/types/components/AppCue/StyledAppCue.d.ts +0 -20
  51. package/types/components/AppCue/__tests__/StyledAppCue.d.ts +0 -1
  52. package/types/components/AppCue/index.d.ts +0 -21
  53. package/types/components/AppCue/utils.d.ts +0 -66
  54. package/types/components/Attachment/StyledAttachment.d.ts +0 -26
  55. package/types/components/Attachment/index.d.ts +0 -38
  56. package/types/components/Avatar/Avatar.d.ts +0 -34
  57. package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +0 -30
  58. package/types/components/Avatar/AvatarStack/index.d.ts +0 -36
  59. package/types/components/Avatar/AvatarStack/utils.d.ts +0 -4
  60. package/types/components/Avatar/StyledAvatar.d.ts +0 -32
  61. package/types/components/Avatar/index.d.ts +0 -6
  62. package/types/components/Badge/Count.d.ts +0 -27
  63. package/types/components/Badge/Status.d.ts +0 -23
  64. package/types/components/Badge/StyledBadge.d.ts +0 -43
  65. package/types/components/Badge/constants.d.ts +0 -1
  66. package/types/components/Badge/index.d.ts +0 -8
  67. package/types/components/Badge/types.d.ts +0 -53
  68. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -51
  69. package/types/components/BottomNavigation/index.d.ts +0 -45
  70. package/types/components/BottomSheet/BottomSheetContext.d.ts +0 -5
  71. package/types/components/BottomSheet/Footer.d.ts +0 -7
  72. package/types/components/BottomSheet/Header.d.ts +0 -10
  73. package/types/components/BottomSheet/ScrollView.d.ts +0 -5
  74. package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -59
  75. package/types/components/BottomSheet/index.d.ts +0 -74
  76. package/types/components/Box/StyledBox.d.ts +0 -10
  77. package/types/components/Box/config.d.ts +0 -174
  78. package/types/components/Box/index.d.ts +0 -6
  79. package/types/components/Box/types.d.ts +0 -31
  80. package/types/components/Button/Button.d.ts +0 -64
  81. package/types/components/Button/IconButton.d.ts +0 -39
  82. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -19
  83. package/types/components/Button/LoadingIndicator/index.d.ts +0 -27
  84. package/types/components/Button/StyledButton.d.ts +0 -61
  85. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +0 -15
  86. package/types/components/Button/UtilityButton/index.d.ts +0 -24
  87. package/types/components/Button/index.d.ts +0 -10
  88. package/types/components/Calendar/CalendarRange.d.ts +0 -11
  89. package/types/components/Calendar/CalendarRangeConnector.d.ts +0 -11
  90. package/types/components/Calendar/CalendarRowItem.d.ts +0 -13
  91. package/types/components/Calendar/StyledCalendar.d.ts +0 -61
  92. package/types/components/Calendar/constants.d.ts +0 -4
  93. package/types/components/Calendar/helpers.d.ts +0 -35
  94. package/types/components/Calendar/index.d.ts +0 -9
  95. package/types/components/Calendar/shared/hooks/useCalendarLayout.d.ts +0 -8
  96. package/types/components/Calendar/types.d.ts +0 -58
  97. package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -22
  98. package/types/components/Card/DataCard/index.d.ts +0 -22
  99. package/types/components/Card/StyledCard.d.ts +0 -11
  100. package/types/components/Card/index.d.ts +0 -32
  101. package/types/components/Carousel/CardCarousel.d.ts +0 -46
  102. package/types/components/Carousel/CarouselItem.d.ts +0 -7
  103. package/types/components/Carousel/StyledCardCarousel.d.ts +0 -27
  104. package/types/components/Carousel/StyledCarousel.d.ts +0 -55
  105. package/types/components/Carousel/contants.d.ts +0 -2
  106. package/types/components/Carousel/index.d.ts +0 -46
  107. package/types/components/Carousel/types.d.ts +0 -14
  108. package/types/components/Chart/ChartSelect/StyledChartSelect.d.ts +0 -8
  109. package/types/components/Chart/ChartSelect/index.d.ts +0 -63
  110. package/types/components/Chart/ColumnChart/ColumnChartContent.d.ts +0 -29
  111. package/types/components/Chart/ColumnChart/Segment.d.ts +0 -14
  112. package/types/components/Chart/ColumnChart/StackedSegment.d.ts +0 -32
  113. package/types/components/Chart/ColumnChart/StyledColumnChart.d.ts +0 -8
  114. package/types/components/Chart/ColumnChart/index.d.ts +0 -86
  115. package/types/components/Chart/Line/Line.d.ts +0 -23
  116. package/types/components/Chart/Line/index.d.ts +0 -41
  117. package/types/components/Chart/StyledChart.d.ts +0 -9
  118. package/types/components/Chart/index.d.ts +0 -6
  119. package/types/components/Chart/shared/AxisLabel.d.ts +0 -7
  120. package/types/components/Chart/shared/ChartFrame.d.ts +0 -30
  121. package/types/components/Chart/shared/ChartHeader.d.ts +0 -8
  122. package/types/components/Chart/shared/EmptyState.d.ts +0 -8
  123. package/types/components/Chart/shared/XAxis.d.ts +0 -8
  124. package/types/components/Chart/shared/XAxisGrid.d.ts +0 -8
  125. package/types/components/Chart/shared/YAxis.d.ts +0 -10
  126. package/types/components/Chart/shared/YAxisGrid.d.ts +0 -10
  127. package/types/components/Chart/shared/constants.d.ts +0 -4
  128. package/types/components/Chart/shared/hooks/useColorScale.d.ts +0 -7
  129. package/types/components/Chart/shared/hooks/useCustomColor.d.ts +0 -22
  130. package/types/components/Chart/shared/hooks/useGenerateTicks.d.ts +0 -6
  131. package/types/components/Chart/shared/hooks/useScaleBandX.d.ts +0 -7
  132. package/types/components/Chart/shared/hooks/useScaleLinearY.d.ts +0 -8
  133. package/types/components/Chart/shared/niceNumbers.d.ts +0 -12
  134. package/types/components/Chart/shared/utils.d.ts +0 -11
  135. package/types/components/Chart/types.d.ts +0 -91
  136. package/types/components/Checkbox/DefaultCheckBox.d.ts +0 -40
  137. package/types/components/Checkbox/InlineCheckBox.d.ts +0 -38
  138. package/types/components/Checkbox/StyledDefaultCheckBox.d.ts +0 -33
  139. package/types/components/Checkbox/StyledInlineCheckBox.d.ts +0 -45
  140. package/types/components/Checkbox/index.d.ts +0 -6
  141. package/types/components/Checkbox/utils.d.ts +0 -7
  142. package/types/components/Chip/StyledChip.d.ts +0 -13
  143. package/types/components/Chip/index.d.ts +0 -43
  144. package/types/components/Collapse/StyledCollapse.d.ts +0 -23
  145. package/types/components/Collapse/index.d.ts +0 -20
  146. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -8
  147. package/types/components/ContentNavigator/index.d.ts +0 -43
  148. package/types/components/DatePicker/DatePicker.d.ts +0 -4
  149. package/types/components/DatePicker/DatePickerAndroid.d.ts +0 -7
  150. package/types/components/DatePicker/DatePickerCalendar.d.ts +0 -4
  151. package/types/components/DatePicker/DatePickerIOS.d.ts +0 -7
  152. package/types/components/DatePicker/Dialog/AndroidDialog.d.ts +0 -5
  153. package/types/components/DatePicker/Dialog/IOSDialog.d.ts +0 -4
  154. package/types/components/DatePicker/Dialog/type.d.ts +0 -50
  155. package/types/components/DatePicker/Dialog.d.ts +0 -4
  156. package/types/components/DatePicker/StyledDatePicker.d.ts +0 -16
  157. package/types/components/DatePicker/hooks/useCalculateDate.d.ts +0 -4
  158. package/types/components/DatePicker/hooks/useFormatDate.d.ts +0 -10
  159. package/types/components/DatePicker/hooks/utils.d.ts +0 -6
  160. package/types/components/DatePicker/index.d.ts +0 -6
  161. package/types/components/DatePicker/index.internal.d.ts +0 -7
  162. package/types/components/DatePicker/types.d.ts +0 -109
  163. package/types/components/Divider/StyledDivider.d.ts +0 -12
  164. package/types/components/Divider/index.d.ts +0 -22
  165. package/types/components/Drawer/DragableDrawer/helpers.d.ts +0 -8
  166. package/types/components/Drawer/DragableDrawer/index.d.ts +0 -33
  167. package/types/components/Drawer/StyledDrawer.d.ts +0 -49
  168. package/types/components/Drawer/index.d.ts +0 -27
  169. package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -18
  170. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -31
  171. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -15
  172. package/types/components/FAB/ActionGroup/index.d.ts +0 -55
  173. package/types/components/FAB/AnimatedFABIcon.d.ts +0 -7
  174. package/types/components/FAB/FAB.d.ts +0 -40
  175. package/types/components/FAB/Pair/StyledFAB.d.ts +0 -12
  176. package/types/components/FAB/Pair/index.d.ts +0 -16
  177. package/types/components/FAB/StyledFAB.d.ts +0 -22
  178. package/types/components/FAB/index.d.ts +0 -5
  179. package/types/components/FilterTrigger/StyledFilterTrigger.d.ts +0 -20
  180. package/types/components/FilterTrigger/index.d.ts +0 -39
  181. package/types/components/FloatingIsland/StyledFloatingIsland.d.ts +0 -19
  182. package/types/components/FloatingIsland/index.d.ts +0 -24
  183. package/types/components/HeroDesignProvider/index.d.ts +0 -8
  184. package/types/components/Icon/AnimatedIcon.d.ts +0 -6
  185. package/types/components/Icon/HeroIcon/index.d.ts +0 -12
  186. package/types/components/Icon/IconList.d.ts +0 -2
  187. package/types/components/Icon/index.d.ts +0 -37
  188. package/types/components/Icon/utils.d.ts +0 -3
  189. package/types/components/Illustration/BaseSvg.d.ts +0 -8
  190. package/types/components/Illustration/assets/Add.d.ts +0 -4
  191. package/types/components/Illustration/assets/AllInOneSketch.d.ts +0 -4
  192. package/types/components/Illustration/assets/Boom.d.ts +0 -4
  193. package/types/components/Illustration/assets/Build.d.ts +0 -4
  194. package/types/components/Illustration/assets/CelebrationSketch.d.ts +0 -4
  195. package/types/components/Illustration/assets/Clock.d.ts +0 -4
  196. package/types/components/Illustration/assets/Confetti.d.ts +0 -4
  197. package/types/components/Illustration/assets/Connections.d.ts +0 -4
  198. package/types/components/Illustration/assets/DiySketch.d.ts +0 -4
  199. package/types/components/Illustration/assets/Error.d.ts +0 -4
  200. package/types/components/Illustration/assets/ErrorSketch.d.ts +0 -4
  201. package/types/components/Illustration/assets/FreedomSketch.d.ts +0 -4
  202. package/types/components/Illustration/assets/GrowingSketch.d.ts +0 -4
  203. package/types/components/Illustration/assets/Info.d.ts +0 -4
  204. package/types/components/Illustration/assets/InstantSketch.d.ts +0 -4
  205. package/types/components/Illustration/assets/LiftSketch.d.ts +0 -4
  206. package/types/components/Illustration/assets/List.d.ts +0 -4
  207. package/types/components/Illustration/assets/Location.d.ts +0 -4
  208. package/types/components/Illustration/assets/Lock.d.ts +0 -4
  209. package/types/components/Illustration/assets/Merge.d.ts +0 -4
  210. package/types/components/Illustration/assets/NoResult.d.ts +0 -4
  211. package/types/components/Illustration/assets/Notifications.d.ts +0 -4
  212. package/types/components/Illustration/assets/OnDemandSketch.d.ts +0 -4
  213. package/types/components/Illustration/assets/ProcessingSketch.d.ts +0 -4
  214. package/types/components/Illustration/assets/RemoteJobsSketch.d.ts +0 -4
  215. package/types/components/Illustration/assets/RewardSketch.d.ts +0 -4
  216. package/types/components/Illustration/assets/Search.d.ts +0 -4
  217. package/types/components/Illustration/assets/SearchSketch.d.ts +0 -4
  218. package/types/components/Illustration/assets/SecuritySketch.d.ts +0 -4
  219. package/types/components/Illustration/assets/SentSketch.d.ts +0 -4
  220. package/types/components/Illustration/assets/SpeedSketch.d.ts +0 -4
  221. package/types/components/Illustration/assets/Star.d.ts +0 -4
  222. package/types/components/Illustration/assets/Success.d.ts +0 -4
  223. package/types/components/Illustration/assets/SuperchargeSketch.d.ts +0 -4
  224. package/types/components/Illustration/assets/Unlock.d.ts +0 -4
  225. package/types/components/Illustration/assets/UnlockSketch.d.ts +0 -4
  226. package/types/components/Illustration/assets/User.d.ts +0 -4
  227. package/types/components/Illustration/assets/WorkflowSketch.d.ts +0 -4
  228. package/types/components/Illustration/constants.d.ts +0 -1
  229. package/types/components/Illustration/hooks/useMonoColor.d.ts +0 -5
  230. package/types/components/Illustration/illustrations.d.ts +0 -42
  231. package/types/components/Illustration/index.d.ts +0 -29
  232. package/types/components/Illustration/types.d.ts +0 -7
  233. package/types/components/Image/index.d.ts +0 -21
  234. package/types/components/List/BasicListItem.d.ts +0 -44
  235. package/types/components/List/ListItem.d.ts +0 -52
  236. package/types/components/List/StyledBasicListItem.d.ts +0 -27
  237. package/types/components/List/StyledListItem.d.ts +0 -49
  238. package/types/components/List/index.d.ts +0 -8
  239. package/types/components/LocaleProvider/__tests__/utils.specs.d.ts +0 -1
  240. package/types/components/LocaleProvider/context.d.ts +0 -3
  241. package/types/components/LocaleProvider/hooks.d.ts +0 -5
  242. package/types/components/LocaleProvider/index.d.ts +0 -7
  243. package/types/components/LocaleProvider/utils.d.ts +0 -3
  244. package/types/components/MapPin/Focussed.d.ts +0 -14
  245. package/types/components/MapPin/StyledMapPin.d.ts +0 -41
  246. package/types/components/MapPin/index.d.ts +0 -6
  247. package/types/components/MapPin/types.d.ts +0 -38
  248. package/types/components/Modal/index.d.ts +0 -38
  249. package/types/components/PageControl/StyledPageControl.d.ts +0 -12
  250. package/types/components/PageControl/index.d.ts +0 -22
  251. package/types/components/PinInput/PinCell.d.ts +0 -9
  252. package/types/components/PinInput/StyledPinInput.d.ts +0 -67
  253. package/types/components/PinInput/index.d.ts +0 -73
  254. package/types/components/Portal/PortalHost.d.ts +0 -5
  255. package/types/components/Portal/PortalProvider.d.ts +0 -7
  256. package/types/components/Portal/constants.d.ts +0 -8
  257. package/types/components/Portal/contexts.d.ts +0 -9
  258. package/types/components/Portal/index.d.ts +0 -19
  259. package/types/components/Portal/reducer.d.ts +0 -5
  260. package/types/components/Portal/types.d.ts +0 -23
  261. package/types/components/Portal/usePortal.d.ts +0 -8
  262. package/types/components/Portal/usePortalState.d.ts +0 -1
  263. package/types/components/Progress/ProgressBar.d.ts +0 -19
  264. package/types/components/Progress/ProgressCircle.d.ts +0 -21
  265. package/types/components/Progress/ProgressStep.d.ts +0 -20
  266. package/types/components/Progress/StyledProgressBar.d.ts +0 -18
  267. package/types/components/Progress/StyledProgressCircle.d.ts +0 -15
  268. package/types/components/Progress/StyledStep.d.ts +0 -23
  269. package/types/components/Progress/__tests__/index.spec.d.ts +0 -1
  270. package/types/components/Progress/constants.d.ts +0 -15
  271. package/types/components/Progress/index.d.ts +0 -6
  272. package/types/components/Progress/types.d.ts +0 -1
  273. package/types/components/Radio/Radio.d.ts +0 -43
  274. package/types/components/Radio/RadioGroup.d.ts +0 -40
  275. package/types/components/Radio/StyledRadio.d.ts +0 -30
  276. package/types/components/Radio/index.d.ts +0 -4
  277. package/types/components/Radio/types.d.ts +0 -10
  278. package/types/components/Rate/StyledRate.d.ts +0 -10
  279. package/types/components/Rate/index.d.ts +0 -29
  280. package/types/components/RefreshControl/index.d.ts +0 -5
  281. package/types/components/RichTextEditor/EditorEvent.d.ts +0 -3
  282. package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -18
  283. package/types/components/RichTextEditor/MentionList.d.ts +0 -18
  284. package/types/components/RichTextEditor/RichTextEditor.d.ts +0 -27
  285. package/types/components/RichTextEditor/RichTextEditorInput.d.ts +0 -69
  286. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -7
  287. package/types/components/RichTextEditor/StyledToolbar.d.ts +0 -19
  288. package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -2
  289. package/types/components/RichTextEditor/constants.d.ts +0 -17
  290. package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -2
  291. package/types/components/RichTextEditor/hooks/useRichTextEditorEvents.d.ts +0 -36
  292. package/types/components/RichTextEditor/index.d.ts +0 -71
  293. package/types/components/RichTextEditor/types.d.ts +0 -2
  294. package/types/components/RichTextEditor/utils/events.d.ts +0 -7
  295. package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -7
  296. package/types/components/Search/SearchOneLine.d.ts +0 -73
  297. package/types/components/Search/SearchSuffixIcon.d.ts +0 -24
  298. package/types/components/Search/SearchTwoLine.d.ts +0 -40
  299. package/types/components/Search/StyledSearch.d.ts +0 -49
  300. package/types/components/Search/index.d.ts +0 -10
  301. package/types/components/Search/utils.d.ts +0 -8
  302. package/types/components/SectionHeading/StyledHeading.d.ts +0 -23
  303. package/types/components/SectionHeading/index.d.ts +0 -45
  304. package/types/components/SegmentedControl/SegmentedItem.d.ts +0 -18
  305. package/types/components/SegmentedControl/StyledSegmentedControl.d.ts +0 -26
  306. package/types/components/SegmentedControl/index.d.ts +0 -31
  307. package/types/components/SegmentedControl/types.d.ts +0 -43
  308. package/types/components/Select/BaseOptionList.d.ts +0 -8
  309. package/types/components/Select/Footer.d.ts +0 -6
  310. package/types/components/Select/MultiSelect/Option.d.ts +0 -10
  311. package/types/components/Select/MultiSelect/OptionList.d.ts +0 -9
  312. package/types/components/Select/MultiSelect/index.d.ts +0 -35
  313. package/types/components/Select/MultiSelect/utils.d.ts +0 -2
  314. package/types/components/Select/SingleSelect/Option.d.ts +0 -10
  315. package/types/components/Select/SingleSelect/OptionList.d.ts +0 -11
  316. package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +0 -2
  317. package/types/components/Select/SingleSelect/index.d.ts +0 -28
  318. package/types/components/Select/StyledSelect.d.ts +0 -28
  319. package/types/components/Select/helpers.d.ts +0 -10
  320. package/types/components/Select/index.d.ts +0 -10
  321. package/types/components/Select/index.internal.d.ts +0 -21
  322. package/types/components/Select/types.d.ts +0 -88
  323. package/types/components/Skeleton/StyledSkeleton.d.ts +0 -16
  324. package/types/components/Skeleton/index.d.ts +0 -14
  325. package/types/components/Slider/RangeSlider.d.ts +0 -60
  326. package/types/components/Slider/SingleSlider.d.ts +0 -53
  327. package/types/components/Slider/StyledRangeSlider.d.ts +0 -10
  328. package/types/components/Slider/constants.d.ts +0 -3
  329. package/types/components/Slider/index.d.ts +0 -8
  330. package/types/components/Spinner/AnimatedSpinner.d.ts +0 -6
  331. package/types/components/Spinner/StyledSpinner.d.ts +0 -34
  332. package/types/components/Spinner/index.d.ts +0 -18
  333. package/types/components/StatusScreens/Empty/StyledEmpty.d.ts +0 -27
  334. package/types/components/StatusScreens/Empty/index.d.ts +0 -38
  335. package/types/components/StatusScreens/Error/StyledError.d.ts +0 -59
  336. package/types/components/StatusScreens/Error/index.d.ts +0 -62
  337. package/types/components/StatusScreens/Success/StyledSuccess.d.ts +0 -59
  338. package/types/components/StatusScreens/Success/index.d.ts +0 -56
  339. package/types/components/Swipeable/StyledSwipeable.d.ts +0 -7
  340. package/types/components/Swipeable/SwipeableAction.d.ts +0 -28
  341. package/types/components/Swipeable/index.d.ts +0 -50
  342. package/types/components/Switch/SelectorSwitch/Option.d.ts +0 -14
  343. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -19
  344. package/types/components/Switch/SelectorSwitch/index.d.ts +0 -37
  345. package/types/components/Switch/StyledSwitch.d.ts +0 -15
  346. package/types/components/Switch/index.d.ts +0 -28
  347. package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -9
  348. package/types/components/Tabs/SceneView.d.ts +0 -10
  349. package/types/components/Tabs/ScrollableTabs.d.ts +0 -7
  350. package/types/components/Tabs/ScrollableTabsHeader/ScrollableTabsHeader.d.ts +0 -40
  351. package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitHighlightedAnimation.d.ts +0 -9
  352. package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitUnderlinedAnimation.d.ts +0 -10
  353. package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -55
  354. package/types/components/Tabs/StyledTabs.d.ts +0 -45
  355. package/types/components/Tabs/TabWithBadge.d.ts +0 -17
  356. package/types/components/Tabs/index.d.ts +0 -62
  357. package/types/components/Tabs/useHandlePageScroll.d.ts +0 -8
  358. package/types/components/Tabs/useIsFocused.d.ts +0 -6
  359. package/types/components/Tabs/utils.d.ts +0 -2
  360. package/types/components/Tag/StyledTag.d.ts +0 -17
  361. package/types/components/Tag/index.d.ts +0 -28
  362. package/types/components/TextInput/StyledTextInput.d.ts +0 -89
  363. package/types/components/TextInput/index.d.ts +0 -136
  364. package/types/components/TimePicker/StyledTimePicker.d.ts +0 -16
  365. package/types/components/TimePicker/TimePicker.d.ts +0 -4
  366. package/types/components/TimePicker/TimePickerAndroid.d.ts +0 -4
  367. package/types/components/TimePicker/TimePickerIOS.d.ts +0 -4
  368. package/types/components/TimePicker/index.d.ts +0 -4
  369. package/types/components/TimePicker/index.internal.d.ts +0 -5
  370. package/types/components/TimePicker/types.d.ts +0 -76
  371. package/types/components/Toast/StyledToast.d.ts +0 -57
  372. package/types/components/Toast/Toast.d.ts +0 -4
  373. package/types/components/Toast/ToastContainer.d.ts +0 -5
  374. package/types/components/Toast/ToastContext.d.ts +0 -13
  375. package/types/components/Toast/ToastProvider.d.ts +0 -11
  376. package/types/components/Toast/index.d.ts +0 -8
  377. package/types/components/Toast/types.d.ts +0 -74
  378. package/types/components/Toolbar/StyledToolbar.d.ts +0 -69
  379. package/types/components/Toolbar/ToolbarGroup.d.ts +0 -25
  380. package/types/components/Toolbar/ToolbarItem.d.ts +0 -31
  381. package/types/components/Toolbar/ToolbarMessage.d.ts +0 -58
  382. package/types/components/Toolbar/index.d.ts +0 -14
  383. package/types/components/Typography/Body/StyledBody.d.ts +0 -15
  384. package/types/components/Typography/Body/__tests__/StyledBody.d.ts +0 -1
  385. package/types/components/Typography/Body/index.d.ts +0 -38
  386. package/types/components/Typography/Caption/StyledCaption.d.ts +0 -13
  387. package/types/components/Typography/Caption/index.d.ts +0 -32
  388. package/types/components/Typography/Label/StyledLabel.d.ts +0 -12
  389. package/types/components/Typography/Label/__tests__/StyledLabel.d.ts +0 -1
  390. package/types/components/Typography/Label/index.d.ts +0 -28
  391. package/types/components/Typography/Text/StyledText.d.ts +0 -13
  392. package/types/components/Typography/Text/index.d.ts +0 -40
  393. package/types/components/Typography/Title/StyledTitle.d.ts +0 -15
  394. package/types/components/Typography/Title/__tests__/StyledTitle.d.ts +0 -1
  395. package/types/components/Typography/Title/index.d.ts +0 -38
  396. package/types/components/Typography/index.d.ts +0 -17
  397. package/types/components/Typography/types.d.ts +0 -6
  398. package/types/index.d.ts +0 -64
  399. package/types/index.internal.d.ts +0 -19
  400. package/types/locales/en_AU.d.ts +0 -3
  401. package/types/locales/en_CA.d.ts +0 -3
  402. package/types/locales/index.d.ts +0 -5
  403. package/types/locales/types.d.ts +0 -10
  404. package/types/testHelpers/renderWithTheme.d.ts +0 -86
  405. package/types/testHelpers/utils.d.ts +0 -1
  406. package/types/theme/ThemeProvider.d.ts +0 -12
  407. package/types/theme/ThemeSwitcher.d.ts +0 -9
  408. package/types/theme/components/accordion.d.ts +0 -13
  409. package/types/theme/components/alert.d.ts +0 -48
  410. package/types/theme/components/appCue.d.ts +0 -16
  411. package/types/theme/components/attachment.d.ts +0 -21
  412. package/types/theme/components/avatar.d.ts +0 -50
  413. package/types/theme/components/badge.d.ts +0 -69
  414. package/types/theme/components/bottomNavigation.d.ts +0 -30
  415. package/types/theme/components/bottomSheet.d.ts +0 -29
  416. package/types/theme/components/button.d.ts +0 -127
  417. package/types/theme/components/calendar.d.ts +0 -33
  418. package/types/theme/components/card.d.ts +0 -26
  419. package/types/theme/components/cardCarousel.d.ts +0 -19
  420. package/types/theme/components/carousel.d.ts +0 -36
  421. package/types/theme/components/chart.d.ts +0 -22
  422. package/types/theme/components/checkbox.d.ts +0 -40
  423. package/types/theme/components/chip.d.ts +0 -43
  424. package/types/theme/components/columnChart.d.ts +0 -10
  425. package/types/theme/components/contentNavigator.d.ts +0 -7
  426. package/types/theme/components/datePicker.d.ts +0 -7
  427. package/types/theme/components/divider.d.ts +0 -17
  428. package/types/theme/components/drawer.d.ts +0 -30
  429. package/types/theme/components/empty.d.ts +0 -37
  430. package/types/theme/components/error.d.ts +0 -52
  431. package/types/theme/components/fab.d.ts +0 -73
  432. package/types/theme/components/filterTrigger.d.ts +0 -72
  433. package/types/theme/components/floatingIsland.d.ts +0 -32
  434. package/types/theme/components/icon.d.ts +0 -25
  435. package/types/theme/components/image.d.ts +0 -8
  436. package/types/theme/components/list.d.ts +0 -46
  437. package/types/theme/components/mapPin.d.ts +0 -43
  438. package/types/theme/components/pageControl.d.ts +0 -18
  439. package/types/theme/components/pinInput.d.ts +0 -57
  440. package/types/theme/components/progress.d.ts +0 -51
  441. package/types/theme/components/radio.d.ts +0 -24
  442. package/types/theme/components/rate.d.ts +0 -11
  443. package/types/theme/components/refreshControl.d.ts +0 -7
  444. package/types/theme/components/richTextEditor.d.ts +0 -28
  445. package/types/theme/components/search.d.ts +0 -58
  446. package/types/theme/components/sectionHeading.d.ts +0 -14
  447. package/types/theme/components/segmentedControl.d.ts +0 -55
  448. package/types/theme/components/select.d.ts +0 -18
  449. package/types/theme/components/skeleton.d.ts +0 -17
  450. package/types/theme/components/slider.d.ts +0 -33
  451. package/types/theme/components/spinner.d.ts +0 -27
  452. package/types/theme/components/success.d.ts +0 -45
  453. package/types/theme/components/swipeable.d.ts +0 -16
  454. package/types/theme/components/switch.d.ts +0 -38
  455. package/types/theme/components/tabs.d.ts +0 -31
  456. package/types/theme/components/tag.d.ts +0 -53
  457. package/types/theme/components/textInput.d.ts +0 -95
  458. package/types/theme/components/timePicker.d.ts +0 -7
  459. package/types/theme/components/toast.d.ts +0 -52
  460. package/types/theme/components/toolbar.d.ts +0 -48
  461. package/types/theme/components/typography.d.ts +0 -168
  462. package/types/theme/getTheme.d.ts +0 -119
  463. package/types/theme/global/borders.d.ts +0 -18
  464. package/types/theme/global/colors/__tests__/ehWork.spec.d.ts +0 -1
  465. package/types/theme/global/colors/eBens.d.ts +0 -6
  466. package/types/theme/global/colors/ehJobs.d.ts +0 -3
  467. package/types/theme/global/colors/ehWork.d.ts +0 -3
  468. package/types/theme/global/colors/ehWorkDark.d.ts +0 -3
  469. package/types/theme/global/colors/global.d.ts +0 -3
  470. package/types/theme/global/colors/globalDark.d.ts +0 -3
  471. package/types/theme/global/colors/jobs.d.ts +0 -6
  472. package/types/theme/global/colors/swag.d.ts +0 -6
  473. package/types/theme/global/colors/swagDark.d.ts +0 -6
  474. package/types/theme/global/colors/swagLight.d.ts +0 -6
  475. package/types/theme/global/colors/swagLightGlobal.d.ts +0 -3
  476. package/types/theme/global/colors/swagLightJobs.d.ts +0 -6
  477. package/types/theme/global/colors/swagSystemPalette.d.ts +0 -3
  478. package/types/theme/global/colors/types.d.ts +0 -58
  479. package/types/theme/global/colors/wallet.d.ts +0 -6
  480. package/types/theme/global/colors/work.d.ts +0 -6
  481. package/types/theme/global/index.d.ts +0 -78
  482. package/types/theme/global/scale.d.ts +0 -14
  483. package/types/theme/global/shadows/ehJobs.d.ts +0 -3
  484. package/types/theme/global/shadows/ehWork.d.ts +0 -3
  485. package/types/theme/global/shadows/ehWorkDark.d.ts +0 -3
  486. package/types/theme/global/shadows/index.d.ts +0 -3
  487. package/types/theme/global/shadows/types.d.ts +0 -16
  488. package/types/theme/global/sizes.d.ts +0 -14
  489. package/types/theme/global/space.d.ts +0 -16
  490. package/types/theme/global/typography.d.ts +0 -34
  491. package/types/theme/index.d.ts +0 -9
  492. package/types/types.d.ts +0 -42
  493. package/types/types.internal.d.ts +0 -18
  494. package/types/utils/functions.d.ts +0 -1
  495. package/types/utils/helpers.d.ts +0 -13
  496. package/types/utils/hooks.d.ts +0 -3
  497. package/types/utils/scale.d.ts +0 -1
@@ -1,31 +0,0 @@
1
- import type { StyleProp, ViewStyle, ViewProps } from 'react-native';
2
- import type { SystemPalette } from '../../theme/global';
3
- import type { BorderWidths, Radii } from '../../theme/global/borders';
4
- import type { Space } from '../../theme/global/space';
5
- import type { ConfigType, FlexPropsKeyType } from './config';
6
- export interface ThemeScale {
7
- colors: keyof SystemPalette;
8
- space: keyof Space;
9
- radii: keyof Radii;
10
- borderWidths: keyof BorderWidths;
11
- }
12
- type ConfigKeyType = keyof ConfigType;
13
- export type StyleProps = {
14
- [key in ConfigKeyType]?: ThemeScale[ConfigType[key]['scale']];
15
- };
16
- export type FlexStyleProps = Pick<Omit<ViewStyle, keyof StyleProps>, FlexPropsKeyType>;
17
- export interface BoxViewProps extends ViewProps {
18
- /**
19
- * Box's content.
20
- */
21
- children?: React.ReactNode;
22
- /**
23
- * Addtional styles.
24
- */
25
- style?: StyleProp<ViewStyle>;
26
- /**
27
- * Testing id of the component.
28
- */
29
- testID?: string;
30
- }
31
- export {};
@@ -1,64 +0,0 @@
1
- import type { ReactChild, ReactElement, ReactNode } from 'react';
2
- import type { StyleProp, ViewStyle } from 'react-native';
3
- import type { IconName } from '../Icon';
4
- import type { Intent, ThemeVariant } from './StyledButton';
5
- /**
6
- * @deprecated Use 'primary' | 'secondary' | 'danger' | 'inverted' instead.
7
- */
8
- type DeprecatedIntent = 'white';
9
- type ValidIntent = 'primary' | 'secondary' | 'danger' | 'inverted';
10
- export interface ButtonProps {
11
- /**
12
- * Helps users understand what will happen when they perform an action on the accessibility element when that result is not clear from the accessibility label.
13
- */
14
- accessibilityHint?: string;
15
- /**
16
- * A succinct label in a localized string that identifies the accessibility element
17
- */
18
- accessibilityLabel?: string;
19
- /**
20
- * Disable state of button.
21
- */
22
- disabled?: boolean;
23
- /**
24
- * Places an icon within the button, before the button's text
25
- */
26
- icon?: IconName | ReactNode;
27
- /**
28
- * Visual intent color to apply to button. It is required for `filled`, `outlined` and `text` variants.
29
- *
30
- * ⚠️ 'white' intent is deprecated and will be removed in the next major release. Please use 'primary' | 'secondary' | 'danger' | 'inverted' instead.
31
- */
32
- intent?: ValidIntent | DeprecatedIntent;
33
- /**
34
- * Loading state of button.
35
- */
36
- loading?: boolean;
37
- /**
38
- * Set the handler to handle press event.
39
- */
40
- onPress: () => void;
41
- /**
42
- * Places an icon within the button, after the button's text
43
- */
44
- rightIcon?: IconName | ReactNode;
45
- /**
46
- * Additional style.
47
- */
48
- style?: StyleProp<ViewStyle>;
49
- /**
50
- * Testing id of the component.
51
- */
52
- testID?: string;
53
- /**
54
- * Button label.
55
- */
56
- text?: ReactChild;
57
- /**
58
- * Button type.
59
- */
60
- variant?: 'filled' | 'outlined' | 'text' | 'inline-text' | 'filled-medium' | 'outlined-medium' | 'text-medium' | 'filled-compact' | 'outlined-compact' | 'text-compact' | 'inline-text-compact';
61
- }
62
- export declare const getThemeVariant: (variant: "filled" | "outlined" | "text" | "filled-medium" | "outlined-medium" | "text-medium" | "filled-compact" | "outlined-compact" | "text-compact", intent: Intent) => ThemeVariant;
63
- declare const Button: ({ accessibilityHint, accessibilityLabel, disabled, icon, intent, loading, onPress, rightIcon, style, testID, text, variant, }: ButtonProps) => ReactElement;
64
- export default Button;
@@ -1,39 +0,0 @@
1
- import React from 'react';
2
- import type { StyleProp, ViewStyle, TouchableOpacityProps } from 'react-native';
3
- import type { IconProps, IconName } from '../Icon';
4
- export interface IconButtonProps {
5
- /**
6
- * Set how far you can touch from the button.
7
- */
8
- hitSlop?: TouchableOpacityProps['hitSlop'];
9
- /**
10
- * Name of the Icon.
11
- */
12
- icon: IconName;
13
- /**
14
- * Disable state of button.
15
- */
16
- disabled?: boolean;
17
- /**
18
- * Intent of the Icon.
19
- */
20
- intent?: IconProps['intent'];
21
- /**
22
- * Set the handler to handle press event.
23
- */
24
- onPress?: () => void;
25
- /**
26
- * Size of the Icon.
27
- */
28
- size?: IconProps['size'];
29
- /**
30
- * Additional style.
31
- */
32
- style?: StyleProp<ViewStyle>;
33
- /**
34
- * Testing id of component.
35
- */
36
- testID?: string;
37
- }
38
- declare const IconButton: ({ hitSlop, onPress, icon, disabled, testID, style, size, intent, }: IconButtonProps) => React.JSX.Element;
39
- export default IconButton;
@@ -1,19 +0,0 @@
1
- import type { ViewProps } from 'react-native';
2
- import { View } from 'react-native';
3
- type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'filled-white' | 'filled-inverted' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'outlined-white' | 'outlined-inverted' | 'text-primary' | 'text-secondary' | 'text-danger' | 'text-white' | 'text-inverted';
4
- declare const StyledLoadingIndicatorWrapper: import("@emotion/native").StyledComponent<ViewProps & {
5
- theme?: import("@emotion/react").Theme;
6
- as?: React.ElementType;
7
- }, {}, {
8
- ref?: import("react").Ref<View> | undefined;
9
- }>;
10
- declare const StyledLoadingDot: import("@emotion/native").StyledComponent<ViewProps & {
11
- theme?: import("@emotion/react").Theme;
12
- as?: React.ElementType;
13
- } & {
14
- size?: number;
15
- themeVariant: ThemeVariant;
16
- }, {}, {
17
- ref?: import("react").Ref<View> | undefined;
18
- }>;
19
- export { StyledLoadingDot, StyledLoadingIndicatorWrapper };
@@ -1,27 +0,0 @@
1
- import React from 'react';
2
- import type { StyleProp, ViewStyle, ViewProps } from 'react-native';
3
- type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'filled-white' | 'filled-inverted' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'outlined-white' | 'outlined-inverted' | 'text-primary' | 'text-secondary' | 'text-danger' | 'text-white' | 'text-inverted';
4
- interface LoadingIndicatorProps extends ViewProps {
5
- /**
6
- * Size of the loading dot.
7
- */
8
- count?: number;
9
- /**
10
- * Size of the loading dot.
11
- */
12
- size?: number;
13
- /**
14
- * Additional style.
15
- */
16
- style?: StyleProp<ViewStyle>;
17
- /**
18
- * Testing id of the component.
19
- */
20
- testID?: string;
21
- /**
22
- * Testing id of the component.
23
- */
24
- themeVariant: ThemeVariant;
25
- }
26
- declare const LoadingIndicator: ({ count, size, testID, themeVariant, ...nativeProps }: LoadingIndicatorProps) => React.JSX.Element;
27
- export default LoadingIndicator;
@@ -1,61 +0,0 @@
1
- import type { Theme } from '@emotion/react';
2
- import { View } from 'react-native';
3
- import { type CamelCase } from '../../utils/helpers';
4
- type Intent = 'primary' | 'secondary' | 'danger' | 'white' | 'inverted';
5
- type ThemeVariant = 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'filled-white' | 'filled-inverted' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'outlined-white' | 'outlined-inverted' | 'text-primary' | 'text-secondary' | 'text-danger' | 'text-white' | 'text-inverted';
6
- declare const StyledButtonContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableHighlightProps & import("react").RefAttributes<View> & {
7
- theme?: Theme;
8
- as?: React.ElementType;
9
- } & {
10
- disabled?: boolean;
11
- themeButtonVariant: ThemeVariant;
12
- loading?: boolean;
13
- themeInlineText?: boolean;
14
- themeIsCompact?: boolean;
15
- themeIsMedium?: boolean;
16
- themeIsIconOnly?: boolean;
17
- }, {}, {}>;
18
- declare const StyledButtonText: import("@emotion/native").StyledComponent<import("../..").TitleProps & {
19
- theme?: Theme;
20
- as?: React.ElementType;
21
- } & {
22
- disabled?: boolean;
23
- themeButtonVariant: ThemeVariant;
24
- }, {}, {}>;
25
- declare const StyledSmallButtonText: import("@emotion/native").StyledComponent<import("../..").TitleProps & {
26
- theme?: Theme;
27
- as?: React.ElementType;
28
- } & {
29
- disabled?: boolean;
30
- themeButtonVariant: ThemeVariant;
31
- } & import("../..").BodyProps, {}, {}>;
32
- declare const StyledButtonTitleOfVariantText: import("@emotion/native").StyledComponent<import("../..").BodyProps & {
33
- theme?: Theme;
34
- as?: React.ElementType;
35
- } & {
36
- disabled?: boolean;
37
- themeButtonVariant: "text-primary" | "text-secondary" | "text-danger" | "text-white" | "text-inverted";
38
- themeIsPressed?: boolean;
39
- themeIsCompact: boolean;
40
- }, {}, {}>;
41
- declare const StyledButtonIconWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
42
- theme?: Theme;
43
- as?: React.ElementType;
44
- } & {
45
- themePosition: "left" | "right";
46
- themeIsCompact?: boolean;
47
- themeIsIconOnly?: boolean;
48
- }, {}, {
49
- ref?: import("react").Ref<View> | undefined;
50
- }>;
51
- declare const StyledButtonIcon: import("@emotion/native").StyledComponent<import("../Icon").IconProps & {
52
- theme?: Theme;
53
- as?: React.ElementType;
54
- } & {
55
- disabled?: boolean;
56
- themeButtonVariant: ThemeVariant;
57
- themeIsPressed?: boolean;
58
- themeIsCompact?: boolean;
59
- }, {}, {}>;
60
- export { StyledButtonContainer, StyledButtonIcon, StyledButtonIconWrapper, StyledButtonText, StyledButtonTitleOfVariantText, StyledSmallButtonText, };
61
- export type { Intent, ThemeVariant, CamelCase };
@@ -1,15 +0,0 @@
1
- import { View } from 'react-native';
2
- export declare const ButtonContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & import("react").RefAttributes<View> & {
3
- theme?: import("@emotion/react").Theme;
4
- as?: React.ElementType;
5
- }, {}, {}>;
6
- export declare const IconWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
7
- theme?: import("@emotion/react").Theme;
8
- as?: React.ElementType;
9
- }, {}, {
10
- ref?: import("react").Ref<View> | undefined;
11
- }>;
12
- export declare const ButtonText: import("@emotion/native").StyledComponent<import("../../..").BodyProps & {
13
- theme?: import("@emotion/react").Theme;
14
- as?: React.ElementType;
15
- }, {}, {}>;
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- import type { ReactChild } from 'react';
3
- import type { ViewProps } from 'react-native';
4
- import type { IconName } from '../../Icon';
5
- interface UtilityButtonProps extends ViewProps {
6
- /**
7
- * Places an icon within the button, before the button's text
8
- */
9
- icon: IconName;
10
- /**
11
- * Set the handler to handle press event.
12
- */
13
- onPress: () => void;
14
- /**
15
- * Button label.
16
- */
17
- text: ReactChild;
18
- /**
19
- * Visual intent color to apply to button.
20
- */
21
- intent?: 'primary' | 'text';
22
- }
23
- declare const UtilityButton: ({ icon, onPress, text, testID, intent, style, hitSlop, }: UtilityButtonProps) => React.JSX.Element;
24
- export default UtilityButton;
@@ -1,10 +0,0 @@
1
- import type { FunctionComponent } from 'react';
2
- import IconButton from './IconButton';
3
- import UtilityButton from './UtilityButton';
4
- import type { ButtonProps } from './Button';
5
- interface CompoundButtonProps extends FunctionComponent<ButtonProps> {
6
- Icon: typeof IconButton;
7
- Utility: typeof UtilityButton;
8
- }
9
- declare const CompoundButton: CompoundButtonProps;
10
- export default CompoundButton;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import type { CalendarProps } from './types';
3
- export type CalendarDateRange = {
4
- startDate?: Date;
5
- endDate?: Date;
6
- };
7
- declare const CalendarRange: ({ value, visibleDate, onChange, onPreviousPress, onNextPress, onTitlePress, minDate, maxDate, markedDates, testID, onMonthChange, onToggleMonthPicker, monthPickerConfirmLabel, monthPickerCancelLabel, }: Omit<CalendarProps, "value" | "onChange"> & {
8
- value?: CalendarDateRange;
9
- onChange?: (date: CalendarDateRange) => void;
10
- }) => React.JSX.Element;
11
- export default CalendarRange;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- interface SelectedDateProps {
3
- date: Date;
4
- onPress?: () => void;
5
- marked?: boolean;
6
- isStart?: boolean;
7
- showConnector?: boolean;
8
- itemWidth?: number;
9
- }
10
- declare const SelectedDate: ({ date, onPress, marked, isStart, showConnector, itemWidth, }: SelectedDateProps) => React.JSX.Element;
11
- export default SelectedDate;
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- interface CalendarRowItemProps {
3
- date?: Date;
4
- onPress?: () => void;
5
- isCurrent?: boolean;
6
- isSelected?: boolean;
7
- textIntent?: 'body' | 'subdued';
8
- marked?: boolean;
9
- itemWidth?: number;
10
- isHighlighted?: boolean;
11
- }
12
- declare const CalendarRowItem: ({ date, onPress, isCurrent, isSelected, textIntent, marked, itemWidth, isHighlighted, }: CalendarRowItemProps) => React.JSX.Element;
13
- export default CalendarRowItem;
@@ -1,61 +0,0 @@
1
- import { 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 StyledCalendarHeader: 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 StyledCalendarDayNameCell: import("@emotion/native").StyledComponent<ViewProps & {
16
- theme?: import("@emotion/react").Theme;
17
- as?: React.ElementType;
18
- } & {
19
- themeItemWidth?: number;
20
- }, {}, {
21
- ref?: import("react").Ref<View> | undefined;
22
- }>;
23
- declare const StyledCalendarCell: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & import("react").RefAttributes<View> & {
24
- theme?: import("@emotion/react").Theme;
25
- as?: React.ElementType;
26
- } & {
27
- variant?: "default" | "current" | "selected" | "highlighted";
28
- themeItemWidth?: number;
29
- }, {}, {}>;
30
- declare const StyledCalendarRow: import("@emotion/native").StyledComponent<ViewProps & {
31
- theme?: import("@emotion/react").Theme;
32
- as?: React.ElementType;
33
- }, {}, {
34
- ref?: import("react").Ref<View> | undefined;
35
- }>;
36
- declare const StyledCalendarRowItem: import("@emotion/native").StyledComponent<ViewProps & {
37
- theme?: import("@emotion/react").Theme;
38
- as?: React.ElementType;
39
- } & {
40
- themeItemWidth?: number;
41
- isHighlighted?: boolean;
42
- }, {}, {
43
- ref?: import("react").Ref<View> | undefined;
44
- }>;
45
- declare const StyledDisabledCalendarRowItem: import("@emotion/native").StyledComponent<ViewProps & {
46
- theme?: import("@emotion/react").Theme;
47
- as?: React.ElementType;
48
- } & {
49
- themeItemWidth?: number;
50
- }, {}, {
51
- ref?: import("react").Ref<View> | undefined;
52
- }>;
53
- declare const StyledMark: import("@emotion/native").StyledComponent<ViewProps & {
54
- theme?: import("@emotion/react").Theme;
55
- as?: React.ElementType;
56
- } & {
57
- variant: "primary" | "inverted";
58
- }, {}, {
59
- ref?: import("react").Ref<View> | undefined;
60
- }>;
61
- export { StyledContainer, StyledCalendarHeader, StyledCalendarRow, StyledCalendarRowItem, StyledDisabledCalendarRowItem, StyledCalendarDayNameCell, StyledCalendarCell, StyledMark, };
@@ -1,4 +0,0 @@
1
- export declare const DAYS_OF_WEEK: string[];
2
- export declare const WEEK_INDEX_OFFSET = 1;
3
- export declare const SUNDAY_INDEX = 6;
4
- export declare const TOTAL_DATES_ITEMS: number;
@@ -1,35 +0,0 @@
1
- import type { CalendarProps, ParsedMaskedDate } from './types';
2
- export declare const initArray: <T>(length: number, func: (value: number) => T) => T[];
3
- export declare const isEqDate: (dateA?: Date, dateB?: Date) => boolean;
4
- export declare const isDateInRange: ({ date, range, }: {
5
- date: Date;
6
- range?: {
7
- startDate?: Date;
8
- endDate?: Date;
9
- };
10
- }) => boolean;
11
- export declare const getValidDate: (date: Date, minDate?: Date, maxDate?: Date) => Date | undefined;
12
- export declare const setStartOrEndDate: ({ date, startDate, endDate, }: {
13
- date: Date;
14
- startDate?: Date;
15
- endDate?: Date;
16
- }) => {
17
- startDate: Date;
18
- endDate: Date;
19
- } | {
20
- startDate: Date;
21
- endDate: undefined;
22
- };
23
- export declare const shouldUseMonthPicker: (onMonthChange: CalendarProps["onMonthChange"]) => boolean;
24
- export declare const getCalendarDate: ({ visibleDate, markedDates, minDate, maxDate, }: CalendarProps) => {
25
- firstDateOfMonth: Date;
26
- lastDateOfMonth: Date;
27
- parsedMaskedDate: ParsedMaskedDate;
28
- daysOfPreviousMonth: (Date | undefined)[];
29
- daysOfCurrentMonth: (Date | undefined)[];
30
- daysOfNextMonth: (Date | undefined)[];
31
- };
32
- export declare const getCalendarButtonState: ({ visibleDate, markedDates, minDate, maxDate, }: CalendarProps) => {
33
- disablePrevButton: boolean;
34
- disableNextButton: boolean;
35
- };
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import type { CalendarProps } from './types';
3
- declare const _default: (({ value, visibleDate, onChange, onPreviousPress, onNextPress, onTitlePress, minDate, maxDate, markedDates, testID, onMonthChange, onToggleMonthPicker, monthPickerConfirmLabel, monthPickerCancelLabel, }: CalendarProps) => React.JSX.Element) & {
4
- Range: ({ value, visibleDate, onChange, onPreviousPress, onNextPress, onTitlePress, minDate, maxDate, markedDates, testID, onMonthChange, onToggleMonthPicker, monthPickerConfirmLabel, monthPickerCancelLabel, }: Omit<CalendarProps, "value" | "onChange"> & {
5
- value?: import("./CalendarRange").CalendarDateRange;
6
- onChange?: (date: import("./CalendarRange").CalendarDateRange) => void;
7
- }) => React.JSX.Element;
8
- };
9
- export default _default;
@@ -1,8 +0,0 @@
1
- import type { LayoutChangeEvent } from 'react-native';
2
- export declare const useCalendarLayout: () => {
3
- onLayout: (e: LayoutChangeEvent) => void;
4
- contentHeight: number;
5
- calendarItemHeight: number;
6
- contentWidth: number;
7
- calendarItemWidth: number | undefined;
8
- };
@@ -1,58 +0,0 @@
1
- export type ParsedMaskedDate = {
2
- [key: string]: boolean;
3
- };
4
- export interface CalendarProps {
5
- /**
6
- * Selected date value.
7
- */
8
- value?: Date;
9
- /**
10
- * Visible date of month that calendar opens to display. Default is now.
11
- */
12
- visibleDate: Date;
13
- /**
14
- * Mininum date. Restrict the range of possible date values.
15
- */
16
- minDate?: Date;
17
- /**
18
- * Maximum date. Restrict the range of possible date values.
19
- */
20
- maxDate?: Date;
21
- /**
22
- * Callback is called when selected date value is changed.
23
- */
24
- onChange?: (date: Date) => void;
25
- /**
26
- * Handler to be called when the user taps the previous button.
27
- */
28
- onPreviousPress?: () => void;
29
- /**
30
- * Handler to be called when the user taps the next button.
31
- */
32
- onNextPress?: () => void;
33
- /**
34
- * Handler to be called when the user taps the title.
35
- */
36
- onTitlePress?: () => void;
37
- /**
38
- * Mark dates to display on calendar.
39
- */
40
- markedDates?: Date[];
41
- /**
42
- * Testing id of the component.
43
- */
44
- testID?: string;
45
- /**
46
- * Callback when header month is changed, passing this prop will disable onTitlePress.
47
- */
48
- onMonthChange?: (date: Date) => void;
49
- onToggleMonthPicker?: (visible: boolean) => void;
50
- /**
51
- * Label for the confirm button of the month picker, Android only.
52
- */
53
- monthPickerConfirmLabel?: string;
54
- /**
55
- * Label for the cancel button of the month picker, Android only.
56
- */
57
- monthPickerCancelLabel?: string;
58
- }
@@ -1,22 +0,0 @@
1
- import { View } from 'react-native';
2
- declare const StyledDataCard: 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 StyledDataCardContent: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
9
- theme?: import("@emotion/react").Theme;
10
- as?: React.ElementType;
11
- }, {}, {
12
- ref?: import("react").Ref<View> | undefined;
13
- }>;
14
- declare const Indicator: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
15
- theme?: import("@emotion/react").Theme;
16
- as?: React.ElementType;
17
- } & {
18
- themeIntent: "success" | "info" | "warning" | "danger" | "archived" | "primary";
19
- }, {}, {
20
- ref?: import("react").Ref<View> | undefined;
21
- }>;
22
- export { StyledDataCard, Indicator, StyledDataCardContent };
@@ -1,22 +0,0 @@
1
- import type { ReactElement, ReactNode } from 'react';
2
- import type { StyleProp, ViewStyle, ViewProps } from 'react-native';
3
- export interface DataCardProps extends ViewProps {
4
- /**
5
- * Card's content.
6
- */
7
- children?: ReactNode;
8
- /**
9
- * Visual intent color to apply to card.
10
- */
11
- intent?: 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'archived';
12
- /**
13
- * Additional style.
14
- */
15
- style?: StyleProp<ViewStyle>;
16
- /**
17
- * Testing id of the component.
18
- */
19
- testID?: string;
20
- }
21
- declare const DataCard: ({ intent, children, ...nativeProps }: DataCardProps) => ReactElement;
22
- export default DataCard;
@@ -1,11 +0,0 @@
1
- import { View } from 'react-native';
2
- declare const StyledCard: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
3
- theme?: import("@emotion/react").Theme;
4
- as?: React.ElementType;
5
- } & {
6
- themeIntent?: "primary" | "secondary" | "success" | "warning" | "danger" | "archived" | "neutral";
7
- themeVariant?: "basic" | "super-round";
8
- }, {}, {
9
- ref?: import("react").Ref<View> | undefined;
10
- }>;
11
- export { StyledCard };
@@ -1,32 +0,0 @@
1
- import type { ReactElement, ReactNode } from 'react';
2
- import React from 'react';
3
- import type { StyleProp, ViewProps, ViewStyle } from 'react-native';
4
- export interface CardProps extends ViewProps {
5
- /**
6
- * Card's content.
7
- */
8
- children?: ReactNode;
9
- /**
10
- * Visual intent color to apply to card.
11
- */
12
- intent?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'archived' | 'neutral';
13
- /**
14
- * Additional style.
15
- */
16
- style?: StyleProp<ViewStyle>;
17
- /**
18
- * Testing id of the component.
19
- */
20
- testID?: string;
21
- variant?: 'basic' | 'super-round';
22
- }
23
- declare const _default: (({ intent, children, variant, ...nativeProps }: CardProps) => ReactElement) & {
24
- Data: ({ intent, children, ...nativeProps }: import("./DataCard").DataCardProps) => ReactElement;
25
- DataContent: import("@emotion/native").StyledComponent<ViewProps & {
26
- theme?: import("@emotion/react").Theme;
27
- as?: React.ElementType;
28
- }, {}, {
29
- ref?: React.Ref<import("react-native").View> | undefined;
30
- }>;
31
- };
32
- export default _default;
@@ -1,46 +0,0 @@
1
- import React from 'react';
2
- import type { LayoutChangeEvent, StyleProp, ViewStyle } from 'react-native';
3
- export type CardCarouselHandles = {
4
- snapToIndex: (index: number) => void;
5
- };
6
- export interface CardCarouselProps {
7
- /**
8
- * Whether to scroll automatically.
9
- */
10
- autoPlay?: boolean;
11
- /**
12
- * Set interval of each slide.
13
- */
14
- autoPlayInterval?: number;
15
- /**
16
- * onItemIndexChange event handler receiving index of selected Item.
17
- */
18
- onItemIndexChange?: (index: number) => void;
19
- /**
20
- * Carousel items.
21
- */
22
- items: React.ReactNode[];
23
- /**
24
- * Indicates hide or show page control.
25
- */
26
- hidePageControl?: boolean;
27
- /**
28
- * Additional styles
29
- */
30
- style?: StyleProp<ViewStyle>;
31
- /**
32
- * Testing id of the component.
33
- */
34
- testID?: string;
35
- /**
36
- * Component ref.
37
- */
38
- ref?: React.Ref<CardCarouselHandles>;
39
- onLayout?: (event: LayoutChangeEvent) => void;
40
- /**
41
- * Gap between items.
42
- */
43
- gap?: 'xsmall' | 'small' | 'medium';
44
- }
45
- export declare const getCardCarouselValidIndex: (index: number, length: number) => number;
46
- export declare const CardCarousel: React.ForwardRefExoticComponent<Omit<CardCarouselProps, "ref"> & React.RefAttributes<CardCarouselHandles>>;