@hero-design/rn 7.3.2 → 7.6.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 (345) hide show
  1. package/.expo/README.md +15 -0
  2. package/.expo/packager-info.json +10 -0
  3. package/.expo/prebuild/cached-packages.json +4 -0
  4. package/.expo/settings.json +10 -0
  5. package/.expo/xcodebuild-error.log +2 -0
  6. package/.expo/xcodebuild.log +11199 -0
  7. package/.turbo/turbo-build.log +2 -2
  8. package/assets/fonts/hero-icons.ttf +0 -0
  9. package/es/index.js +7093 -5663
  10. package/lib/assets/fonts/hero-icons.ttf +0 -0
  11. package/lib/index.js +7101 -5662
  12. package/package.json +11 -9
  13. package/playground/.detoxrc.json +49 -0
  14. package/playground/.prettierrc.json +8 -0
  15. package/playground/.turbo/turbo-type-check.log +7 -0
  16. package/playground/app.json +9 -0
  17. package/playground/babel.config.js +63 -0
  18. package/playground/e2e/config.json +9 -0
  19. package/playground/e2e/environment.js +23 -0
  20. package/playground/e2e/firstTest.e2e.js +16 -0
  21. package/{expoEntry.js → playground/expoEntry.js} +1 -1
  22. package/playground/fonts/be-vietnam-pro-light.ttf +0 -0
  23. package/playground/fonts/be-vietnam-pro-regular.ttf +0 -0
  24. package/playground/fonts/be-vietnam-pro-semibold.ttf +0 -0
  25. package/playground/fonts/hero-icons.ttf +0 -0
  26. package/playground/index.js +7 -0
  27. package/playground/ios/MobileHeroDesignPlayground/AppDelegate.h +9 -0
  28. package/playground/ios/MobileHeroDesignPlayground/AppDelegate.m +75 -0
  29. package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/AppIcon.appiconset/Contents.json +38 -0
  30. package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/Contents.json +6 -0
  31. package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/SplashScreenBackground.imageset/Contents.json +21 -0
  32. package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/SplashScreenBackground.imageset/image.png +0 -0
  33. package/playground/ios/MobileHeroDesignPlayground/Info.plist +85 -0
  34. package/playground/ios/MobileHeroDesignPlayground/MobileHeroDesignPlayground-Bridging-Header.h +3 -0
  35. package/playground/ios/MobileHeroDesignPlayground/MobileHeroDesignPlayground.entitlements +8 -0
  36. package/playground/ios/MobileHeroDesignPlayground/SplashScreen.storyboard +40 -0
  37. package/playground/ios/MobileHeroDesignPlayground/Supporting/Expo.plist +16 -0
  38. package/playground/ios/MobileHeroDesignPlayground/main.m +10 -0
  39. package/playground/ios/MobileHeroDesignPlayground/noop-file.swift +4 -0
  40. package/playground/ios/MobileHeroDesignPlayground.xcodeproj/project.pbxproj +515 -0
  41. package/playground/ios/MobileHeroDesignPlayground.xcodeproj/xcshareddata/xcschemes/MobileHeroDesignPlayground.xcscheme +88 -0
  42. package/playground/ios/MobileHeroDesignPlayground.xcworkspace/contents.xcworkspacedata +10 -0
  43. package/playground/ios/MobileHeroDesignPlayground.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  44. package/playground/ios/Podfile +49 -0
  45. package/playground/ios/Podfile.lock +478 -0
  46. package/playground/ios/Podfile.properties.json +3 -0
  47. package/{metro.config.js → playground/metro.config.js} +10 -2
  48. package/playground/package.json +63 -0
  49. package/playground/src/Alert.tsx +80 -0
  50. package/playground/{index.tsx → src/App.tsx} +69 -29
  51. package/playground/{components → src}/Avatar.tsx +1 -1
  52. package/playground/{components → src}/Badge.tsx +1 -1
  53. package/playground/{components → src}/BottomNavigation.tsx +1 -1
  54. package/playground/src/BottomSheet.tsx +43 -0
  55. package/playground/{components → src}/Button.tsx +1 -1
  56. package/playground/{components → src}/Card.tsx +1 -1
  57. package/playground/{components → src}/Collapse.tsx +1 -1
  58. package/playground/src/ContentNavigator.tsx +58 -0
  59. package/playground/{components → src}/Divider.tsx +1 -1
  60. package/playground/{components → src}/Drawer.tsx +1 -1
  61. package/playground/{components → src}/FAB.tsx +1 -1
  62. package/playground/{components → src}/Icon.tsx +7 -3
  63. package/playground/{components → src}/IconButton.tsx +12 -1
  64. package/playground/src/MultipleThemes.tsx +34 -0
  65. package/playground/{components → src}/Progress.tsx +1 -1
  66. package/playground/src/Radio.tsx +25 -0
  67. package/playground/src/SectionHeading.tsx +68 -0
  68. package/playground/src/Select.tsx +32 -0
  69. package/playground/src/Spinner.tsx +19 -0
  70. package/playground/src/Switch.tsx +80 -0
  71. package/playground/{components → src}/Tabs.tsx +1 -1
  72. package/playground/{components → src}/Tag.tsx +1 -1
  73. package/playground/src/TextInput.tsx +14 -0
  74. package/playground/{components → src}/Typography.tsx +1 -1
  75. package/playground/src/emotion.d.ts +7 -0
  76. package/playground/tsconfig.json +21 -0
  77. package/src/components/Alert/StyledAlert.tsx +48 -0
  78. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +686 -0
  79. package/src/components/Alert/__tests__/index.spec.tsx +83 -0
  80. package/src/components/Alert/index.tsx +109 -0
  81. package/src/components/BottomSheet/Footer.tsx +19 -0
  82. package/src/components/BottomSheet/Header.tsx +49 -0
  83. package/src/components/BottomSheet/StyledBottomSheet.tsx +75 -0
  84. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +531 -0
  85. package/src/components/BottomSheet/__tests__/index.spec.tsx +107 -0
  86. package/src/components/BottomSheet/index.tsx +177 -0
  87. package/src/components/Button/IconButton.tsx +11 -1
  88. package/src/components/Collapse/StyledCollapse.tsx +11 -2
  89. package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +36 -31
  90. package/src/components/Collapse/__tests__/index.spec.tsx +1 -13
  91. package/src/components/Collapse/index.tsx +20 -50
  92. package/src/components/ContentNavigator/StyledContentNavigator.tsx +15 -0
  93. package/src/components/ContentNavigator/__tests__/StyledContentNavigator.spec.tsx +19 -0
  94. package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +43 -0
  95. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +217 -0
  96. package/src/components/ContentNavigator/__tests__/index.spec.tsx +74 -0
  97. package/src/components/ContentNavigator/index.tsx +65 -0
  98. package/src/components/Icon/HeroIcon/index.tsx +13 -2
  99. package/src/components/Icon/HeroIcon/selection.json +1 -1
  100. package/src/components/Icon/IconList.ts +8 -0
  101. package/src/components/Icon/index.tsx +8 -1
  102. package/src/components/Radio/Radio.tsx +51 -0
  103. package/src/components/Radio/RadioGroup.tsx +74 -0
  104. package/src/components/Radio/StyledRadio.tsx +42 -0
  105. package/src/components/Radio/__tests__/Radio.spec.tsx +38 -0
  106. package/src/components/Radio/__tests__/RadioGroup.spec.tsx +36 -0
  107. package/src/components/Radio/__tests__/StyledRadio.spec.tsx +43 -0
  108. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +160 -0
  109. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +248 -0
  110. package/src/components/Radio/__tests__/__snapshots__/StyledRadio.spec.tsx.snap +124 -0
  111. package/src/components/Radio/index.tsx +5 -0
  112. package/src/components/Radio/types.ts +1 -0
  113. package/src/components/SectionHeading/StyledHeading.tsx +24 -0
  114. package/src/components/SectionHeading/__tests__/StyledHeading.spec.tsx +28 -0
  115. package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +48 -0
  116. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +208 -0
  117. package/src/components/SectionHeading/__tests__/index.spec.tsx +39 -0
  118. package/src/components/SectionHeading/index.tsx +93 -0
  119. package/src/components/Select/MultiSelect/Footer.tsx +15 -0
  120. package/src/components/Select/MultiSelect/OptionList.tsx +76 -0
  121. package/src/components/Select/MultiSelect/StyledMultiSelect.tsx +30 -0
  122. package/src/components/Select/MultiSelect/__tests__/StyledMultiSelect.spec.tsx +49 -0
  123. package/src/components/Select/MultiSelect/__tests__/__snapshots__/StyledMultiSelect.spec.tsx.snap +108 -0
  124. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +1630 -0
  125. package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +94 -0
  126. package/src/components/Select/MultiSelect/index.tsx +103 -0
  127. package/src/components/Select/MultiSelect/types.ts +1 -0
  128. package/src/components/Select/index.tsx +5 -0
  129. package/src/components/Spinner/AnimatedSpinner.tsx +55 -0
  130. package/src/components/Spinner/StyledSpinner.tsx +59 -0
  131. package/src/components/Spinner/__tests__/AnimatedSpinner.spec.tsx +11 -0
  132. package/src/components/Spinner/__tests__/StyledSpinner.spec.tsx +56 -0
  133. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +118 -0
  134. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +235 -0
  135. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +141 -0
  136. package/src/components/Spinner/__tests__/index.spec.tsx +12 -0
  137. package/src/components/Spinner/index.tsx +22 -0
  138. package/src/components/Switch/StyledSwitch.tsx +50 -0
  139. package/src/components/Switch/__tests__/StyledHeading.spec.tsx +42 -0
  140. package/src/components/Switch/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +74 -0
  141. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +129 -0
  142. package/src/components/Switch/__tests__/index.spec.tsx +24 -0
  143. package/src/components/Switch/index.tsx +87 -0
  144. package/src/components/TextInput/StyledTextInput.tsx +30 -0
  145. package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +27 -0
  146. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +67 -0
  147. package/src/components/TextInput/__tests__/index.spec.tsx +17 -0
  148. package/src/components/TextInput/index.tsx +74 -0
  149. package/src/index.ts +18 -0
  150. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +174 -0
  151. package/src/theme/components/alert.ts +32 -0
  152. package/src/theme/components/bottomSheet.ts +34 -0
  153. package/src/theme/components/contentNavigator.ts +11 -0
  154. package/src/theme/components/icon.ts +1 -0
  155. package/src/theme/components/radio.ts +34 -0
  156. package/src/theme/components/sectionHeading.ts +18 -0
  157. package/src/theme/components/select.ts +23 -0
  158. package/src/theme/components/spinner.ts +21 -0
  159. package/src/theme/components/switch.ts +50 -0
  160. package/src/theme/components/textInput.ts +32 -0
  161. package/src/theme/global/borders.ts +6 -0
  162. package/src/theme/global/colors.ts +3 -0
  163. package/src/theme/index.ts +34 -7
  164. package/tsconfig.json +11 -3
  165. package/types/components/Alert/StyledAlert.d.ts +37 -0
  166. package/types/{src/components/Avatar → components/Alert}/__tests__/index.spec.d.ts +0 -0
  167. package/types/components/Alert/index.d.ts +42 -0
  168. package/types/{src/components → components}/Avatar/StyledAvatar.d.ts +0 -1
  169. package/types/{src/components → components}/Avatar/__tests__/StyledAvatar.spec.d.ts +0 -0
  170. package/types/{src/components/BottomNavigation → components/Avatar}/__tests__/index.spec.d.ts +0 -0
  171. package/types/{src/components → components}/Avatar/index.d.ts +0 -0
  172. package/types/{src/components → components}/Badge/Status.d.ts +0 -0
  173. package/types/{src/components → components}/Badge/StyledBadge.d.ts +0 -1
  174. package/types/{src/components → components}/Badge/__tests__/Badge.spec.d.ts +0 -0
  175. package/types/{src/components → components}/Badge/__tests__/Status.spec.d.ts +0 -0
  176. package/types/{src/components → components}/Badge/index.d.ts +0 -0
  177. package/types/{src/components → components}/BottomNavigation/StyledBottomNavigation.d.ts +0 -1
  178. package/types/{src/components/Button/LoadingIndicator → components/BottomNavigation}/__tests__/index.spec.d.ts +0 -0
  179. package/types/{src/components → components}/BottomNavigation/index.d.ts +0 -0
  180. package/types/components/BottomSheet/Footer.d.ts +6 -0
  181. package/types/components/BottomSheet/Header.d.ts +8 -0
  182. package/types/components/BottomSheet/StyledBottomSheet.d.ts +46 -0
  183. package/types/{src/components/Button → components/BottomSheet}/__tests__/index.spec.d.ts +0 -0
  184. package/types/components/BottomSheet/index.d.ts +55 -0
  185. package/types/{src/components → components}/Button/Button.d.ts +0 -0
  186. package/types/{src/components → components}/Button/IconButton.d.ts +5 -1
  187. package/types/{src/components → components}/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -1
  188. package/types/{src/components → components}/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.d.ts +0 -0
  189. package/types/{src/components/Card → components/Button/LoadingIndicator}/__tests__/index.spec.d.ts +0 -0
  190. package/types/{src/components → components}/Button/LoadingIndicator/index.d.ts +0 -0
  191. package/types/{src/components → components}/Button/StyledButton.d.ts +0 -1
  192. package/types/{src/components → components}/Button/__tests__/Button.spec.d.ts +0 -0
  193. package/types/{src/components → components}/Button/__tests__/IconButton.spec.d.ts +0 -0
  194. package/types/{src/components → components}/Button/__tests__/StyledButton.spec.d.ts +0 -0
  195. package/types/{src/components → components}/Button/index.d.ts +0 -0
  196. package/types/{src/components → components}/Card/StyledCard.d.ts +0 -1
  197. package/types/{src/components → components}/Card/__tests__/StyledCard.spec.d.ts +0 -0
  198. package/types/{src/components/Collapse → components/Card}/__tests__/index.spec.d.ts +0 -0
  199. package/types/{src/components → components}/Card/index.d.ts +0 -0
  200. package/types/{src/components → components}/Collapse/StyledCollapse.d.ts +12 -2
  201. package/types/{src/components → components}/Collapse/__tests__/StyledCollapse.spec.d.ts +0 -0
  202. package/types/{src/components/Drawer → components/Collapse}/__tests__/index.spec.d.ts +0 -0
  203. package/types/{src/components → components}/Collapse/index.d.ts +1 -5
  204. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +12 -0
  205. package/types/{src/components/Divider/__tests__/StyledDivider.spec.d.ts → components/ContentNavigator/__tests__/StyledContentNavigator.spec.d.ts} +0 -0
  206. package/types/{src/components/FAB → components/ContentNavigator}/__tests__/index.spec.d.ts +0 -0
  207. package/types/components/ContentNavigator/index.d.ts +33 -0
  208. package/types/{src/components → components}/Divider/StyledDivider.d.ts +0 -1
  209. package/types/{src/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts → components/Divider/__tests__/StyledDivider.spec.d.ts} +0 -0
  210. package/types/{src/components → components}/Divider/index.d.ts +0 -0
  211. package/types/{src/components → components}/Drawer/StyledDrawer.d.ts +0 -1
  212. package/types/{src/components/Icon → components/Drawer}/__tests__/index.spec.d.ts +0 -0
  213. package/types/{src/components → components}/Drawer/index.d.ts +0 -0
  214. package/types/{src/components → components}/FAB/ActionGroup/ActionItem.d.ts +0 -0
  215. package/types/{src/components → components}/FAB/ActionGroup/StyledActionGroup.d.ts +0 -1
  216. package/types/{src/components → components}/FAB/ActionGroup/StyledActionItem.d.ts +0 -1
  217. package/types/{src/components → components}/FAB/ActionGroup/__tests__/index.spec.d.ts +0 -0
  218. package/types/{src/components → components}/FAB/ActionGroup/index.d.ts +0 -0
  219. package/types/{src/components → components}/FAB/AnimatedFABIcon.d.ts +0 -0
  220. package/types/{src/components → components}/FAB/FAB.d.ts +0 -0
  221. package/types/{src/components → components}/FAB/StyledFAB.d.ts +0 -1
  222. package/types/{src/components/FAB/__tests__/StyledFAB.spec.d.ts → components/FAB/__tests__/AnimatedFABIcon.spec.d.ts} +0 -0
  223. package/types/{src/components/Progress/__tests__/index.spec.d.ts → components/FAB/__tests__/StyledFAB.spec.d.ts} +0 -0
  224. package/types/{src/components/Tabs → components/FAB}/__tests__/index.spec.d.ts +0 -0
  225. package/types/{src/components → components}/FAB/index.d.ts +0 -0
  226. package/types/{src/components → components}/Icon/HeroIcon/index.d.ts +1 -2
  227. package/types/components/Icon/IconList.d.ts +2 -0
  228. package/types/{src/components/Typography/Text → components/Icon}/__tests__/index.spec.d.ts +0 -0
  229. package/types/{src/components → components}/Icon/index.d.ts +1 -1
  230. package/types/components/Icon/utils.d.ts +2 -0
  231. package/types/{src/components → components}/Progress/ProgressBar.d.ts +0 -0
  232. package/types/{src/components → components}/Progress/ProgressCircle.d.ts +0 -0
  233. package/types/{src/components → components}/Progress/StyledProgressBar.d.ts +0 -1
  234. package/types/{src/components → components}/Progress/StyledProgressCircle.d.ts +0 -1
  235. package/types/{src/theme → components/Progress}/__tests__/index.spec.d.ts +0 -0
  236. package/types/{src/components → components}/Progress/index.d.ts +0 -0
  237. package/types/{src/components → components}/Progress/types.d.ts +0 -0
  238. package/types/components/Radio/Radio.d.ts +26 -0
  239. package/types/components/Radio/RadioGroup.d.ts +32 -0
  240. package/types/components/Radio/StyledRadio.d.ts +30 -0
  241. package/types/{src/components/Tabs/__tests__/ScrollableTab.spec.d.ts → components/Radio/__tests__/Radio.spec.d.ts} +0 -0
  242. package/types/{src/components/Tabs/__tests__/ScrollableTabs.spec.d.ts → components/Radio/__tests__/RadioGroup.spec.d.ts} +0 -0
  243. package/types/{src/components/Tag/__tests__/Tag.spec.d.ts → components/Radio/__tests__/StyledRadio.spec.d.ts} +0 -0
  244. package/types/components/Radio/index.d.ts +4 -0
  245. package/types/components/Radio/types.d.ts +5 -0
  246. package/types/components/SectionHeading/StyledHeading.d.ts +20 -0
  247. package/types/{src/components/Typography/Text/__tests__/StyledText.spec.d.ts → components/SectionHeading/__tests__/StyledHeading.spec.d.ts} +0 -0
  248. package/types/{src/utils/__tests__/scale.spec.d.ts → components/SectionHeading/__tests__/index.spec.d.ts} +0 -0
  249. package/types/components/SectionHeading/index.d.ts +39 -0
  250. package/types/components/Select/MultiSelect/Footer.d.ts +5 -0
  251. package/types/components/Select/MultiSelect/OptionList.d.ts +3 -0
  252. package/types/components/Select/MultiSelect/StyledMultiSelect.d.ts +26 -0
  253. package/types/components/Select/MultiSelect/__tests__/StyledMultiSelect.spec.d.ts +1 -0
  254. package/types/components/Select/MultiSelect/__tests__/index.spec.d.ts +1 -0
  255. package/types/components/Select/MultiSelect/index.d.ts +39 -0
  256. package/types/components/Select/MultiSelect/types.d.ts +5 -0
  257. package/types/components/Select/index.d.ts +5 -0
  258. package/types/components/Spinner/AnimatedSpinner.d.ts +2 -0
  259. package/types/components/Spinner/StyledSpinner.d.ts +30 -0
  260. package/types/components/Spinner/__tests__/AnimatedSpinner.spec.d.ts +1 -0
  261. package/types/components/Spinner/__tests__/StyledSpinner.spec.d.ts +1 -0
  262. package/types/components/Spinner/__tests__/index.spec.d.ts +1 -0
  263. package/types/components/Spinner/index.d.ts +10 -0
  264. package/types/components/Switch/StyledSwitch.d.ts +36 -0
  265. package/types/components/Switch/__tests__/StyledHeading.spec.d.ts +1 -0
  266. package/types/components/Switch/__tests__/index.spec.d.ts +1 -0
  267. package/types/components/Switch/index.d.ts +30 -0
  268. package/types/{src/components → components}/Tabs/ActiveTabIndicator.d.ts +0 -0
  269. package/types/{src/components → components}/Tabs/ScrollableTabs.d.ts +0 -0
  270. package/types/{src/components → components}/Tabs/StyledScrollableTabs.d.ts +0 -1
  271. package/types/{src/components → components}/Tabs/StyledTabs.d.ts +0 -1
  272. package/types/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +1 -0
  273. package/types/components/Tabs/__tests__/index.spec.d.ts +1 -0
  274. package/types/{src/components → components}/Tabs/index.d.ts +0 -0
  275. package/types/{src/components → components}/Tabs/utils.d.ts +0 -0
  276. package/types/{src/components → components}/Tag/StyledTag.d.ts +0 -1
  277. package/types/components/Tag/__tests__/Tag.spec.d.ts +1 -0
  278. package/types/{src/components → components}/Tag/index.d.ts +0 -0
  279. package/types/components/TextInput/StyledTextInput.d.ts +18 -0
  280. package/types/components/TextInput/__tests__/StyledTextInput.spec.d.ts +1 -0
  281. package/types/components/TextInput/__tests__/index.spec.d.ts +1 -0
  282. package/types/components/TextInput/index.d.ts +34 -0
  283. package/types/{src/components → components}/Typography/Text/StyledText.d.ts +0 -1
  284. package/types/components/Typography/Text/__tests__/StyledText.spec.d.ts +1 -0
  285. package/types/components/Typography/Text/__tests__/index.spec.d.ts +1 -0
  286. package/types/{src/components → components}/Typography/Text/index.d.ts +0 -0
  287. package/types/{src/components → components}/Typography/index.d.ts +0 -0
  288. package/types/{src/index.d.ts → index.d.ts} +10 -1
  289. package/types/{src/testHelpers → testHelpers}/renderWithTheme.d.ts +0 -0
  290. package/types/theme/__tests__/index.spec.d.ts +1 -0
  291. package/types/theme/components/alert.d.ts +23 -0
  292. package/types/{src/theme → theme}/components/avatar.d.ts +0 -0
  293. package/types/{src/theme → theme}/components/badge.d.ts +0 -0
  294. package/types/{src/theme → theme}/components/bottomNavigation.d.ts +0 -0
  295. package/types/theme/components/bottomSheet.d.ts +29 -0
  296. package/types/{src/theme → theme}/components/button.d.ts +0 -0
  297. package/types/{src/theme → theme}/components/card.d.ts +0 -0
  298. package/types/theme/components/contentNavigator.d.ts +7 -0
  299. package/types/{src/theme → theme}/components/divider.d.ts +0 -0
  300. package/types/{src/theme → theme}/components/drawer.d.ts +0 -0
  301. package/types/{src/theme → theme}/components/fab.d.ts +0 -0
  302. package/types/{src/theme → theme}/components/icon.d.ts +1 -0
  303. package/types/{src/theme → theme}/components/progress.d.ts +0 -0
  304. package/types/theme/components/radio.d.ts +25 -0
  305. package/types/theme/components/sectionHeading.d.ts +13 -0
  306. package/types/theme/components/select.d.ts +17 -0
  307. package/types/theme/components/spinner.d.ts +15 -0
  308. package/types/theme/components/switch.d.ts +32 -0
  309. package/types/{src/theme → theme}/components/tabs.d.ts +0 -0
  310. package/types/{src/theme → theme}/components/tag.d.ts +0 -0
  311. package/types/theme/components/textInput.d.ts +24 -0
  312. package/types/{src/theme → theme}/components/typography.d.ts +0 -0
  313. package/types/{src/theme → theme}/global/borders.d.ts +3 -0
  314. package/types/{src/theme → theme}/global/colors.d.ts +3 -0
  315. package/types/{src/theme → theme}/global/index.d.ts +3 -0
  316. package/types/{src/theme → theme}/global/scale.d.ts +0 -0
  317. package/types/{src/theme → theme}/global/space.d.ts +0 -0
  318. package/types/{src/theme → theme}/global/typography.d.ts +0 -0
  319. package/types/{src/theme → theme}/index.d.ts +23 -5
  320. package/types/{src/types.d.ts → types.d.ts} +0 -0
  321. package/types/utils/__tests__/scale.spec.d.ts +1 -0
  322. package/types/{src/utils → utils}/helpers.d.ts +0 -0
  323. package/types/{src/utils → utils}/hooks.d.ts +0 -0
  324. package/types/{src/utils → utils}/scale.d.ts +0 -0
  325. package/app.json +0 -8
  326. package/types/playground/components/Avatar.d.ts +0 -2
  327. package/types/playground/components/Badge.d.ts +0 -2
  328. package/types/playground/components/BottomNavigation.d.ts +0 -2
  329. package/types/playground/components/Button.d.ts +0 -2
  330. package/types/playground/components/Card.d.ts +0 -2
  331. package/types/playground/components/Collapse.d.ts +0 -2
  332. package/types/playground/components/Divider.d.ts +0 -2
  333. package/types/playground/components/Drawer.d.ts +0 -2
  334. package/types/playground/components/FAB.d.ts +0 -2
  335. package/types/playground/components/Icon.d.ts +0 -2
  336. package/types/playground/components/IconButton.d.ts +0 -2
  337. package/types/playground/components/Progress.d.ts +0 -2
  338. package/types/playground/components/Tabs.d.ts +0 -2
  339. package/types/playground/components/Tag.d.ts +0 -2
  340. package/types/playground/components/Typography.d.ts +0 -2
  341. package/types/playground/index.d.ts +0 -2
  342. package/types/src/components/Icon/IconList.d.ts +0 -2
  343. package/types/src/components/Icon/utils.d.ts +0 -2
  344. package/types/src/components/Tabs/ScrollableTab.d.ts +0 -3
  345. package/types/src/components/Tabs/StyledScrollableTab.d.ts +0 -61
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { View } from 'react-native';
3
2
  declare const StyledCard: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
