@hero-design/rn 7.4.0 → 7.6.1-alpha

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 (450) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/.turbo/turbo-build:types.log +1 -1
  3. package/.turbo/turbo-build:watch.log +1 -0
  4. package/.turbo/turbo-lint.log +2 -0
  5. package/.turbo/turbo-type-check.log +2 -7
  6. package/assets/fonts/hero-icons.ttf +0 -0
  7. package/{types/src → es}/components/Avatar/StyledAvatar.d.ts +0 -0
  8. package/{types/src → es}/components/Avatar/__tests__/StyledAvatar.spec.d.ts +0 -0
  9. package/{types/src → es}/components/Avatar/__tests__/index.spec.d.ts +0 -0
  10. package/{types/src → es}/components/Avatar/index.d.ts +0 -0
  11. package/{types/src → es}/components/Badge/Status.d.ts +0 -0
  12. package/{types/src → es}/components/Badge/StyledBadge.d.ts +0 -0
  13. package/{types/src → es}/components/Badge/__tests__/Badge.spec.d.ts +0 -0
  14. package/{types/src → es}/components/Badge/__tests__/Status.spec.d.ts +0 -0
  15. package/{types/src → es}/components/Badge/index.d.ts +0 -0
  16. package/{types/src → es}/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
  17. package/{types/src → es}/components/BottomNavigation/__tests__/index.spec.d.ts +0 -0
  18. package/{types/src → es}/components/BottomNavigation/index.d.ts +0 -0
  19. package/{types/src → es}/components/Button/IconButton.d.ts +0 -0
  20. package/{types/src/components/Button/LoadingIndicator → es/components/Button}/__tests__/index.spec.d.ts +0 -0
  21. package/es/components/Button/index.d.ts +4 -0
  22. package/{types/src → es}/components/Card/StyledCard.d.ts +0 -0
  23. package/{types/src → es}/components/Card/__tests__/StyledCard.spec.d.ts +0 -0
  24. package/{types/src/components/Button → es/components/Card}/__tests__/index.spec.d.ts +0 -0
  25. package/{types/src → es}/components/Card/index.d.ts +0 -0
  26. package/{types/src → es}/components/Collapse/StyledCollapse.d.ts +0 -0
  27. package/{types/src → es}/components/Collapse/__tests__/StyledCollapse.spec.d.ts +0 -0
  28. package/{types/src/components/Card → es/components/Collapse}/__tests__/index.spec.d.ts +0 -0
  29. package/{types/src → es}/components/Collapse/index.d.ts +0 -0
  30. package/{types/src → es}/components/Divider/StyledDivider.d.ts +0 -0
  31. package/{types/src → es}/components/Divider/__tests__/StyledDivider.spec.d.ts +0 -0
  32. package/{types/src → es}/components/Divider/index.d.ts +0 -0
  33. package/{types/src → es}/components/Drawer/StyledDrawer.d.ts +0 -0
  34. package/{types/src/components/Collapse → es/components/Drawer}/__tests__/index.spec.d.ts +0 -0
  35. package/{types/src → es}/components/Drawer/index.d.ts +0 -0
  36. package/{types/src → es}/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
  37. package/{types/src → es}/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
  38. package/{types/src → es}/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
  39. package/{types/src → es}/components/FAB/ActionGroup/__tests__/index.spec.d.ts +0 -0
  40. package/{types/src → es}/components/FAB/ActionGroup/index.d.ts +0 -0
  41. package/{types/src → es}/components/FAB/AnimatedFABIcon.d.ts +0 -0
  42. package/{types/src → es}/components/FAB/FAB.d.ts +0 -0
  43. package/{types/src → es}/components/FAB/StyledFAB.d.ts +0 -0
  44. package/{types/src → es}/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts +0 -0
  45. package/{types/src → es}/components/FAB/__tests__/StyledFAB.spec.d.ts +0 -0
  46. package/{types/src/components/Drawer → es/components/FAB}/__tests__/index.spec.d.ts +0 -0
  47. package/{types/src → es}/components/FAB/index.d.ts +0 -0
  48. package/es/components/Icon/HeroIcon/index.d.ts +13 -0
  49. package/{types/src → es}/components/Icon/IconList.d.ts +0 -0
  50. package/{types/src/components/FAB → es/components/Icon}/__tests__/index.spec.d.ts +0 -0
  51. package/{types/src → es}/components/Icon/index.d.ts +0 -0
  52. package/{types/src → es}/components/Icon/utils.d.ts +1 -1
  53. package/{types/src → es}/components/Progress/ProgressBar.d.ts +0 -0
  54. package/{types/src → es}/components/Progress/ProgressCircle.d.ts +0 -0
  55. package/{types/src → es}/components/Progress/StyledProgressBar.d.ts +0 -0
  56. package/{types/src → es}/components/Progress/StyledProgressCircle.d.ts +0 -0
  57. package/{types/src → es}/components/Progress/index.d.ts +0 -0
  58. package/{types/src → es}/components/Progress/types.d.ts +0 -0
  59. package/{types/src → es}/components/Tabs/ActiveTabIndicator.d.ts +0 -0
  60. package/{types/src → es}/components/Tabs/ScrollableTabs.d.ts +0 -0
  61. package/{types/src → es}/components/Tabs/StyledScrollableTabs.d.ts +0 -0
  62. package/{types/src → es}/components/Tabs/StyledTabs.d.ts +0 -0
  63. package/{types/src → es}/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +0 -0
  64. package/{types/src/components/Icon → es/components/Tabs}/__tests__/index.spec.d.ts +0 -0
  65. package/{types/src → es}/components/Tabs/index.d.ts +0 -0
  66. package/{types/src → es}/components/Tabs/utils.d.ts +0 -0
  67. package/{types/src → es}/components/Tag/StyledTag.d.ts +0 -0
  68. package/{types/src → es}/components/Tag/__tests__/Tag.spec.d.ts +0 -0
  69. package/{types/src → es}/components/Tag/index.d.ts +0 -0
  70. package/{types/src → es}/components/Typography/Text/StyledText.d.ts +0 -0
  71. package/{types/src → es}/components/Typography/Text/__tests__/StyledText.spec.d.ts +0 -0
  72. package/{types/src/components/Progress → es/components/Typography/Text}/__tests__/index.spec.d.ts +0 -0
  73. package/{types/src → es}/components/Typography/Text/index.d.ts +0 -0
  74. package/{types/src → es}/components/Typography/index.d.ts +0 -0
  75. package/{types/src → es}/index.d.ts +0 -0
  76. package/es/index.js +1499 -3212
  77. package/{types/src/components/Tabs → es/theme}/__tests__/index.spec.d.ts +0 -0
  78. package/{types/src → es}/theme/components/avatar.d.ts +0 -0
  79. package/{types/src → es}/theme/components/badge.d.ts +0 -0
  80. package/{types/src → es}/theme/components/bottomNavigation.d.ts +0 -0
  81. package/{types/src → es}/theme/components/card.d.ts +0 -0
  82. package/{types/src → es}/theme/components/divider.d.ts +0 -0
  83. package/{types/src → es}/theme/components/drawer.d.ts +0 -0
  84. package/{types/src → es}/theme/components/fab.d.ts +0 -0
  85. package/{types/src → es}/theme/components/icon.d.ts +0 -0
  86. package/{types/src → es}/theme/components/progress.d.ts +0 -0
  87. package/{types/src → es}/theme/components/tabs.d.ts +0 -0
  88. package/{types/src → es}/theme/components/tag.d.ts +0 -0
  89. package/{types/src → es}/theme/components/typography.d.ts +0 -0
  90. package/{types/src → es}/theme/global/borders.d.ts +0 -0
  91. package/{types/src → es}/theme/global/colors.d.ts +1 -3
  92. package/{types/src → es}/theme/global/index.d.ts +1 -3
  93. package/{types/src → es}/theme/global/scale.d.ts +0 -0
  94. package/{types/src → es}/theme/global/space.d.ts +0 -0
  95. package/{types/src → es}/theme/global/typography.d.ts +0 -0
  96. package/{types/src → es}/theme/index.d.ts +0 -2
  97. package/{types/src → es}/types.d.ts +0 -0
  98. package/{types/src → es}/utils/__tests__/scale.spec.d.ts +0 -0
  99. package/{types/src → es}/utils/helpers.d.ts +0 -0
  100. package/{types/src → es}/utils/hooks.d.ts +0 -0
  101. package/{types/src → es}/utils/scale.d.ts +0 -0
  102. package/lib/assets/fonts/hero-icons.ttf +0 -0
  103. package/lib/components/Avatar/StyledAvatar.d.ts +46 -0
  104. package/{types/src/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.d.ts → lib/components/Avatar/__tests__/StyledAvatar.spec.d.ts} +0 -0
  105. package/{types/src/components/Typography/Text → lib/components/Avatar}/__tests__/index.spec.d.ts +0 -0
  106. package/lib/components/Avatar/index.d.ts +25 -0
  107. package/lib/components/Badge/Status.d.ts +24 -0
  108. package/lib/components/Badge/StyledBadge.d.ts +28 -0
  109. package/{types/src/components/Button/__tests__/Button.spec.d.ts → lib/components/Badge/__tests__/Badge.spec.d.ts} +0 -0
  110. package/{types/src/components/Button/__tests__/IconButton.spec.d.ts → lib/components/Badge/__tests__/Status.spec.d.ts} +0 -0
  111. package/lib/components/Badge/index.d.ts +32 -0
  112. package/lib/components/BottomNavigation/StyledBottomNavigation.d.ts +52 -0
  113. package/{types/src/theme → lib/components/BottomNavigation}/__tests__/index.spec.d.ts +0 -0
  114. package/lib/components/BottomNavigation/index.d.ts +45 -0
  115. package/lib/components/Button/IconButton.d.ts +34 -0
  116. package/{types/src/components/Button/__tests__/StyledButton.spec.d.ts → lib/components/Button/__tests__/index.spec.d.ts} +0 -0
  117. package/lib/components/Button/index.d.ts +4 -0
  118. package/lib/components/Card/StyledCard.d.ts +17 -0
  119. package/lib/components/Card/__tests__/StyledCard.spec.d.ts +1 -0
  120. package/lib/components/Card/__tests__/index.spec.d.ts +1 -0
  121. package/lib/components/Card/index.d.ts +22 -0
  122. package/lib/components/Collapse/StyledCollapse.d.ts +15 -0
  123. package/lib/components/Collapse/__tests__/StyledCollapse.spec.d.ts +1 -0
  124. package/lib/components/Collapse/__tests__/index.spec.d.ts +1 -0
  125. package/lib/components/Collapse/index.d.ts +23 -0
  126. package/lib/components/Divider/StyledDivider.d.ts +13 -0
  127. package/lib/components/Divider/__tests__/StyledDivider.spec.d.ts +1 -0
  128. package/lib/components/Divider/index.d.ts +21 -0
  129. package/lib/components/Drawer/StyledDrawer.d.ts +25 -0
  130. package/lib/components/Drawer/__tests__/index.spec.d.ts +1 -0
  131. package/lib/components/Drawer/index.d.ts +25 -0
  132. package/lib/components/FAB/ActionGroup/ActionItem.d.ts +12 -0
  133. package/lib/components/FAB/ActionGroup/StyledActionGroup.d.ts +30 -0
  134. package/lib/components/FAB/ActionGroup/StyledActionItem.d.ts +13 -0
  135. package/lib/components/FAB/ActionGroup/__tests__/index.spec.d.ts +1 -0
  136. package/lib/components/FAB/ActionGroup/index.d.ts +34 -0
  137. package/lib/components/FAB/AnimatedFABIcon.d.ts +6 -0
  138. package/lib/components/FAB/FAB.d.ts +34 -0
  139. package/lib/components/FAB/StyledFAB.d.ts +20 -0
  140. package/lib/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts +1 -0
  141. package/lib/components/FAB/__tests__/StyledFAB.spec.d.ts +1 -0
  142. package/lib/components/FAB/__tests__/index.spec.d.ts +1 -0
  143. package/lib/components/FAB/index.d.ts +4 -0
  144. package/lib/components/Icon/HeroIcon/index.d.ts +13 -0
  145. package/lib/components/Icon/IconList.d.ts +2 -0
  146. package/lib/components/Icon/__tests__/index.spec.d.ts +1 -0
  147. package/lib/components/Icon/index.d.ts +27 -0
  148. package/lib/components/Icon/utils.d.ts +2 -0
  149. package/lib/components/Progress/ProgressBar.d.ts +18 -0
  150. package/lib/components/Progress/ProgressCircle.d.ts +18 -0
  151. package/lib/components/Progress/StyledProgressBar.d.ts +18 -0
  152. package/lib/components/Progress/StyledProgressCircle.d.ts +38 -0
  153. package/lib/components/Progress/index.d.ts +5 -0
  154. package/lib/components/Progress/types.d.ts +1 -0
  155. package/lib/components/Tabs/ActiveTabIndicator.d.ts +8 -0
  156. package/lib/components/Tabs/ScrollableTabs.d.ts +3 -0
  157. package/lib/components/Tabs/StyledScrollableTabs.d.ts +61 -0
  158. package/lib/components/Tabs/StyledTabs.d.ts +55 -0
  159. package/lib/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +1 -0
  160. package/lib/components/Tabs/__tests__/index.spec.d.ts +1 -0
  161. package/lib/components/Tabs/index.d.ts +54 -0
  162. package/lib/components/Tabs/utils.d.ts +2 -0
  163. package/lib/components/Tag/StyledTag.d.ts +20 -0
  164. package/lib/components/Tag/__tests__/Tag.spec.d.ts +1 -0
  165. package/lib/components/Tag/index.d.ts +21 -0
  166. package/lib/components/Typography/Text/StyledText.d.ts +13 -0
  167. package/lib/components/Typography/Text/__tests__/StyledText.spec.d.ts +1 -0
  168. package/lib/components/Typography/Text/__tests__/index.spec.d.ts +1 -0
  169. package/lib/components/Typography/Text/index.d.ts +30 -0
  170. package/lib/components/Typography/index.d.ts +6 -0
  171. package/lib/index.d.ts +19 -0
  172. package/lib/index.js +1635 -3345
  173. package/lib/theme/__tests__/index.spec.d.ts +1 -0
  174. package/lib/theme/components/avatar.d.ts +32 -0
  175. package/lib/theme/components/badge.d.ts +29 -0
  176. package/lib/theme/components/bottomNavigation.d.ts +23 -0
  177. package/lib/theme/components/card.d.ts +10 -0
  178. package/lib/theme/components/divider.d.ts +17 -0
  179. package/lib/theme/components/drawer.d.ts +21 -0
  180. package/lib/theme/components/fab.d.ts +51 -0
  181. package/lib/theme/components/icon.d.ts +19 -0
  182. package/lib/theme/components/progress.d.ts +21 -0
  183. package/lib/theme/components/tabs.d.ts +27 -0
  184. package/lib/theme/components/tag.d.ts +30 -0
  185. package/lib/theme/components/typography.d.ts +26 -0
  186. package/lib/theme/global/borders.d.ts +11 -0
  187. package/lib/theme/global/colors.d.ts +29 -0
  188. package/lib/theme/global/index.d.ts +39 -0
  189. package/lib/theme/global/scale.d.ts +9 -0
  190. package/lib/theme/global/space.d.ts +13 -0
  191. package/lib/theme/global/typography.d.ts +21 -0
  192. package/lib/theme/index.d.ts +33 -0
  193. package/lib/types.d.ts +5 -0
  194. package/lib/utils/__tests__/scale.spec.d.ts +1 -0
  195. package/lib/utils/helpers.d.ts +2 -0
  196. package/lib/utils/hooks.d.ts +1 -0
  197. package/lib/utils/scale.d.ts +3 -0
  198. package/package.json +2 -3
  199. package/playground/package.json +3 -3
  200. package/playground/src/Alert.tsx +80 -0
  201. package/playground/src/App.tsx +12 -0
  202. package/playground/src/ContentNavigator.tsx +3 -10
  203. package/playground/src/MultipleThemes.tsx +34 -0
  204. package/playground/src/Select.tsx +32 -0
  205. package/playground/src/Switch.tsx +80 -0
  206. package/rollup.config.js +7 -1
  207. package/src/components/Alert/StyledAlert.tsx +48 -0
  208. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +686 -0
  209. package/src/components/Alert/__tests__/index.spec.tsx +83 -0
  210. package/src/components/Alert/index.tsx +109 -0
  211. package/src/components/BottomSheet/Header.tsx +1 -1
  212. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +8 -8
  213. package/src/components/BottomSheet/index.tsx +6 -0
  214. package/src/components/Icon/HeroIcon/selection.json +1 -1
  215. package/src/components/Icon/IconList.ts +2 -0
  216. package/src/components/Radio/RadioGroup.tsx +31 -7
  217. package/src/components/Radio/types.ts +1 -0
  218. package/src/components/SectionHeading/StyledHeading.tsx +5 -5
  219. package/src/components/SectionHeading/__tests__/{StyledHeading.tsx → StyledHeading.spec.tsx} +0 -0
  220. package/src/components/SectionHeading/__tests__/__snapshots__/{StyledHeading.tsx.snap → StyledHeading.spec.tsx.snap} +0 -0
  221. package/src/components/Select/MultiSelect/Footer.tsx +15 -0
  222. package/src/components/Select/MultiSelect/OptionList.tsx +76 -0
  223. package/src/components/Select/MultiSelect/StyledMultiSelect.tsx +30 -0
  224. package/src/components/Select/MultiSelect/__tests__/StyledMultiSelect.spec.tsx +49 -0
  225. package/src/components/Select/MultiSelect/__tests__/__snapshots__/StyledMultiSelect.spec.tsx.snap +108 -0
  226. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +1630 -0
  227. package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +94 -0
  228. package/src/components/Select/MultiSelect/index.tsx +103 -0
  229. package/src/components/Select/MultiSelect/types.ts +1 -0
  230. package/src/components/Select/index.tsx +5 -0
  231. package/src/components/Switch/StyledSwitch.tsx +50 -0
  232. package/src/components/Switch/__tests__/StyledHeading.spec.tsx +42 -0
  233. package/src/components/Switch/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +74 -0
  234. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +129 -0
  235. package/src/components/Switch/__tests__/index.spec.tsx +24 -0
  236. package/src/components/Switch/index.tsx +87 -0
  237. package/src/components/TextInput/StyledTextInput.tsx +2 -6
  238. package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +1 -7
  239. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +1 -22
  240. package/src/components/TextInput/__tests__/index.spec.tsx +2 -1
  241. package/src/components/TextInput/index.tsx +19 -6
  242. package/src/index.ts +7 -2
  243. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +80 -1
  244. package/src/theme/components/alert.ts +32 -0
  245. package/src/theme/components/sectionHeading.ts +18 -0
  246. package/src/theme/components/select.ts +23 -0
  247. package/src/theme/components/switch.ts +50 -0
  248. package/src/theme/components/textInput.ts +1 -1
  249. package/src/theme/global/colors.ts +2 -0
  250. package/src/theme/index.ts +30 -4
  251. package/types/components/Alert/StyledAlert.d.ts +37 -0
  252. package/types/components/Alert/__tests__/index.spec.d.ts +1 -0
  253. package/types/components/Alert/index.d.ts +42 -0
  254. package/types/components/Avatar/StyledAvatar.d.ts +0 -0
  255. package/types/components/Avatar/__tests__/StyledAvatar.spec.d.ts +0 -0
  256. package/types/components/Avatar/__tests__/index.spec.d.ts +0 -0
  257. package/types/components/Avatar/index.d.ts +0 -0
  258. package/types/components/Badge/Status.d.ts +0 -0
  259. package/types/components/Badge/StyledBadge.d.ts +0 -0
  260. package/types/components/Badge/__tests__/Badge.spec.d.ts +0 -0
  261. package/types/components/Badge/__tests__/Status.spec.d.ts +0 -0
  262. package/types/components/Badge/index.d.ts +0 -0
  263. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
  264. package/types/components/BottomNavigation/__tests__/index.spec.d.ts +0 -0
  265. package/types/components/BottomNavigation/index.d.ts +0 -0
  266. package/types/components/BottomSheet/Footer.d.ts +0 -0
  267. package/types/components/BottomSheet/Header.d.ts +0 -0
  268. package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -0
  269. package/types/components/BottomSheet/__tests__/index.spec.d.ts +0 -0
  270. package/types/components/BottomSheet/index.d.ts +5 -1
  271. package/types/components/Button/Button.d.ts +0 -0
  272. package/types/components/Button/IconButton.d.ts +0 -0
  273. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
  274. package/types/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.d.ts +0 -0
  275. package/types/components/Button/LoadingIndicator/__tests__/index.spec.d.ts +0 -0
  276. package/types/components/Button/LoadingIndicator/index.d.ts +0 -0
  277. package/types/components/Button/StyledButton.d.ts +0 -0
  278. package/types/components/Button/__tests__/Button.spec.d.ts +0 -0
  279. package/types/components/Button/__tests__/IconButton.spec.d.ts +0 -0
  280. package/types/components/Button/__tests__/StyledButton.spec.d.ts +0 -0
  281. package/types/components/Button/index.d.ts +0 -0
  282. package/types/components/Card/StyledCard.d.ts +0 -0
  283. package/types/components/Card/__tests__/StyledCard.spec.d.ts +0 -0
  284. package/types/components/Card/__tests__/index.spec.d.ts +0 -0
  285. package/types/components/Card/index.d.ts +0 -0
  286. package/types/components/Checkbox/StyledCheckbox.d.ts +8 -0
  287. package/types/components/Checkbox/__tests__/StyledCheckbox.spec.d.ts +1 -0
  288. package/types/components/Checkbox/__tests__/index.spec.d.ts +1 -0
  289. package/types/components/Checkbox/index.d.ts +25 -0
  290. package/types/components/Collapse/StyledCollapse.d.ts +0 -0
  291. package/types/components/Collapse/__tests__/StyledCollapse.spec.d.ts +0 -0
  292. package/types/components/Collapse/__tests__/index.spec.d.ts +0 -0
  293. package/types/components/Collapse/index.d.ts +0 -0
  294. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -0
  295. package/types/components/ContentNavigator/__tests__/StyledContentNavigator.spec.d.ts +0 -0
  296. package/types/components/ContentNavigator/__tests__/index.spec.d.ts +0 -0
  297. package/types/components/ContentNavigator/index.d.ts +0 -0
  298. package/types/components/Divider/StyledDivider.d.ts +0 -0
  299. package/types/components/Divider/__tests__/StyledDivider.spec.d.ts +0 -0
  300. package/types/components/Divider/index.d.ts +0 -0
  301. package/types/components/Drawer/StyledDrawer.d.ts +0 -0
  302. package/types/components/Drawer/__tests__/index.spec.d.ts +0 -0
  303. package/types/components/Drawer/index.d.ts +0 -0
  304. package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
  305. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
  306. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
  307. package/types/components/FAB/ActionGroup/__tests__/index.spec.d.ts +0 -0
  308. package/types/components/FAB/ActionGroup/index.d.ts +0 -0
  309. package/types/components/FAB/AnimatedFABIcon.d.ts +0 -0
  310. package/types/components/FAB/FAB.d.ts +0 -0
  311. package/types/components/FAB/StyledFAB.d.ts +0 -0
  312. package/types/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts +0 -0
  313. package/types/components/FAB/__tests__/StyledFAB.spec.d.ts +0 -0
  314. package/types/components/FAB/__tests__/index.spec.d.ts +0 -0
  315. package/types/components/FAB/index.d.ts +0 -0
  316. package/types/components/Icon/HeroIcon/index.d.ts +0 -0
  317. package/types/components/Icon/IconList.d.ts +1 -1
  318. package/types/components/Icon/__tests__/index.spec.d.ts +0 -0
  319. package/types/components/Icon/index.d.ts +0 -0
  320. package/types/components/Icon/utils.d.ts +1 -1
  321. package/types/components/Progress/ProgressBar.d.ts +0 -0
  322. package/types/components/Progress/ProgressCircle.d.ts +0 -0
  323. package/types/components/Progress/StyledProgressBar.d.ts +0 -0
  324. package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
  325. package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
  326. package/types/components/Progress/index.d.ts +0 -0
  327. package/types/components/Progress/types.d.ts +0 -0
  328. package/types/components/Radio/Radio.d.ts +0 -0
  329. package/types/components/Radio/RadioGroup.d.ts +11 -8
  330. package/types/components/Radio/StyledRadio.d.ts +0 -0
  331. package/types/components/Radio/__tests__/Radio.spec.d.ts +0 -0
  332. package/types/components/Radio/__tests__/RadioGroup.spec.d.ts +0 -0
  333. package/types/components/Radio/__tests__/StyledRadio.spec.d.ts +0 -0
  334. package/types/components/Radio/index.d.ts +1 -1
  335. package/types/components/Radio/types.d.ts +5 -0
  336. package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
  337. package/types/components/SectionHeading/__tests__/StyledHeading.d.ts +0 -0
  338. package/types/components/SectionHeading/__tests__/StyledHeading.spec.d.ts +1 -0
  339. package/types/components/SectionHeading/__tests__/index.spec.d.ts +0 -0
  340. package/types/components/SectionHeading/index.d.ts +0 -0
  341. package/types/components/Select/MultiSelect/Footer.d.ts +5 -0
  342. package/types/components/Select/MultiSelect/OptionList.d.ts +3 -0
  343. package/types/components/Select/MultiSelect/StyledMultiSelect.d.ts +26 -0
  344. package/types/components/Select/MultiSelect/__tests__/StyledMultiSelect.spec.d.ts +1 -0
  345. package/types/components/Select/MultiSelect/__tests__/index.spec.d.ts +1 -0
  346. package/types/components/Select/MultiSelect/index.d.ts +39 -0
  347. package/types/components/Select/MultiSelect/types.d.ts +5 -0
  348. package/types/components/Select/index.d.ts +5 -0
  349. package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
  350. package/types/components/Spinner/StyledSpinner.d.ts +0 -0
  351. package/types/components/Spinner/__tests__/AnimatedSpinner.spec.d.ts +0 -0
  352. package/types/components/Spinner/__tests__/StyledSpinner.spec.d.ts +0 -0
  353. package/types/components/Spinner/__tests__/index.spec.d.ts +0 -0
  354. package/types/components/Spinner/index.d.ts +0 -0
  355. package/types/components/Switch/StyledSwitch.d.ts +36 -0
  356. package/types/components/Switch/__tests__/StyledHeading.spec.d.ts +1 -0
  357. package/types/components/Switch/__tests__/index.spec.d.ts +1 -0
  358. package/types/components/Switch/index.d.ts +30 -0
  359. package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
  360. package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
  361. package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -0
  362. package/types/components/Tabs/StyledTabs.d.ts +0 -0
  363. package/types/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +0 -0
  364. package/types/components/Tabs/__tests__/index.spec.d.ts +0 -0
  365. package/types/components/Tabs/index.d.ts +0 -0
  366. package/types/components/Tabs/utils.d.ts +0 -0
  367. package/types/components/Tag/StyledTag.d.ts +0 -0
  368. package/types/components/Tag/__tests__/Tag.spec.d.ts +0 -0
  369. package/types/components/Tag/index.d.ts +0 -0
  370. package/types/components/TextInput/StyledTextInput.d.ts +1 -5
  371. package/types/components/TextInput/__tests__/StyledTextInput.spec.d.ts +0 -0
  372. package/types/components/TextInput/__tests__/index.spec.d.ts +0 -0
  373. package/types/components/TextInput/index.d.ts +13 -5
  374. package/types/components/Typography/Text/StyledText.d.ts +0 -0
  375. package/types/components/Typography/Text/__tests__/StyledText.spec.d.ts +0 -0
  376. package/types/components/Typography/Text/__tests__/index.spec.d.ts +0 -0
  377. package/types/components/Typography/Text/index.d.ts +0 -0
  378. package/types/components/Typography/index.d.ts +0 -0
  379. package/types/index.d.ts +5 -3
  380. package/types/testHelpers/renderWithTheme.d.ts +0 -0
  381. package/types/theme/__tests__/index.spec.d.ts +0 -0
  382. package/types/theme/components/alert.d.ts +23 -0
  383. package/types/theme/components/avatar.d.ts +0 -0
  384. package/types/theme/components/badge.d.ts +0 -0
  385. package/types/theme/components/bottomNavigation.d.ts +0 -0
  386. package/types/theme/components/bottomSheet.d.ts +0 -0
  387. package/types/theme/components/button.d.ts +0 -0
  388. package/types/theme/components/card.d.ts +0 -0
  389. package/types/theme/components/checkbox.d.ts +21 -0
  390. package/types/theme/components/contentNavigator.d.ts +0 -0
  391. package/types/theme/components/divider.d.ts +0 -0
  392. package/types/theme/components/drawer.d.ts +0 -0
  393. package/types/theme/components/fab.d.ts +0 -0
  394. package/types/theme/components/icon.d.ts +0 -0
  395. package/types/theme/components/progress.d.ts +0 -0
  396. package/types/theme/components/radio.d.ts +0 -0
  397. package/types/theme/components/sectionHeading.d.ts +13 -0
  398. package/types/theme/components/select.d.ts +17 -0
  399. package/types/theme/components/spinner.d.ts +0 -0
  400. package/types/theme/components/switch.d.ts +32 -0
  401. package/types/theme/components/tabs.d.ts +0 -0
  402. package/types/theme/components/tag.d.ts +0 -0
  403. package/types/theme/components/textInput.d.ts +1 -1
  404. package/types/theme/components/typography.d.ts +0 -0
  405. package/types/theme/global/borders.d.ts +0 -0
  406. package/types/theme/global/colors.d.ts +2 -0
  407. package/types/theme/global/index.d.ts +2 -0
  408. package/types/theme/global/scale.d.ts +0 -0
  409. package/types/theme/global/space.d.ts +0 -0
  410. package/types/theme/global/typography.d.ts +0 -0
  411. package/types/theme/index.d.ts +20 -3
  412. package/types/types.d.ts +0 -0
  413. package/types/utils/__tests__/scale.spec.d.ts +0 -0
  414. package/types/utils/helpers.d.ts +0 -0
  415. package/types/utils/hooks.d.ts +0 -0
  416. package/types/utils/scale.d.ts +0 -0
  417. package/.expo/README.md +0 -15
  418. package/.expo/packager-info.json +0 -10
  419. package/.expo/prebuild/cached-packages.json +0 -4
  420. package/.expo/settings.json +0 -10
  421. package/.expo/xcodebuild-error.log +0 -2
  422. package/.expo/xcodebuild.log +0 -11199
  423. package/.turbo/turbo-publish:npm.log +0 -0
  424. package/.turbo/turbo-test.log +0 -131
  425. package/playground/src/Button.tsx~origin_master +0 -170
  426. package/playground/src/emotion.d.ts +0 -7
  427. package/types/playground/components/Avatar.d.ts +0 -2
  428. package/types/playground/components/Badge.d.ts +0 -2
  429. package/types/playground/components/BottomNavigation.d.ts +0 -2
  430. package/types/playground/components/Button.d.ts +0 -2
  431. package/types/playground/components/Card.d.ts +0 -2
  432. package/types/playground/components/Collapse.d.ts +0 -2
  433. package/types/playground/components/Divider.d.ts +0 -2
  434. package/types/playground/components/Drawer.d.ts +0 -2
  435. package/types/playground/components/FAB.d.ts +0 -2
  436. package/types/playground/components/Icon.d.ts +0 -2
  437. package/types/playground/components/IconButton.d.ts +0 -2
  438. package/types/playground/components/Progress.d.ts +0 -2
  439. package/types/playground/components/Tabs.d.ts +0 -2
  440. package/types/playground/components/Tag.d.ts +0 -2
  441. package/types/playground/components/Typography.d.ts +0 -2
  442. package/types/playground/index.d.ts +0 -2
  443. package/types/src/components/Button/Button.d.ts +0 -57
  444. package/types/src/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -20
  445. package/types/src/components/Button/LoadingIndicator/index.d.ts +0 -26
  446. package/types/src/components/Button/StyledButton.d.ts +0 -40
  447. package/types/src/components/Button/index.d.ts +0 -8
  448. package/types/src/components/Icon/HeroIcon/index.d.ts +0 -13
  449. package/types/src/testHelpers/renderWithTheme.d.ts +0 -3
  450. package/types/src/theme/components/button.d.ts +0 -37