4
3
  theme?: import("@emotion/react").Theme | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Animated, View } from 'react-native';
3
2
  declare const StyledWrapper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
4
3
  children?: import("react").ReactNode;
@@ -6,10 +5,21 @@ declare const StyledWrapper: import("@emotion/native").StyledComponent<Animated.
6
5
  theme?: import("@emotion/react").Theme | undefined;
7
6
  as?: import("react").ElementType<any> | undefined;
8
7
  }, {}, {}>;
8
+ /**
9
+ * Height need to be high enough to cover most scenario
10
+ * This container's purpose is only to help get correct children height and returns it
11
+ * to use with Animated.timing
12
+ */
13
+ declare const StyledHiddenWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
14
+ theme?: import("@emotion/react").Theme | undefined;
15
+ as?: import("react").ElementType<any> | undefined;
16
+ }, {}, {
17
+ ref?: import("react").Ref<View> | undefined;
18
+ }>;
9
19
  declare const StyledChildWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
10
20
  theme?: import("@emotion/react").Theme | undefined;
11
21
  as?: import("react").ElementType<any> | undefined;
12
22
  }, {}, {
13
23
  ref?: import("react").Ref<View> | undefined;
14
24
  }>;
15
- export { StyledWrapper, StyledChildWrapper };
25
+ export { StyledWrapper, StyledHiddenWrapper, StyledChildWrapper };
@@ -2,10 +2,6 @@ import { StyleProp, ViewProps, ViewStyle } from 'react-native';
2
2
  import { ReactNode } from 'react';
3
3
  interface CollapseProps extends ViewProps {
4
4
  children: ReactNode;
5
- /**
6
- * Whether the child components will remain mounted when the Collapse is closed.
7
- */
8
- keepChildrenMounted?: boolean;
9
5
  /**
10
6
  * Whether the component is open or closed.
11
7
  */
@@ -19,5 +15,5 @@ interface CollapseProps extends ViewProps {
19
15
  */
20
16
  testID?: string;
21
17
  }
22
- declare const Collapse: ({ open, keepChildrenMounted, children, testID, style, }: CollapseProps) => JSX.Element;
18
+ declare const Collapse: ({ open, children, testID, style }: CollapseProps) => JSX.Element;
23
19
  export default Collapse;
@@ -0,0 +1,12 @@
1
+ import { View } from 'react-native';
2
+ declare const Wrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ }, {}, {
6
+ ref?: import("react").Ref<View> | undefined;
7
+ }>;
8
+ declare const Value: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
9
+ theme?: import("@emotion/react").Theme | undefined;
10
+ as?: import("react").ElementType<any> | undefined;
11
+ }, {}, {}>;
12
+ export { Wrapper, Value };
@@ -0,0 +1,33 @@
1
+ import { StyleProp, ViewStyle } from 'react-native';
2
+ interface ContentNavigatorProps {
3
+ /**
4
+ * The navigator's content value.
5
+ */
6
+ value: number | string;
7
+ /**
8
+ * Handler to handle press event of previous icon.
9
+ */
10
+ onPreviousPress: () => void;
11
+ /**
12
+ * Handler to handle press event of next icon.
13
+ */
14
+ onNextPress: () => void;
15
+ /**
16
+ * Whether the previous icon is disabled.
17
+ */
18
+ previousDisabled?: boolean;
19
+ /**
20
+ * Whether the next icon is disabled.
21
+ */
22
+ nextDisabled?: boolean;
23
+ /**
24
+ * Additional style.
25
+ */
26
+ style?: StyleProp<ViewStyle>;
27
+ /**
28
+ * Testing id of the component.
29
+ */
30
+ testID?: string;
31
+ }
32
+ declare function ContentNavigator({ onPreviousPress, onNextPress, value, previousDisabled, nextDisabled, testID, style, }: ContentNavigatorProps): JSX.Element;
33
+ export default ContentNavigator;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { View } from 'react-native';
3
2
  declare type MarginSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