@@ -0,0 +1,30 @@
1
+ /// <reference types="react" />
2
+ import { Animated, View, ViewProps } from 'react-native';
3
+ import { TextProps } from '../../Typography/Text';
4
+ declare const StyledContainer: import("@emotion/native").StyledComponent<ViewProps & {
5
+ theme?: import("@emotion/react").Theme | undefined;
6
+ as?: import("react").ElementType<any> | undefined;
7
+ }, {}, {
8
+ ref?: import("react").Ref<View> | undefined;
9
+ }>;
10
+ declare const StyledActionGroupContainer: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
11
+ children?: import("react").ReactNode;
12
+ } & {
13
+ theme?: import("@emotion/react").Theme | undefined;
14
+ as?: import("react").ElementType<any> | undefined;
15
+ }, {}, {}>;
16
+ declare const StyledFAB: import("@emotion/native").StyledComponent<import("../FAB").FABProps & {
17
+ theme?: import("@emotion/react").Theme | undefined;
18
+ as?: import("react").ElementType<any> | undefined;
19
+ }, {}, {}>;
20
+ declare const StyledBackdrop: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
21
+ children?: import("react").ReactNode;
22
+ } & {
23
+ theme?: import("@emotion/react").Theme | undefined;
24
+ as?: import("react").ElementType<any> | undefined;
25
+ }, {}, {}>;
26
+ declare const StyledHeaderText: import("@emotion/native").StyledComponent<TextProps & {
27
+ theme?: import("@emotion/react").Theme | undefined;
28
+ as?: import("react").ElementType<any> | undefined;
29
+ }, {}, {}>;
30
+ export { StyledHeaderText, StyledBackdrop, StyledContainer, StyledActionGroupContainer, StyledFAB, };
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { TouchableOpacity, TouchableOpacityProps } from 'react-native';
3
+ declare const StyledActionItem: import("@emotion/native").StyledComponent<TouchableOpacityProps & {
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ as?: import("react").ElementType<any> | undefined;
6
+ }, {}, {
7
+ ref?: import("react").Ref<TouchableOpacity> | undefined;
8
+ }>;
9
+ declare const StyledActionItemText: import("@emotion/native").StyledComponent<import("../../Typography/Text").TextProps & {
10
+ theme?: import("@emotion/react").Theme | undefined;
11
+ as?: import("react").ElementType<any> | undefined;
12
+ } & TouchableOpacityProps, {}, {}>;
13
+ export { StyledActionItem, StyledActionItemText };
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-native/extend-expect';
@@ -0,0 +1,34 @@
1
+ import { StyleProp, ViewStyle } from 'react-native';
2
+ import { ActionItemProps } from './ActionItem';
3
+ export interface ActionGroupProps {
4
+ /**
5
+ * Title of the action group header.
6
+ */
7
+ headerTitle?: string;
8
+ /**
9
+ * This function is called on pressing the FAB button.
10
+ * */
11
+ onPress?: () => void;
12
+ /**
13
+ * Specify if the FAB button is in active state and the action group is shown.
14
+ * */
15
+ active?: boolean;
16
+ /**
17
+ * Title of the floating action button
18
+ */
19
+ fabTitle?: string;
20
+ /**
21
+ * Additional style.
22
+ */
23
+ style?: StyleProp<ViewStyle>;
24
+ /**
25
+ * Action items of the action group.
26
+ * */
27
+ items?: Array<ActionItemProps>;
28
+ /**
29
+ * Testing id of the component.
30
+ */
31
+ testID?: string;
32
+ }
33
+ declare const ActionGroup: ({ headerTitle, onPress, active, style, items, testID, fabTitle, }: ActionGroupProps) => JSX.Element;
34
+ export default ActionGroup;
@@ -0,0 +1,6 @@
1
+ import { IconProps } from '../Icon';
2
+ declare type Props = {
3
+ active?: boolean;
4
+ } & IconProps;
5
+ declare const AnimatedFABIcon: ({ active, ...iconProps }: Props) => JSX.Element;
6
+ export { AnimatedFABIcon };
@@ -0,0 +1,34 @@
1
+ import { StyleProp, ViewStyle } from 'react-native';
2
+ import { IconName } from '../Icon';
3
+ export interface FABProps {
4
+ /**
5
+ * Name of the Icon.
6
+ */
7
+ icon: IconName;
8
+ /**
9
+ * title of the component.
10
+ */
11
+ title?: string;
12
+ /**
13
+ * This function is called on pressing the button.
14
+ */
15
+ onPress?: () => void;
16
+ /**
17
+ * Specify if the button is animated.
18
+ */
19
+ animated?: boolean;
20
+ /**
21
+ * Specify if the button is in active state. It only works if animated is true.
22
+ */
23
+ active?: boolean;
24
+ /**
25
+ * Additional style.
26
+ */
27
+ style?: StyleProp<ViewStyle>;
28
+ /**
29
+ * Testing id of the component.
30
+ */
31
+ testID?: string;
32
+ }
33
+ declare const FAB: ({ onPress, title, icon, animated, testID, active, style, }: FABProps) => JSX.Element;
34
+ export default FAB;
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import { Text, TextProps, TouchableHighlight, TouchableHighlightProps } from 'react-native';
3
+ import { IconProps } from '../Icon';
4
+ declare const StyledFABContainer: import("@emotion/native").StyledComponent<TouchableHighlightProps & {
5
+ theme?: import("@emotion/react").Theme | undefined;
6
+ as?: import("react").ElementType<any> | undefined;
7
+ }, {}, {
8
+ ref?: import("react").Ref<TouchableHighlight> | undefined;
9
+ }>;
10
+ declare const StyledFABIcon: import("@emotion/native").StyledComponent<IconProps & {
11
+ theme?: import("@emotion/react").Theme | undefined;
12
+ as?: import("react").ElementType<any> | undefined;
13
+ }, {}, {}>;
14
+ declare const StyledFABText: import("@emotion/native").StyledComponent<TextProps & {
15
+ theme?: import("@emotion/react").Theme | undefined;
16
+ as?: import("react").ElementType<any> | undefined;
17
+ }, {}, {
18
+ ref?: import("react").Ref<Text> | undefined;
19
+ }>;
20
+ export { StyledFABContainer, StyledFABIcon, StyledFABText };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ declare const _default: (({ onPress, title, icon, animated, testID, active, style, }: import("./FAB").FABProps) => JSX.Element) & {
2
+ ActionGroup: ({ headerTitle, onPress, active, style, items, testID, fabTitle, }: import("./ActionGroup").ActionGroupProps) => JSX.Element;
3
+ };
4
+ export default _default;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ declare type ThemeSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
3
+ declare type ThemeIntent = 'text' | 'primary' | 'info' | 'danger' | 'success' | 'warning';
4
+ declare const StyledHeroIcon: import("@emotion/native").StyledComponent<Pick<import("react-native-vector-icons/Icon").IconProps, "children" | "onLayout" | "onLongPress" | "onPress" | "onPressIn" | "onPressOut" | "style" | "testID" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "nativeID" | "allowFontScaling" | "ellipsizeMode" | "lineBreakMode" | "numberOfLines" | "onTextLayout" | "maxFontSizeMultiplier" | "adjustsFontSizeToFit" | "minimumFontScale" | "suppressHighlighting" | "selectable" | "selectionColor" | "textBreakStrategy" | "dataDetectorType" | "android_hyphenationFrequency" | "color" | "size" | "name"> & {
5
+ theme?: import("@emotion/react").Theme | undefined;
6
+ as?: import("react").ElementType<any> | undefined;
7
+ } & {
8
+ themeSize: ThemeSize;
9
+ themeIntent: ThemeIntent;
10
+ }, {}, {
11
+ ref?: import("react").Ref<import("react").Component<import("react-native-vector-icons/Icon").IconProps, any, any>> | undefined;
12
+ }>;
13
+ export default StyledHeroIcon;
@@ -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", "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", "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", "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", "survey-outlined", "switch-outlined", "sync", "target-outlined", "timesheet-outlined", "transfer", "trash-bin-outlined", "unavailable", "underline", "unlock-outlined", "upload-outlined", "user-outlined", "video-1-outlined", "video-2-outlined"];
2
+ export default IconList;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,27 @@
1
+ import { StyleProp, TextStyle } from 'react-native';
2
+ import IconList from './IconList';
3
+ export declare type IconName = typeof IconList[number];
4
+ export interface IconProps {
5
+ /**
6
+ * Name of the Icon.
7
+ */
8
+ icon: IconName;
9
+ /**
10
+ * Intent of the Icon.
11
+ */
12
+ intent?: 'text' | 'primary' | 'info' | 'danger' | 'success' | 'warning';
13
+ /**
14
+ * Size of the Icon.
15
+ */
16
+ size?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
17
+ /**
18
+ * Addditional style.
19
+ */
20
+ style?: StyleProp<TextStyle>;
21
+ /**
22
+ * Testing id of the component.
23
+ */
24
+ testID?: string;
25
+ }
26
+ declare const Icon: ({ icon, style, size, intent, testID, }: IconProps) => JSX.Element;
27
+ export default Icon;
@@ -0,0 +1,2 @@
1
+ declare const isHeroIcon: (x: any) => x is "number" | "menu" | "image" | "switch" | "bold" | "list" | "activate" | "add-person" | "adjustment" | "alignment" | "bank" | "bell" | "billing" | "bookmark" | "box-check" | "box" | "buildings" | "cake" | "calendar-clock" | "calendar" | "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" | "import" | "incident-siren" | "instapay" | "loading" | "loading-2" | "location" | "lock" | "media-content" | "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" | "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" | "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" | "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" | "survey-outlined" | "switch-outlined" | "sync" | "target-outlined" | "timesheet-outlined" | "transfer" | "trash-bin-outlined" | "unavailable" | "underline" | "unlock-outlined" | "upload-outlined" | "user-outlined" | "video-1-outlined" | "video-2-outlined";
2
+ export { isHeroIcon };
@@ -0,0 +1,18 @@
1
+ import { StyleProp, ViewStyle, ViewProps } from 'react-native';
2
+ export interface ProgressBarProps extends ViewProps {
3
+ /**
4
+ * The progress completion percentage: 0-100.
5
+ */
6
+ value: number;
7
+ /**
8
+ * Set intent for your progress.
9
+ */
10
+ intent?: 'primary' | 'success' | 'warning' | 'danger' | 'info';
11
+ /**
12
+ * Additional style.
13
+ */
14
+ style?: StyleProp<ViewStyle>;
15
+ testID?: string;
16
+ }
17
+ declare const ProgressBar: ({ value, intent, style, testID, ...nativeProps }: ProgressBarProps) => JSX.Element;
18
+ export default ProgressBar;
@@ -0,0 +1,18 @@
1
+ import { ViewProps, StyleProp, ViewStyle } from 'react-native';
2
+ export interface ProgressCircleProps extends ViewProps {
3
+ /**
4
+ * The progress completion percentage: 0-100.
5
+ */
6
+ value: number;
7
+ /**
8
+ * Set intent for your progress.
9
+ */
10
+ intent?: 'primary' | 'success' | 'warning' | 'danger' | 'info';
11
+ /**
12
+ * Additional style.
13
+ */
14
+ style?: StyleProp<ViewStyle>;
15
+ testID?: string;
16
+ }
17
+ declare const ProgressCircle: ({ value, intent, style, testID, ...nativeProps }: ProgressCircleProps) => JSX.Element;
18
+ export default ProgressCircle;
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import { Animated, View, ViewProps } from 'react-native';
3
+ import { ThemeIntent } from './types';
4
+ declare const StyledWrapper: import("@emotion/native").StyledComponent<ViewProps & {
5
+ theme?: import("@emotion/react").Theme | undefined;
6
+ as?: import("react").ElementType<any> | undefined;
7
+ }, {}, {
8
+ ref?: import("react").Ref<View> | undefined;
9
+ }>;
10
+ declare const StyledInner: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
11
+ children?: import("react").ReactNode;
12
+ } & {
13
+ theme?: import("@emotion/react").Theme | undefined;
14
+ as?: import("react").ElementType<any> | undefined;
15
+ } & {
16
+ themeIntent: ThemeIntent;
17
+ }, {}, {}>;
18
+ export { StyledWrapper, StyledInner };
@@ -0,0 +1,38 @@
1
+ /// <reference types="react" />
2
+ import { View, ViewProps } from 'react-native';
3
+ import { ThemeIntent } from './types';
4
+ declare const HalfCircleWrapper: import("@emotion/native").StyledComponent<ViewProps & {
5
+ theme?: import("@emotion/react").Theme | undefined;
6
+ as?: import("react").ElementType<any> | undefined;
7
+ }, {}, {
8
+ ref?: import("react").Ref<View> | undefined;
9
+ }>;
10
+ declare const HalfCircleInnerFG: import("@emotion/native").StyledComponent<ViewProps & {
11
+ theme?: import("@emotion/react").Theme | undefined;
12
+ as?: import("react").ElementType<any> | undefined;
13
+ } & {
14
+ themeIntent: ThemeIntent;
15
+ }, {}, {
16
+ ref?: import("react").Ref<View> | undefined;
17
+ }>;
18
+ declare const HalfCircleInnerBG: import("@emotion/native").StyledComponent<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 DonutCircle: import("@emotion/native").StyledComponent<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
+ declare const StrokeEnd: import("@emotion/native").StyledComponent<ViewProps & {
31
+ theme?: import("@emotion/react").Theme | undefined;
32
+ as?: import("react").ElementType<any> | undefined;
33
+ } & {
34
+ themeIntent: ThemeIntent;
35
+ }, {}, {
36
+ ref?: import("react").Ref<View> | undefined;
37
+ }>;
38
+ export { DonutCircle, HalfCircleWrapper, HalfCircleInnerFG, HalfCircleInnerBG, StrokeEnd, };
@@ -0,0 +1,5 @@
1
+ declare const Progress: {
2
+ readonly Circle: ({ value, intent, style, testID, ...nativeProps }: import("./ProgressCircle").ProgressCircleProps) => JSX.Element;
3
+ readonly Bar: ({ value, intent, style, testID, ...nativeProps }: import("./ProgressBar").ProgressBarProps) => JSX.Element;
4
+ };
5
+ export default Progress;
@@ -0,0 +1 @@
1
+ export declare type ThemeIntent = 'primary' | 'success' | 'warning' | 'danger' | 'info';
@@ -0,0 +1,8 @@
1
+ import { Animated } from 'react-native';
2
+ declare const ActiveTabIndicator: ({ scrollOffsetAnimatedValue, positionAnimatedValue, tabsLength, tabsWidth, }: {
3
+ scrollOffsetAnimatedValue: Animated.Value;
4
+ positionAnimatedValue: Animated.Value;
5
+ tabsLength: number;
6
+ tabsWidth: number;
7
+ }) => JSX.Element;
8
+ export default ActiveTabIndicator;
@@ -0,0 +1,3 @@
1
+ import { TabsProps } from '.';
2
+ declare const ScrollableTab: ({ onTabPress, selectedTabKey, tabs, containerStyle, barStyle, lazy, lazyPreloadDistance, }: TabsProps) => JSX.Element;
3
+ export default ScrollableTab;
@@ -0,0 +1,61 @@
1
+ /// <reference types="react" />
2
+ import { Animated, View } from 'react-native';
3
+ import PagerView from 'react-native-pager-view';
4
+ declare const TabScreen: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
5
+ theme?: import("@emotion/react").Theme | undefined;
6
+ as?: import("react").ElementType<any> | undefined;
7
+ }, {}, {
8
+ ref?: import("react").Ref<View> | undefined;
9
+ }>;
10
+ declare const TabContainer: 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 ContentWrapper: import("@emotion/native").StyledComponent<import("react-native-pager-view").PagerViewProps & {
17
+ theme?: import("@emotion/react").Theme | undefined;
18
+ as?: import("react").ElementType<any> | undefined;
19
+ }, {}, {
20
+ ref?: import("react").Ref<PagerView> | undefined;
21
+ }>;
22
+ declare const HeaderTabWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
23
+ theme?: import("@emotion/react").Theme | undefined;
24
+ as?: import("react").ElementType<any> | undefined;
25
+ } & {
26
+ themeInsets: {
27
+ top: number;
28
+ right: number;
29
+ bottom: number;
30
+ left: number;
31
+ };
32
+ }, {}, {
33
+ ref?: import("react").Ref<View> | undefined;
34
+ }>;
35
+ declare const HeaderTabItem: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
36
+ children?: import("react").ReactNode;
37
+ } & {
38
+ theme?: import("@emotion/react").Theme | undefined;
39
+ as?: import("react").ElementType<any> | undefined;
40
+ }, {}, {}>;
41
+ declare const HeaderTabItemOutlineWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
42
+ theme?: import("@emotion/react").Theme | undefined;
43
+ as?: import("react").ElementType<any> | undefined;
44
+ }, {}, {
45
+ ref?: import("react").Ref<View> | undefined;
46
+ }>;
47
+ declare const HeaderTabItemOutline: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
48
+ children?: import("react").ReactNode;
49
+ } & {
50
+ theme?: import("@emotion/react").Theme | undefined;
51
+ as?: import("react").ElementType<any> | undefined;
52
+ } & {
53
+ themeActive: boolean;
54
+ }, {}, {}>;
55
+ declare const HeaderTabItemWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
56
+ theme?: import("@emotion/react").Theme | undefined;
57
+ as?: import("react").ElementType<any> | undefined;
58
+ }, {}, {
59
+ ref?: import("react").Ref<View> | undefined;
60
+ }>;
61
+ export { HeaderTabItem, TabScreen, TabContainer, HeaderTabWrapper, ContentWrapper, HeaderTabItemOutlineWrapper, HeaderTabItemOutline, HeaderTabItemWrapper, };
@@ -0,0 +1,55 @@
1
+ /// <reference types="react" />
2
+ import { Animated, View } from 'react-native';
3
+ import PagerView from 'react-native-pager-view';
4
+ declare const TabContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
5
+ theme?: import("@emotion/react").Theme | undefined;
6
+ as?: import("react").ElementType<any> | undefined;
7
+ }, {}, {
8
+ ref?: import("react").Ref<View> | undefined;
9
+ }>;
10
+ declare const HeaderTabWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
11
+ theme?: import("@emotion/react").Theme | undefined;
12
+ as?: import("react").ElementType<any> | undefined;
13
+ } & {
14
+ themeInsets: {
15
+ top: number;
16
+ right: number;
17
+ bottom: number;
18
+ left: number;
19
+ };
20
+ }, {}, {
21
+ ref?: import("react").Ref<View> | undefined;
22
+ }>;
23
+ declare const HeaderTab: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
24
+ theme?: import("@emotion/react").Theme | undefined;
25
+ as?: import("react").ElementType<any> | undefined;
26
+ }, {}, {
27
+ ref?: import("react").Ref<View> | undefined;
28
+ }>;
29
+ declare const HeaderTabItem: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
30
+ theme?: import("@emotion/react").Theme | undefined;
31
+ as?: import("react").ElementType<any> | undefined;
32
+ }, {}, {
33
+ ref?: import("react").Ref<View> | undefined;
34
+ }>;
35
+ declare const ContentWrapper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native-pager-view").PagerViewProps & import("react").RefAttributes<PagerView>> & {
36
+ children?: import("react").ReactNode;
37
+ } & {
38
+ theme?: import("@emotion/react").Theme | undefined;
39
+ as?: import("react").ElementType<any> | undefined;
40
+ }, {}, {}>;
41
+ declare const TabScreen: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
42
+ theme?: import("@emotion/react").Theme | undefined;
43
+ as?: import("react").ElementType<any> | undefined;
44
+ }, {}, {
45
+ ref?: import("react").Ref<View> | undefined;
46
+ }>;
47
+ declare const StyledIndicator: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
48
+ children?: import("react").ReactNode;
49
+ } & {
50
+ theme?: import("@emotion/react").Theme | undefined;
51
+ as?: import("react").ElementType<any> | undefined;
52
+ } & {
53
+ themeWidth: number;
54
+ }, {}, {}>;
55
+ export { TabContainer, HeaderTabWrapper, HeaderTab, HeaderTabItem, ContentWrapper, TabScreen, StyledIndicator, };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,54 @@
1
+ import { ReactNode } from 'react';
2
+ import { StyleProp, ViewStyle, ViewProps } from 'react-native';
3
+ import { IconName } from '../Icon';
4
+ export declare type ItemType = string | IconName | ((props: {
5
+ color: string;
6
+ }) => ReactNode);
7
+ export declare type TabType = {
8
+ key: string;
9
+ activeItem: ItemType;
10
+ inactiveItem?: ItemType;
11
+ component: ReactNode;
12
+ testID?: string;
13
+ showBadge?: boolean;
14
+ };
15
+ export interface TabsProps extends ViewProps {
16
+ /**
17
+ * Callback which is called on tab press, receiving key of upcoming active Tab.
18
+ */
19
+ onTabPress: (key: string) => void;
20
+ /**
21
+ * Current selected tab key.
22
+ */
23
+ selectedTabKey: string;
24
+ /**
25
+ * List of Tabs to be rendered. Each Tab must have an unique key.
26
+ */
27
+ tabs: TabType[];
28
+ /**
29
+ * Style for the container of Tab.
30
+ */
31
+ containerStyle?: StyleProp<ViewStyle>;
32
+ /**
33
+ * Style for the tab navigation bar.
34
+ */
35
+ barStyle?: StyleProp<ViewStyle>;
36
+ /**
37
+ * Whether inactive screen should be removed and unmounted in React.
38
+ * Defaults value is `false`.
39
+ */
40
+ lazy?: boolean;
41
+ /**
42
+ * Only work when lazy is `true`. You can specify how many adjacent screens should be preloaded.
43
+ * Defaults value is `1`.
44
+ */
45
+ lazyPreloadDistance?: number;
46
+ /**
47
+ * Testing id of the component.
48
+ */
49
+ testID?: string;
50
+ }
51
+ declare const _default: (({ onTabPress, selectedTabKey, tabs, containerStyle, barStyle, lazy, lazyPreloadDistance, }: TabsProps) => JSX.Element) & {
52
+ Scroll: ({ onTabPress, selectedTabKey, tabs, containerStyle, barStyle, lazy, lazyPreloadDistance, }: TabsProps) => JSX.Element;
53
+ };
54
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { Animated } from 'react-native';
2
+ export declare const useAnimatedValueArray: (initialValues: number[]) => Animated.Value[];
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import { View, Text } from 'react-native';
3
+ declare type ThemeIntent = 'success' | 'warning' | 'danger' | 'info';
4
+ declare const StyledView: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
5
+ theme?: import("@emotion/react").Theme | undefined;
6
+ as?: import("react").ElementType<any> | undefined;
7
+ } & {
8
+ themeIntent: ThemeIntent;
9
+ }, {}, {
10
+ ref?: import("react").Ref<View> | undefined;
11
+ }>;
12
+ declare const StyledText: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
13
+ theme?: import("@emotion/react").Theme | undefined;
14
+ as?: import("react").ElementType<any> | undefined;
15
+ } & {
16
+ themeIntent: ThemeIntent;
17
+ }, {}, {
18
+ ref?: import("react").Ref<Text> | undefined;
19
+ }>;
20
+ export { StyledView, StyledText };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,21 @@
1
+ import { StyleProp, ViewStyle, ViewProps } from 'react-native';
2
+ interface TagProps extends ViewProps {
3
+ /**
4
+ * Content of the Tag.
5
+ */
6
+ content: string;
7
+ /**
8
+ * Visual intent color to apply to Tag.
9
+ */
10
+ intent?: 'success' | 'warning' | 'danger' | 'info';
11
+ /**
12
+ * Additional style.
13
+ */
14
+ style?: StyleProp<ViewStyle>;
15
+ /**
16
+ * Testing id of the component.
17
+ */
18
+ testID?: string;
19
+ }
20
+ declare const Tag: ({ content, intent, style, testID, ...nativeProps }: TagProps) => JSX.Element;
21
+ export default Tag;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { Text } from 'react-native';
3
+ declare const StyledText: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ as?: import("react").ElementType<any> | undefined;
6
+ } & {
7
+ themeFontSize: 'small' | 'medium' | 'large' | 'xlarge';
8
+ themeFontWeight: 'light' | 'regular' | 'semi-bold';
9
+ themeIntent: 'body' | 'subdued' | 'primary';
10
+ }, {}, {
11
+ ref?: import("react").Ref<Text> | undefined;
12
+ }>;
13
+ export { StyledText };