4
3
  declare const StyledDivider: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Animated, View } from 'react-native';
3
2
  declare const StyledContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
4
3
  theme?: import("@emotion/react").Theme | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Animated, View, ViewProps } from 'react-native';
3
2
  import { TextProps } from '../../Typography/Text';
4
3
  declare const StyledContainer: import("@emotion/native").StyledComponent<ViewProps & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TouchableOpacity, TouchableOpacityProps } from 'react-native';
3
2
  declare const StyledActionItem: import("@emotion/native").StyledComponent<TouchableOpacityProps & {
4
3
  theme?: import("@emotion/react").Theme | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Text, TextProps, TouchableHighlight, TouchableHighlightProps } from 'react-native';
3
2
  import { IconProps } from '../Icon';
4
3
  declare const StyledFABContainer: import("@emotion/native").StyledComponent<TouchableHighlightProps & {
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  declare type ThemeSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
3
- declare type ThemeIntent = 'text' | 'primary' | 'info' | 'danger' | 'success' | 'warning';
2
+ declare type ThemeIntent = 'text' | 'primary' | 'info' | 'danger' | 'success' | 'warning' | 'disabled-text';
4
3
  declare const StyledHeroIcon: import("@emotion/native").StyledComponent<import("react-native-vector-icons/Icon").IconProps & {
5
4
  theme?: import("@emotion/react").Theme | undefined;
6
5
  as?: import("react").ElementType<any> | undefined;
@@ -0,0 +1,2 @@
1
+ declare const IconList: readonly ["activate", "add-person", "adjustment", "alignment", "bank", "bell", "billing", "bookmark", "box-check", "box", "buildings", "cake", "calendar-clock", "calendar", "candy-box-menu", "carat-down-small", "carat-down", "carat-left", "carat-right", "carat-up", "circle-add", "circle-cancel", "circle-check", "circle-down", "circle-info", "circle-left", "circle-ok", "circle-pencil", "circle-question", "circle-remove", "circle-right", "circle-up", "circle-warning", "clock", "cloud-download", "cloud-upload", "cog", "coin", "contacts", "credit-card", "diamond", "direction-arrows", "directory", "document", "dollar-coin-shine", "double-buildings", "edit-template", "envelope", "expense", "eye-circle", "eye-invisible", "eye", "face-meh", "face-sad", "face-smiley", "feed", "feedbacks", "file-certified", "file-clone", "file-copy", "file-csv", "file-dispose", "file-doc", "file-excel", "file-export", "file-lock", "file-pdf", "file-powerpoint", "file-search", "file-secured", "file-sheets", "file-slide", "file-verified", "file-word", "file", "folder-user", "folder", "funnel-filter", "global-dollar", "globe", "graduation-cap", "graph", "happy-sun", "health-bag", "heart", "home", "image", "import", "incident-siren", "instapay", "list", "loading", "loading-2", "location", "lock", "media-content", "menu", "moneybag", "moon", "multiple-stars", "multiple-users", "node", "open-folder", "paperclip", "payment-summary", "pencil", "phone", "piggy-bank", "plane", "play-circle", "print", "raising-hands", "reply", "reschedule", "rostering", "save", "schedule", "search-person", "send", "speaker", "star-medal", "star", "steps-circle", "stopwatch", "suitcase", "survey", "swag", "switch", "tag", "target", "teams", "timesheet", "touch-id", "trash-bin", "unlock", "user", "video-1", "video-2", "activate-outlined", "add-person-outlined", "add-section-outlined", "add-time-outlined", "add", "adjustment-outlined", "alignment-2-outlined", "alignment-outlined", "all-caps", "arrow-down", "arrow-left", "arrow-right", "arrow-up", "at-sign", "bell-outlined", "billing-outlined", "body-outlined", "bold", "bookmark-outlined", "box-check-outlined", "box-outlined", "bullet-points", "cake-outlined", "calendar-dates-outlined", "calendar-star-outlined", "camera-outlined", "cancel", "checkmark", "circle-add-outlined", "circle-cancel-outlined", "circle-down-outlined", "circle-info-outlined", "circle-left-outlined", "circle-ok-outlined", "circle-question-outlined", "circle-remove-outlined", "circle-right-outlined", "circle-up-outlined", "circle-warning-outlined", "clock-2-outlined", "clock-outlined", "cog-outlined", "coin-outlined", "comment-outlined", "contacts-outlined", "credit-card-outlined", "direction-arrows-outlined", "directory-outlined", "document-outlined", "dollar-coin-shine-outlined", "dollar-sign", "double-buildings-outlined", "double-left-arrows", "double-right-arrows", "download-outlined", "edit-template-outlined", "email-outlined", "enter-arrow", "envelope-outlined", "expense-outlined", "external-link", "eye-invisible-outlined", "eye-outlined", "face-id", "face-meh-outlined", "face-open-smiley-outlined", "face-sad-outlined", "face-smiley-outlined", "feed-outlined", "file-certified-outlined", "file-clone-outlined", "file-copy-outlined", "file-dispose-outlined", "file-download-outlined", "file-export-outlined", "file-lock-outlined", "file-outlined", "file-search-outlined", "file-secured-outlined", "file-verified-outlined", "folder-outlined", "folder-user-outlined", "funnel-filter-outline", "graph-outlined", "happy-sun-outlined", "health-bag-outlined", "heart-outlined", "home-outlined", "image-outlined", "import-outlined", "instapay-outlined", "italic", "link-1", "link-2", "list-outlined", "location-outlined", "lock-outlined", "locked-file-outlined", "log-out", "media-content-outlined", "menu-close", "menu-expand", "menu-fold-outlined", "menu-unfold-outlined", "moneybag-outlined", "moon-outlined", "more-horizontal", "more-vertical", "multiple-folders-outlined", "multiple-users-outlined", "node-outlined", "number-points", "number", "payment-summary-outlined", "payslip-outlined", "pencil-outlined", "percentage", "phone-outlined", "piggy-bank-outlined", "plane-outlined", "play-circle-outlined", "print-outlined", "qr-code-outlined", "re-assign", "redeem", "refresh", "remove", "reply-outlined", "restart", "return-arrow", "rostering-outlined", "save-outlined", "schedule-outlined", "search-outlined", "send-outlined", "share-1", "share-2", "single-down-arrow", "single-left-arrow", "single-right-arrow", "single-up-arrow", "speaker-outlined", "star-outlined", "stopwatch-outlined", "strikethrough", "suitcase-outlined", "survey-outlined", "switch-outlined", "sync", "target-outlined", "timesheet-outlined", "transfer", "trash-bin-outlined", "unavailable", "underline", "unlock-outlined", "upload-outlined", "user-circle-outlined", "user-outlined", "user-rectangle-outlined", "video-1-outlined", "video-2-outlined", "wallet-outlined", "warning"];
2
+ export default IconList;
@@ -9,7 +9,7 @@ export interface IconProps {
9
9
  /**
10
10
  * Intent of the Icon.
11
11
  */
12
- intent?: 'text' | 'primary' | 'info' | 'danger' | 'success' | 'warning';
12
+ intent?: 'text' | 'primary' | 'info' | 'danger' | 'success' | 'warning' | 'disabled-text';
13
13
  /**
14
14
  * Size of the Icon.
15
15
  */
@@ -0,0 +1,2 @@
1
+ declare const isHeroIcon: (x: any) => x is "number" | "activate" | "add-person" | "adjustment" | "alignment" | "bank" | "bell" | "billing" | "bookmark" | "box-check" | "box" | "buildings" | "cake" | "calendar-clock" | "calendar" | "candy-box-menu" | "carat-down-small" | "carat-down" | "carat-left" | "carat-right" | "carat-up" | "circle-add" | "circle-cancel" | "circle-check" | "circle-down" | "circle-info" | "circle-left" | "circle-ok" | "circle-pencil" | "circle-question" | "circle-remove" | "circle-right" | "circle-up" | "circle-warning" | "clock" | "cloud-download" | "cloud-upload" | "cog" | "coin" | "contacts" | "credit-card" | "diamond" | "direction-arrows" | "directory" | "document" | "dollar-coin-shine" | "double-buildings" | "edit-template" | "envelope" | "expense" | "eye-circle" | "eye-invisible" | "eye" | "face-meh" | "face-sad" | "face-smiley" | "feed" | "feedbacks" | "file-certified" | "file-clone" | "file-copy" | "file-csv" | "file-dispose" | "file-doc" | "file-excel" | "file-export" | "file-lock" | "file-pdf" | "file-powerpoint" | "file-search" | "file-secured" | "file-sheets" | "file-slide" | "file-verified" | "file-word" | "file" | "folder-user" | "folder" | "funnel-filter" | "global-dollar" | "globe" | "graduation-cap" | "graph" | "happy-sun" | "health-bag" | "heart" | "home" | "image" | "import" | "incident-siren" | "instapay" | "list" | "loading" | "loading-2" | "location" | "lock" | "media-content" | "menu" | "moneybag" | "moon" | "multiple-stars" | "multiple-users" | "node" | "open-folder" | "paperclip" | "payment-summary" | "pencil" | "phone" | "piggy-bank" | "plane" | "play-circle" | "print" | "raising-hands" | "reply" | "reschedule" | "rostering" | "save" | "schedule" | "search-person" | "send" | "speaker" | "star-medal" | "star" | "steps-circle" | "stopwatch" | "suitcase" | "survey" | "swag" | "switch" | "tag" | "target" | "teams" | "timesheet" | "touch-id" | "trash-bin" | "unlock" | "user" | "video-1" | "video-2" | "activate-outlined" | "add-person-outlined" | "add-section-outlined" | "add-time-outlined" | "add" | "adjustment-outlined" | "alignment-2-outlined" | "alignment-outlined" | "all-caps" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-up" | "at-sign" | "bell-outlined" | "billing-outlined" | "body-outlined" | "bold" | "bookmark-outlined" | "box-check-outlined" | "box-outlined" | "bullet-points" | "cake-outlined" | "calendar-dates-outlined" | "calendar-star-outlined" | "camera-outlined" | "cancel" | "checkmark" | "circle-add-outlined" | "circle-cancel-outlined" | "circle-down-outlined" | "circle-info-outlined" | "circle-left-outlined" | "circle-ok-outlined" | "circle-question-outlined" | "circle-remove-outlined" | "circle-right-outlined" | "circle-up-outlined" | "circle-warning-outlined" | "clock-2-outlined" | "clock-outlined" | "cog-outlined" | "coin-outlined" | "comment-outlined" | "contacts-outlined" | "credit-card-outlined" | "direction-arrows-outlined" | "directory-outlined" | "document-outlined" | "dollar-coin-shine-outlined" | "dollar-sign" | "double-buildings-outlined" | "double-left-arrows" | "double-right-arrows" | "download-outlined" | "edit-template-outlined" | "email-outlined" | "enter-arrow" | "envelope-outlined" | "expense-outlined" | "external-link" | "eye-invisible-outlined" | "eye-outlined" | "face-id" | "face-meh-outlined" | "face-open-smiley-outlined" | "face-sad-outlined" | "face-smiley-outlined" | "feed-outlined" | "file-certified-outlined" | "file-clone-outlined" | "file-copy-outlined" | "file-dispose-outlined" | "file-download-outlined" | "file-export-outlined" | "file-lock-outlined" | "file-outlined" | "file-search-outlined" | "file-secured-outlined" | "file-verified-outlined" | "folder-outlined" | "folder-user-outlined" | "funnel-filter-outline" | "graph-outlined" | "happy-sun-outlined" | "health-bag-outlined" | "heart-outlined" | "home-outlined" | "image-outlined" | "import-outlined" | "instapay-outlined" | "italic" | "link-1" | "link-2" | "list-outlined" | "location-outlined" | "lock-outlined" | "locked-file-outlined" | "log-out" | "media-content-outlined" | "menu-close" | "menu-expand" | "menu-fold-outlined" | "menu-unfold-outlined" | "moneybag-outlined" | "moon-outlined" | "more-horizontal" | "more-vertical" | "multiple-folders-outlined" | "multiple-users-outlined" | "node-outlined" | "number-points" | "payment-summary-outlined" | "payslip-outlined" | "pencil-outlined" | "percentage" | "phone-outlined" | "piggy-bank-outlined" | "plane-outlined" | "play-circle-outlined" | "print-outlined" | "qr-code-outlined" | "re-assign" | "redeem" | "refresh" | "remove" | "reply-outlined" | "restart" | "return-arrow" | "rostering-outlined" | "save-outlined" | "schedule-outlined" | "search-outlined" | "send-outlined" | "share-1" | "share-2" | "single-down-arrow" | "single-left-arrow" | "single-right-arrow" | "single-up-arrow" | "speaker-outlined" | "star-outlined" | "stopwatch-outlined" | "strikethrough" | "suitcase-outlined" | "survey-outlined" | "switch-outlined" | "sync" | "target-outlined" | "timesheet-outlined" | "transfer" | "trash-bin-outlined" | "unavailable" | "underline" | "unlock-outlined" | "upload-outlined" | "user-circle-outlined" | "user-outlined" | "user-rectangle-outlined" | "video-1-outlined" | "video-2-outlined" | "wallet-outlined" | "warning";
2
+ export { isHeroIcon };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Animated, View, ViewProps } from 'react-native';
3
2
  import { ThemeIntent } from './types';
4
3
  declare const StyledWrapper: import("@emotion/native").StyledComponent<ViewProps & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { View, ViewProps } from 'react-native';
3
2
  import { ThemeIntent } from './types';
4
3
  declare const HalfCircleWrapper: import("@emotion/native").StyledComponent<ViewProps & {
@@ -0,0 +1,26 @@
1
+ import { ReactElement } from 'react';
2
+ import { StyleProp, ViewStyle } from 'react-native';
3
+ export interface RadioProps {
4
+ /**
5
+ * Whether the radio is checked.
6
+ */
7
+ checked?: boolean;
8
+ /**
9
+ * Press event handler.
10
+ */
11
+ onPress: () => void;
12
+ /**
13
+ * Radio text.
14
+ */
15
+ text: string;
16
+ /**
17
+ * Additional style.
18
+ */
19
+ style?: StyleProp<ViewStyle>;
20
+ /**
21
+ * Testing id of the component.
22
+ */
23
+ testID?: string;
24
+ }
25
+ declare const Radio: ({ text, checked, onPress, style, testID, }: RadioProps) => ReactElement;
26
+ export default Radio;
@@ -0,0 +1,32 @@
1
+ import { ReactElement } from 'react';
2
+ import { StyleProp, ViewStyle } from 'react-native';
3
+ import { OptionType } from './types';
4
+ export interface RadioGroupProps<T> {
5
+ /**
6
+ * An array of radio options to be selected.
7
+ */
8
+ options: OptionType<T>[];
9
+ /**
10
+ * Radio input value.
11
+ */
12
+ value: T;
13
+ /**
14
+ * Press event handler receiving selected radio's value.
15
+ */
16
+ onPress: (value: T) => void;
17
+ /**
18
+ * Used to extract a unique key for a given option at the specified index. Key is used for caching and as the react key to track item re-ordering.
19
+ * The default extractor checks option.key, and then falls back to using the index, like React does.
20
+ */
21
+ keyExtractor?: (option: OptionType<T>, index?: number) => string;
22
+ /**
23
+ * Additional style.
24
+ */
25
+ style?: StyleProp<ViewStyle>;
26
+ /**
27
+ * Testing id of the component.
28
+ */
29
+ testID?: string;
30
+ }
31
+ declare const RadioGroup: <T>({ value, onPress, options, keyExtractor, style, testID, }: RadioGroupProps<T>) => ReactElement;
32
+ export default RadioGroup;
@@ -0,0 +1,30 @@
1
+ import { View, TouchableOpacity } from 'react-native';
2
+ declare const Wrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ } & {
6
+ themeChecked: boolean;
7
+ }, {}, {
8
+ ref?: import("react").Ref<TouchableOpacity> | undefined;
9
+ }>;
10
+ declare const Circle: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
11
+ theme?: import("@emotion/react").Theme | undefined;
12
+ as?: import("react").ElementType<any> | undefined;
13
+ } & {
14
+ themeChecked: boolean;
15
+ }, {}, {
16
+ ref?: import("react").Ref<View> | undefined;
17
+ }>;
18
+ declare const InnerCircle: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
19
+ theme?: import("@emotion/react").Theme | undefined;
20
+ as?: import("react").ElementType<any> | undefined;
21
+ }, {}, {
22
+ ref?: import("react").Ref<View> | undefined;
23
+ }>;
24
+ declare const Spacer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
25
+ theme?: import("@emotion/react").Theme | undefined;
26
+ as?: import("react").ElementType<any> | undefined;
27
+ }, {}, {
28
+ ref?: import("react").Ref<View> | undefined;
29
+ }>;
30
+ export { Wrapper, Circle, InnerCircle, Spacer };
@@ -0,0 +1,4 @@
1
+ declare const CompoundRadio: {
2
+ readonly Group: <T>({ value, onPress, options, keyExtractor, style, testID, }: import("./RadioGroup").RadioGroupProps<T>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
3
+ };
4
+ export default CompoundRadio;
@@ -0,0 +1,5 @@
1
+ export declare type OptionType<T> = {
2
+ value: T;
3
+ text: string;
4
+ key?: string;
5
+ };
@@ -0,0 +1,20 @@
1
+ import { View } from 'react-native';
2
+ declare const StyledHeading: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ }, {}, {
6
+ ref?: import("react").Ref<View> | undefined;
7
+ }>;
8
+ declare const StyledIconWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
9
+ theme?: import("@emotion/react").Theme | undefined;
10
+ as?: import("react").ElementType<any> | undefined;
11
+ }, {}, {
12
+ ref?: import("react").Ref<View> | undefined;
13
+ }>;
14
+ declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
15
+ theme?: import("@emotion/react").Theme | undefined;
16
+ as?: import("react").ElementType<any> | undefined;
17
+ }, {}, {
18
+ ref?: import("react").Ref<View> | undefined;
19
+ }>;
20
+ export { StyledHeading, StyledIconWrapper, StyledWrapper };
@@ -0,0 +1,39 @@
1
+ import { ReactElement } from 'react';
2
+ import { StyleProp, ViewProps, ViewStyle } from 'react-native';
3
+ import { IconName } from '../Icon';
4
+ export interface SectionHeadingProps extends ViewProps {
5
+ /**
6
+ * Heading text.
7
+ */
8
+ text: string | ReactElement;
9
+ /**
10
+ * Name of the Icon.
11
+ */
12
+ icon?: IconName;
13
+ /**
14
+ * Right corner content
15
+ */
16
+ rightChildren?: ReactElement;
17
+ /**
18
+ * Size of the text.
19
+ */
20
+ fontSize?: 'small' | 'medium' | 'large' | 'xlarge';
21
+ /**
22
+ * Heading's font-weight.
23
+ */
24
+ fontWeight?: 'light' | 'regular' | 'semi-bold';
25
+ /**
26
+ * Visual intent color to apply to text.
27
+ */
28
+ intent?: 'subdued' | 'body' | 'primary';
29
+ /**
30
+ * Addditional style.
31
+ */
32
+ style?: StyleProp<ViewStyle>;
33
+ /**
34
+ * Testing id of the component.
35
+ */
36
+ testID?: string;
37
+ }
38
+ declare const SectionHeading: ({ icon, text, rightChildren, fontSize, intent, fontWeight, style, testID, }: SectionHeadingProps) => ReactElement;
39
+ export default SectionHeading;
@@ -0,0 +1,5 @@
1
+ declare function Footer({ label, onPress }: {
2
+ label: string;
3
+ onPress: () => void;
4
+ }): JSX.Element;
5
+ export default Footer;
@@ -0,0 +1,3 @@
1
+ import { MultiSelectProps } from '.';
2
+ declare function OptionList<T>({ value, options, onPress, keyExtractor, }: Pick<MultiSelectProps<T>, 'value' | 'options' | 'onPress' | 'keyExtractor'>): JSX.Element;
3
+ export default OptionList;
@@ -0,0 +1,26 @@
1
+ import { View, TouchableOpacity } from 'react-native';
2
+ declare const OptionWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ } & {
6
+ themeSelected: boolean;
7
+ }, {}, {
8
+ ref?: import("react").Ref<TouchableOpacity> | undefined;
9
+ }>;
10
+ declare const OptionListWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
11
+ theme?: import("@emotion/react").Theme | undefined;
12
+ as?: import("react").ElementType<any> | undefined;
13
+ }, {}, {
14
+ ref?: import("react").Ref<View> | undefined;
15
+ }>;
16
+ declare const Spacer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
17
+ theme?: import("@emotion/react").Theme | undefined;
18
+ as?: import("react").ElementType<any> | undefined;
19
+ }, {}, {
20
+ ref?: import("react").Ref<View> | undefined;
21
+ }>;
22
+ declare const FooterText: import("@emotion/native").StyledComponent<import("../../Typography/Text").TextProps & {
23
+ theme?: import("@emotion/react").Theme | undefined;
24
+ as?: import("react").ElementType<any> | undefined;
25
+ }, {}, {}>;
26
+ export { OptionWrapper, OptionListWrapper, Spacer, FooterText };
@@ -0,0 +1,39 @@
1
+ import { StyleProp, ViewStyle } from 'react-native';
2
+ import { OptionType } from './types';
3
+ export interface MultiSelectProps<T> {
4
+ /**
5
+ * An array of options to be selected.
6
+ */
7
+ options: OptionType<T>[];
8
+ /**
9
+ * Current selected value.
10
+ */
11
+ value: T[];
12
+ /**
13
+ * onPress event handler.
14
+ */
15
+ onPress: (value: T[]) => void;
16
+ /**
17
+ * Field label.
18
+ */
19
+ label: string;
20
+ /**
21
+ * Footer label.
22
+ */
23
+ footerLabel: string;
24
+ /**
25
+ * Used to extract a unique key for a given option at the specified index. Key is used for caching and as the react key to track item re-ordering.
26
+ * The default extractor checks option.key, and then falls back to using the index, like React does.
27
+ */
28
+ keyExtractor?: (option: OptionType<T>, index?: number) => string;
29
+ /**
30
+ * Additional style.
31
+ */
32
+ style?: StyleProp<ViewStyle>;
33
+ /**
34
+ * Testing id of the component.
35
+ */
36
+ testID?: string;
37
+ }
38
+ declare function MultiSelect<T>({ options, value, testID, style, label, footerLabel, onPress, }: MultiSelectProps<T>): JSX.Element;
39
+ export default MultiSelect;
@@ -0,0 +1,5 @@
1
+ export declare type OptionType<T> = {
2
+ value: T;
3
+ text: string;
4
+ key?: string;
5
+ };
@@ -0,0 +1,5 @@
1
+ import MultiSelect from './MultiSelect';
2
+ declare const CompoundSelect: {
3
+ readonly Multi: typeof MultiSelect;
4
+ };
5
+ export default CompoundSelect;
@@ -0,0 +1,2 @@
1
+ declare const AnimatedSpinner: () => JSX.Element;
2
+ export { AnimatedSpinner };
@@ -0,0 +1,30 @@
1
+ import { View, ViewProps } from 'react-native';
2
+ declare const StyledView: import("@emotion/native").StyledComponent<ViewProps & {
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ }, {}, {
6
+ ref?: import("react").Ref<View> | undefined;
7
+ }>;
8
+ declare const StyledSpinnerContainer: import("@emotion/native").StyledComponent<ViewProps & {
9
+ theme?: import("@emotion/react").Theme | undefined;
10
+ as?: import("react").ElementType<any> | undefined;
11
+ }, {}, {
12
+ ref?: import("react").Ref<View> | undefined;
13
+ }>;
14
+ declare const StyledSpinnerRow: import("@emotion/native").StyledComponent<ViewProps & {
15
+ theme?: import("@emotion/react").Theme | undefined;
16
+ as?: import("react").ElementType<any> | undefined;
17
+ } & {
18
+ themePosition: 'top' | 'bottom';
19
+ }, {}, {
20
+ ref?: import("react").Ref<View> | undefined;
21
+ }>;
22
+ declare const StyledSpinnerDot: import("@emotion/native").StyledComponent<ViewProps & {
23
+ theme?: import("@emotion/react").Theme | undefined;
24
+ as?: import("react").ElementType<any> | undefined;
25
+ } & {
26
+ themePosition: 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
27
+ }, {}, {
28
+ ref?: import("react").Ref<View> | undefined;
29
+ }>;
30
+ export { StyledView, StyledSpinnerContainer, StyledSpinnerRow, StyledSpinnerDot, };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ import { ReactElement } from 'react';
2
+ import { ViewProps } from 'react-native';
3
+ interface SpinnerProps extends ViewProps {
4
+ /**
5
+ * Testing id of the component.
6
+ */
7
+ testID?: string;
8
+ }
9
+ declare const Spinner: ({ testID, ...nativeProps }: SpinnerProps) => ReactElement;
10
+ export default Spinner;