@hero-design/rn 7.6.1-alpha.0 → 7.8.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 (444) 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/.turbo/turbo-publish:npm.log +0 -0
  9. package/es/index.js +4528 -432
  10. package/lib/index.js +4616 -516
  11. package/package.json +6 -8
  12. package/rollup.config.js +1 -7
  13. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  14. package/src/components/Avatar/index.tsx +1 -1
  15. package/src/components/Button/Button.tsx +4 -2
  16. package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +7 -2
  17. package/src/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.tsx +2 -0
  18. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +40 -0
  19. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +242 -0
  20. package/src/components/Button/LoadingIndicator/__tests__/index.spec.tsx +2 -0
  21. package/src/components/Button/LoadingIndicator/index.tsx +3 -1
  22. package/src/components/Button/StyledButton.tsx +15 -2
  23. package/src/components/Button/__tests__/Button.spec.tsx +2 -0
  24. package/src/components/Button/__tests__/StyledButton.spec.tsx +12 -0
  25. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +314 -0
  26. package/src/components/Card/DataCard/StyledDataCard.tsx +20 -0
  27. package/src/components/Card/DataCard/__tests__/StyledDataCard.spec.tsx +24 -0
  28. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +97 -0
  29. package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +156 -0
  30. package/src/components/Card/DataCard/__tests__/index.spec.tsx +30 -0
  31. package/src/components/Card/DataCard/index.tsx +35 -0
  32. package/src/components/Card/index.tsx +7 -2
  33. package/src/components/Checkbox/StyledCheckbox.tsx +18 -0
  34. package/src/components/Checkbox/__tests__/StyledCheckbox.spec.tsx +10 -0
  35. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +31 -0
  36. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +63 -0
  37. package/src/components/Checkbox/__tests__/index.spec.tsx +24 -0
  38. package/src/components/Checkbox/index.tsx +58 -0
  39. package/src/components/Collapse/index.tsx +1 -1
  40. package/src/components/Icon/index.tsx +1 -1
  41. package/src/components/List/BasicListItem.tsx +98 -0
  42. package/src/components/List/ListItem.tsx +142 -0
  43. package/src/components/List/StyledBasicListItem.tsx +34 -0
  44. package/src/components/List/StyledListItem.tsx +82 -0
  45. package/src/components/List/__tests__/BasicListItem.spec.tsx +37 -0
  46. package/src/components/List/__tests__/ListItem.spec.tsx +110 -0
  47. package/src/components/List/__tests__/StyledBasicListItem.spec.tsx +24 -0
  48. package/src/components/List/__tests__/StyledListItem.spec.tsx +48 -0
  49. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +103 -0
  50. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +760 -0
  51. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +105 -0
  52. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +200 -0
  53. package/src/components/List/index.tsx +14 -0
  54. package/src/components/SectionHeading/index.tsx +1 -1
  55. package/src/components/Select/Footer.tsx +13 -0
  56. package/src/components/Select/MultiSelect/Option.tsx +25 -0
  57. package/src/components/Select/MultiSelect/OptionList.tsx +30 -63
  58. package/src/components/Select/MultiSelect/__tests__/Option.spec.tsx +16 -0
  59. package/src/components/Select/MultiSelect/__tests__/OptionList.spec.tsx +42 -0
  60. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +70 -0
  61. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +627 -0
  62. package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +6 -6
  63. package/src/components/Select/MultiSelect/index.tsx +8 -7
  64. package/src/components/Select/SingleSelect/Option.tsx +23 -0
  65. package/src/components/Select/SingleSelect/OptionList.tsx +43 -0
  66. package/src/components/Select/SingleSelect/__tests__/Option.spec.tsx +16 -0
  67. package/src/components/Select/SingleSelect/__tests__/OptionList.spec.tsx +42 -0
  68. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +56 -0
  69. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +571 -0
  70. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +1430 -0
  71. package/src/components/Select/SingleSelect/__tests__/index.spec.tsx +89 -0
  72. package/src/components/Select/SingleSelect/index.tsx +89 -0
  73. package/src/components/Select/{MultiSelect/StyledMultiSelect.tsx → StyledSelect.tsx} +1 -1
  74. package/src/components/Select/{MultiSelect/__tests__/StyledMultiSelect.spec.tsx → __tests__/StyledSelect.spec.tsx} +2 -2
  75. package/src/components/Select/{MultiSelect/__tests__/__snapshots__/StyledMultiSelect.spec.tsx.snap → __tests__/__snapshots__/StyledSelect.spec.tsx.snap} +0 -0
  76. package/src/components/Select/helpers.tsx +18 -0
  77. package/src/components/Select/index.tsx +4 -3
  78. package/src/components/Select/{MultiSelect/types.ts → types.ts} +0 -0
  79. package/src/components/Switch/index.tsx +1 -1
  80. package/src/components/Toast/StyledToast.tsx +65 -0
  81. package/src/components/Toast/Toast.tsx +123 -0
  82. package/src/components/Toast/ToastContainer.tsx +88 -0
  83. package/src/components/Toast/ToastContext.ts +25 -0
  84. package/src/components/Toast/ToastProvider.tsx +53 -0
  85. package/src/components/Toast/__tests__/Toast.spec.tsx +125 -0
  86. package/src/components/Toast/__tests__/ToastContainer.spec.tsx +107 -0
  87. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +655 -0
  88. package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +93 -0
  89. package/src/components/Toast/index.tsx +11 -0
  90. package/src/components/Toast/types.ts +70 -0
  91. package/src/components/Toolbar/StyledToolbar.tsx +42 -0
  92. package/src/components/Toolbar/ToolbarGroup.tsx +31 -0
  93. package/src/components/Toolbar/ToolbarItem.tsx +57 -0
  94. package/src/components/Toolbar/__tests__/ToolbarGroup.spec.tsx +32 -0
  95. package/src/components/Toolbar/__tests__/ToolbarItem.spec.tsx +57 -0
  96. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +391 -0
  97. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +355 -0
  98. package/src/components/Toolbar/index.tsx +18 -0
  99. package/src/components/Typography/Text/StyledText.tsx +8 -1
  100. package/src/components/Typography/Text/__tests__/StyledText.spec.tsx +5 -0
  101. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +110 -0
  102. package/src/components/Typography/Text/index.tsx +9 -2
  103. package/src/index.ts +8 -0
  104. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +119 -2
  105. package/src/theme/components/button.ts +2 -0
  106. package/src/theme/components/card.ts +8 -1
  107. package/src/theme/components/checkbox.ts +37 -0
  108. package/src/theme/components/list.ts +46 -0
  109. package/src/theme/components/toast.ts +33 -0
  110. package/src/theme/components/toolbar.ts +27 -0
  111. package/src/theme/components/typography.ts +4 -0
  112. package/src/theme/global/colors.ts +9 -2
  113. package/src/theme/global/space.ts +2 -0
  114. package/src/theme/index.ts +12 -0
  115. package/tsconfig.json +1 -2
  116. package/types/components/Alert/StyledAlert.d.ts +0 -0
  117. package/types/components/Alert/__tests__/index.spec.d.ts +0 -0
  118. package/types/components/Alert/index.d.ts +0 -0
  119. package/types/components/Avatar/index.d.ts +1 -1
  120. package/types/components/Button/Button.d.ts +2 -2
  121. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +1 -1
  122. package/types/components/Button/LoadingIndicator/index.d.ts +1 -1
  123. package/types/components/Button/StyledButton.d.ts +2 -2
  124. package/{es/components/Card/StyledCard.d.ts → types/components/Card/DataCard/StyledDataCard.d.ts} +5 -6
  125. package/{es/components/Avatar/__tests__/StyledAvatar.spec.d.ts → types/components/Card/DataCard/__tests__/StyledDataCard.spec.d.ts} +0 -0
  126. package/{es/components/Avatar → types/components/Card/DataCard}/__tests__/index.spec.d.ts +0 -0
  127. package/types/components/Card/DataCard/index.d.ts +22 -0
  128. package/types/components/Card/index.d.ts +7 -3
  129. package/types/components/Checkbox/StyledCheckbox.d.ts +0 -0
  130. package/types/components/Checkbox/__tests__/StyledCheckbox.spec.d.ts +0 -0
  131. package/types/components/Checkbox/__tests__/index.spec.d.ts +0 -0
  132. package/types/components/Checkbox/index.d.ts +1 -1
  133. package/types/components/Collapse/index.d.ts +1 -1
  134. package/types/components/Icon/index.d.ts +1 -1
  135. package/types/components/List/BasicListItem.d.ts +43 -0
  136. package/types/components/List/ListItem.d.ts +51 -0
  137. package/types/components/List/StyledBasicListItem.d.ts +29 -0
  138. package/types/components/List/StyledListItem.d.ts +51 -0
  139. package/{es/components/Badge/__tests__/Badge.spec.d.ts → types/components/List/__tests__/BasicListItem.spec.d.ts} +0 -0
  140. package/{es/components/Badge/__tests__/Status.spec.d.ts → types/components/List/__tests__/ListItem.spec.d.ts} +0 -0
  141. package/{es/components/BottomNavigation/__tests__/index.spec.d.ts → types/components/List/__tests__/StyledBasicListItem.spec.d.ts} +0 -0
  142. package/{es/components/Button/__tests__/index.spec.d.ts → types/components/List/__tests__/StyledListItem.spec.d.ts} +0 -0
  143. package/types/components/List/index.d.ts +8 -0
  144. package/types/components/Radio/types.d.ts +0 -0
  145. package/types/components/SectionHeading/__tests__/StyledHeading.spec.d.ts +0 -0
  146. package/types/components/SectionHeading/index.d.ts +1 -1
  147. package/types/components/Select/Footer.d.ts +5 -0
  148. package/types/components/Select/MultiSelect/Footer.d.ts +0 -0
  149. package/types/components/Select/MultiSelect/Option.d.ts +6 -0
  150. package/types/components/Select/MultiSelect/OptionList.d.ts +7 -1
  151. package/types/components/Select/MultiSelect/StyledMultiSelect.d.ts +0 -0
  152. package/{es/components/Card/__tests__/StyledCard.spec.d.ts → types/components/Select/MultiSelect/__tests__/Option.spec.d.ts} +0 -0
  153. package/{es/components/Card/__tests__/index.spec.d.ts → types/components/Select/MultiSelect/__tests__/OptionList.spec.d.ts} +0 -0
  154. package/types/components/Select/MultiSelect/__tests__/StyledMultiSelect.spec.d.ts +0 -0
  155. package/types/components/Select/MultiSelect/__tests__/index.spec.d.ts +0 -0
  156. package/types/components/Select/MultiSelect/index.d.ts +4 -4
  157. package/types/components/Select/MultiSelect/types.d.ts +0 -0
  158. package/types/components/Select/SingleSelect/Option.d.ts +6 -0
  159. package/types/components/Select/SingleSelect/OptionList.d.ts +9 -0
  160. package/{es/components/Collapse/__tests__/StyledCollapse.spec.d.ts → types/components/Select/SingleSelect/__tests__/Option.spec.d.ts} +0 -0
  161. package/{es/components/Collapse/__tests__/index.spec.d.ts → types/components/Select/SingleSelect/__tests__/OptionList.spec.d.ts} +0 -0
  162. package/{es/components/Drawer → types/components/Select/SingleSelect}/__tests__/index.spec.d.ts +0 -0
  163. package/types/components/Select/SingleSelect/index.d.ts +35 -0
  164. package/types/components/Select/StyledSelect.d.ts +26 -0
  165. package/{es/components/Divider/__tests__/StyledDivider.spec.d.ts → types/components/Select/__tests__/StyledSelect.spec.d.ts} +0 -0
  166. package/types/components/Select/helpers.d.ts +2 -0
  167. package/types/components/Select/index.d.ts +3 -3
  168. package/types/components/Select/types.d.ts +5 -0
  169. package/types/components/Switch/StyledSwitch.d.ts +0 -0
  170. package/types/components/Switch/__tests__/StyledHeading.spec.d.ts +0 -0
  171. package/types/components/Switch/__tests__/index.spec.d.ts +0 -0
  172. package/types/components/Switch/index.d.ts +1 -1
  173. package/types/components/Toast/StyledToast.d.ts +45 -0
  174. package/types/components/Toast/Toast.d.ts +3 -0
  175. package/types/components/Toast/ToastContainer.d.ts +5 -0
  176. package/types/components/Toast/ToastContext.d.ts +11 -0
  177. package/types/components/Toast/ToastProvider.d.ts +10 -0
  178. package/{es/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts → types/components/Toast/__tests__/Toast.spec.d.ts} +0 -0
  179. package/{es/components/FAB/__tests__/StyledFAB.spec.d.ts → types/components/Toast/__tests__/ToastContainer.spec.d.ts} +0 -0
  180. package/types/components/Toast/index.d.ts +8 -0
  181. package/types/components/Toast/types.d.ts +67 -0
  182. package/types/components/Toolbar/StyledToolbar.d.ts +22 -0
  183. package/types/components/Toolbar/ToolbarGroup.d.ts +13 -0
  184. package/types/components/Toolbar/ToolbarItem.d.ts +25 -0
  185. package/{es/components/FAB/__tests__/index.spec.d.ts → types/components/Toolbar/__tests__/ToolbarGroup.spec.d.ts} +0 -0
  186. package/{es/components/Icon/__tests__/index.spec.d.ts → types/components/Toolbar/__tests__/ToolbarItem.spec.d.ts} +0 -0
  187. package/types/components/Toolbar/index.d.ts +11 -0
  188. package/types/components/Typography/Text/StyledText.d.ts +1 -1
  189. package/types/components/Typography/Text/index.d.ts +2 -2
  190. package/types/index.d.ts +5 -1
  191. package/types/theme/components/alert.d.ts +0 -0
  192. package/types/theme/components/button.d.ts +2 -0
  193. package/types/theme/components/card.d.ts +7 -0
  194. package/types/theme/components/checkbox.d.ts +0 -0
  195. package/types/theme/components/list.d.ts +40 -0
  196. package/types/theme/components/sectionHeading.d.ts +0 -0
  197. package/types/theme/components/select.d.ts +0 -0
  198. package/types/theme/components/switch.d.ts +0 -0
  199. package/types/theme/components/toast.d.ts +24 -0
  200. package/types/theme/components/toolbar.d.ts +21 -0
  201. package/types/theme/components/typography.d.ts +4 -0
  202. package/types/theme/global/colors.d.ts +5 -0
  203. package/types/theme/global/index.d.ts +5 -0
  204. package/types/theme/global/space.d.ts +1 -0
  205. package/types/theme/index.d.ts +8 -0
  206. package/.turbo/turbo-build:types.log +0 -2
  207. package/.turbo/turbo-build:watch.log +0 -1
  208. package/.turbo/turbo-lint.log +0 -2
  209. package/.turbo/turbo-type-check.log +0 -2
  210. package/es/components/Avatar/StyledAvatar.d.ts +0 -46
  211. package/es/components/Avatar/index.d.ts +0 -25
  212. package/es/components/Badge/Status.d.ts +0 -24
  213. package/es/components/Badge/StyledBadge.d.ts +0 -28
  214. package/es/components/Badge/index.d.ts +0 -32
  215. package/es/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -52
  216. package/es/components/BottomNavigation/index.d.ts +0 -45
  217. package/es/components/Button/IconButton.d.ts +0 -34
  218. package/es/components/Button/index.d.ts +0 -4
  219. package/es/components/Card/index.d.ts +0 -22
  220. package/es/components/Collapse/StyledCollapse.d.ts +0 -15
  221. package/es/components/Collapse/index.d.ts +0 -23
  222. package/es/components/Divider/StyledDivider.d.ts +0 -13
  223. package/es/components/Divider/index.d.ts +0 -21
  224. package/es/components/Drawer/StyledDrawer.d.ts +0 -25
  225. package/es/components/Drawer/index.d.ts +0 -25
  226. package/es/components/FAB/ActionGroup/ActionItem.d.ts +0 -12
  227. package/es/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -30
  228. package/es/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -13
  229. package/es/components/FAB/ActionGroup/__tests__/index.spec.d.ts +0 -1
  230. package/es/components/FAB/ActionGroup/index.d.ts +0 -34
  231. package/es/components/FAB/AnimatedFABIcon.d.ts +0 -6
  232. package/es/components/FAB/FAB.d.ts +0 -34
  233. package/es/components/FAB/StyledFAB.d.ts +0 -20
  234. package/es/components/FAB/index.d.ts +0 -4
  235. package/es/components/Icon/HeroIcon/index.d.ts +0 -13
  236. package/es/components/Icon/IconList.d.ts +0 -2
  237. package/es/components/Icon/index.d.ts +0 -27
  238. package/es/components/Icon/utils.d.ts +0 -2
  239. package/es/components/Progress/ProgressBar.d.ts +0 -18
  240. package/es/components/Progress/ProgressCircle.d.ts +0 -18
  241. package/es/components/Progress/StyledProgressBar.d.ts +0 -18
  242. package/es/components/Progress/StyledProgressCircle.d.ts +0 -38
  243. package/es/components/Progress/index.d.ts +0 -5
  244. package/es/components/Progress/types.d.ts +0 -1
  245. package/es/components/Tabs/ActiveTabIndicator.d.ts +0 -8
  246. package/es/components/Tabs/ScrollableTabs.d.ts +0 -3
  247. package/es/components/Tabs/StyledScrollableTabs.d.ts +0 -61
  248. package/es/components/Tabs/StyledTabs.d.ts +0 -55
  249. package/es/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +0 -1
  250. package/es/components/Tabs/__tests__/index.spec.d.ts +0 -1
  251. package/es/components/Tabs/index.d.ts +0 -54
  252. package/es/components/Tabs/utils.d.ts +0 -2
  253. package/es/components/Tag/StyledTag.d.ts +0 -20
  254. package/es/components/Tag/__tests__/Tag.spec.d.ts +0 -1
  255. package/es/components/Tag/index.d.ts +0 -21
  256. package/es/components/Typography/Text/StyledText.d.ts +0 -13
  257. package/es/components/Typography/Text/__tests__/StyledText.spec.d.ts +0 -1
  258. package/es/components/Typography/Text/__tests__/index.spec.d.ts +0 -1
  259. package/es/components/Typography/Text/index.d.ts +0 -30
  260. package/es/components/Typography/index.d.ts +0 -6
  261. package/es/index.d.ts +0 -19
  262. package/es/theme/__tests__/index.spec.d.ts +0 -1
  263. package/es/theme/components/avatar.d.ts +0 -32
  264. package/es/theme/components/badge.d.ts +0 -29
  265. package/es/theme/components/bottomNavigation.d.ts +0 -23
  266. package/es/theme/components/card.d.ts +0 -10
  267. package/es/theme/components/divider.d.ts +0 -17
  268. package/es/theme/components/drawer.d.ts +0 -21
  269. package/es/theme/components/fab.d.ts +0 -51
  270. package/es/theme/components/icon.d.ts +0 -19
  271. package/es/theme/components/progress.d.ts +0 -21
  272. package/es/theme/components/tabs.d.ts +0 -27
  273. package/es/theme/components/tag.d.ts +0 -30
  274. package/es/theme/components/typography.d.ts +0 -26
  275. package/es/theme/global/borders.d.ts +0 -11
  276. package/es/theme/global/colors.d.ts +0 -29
  277. package/es/theme/global/index.d.ts +0 -39
  278. package/es/theme/global/scale.d.ts +0 -9
  279. package/es/theme/global/space.d.ts +0 -13
  280. package/es/theme/global/typography.d.ts +0 -21
  281. package/es/theme/index.d.ts +0 -33
  282. package/es/types.d.ts +0 -5
  283. package/es/utils/__tests__/scale.spec.d.ts +0 -1
  284. package/es/utils/helpers.d.ts +0 -2
  285. package/es/utils/hooks.d.ts +0 -1
  286. package/es/utils/scale.d.ts +0 -3
  287. package/lib/components/Avatar/StyledAvatar.d.ts +0 -46
  288. package/lib/components/Avatar/__tests__/StyledAvatar.spec.d.ts +0 -1
  289. package/lib/components/Avatar/__tests__/index.spec.d.ts +0 -1
  290. package/lib/components/Avatar/index.d.ts +0 -25
  291. package/lib/components/Badge/Status.d.ts +0 -24
  292. package/lib/components/Badge/StyledBadge.d.ts +0 -28
  293. package/lib/components/Badge/__tests__/Badge.spec.d.ts +0 -1
  294. package/lib/components/Badge/__tests__/Status.spec.d.ts +0 -1
  295. package/lib/components/Badge/index.d.ts +0 -32
  296. package/lib/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -52
  297. package/lib/components/BottomNavigation/__tests__/index.spec.d.ts +0 -1
  298. package/lib/components/BottomNavigation/index.d.ts +0 -45
  299. package/lib/components/Button/IconButton.d.ts +0 -34
  300. package/lib/components/Button/__tests__/index.spec.d.ts +0 -1
  301. package/lib/components/Button/index.d.ts +0 -4
  302. package/lib/components/Card/StyledCard.d.ts +0 -17
  303. package/lib/components/Card/__tests__/StyledCard.spec.d.ts +0 -1
  304. package/lib/components/Card/__tests__/index.spec.d.ts +0 -1
  305. package/lib/components/Card/index.d.ts +0 -22
  306. package/lib/components/Collapse/StyledCollapse.d.ts +0 -15
  307. package/lib/components/Collapse/__tests__/StyledCollapse.spec.d.ts +0 -1
  308. package/lib/components/Collapse/__tests__/index.spec.d.ts +0 -1
  309. package/lib/components/Collapse/index.d.ts +0 -23
  310. package/lib/components/Divider/StyledDivider.d.ts +0 -13
  311. package/lib/components/Divider/__tests__/StyledDivider.spec.d.ts +0 -1
  312. package/lib/components/Divider/index.d.ts +0 -21
  313. package/lib/components/Drawer/StyledDrawer.d.ts +0 -25
  314. package/lib/components/Drawer/__tests__/index.spec.d.ts +0 -1
  315. package/lib/components/Drawer/index.d.ts +0 -25
  316. package/lib/components/FAB/ActionGroup/ActionItem.d.ts +0 -12
  317. package/lib/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -30
  318. package/lib/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -13
  319. package/lib/components/FAB/ActionGroup/__tests__/index.spec.d.ts +0 -1
  320. package/lib/components/FAB/ActionGroup/index.d.ts +0 -34
  321. package/lib/components/FAB/AnimatedFABIcon.d.ts +0 -6
  322. package/lib/components/FAB/FAB.d.ts +0 -34
  323. package/lib/components/FAB/StyledFAB.d.ts +0 -20
  324. package/lib/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts +0 -1
  325. package/lib/components/FAB/__tests__/StyledFAB.spec.d.ts +0 -1
  326. package/lib/components/FAB/__tests__/index.spec.d.ts +0 -1
  327. package/lib/components/FAB/index.d.ts +0 -4
  328. package/lib/components/Icon/HeroIcon/index.d.ts +0 -13
  329. package/lib/components/Icon/IconList.d.ts +0 -2
  330. package/lib/components/Icon/__tests__/index.spec.d.ts +0 -1
  331. package/lib/components/Icon/index.d.ts +0 -27
  332. package/lib/components/Icon/utils.d.ts +0 -2
  333. package/lib/components/Progress/ProgressBar.d.ts +0 -18
  334. package/lib/components/Progress/ProgressCircle.d.ts +0 -18
  335. package/lib/components/Progress/StyledProgressBar.d.ts +0 -18
  336. package/lib/components/Progress/StyledProgressCircle.d.ts +0 -38
  337. package/lib/components/Progress/index.d.ts +0 -5
  338. package/lib/components/Progress/types.d.ts +0 -1
  339. package/lib/components/Tabs/ActiveTabIndicator.d.ts +0 -8
  340. package/lib/components/Tabs/ScrollableTabs.d.ts +0 -3
  341. package/lib/components/Tabs/StyledScrollableTabs.d.ts +0 -61
  342. package/lib/components/Tabs/StyledTabs.d.ts +0 -55
  343. package/lib/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +0 -1
  344. package/lib/components/Tabs/__tests__/index.spec.d.ts +0 -1
  345. package/lib/components/Tabs/index.d.ts +0 -54
  346. package/lib/components/Tabs/utils.d.ts +0 -2
  347. package/lib/components/Tag/StyledTag.d.ts +0 -20
  348. package/lib/components/Tag/__tests__/Tag.spec.d.ts +0 -1
  349. package/lib/components/Tag/index.d.ts +0 -21
  350. package/lib/components/Typography/Text/StyledText.d.ts +0 -13
  351. package/lib/components/Typography/Text/__tests__/StyledText.spec.d.ts +0 -1
  352. package/lib/components/Typography/Text/__tests__/index.spec.d.ts +0 -1
  353. package/lib/components/Typography/Text/index.d.ts +0 -30
  354. package/lib/components/Typography/index.d.ts +0 -6
  355. package/lib/index.d.ts +0 -19
  356. package/lib/theme/__tests__/index.spec.d.ts +0 -1
  357. package/lib/theme/components/avatar.d.ts +0 -32
  358. package/lib/theme/components/badge.d.ts +0 -29
  359. package/lib/theme/components/bottomNavigation.d.ts +0 -23
  360. package/lib/theme/components/card.d.ts +0 -10
  361. package/lib/theme/components/divider.d.ts +0 -17
  362. package/lib/theme/components/drawer.d.ts +0 -21
  363. package/lib/theme/components/fab.d.ts +0 -51
  364. package/lib/theme/components/icon.d.ts +0 -19
  365. package/lib/theme/components/progress.d.ts +0 -21
  366. package/lib/theme/components/tabs.d.ts +0 -27
  367. package/lib/theme/components/tag.d.ts +0 -30
  368. package/lib/theme/components/typography.d.ts +0 -26
  369. package/lib/theme/global/borders.d.ts +0 -11
  370. package/lib/theme/global/colors.d.ts +0 -29
  371. package/lib/theme/global/index.d.ts +0 -39
  372. package/lib/theme/global/scale.d.ts +0 -9
  373. package/lib/theme/global/space.d.ts +0 -13
  374. package/lib/theme/global/typography.d.ts +0 -21
  375. package/lib/theme/index.d.ts +0 -33
  376. package/lib/types.d.ts +0 -5
  377. package/lib/utils/__tests__/scale.spec.d.ts +0 -1
  378. package/lib/utils/helpers.d.ts +0 -2
  379. package/lib/utils/hooks.d.ts +0 -1
  380. package/lib/utils/scale.d.ts +0 -3
  381. package/playground/.detoxrc.json +0 -49
  382. package/playground/.prettierrc.json +0 -8
  383. package/playground/app.json +0 -9
  384. package/playground/babel.config.js +0 -63
  385. package/playground/e2e/config.json +0 -9
  386. package/playground/e2e/environment.js +0 -23
  387. package/playground/e2e/firstTest.e2e.js +0 -16
  388. package/playground/expoEntry.js +0 -5
  389. package/playground/fonts/be-vietnam-pro-light.ttf +0 -0
  390. package/playground/fonts/be-vietnam-pro-regular.ttf +0 -0
  391. package/playground/fonts/be-vietnam-pro-semibold.ttf +0 -0
  392. package/playground/fonts/hero-icons.ttf +0 -0
  393. package/playground/index.js +0 -7
  394. package/playground/ios/MobileHeroDesignPlayground/AppDelegate.h +0 -9
  395. package/playground/ios/MobileHeroDesignPlayground/AppDelegate.m +0 -75
  396. package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/AppIcon.appiconset/Contents.json +0 -38
  397. package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/Contents.json +0 -6
  398. package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/SplashScreenBackground.imageset/Contents.json +0 -21
  399. package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/SplashScreenBackground.imageset/image.png +0 -0
  400. package/playground/ios/MobileHeroDesignPlayground/Info.plist +0 -85
  401. package/playground/ios/MobileHeroDesignPlayground/MobileHeroDesignPlayground-Bridging-Header.h +0 -3
  402. package/playground/ios/MobileHeroDesignPlayground/MobileHeroDesignPlayground.entitlements +0 -8
  403. package/playground/ios/MobileHeroDesignPlayground/SplashScreen.storyboard +0 -40
  404. package/playground/ios/MobileHeroDesignPlayground/Supporting/Expo.plist +0 -16
  405. package/playground/ios/MobileHeroDesignPlayground/main.m +0 -10
  406. package/playground/ios/MobileHeroDesignPlayground/noop-file.swift +0 -4
  407. package/playground/ios/MobileHeroDesignPlayground.xcodeproj/project.pbxproj +0 -515
  408. package/playground/ios/MobileHeroDesignPlayground.xcodeproj/xcshareddata/xcschemes/MobileHeroDesignPlayground.xcscheme +0 -88
  409. package/playground/ios/MobileHeroDesignPlayground.xcworkspace/contents.xcworkspacedata +0 -10
  410. package/playground/ios/MobileHeroDesignPlayground.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  411. package/playground/ios/Podfile +0 -49
  412. package/playground/ios/Podfile.lock +0 -478
  413. package/playground/ios/Podfile.properties.json +0 -3
  414. package/playground/metro.config.js +0 -24
  415. package/playground/package.json +0 -63
  416. package/playground/src/Alert.tsx +0 -80
  417. package/playground/src/App.tsx +0 -202
  418. package/playground/src/Avatar.tsx +0 -102
  419. package/playground/src/Badge.tsx +0 -187
  420. package/playground/src/BottomNavigation.tsx +0 -72
  421. package/playground/src/BottomSheet.tsx +0 -43
  422. package/playground/src/Button.tsx +0 -170
  423. package/playground/src/Card.tsx +0 -342
  424. package/playground/src/Collapse.tsx +0 -99
  425. package/playground/src/ContentNavigator.tsx +0 -58
  426. package/playground/src/Divider.tsx +0 -13
  427. package/playground/src/Drawer.tsx +0 -32
  428. package/playground/src/FAB.tsx +0 -66
  429. package/playground/src/Icon.tsx +0 -144
  430. package/playground/src/IconButton.tsx +0 -78
  431. package/playground/src/MultipleThemes.tsx +0 -34
  432. package/playground/src/Progress.tsx +0 -95
  433. package/playground/src/Radio.tsx +0 -25
  434. package/playground/src/SectionHeading.tsx +0 -68
  435. package/playground/src/Select.tsx +0 -32
  436. package/playground/src/Spinner.tsx +0 -19
  437. package/playground/src/Switch.tsx +0 -80
  438. package/playground/src/Tabs.tsx +0 -136
  439. package/playground/src/Tag.tsx +0 -45
  440. package/playground/src/TextInput.tsx +0 -14
  441. package/playground/src/Typography.tsx +0 -23
  442. package/playground/tsconfig.json +0 -21
  443. package/src/components/Select/MultiSelect/Footer.tsx +0 -15
  444. package/types/components/SectionHeading/__tests__/StyledHeading.d.ts +0 -1
@@ -13,7 +13,7 @@ export interface CheckboxProps {
13
13
  */
14
14
  onPress?: () => void;
15
15
  /**
16
- * Addditional style.
16
+ * Additional style.
17
17
  */
18
18
  style?: StyleProp<ViewStyle>;
19
19
  /**
@@ -7,7 +7,7 @@ interface CollapseProps extends ViewProps {
7
7
  */
8
8
  open?: boolean;
9
9
  /**
10
- * Addditional style.
10
+ * Additional style.
11
11
  */
12
12
  style?: StyleProp<ViewStyle>;
13
13
  /**
@@ -15,7 +15,7 @@ export interface IconProps {
15
15
  */
16
16
  size?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
17
17
  /**
18
- * Addditional style.
18
+ * Additional style.
19
19
  */
20
20
  style?: StyleProp<TextStyle>;
21
21
  /**
@@ -0,0 +1,43 @@
1
+ import React from 'react';
2
+ import { StyleProp, ViewStyle } from 'react-native';
3
+ import { IconName } from '../Icon';
4
+ export interface ListItemProps {
5
+ /**
6
+ * Name of Icon or component to render on the left side of title.
7
+ */
8
+ prefix?: IconName | React.ReactElement;
9
+ /**
10
+ * Name of Icon or component to render on the right side of title.
11
+ */
12
+ suffix?: IconName | React.ReactElement;
13
+ /**
14
+ * The title of the component.
15
+ */
16
+ title: string;
17
+ /**
18
+ * The subtile title of the component.
19
+ */
20
+ subtitle?: string;
21
+ /**
22
+ * Whether the component is disabled. Default value is false
23
+ */
24
+ disabled?: boolean;
25
+ /**
26
+ * Whether the component is selected. Default value is false
27
+ */
28
+ selected?: boolean;
29
+ /**
30
+ * Additional wrapper style.
31
+ */
32
+ style?: StyleProp<ViewStyle>;
33
+ /**
34
+ * Testing id of the component.
35
+ */
36
+ testID?: string;
37
+ /**
38
+ * Set the handler to handle press event.
39
+ */
40
+ onPress?: () => void;
41
+ }
42
+ declare const BasicListItem: ({ prefix, suffix, title, subtitle, style, testID, selected, disabled, onPress, }: ListItemProps) => JSX.Element;
43
+ export default BasicListItem;
@@ -0,0 +1,51 @@
1
+ import React, { ReactNode } from 'react';
2
+ import { StyleProp, ViewStyle } from 'react-native';
3
+ import { IconName } from '../Icon';
4
+ export interface ListItemProps {
5
+ /**
6
+ * Name of Icon or ReactElement to render on the left side of title.
7
+ */
8
+ prefix?: IconName | React.ReactElement;
9
+ /**
10
+ * Name of Icon or ReactElement to render on the right side of title.
11
+ */
12
+ suffix?: IconName | React.ReactElement;
13
+ /**
14
+ * The title of the component.
15
+ */
16
+ title?: string;
17
+ /**
18
+ * The subtile title of the component.
19
+ */
20
+ subtitle?: string;
21
+ /**
22
+ * Additional wrapper style.
23
+ */
24
+ style?: StyleProp<ViewStyle>;
25
+ /**
26
+ * Children to be rendered inside the component.
27
+ */
28
+ children?: ReactNode;
29
+ /**
30
+ * Leading status of the component
31
+ * */
32
+ leadingStatus?: 'success' | 'warning' | 'danger' | 'info' | 'archived';
33
+ variant?: 'full-width' | 'card';
34
+ /**
35
+ * Whether the component is disabled. Default value is false
36
+ */
37
+ disabled?: boolean;
38
+ /** * Whether the component is selected. Default value is false
39
+ */
40
+ selected?: boolean;
41
+ /**
42
+ * Testing id of the component.
43
+ */
44
+ testID?: string;
45
+ /**
46
+ * Set the handler to handle press event.
47
+ */
48
+ onPress?: () => void;
49
+ }
50
+ declare const ListItem: ({ prefix, suffix, title, subtitle, style, testID, selected, children, leadingStatus, variant, onPress, disabled, }: ListItemProps) => JSX.Element;
51
+ export default ListItem;
@@ -0,0 +1,29 @@
1
+ import { TouchableOpacity, View } from 'react-native';
2
+ declare const StyledPrefixContainer: 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 StyledSuffixContainer: 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 StyledTitleContainer: 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
+ declare const StyledListItemContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
21
+ theme?: import("@emotion/react").Theme | undefined;
22
+ as?: import("react").ElementType<any> | undefined;
23
+ } & {
24
+ themeSelected?: boolean | undefined;
25
+ themeDisabled?: boolean | undefined;
26
+ }, {}, {
27
+ ref?: import("react").Ref<TouchableOpacity> | undefined;
28
+ }>;
29
+ export { StyledListItemContainer, StyledPrefixContainer, StyledTitleContainer, StyledSuffixContainer, };
@@ -0,0 +1,51 @@
1
+ import { TouchableOpacity, View } from 'react-native';
2
+ export declare type Variant = 'full-width' | 'card';
3
+ export declare type LeadingStatusIntent = 'success' | 'warning' | 'danger' | 'info' | 'archived';
4
+ declare const StyledListItemContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
5
+ theme?: import("@emotion/react").Theme | undefined;
6
+ as?: import("react").ElementType<any> | undefined;
7
+ } & {
8
+ themeSelected?: boolean | undefined;
9
+ themeVariant?: Variant | undefined;
10
+ }, {}, {
11
+ ref?: import("react").Ref<TouchableOpacity> | undefined;
12
+ }>;
13
+ declare const StyledContentContainer: 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
+ }>;
19
+ declare const StyledChildrenContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
20
+ theme?: import("@emotion/react").Theme | undefined;
21
+ as?: import("react").ElementType<any> | undefined;
22
+ }, {}, {
23
+ ref?: import("react").Ref<View> | undefined;
24
+ }>;
25
+ declare const StyledLeadingStatus: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
26
+ theme?: import("@emotion/react").Theme | undefined;
27
+ as?: import("react").ElementType<any> | undefined;
28
+ } & {
29
+ themeLeadingStatusIntent: LeadingStatusIntent;
30
+ }, {}, {
31
+ ref?: import("react").Ref<View> | undefined;
32
+ }>;
33
+ declare const StyledPrefixContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
34
+ theme?: import("@emotion/react").Theme | undefined;
35
+ as?: import("react").ElementType<any> | undefined;
36
+ }, {}, {
37
+ ref?: import("react").Ref<View> | undefined;
38
+ }>;
39
+ declare const StyledSuffixContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
40
+ theme?: import("@emotion/react").Theme | undefined;
41
+ as?: import("react").ElementType<any> | undefined;
42
+ }, {}, {
43
+ ref?: import("react").Ref<View> | undefined;
44
+ }>;
45
+ declare const StyledTitleContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
46
+ theme?: import("@emotion/react").Theme | undefined;
47
+ as?: import("react").ElementType<any> | undefined;
48
+ }, {}, {
49
+ ref?: import("react").Ref<View> | undefined;
50
+ }>;
51
+ export { StyledListItemContainer, StyledContentContainer, StyledChildrenContainer, StyledLeadingStatus, StyledPrefixContainer, StyledTitleContainer, StyledSuffixContainer, };
@@ -0,0 +1,8 @@
1
+ import ListItem from './ListItem';
2
+ import BasicListItem from './BasicListItem';
3
+ interface ListType {
4
+ Item: typeof ListItem;
5
+ BasicItem: typeof BasicListItem;
6
+ }
7
+ declare const List: ListType;
8
+ export default List;
File without changes
@@ -27,7 +27,7 @@ export interface SectionHeadingProps extends ViewProps {
27
27
  */
28
28
  intent?: 'subdued' | 'body' | 'primary';
29
29
  /**
30
- * Addditional style.
30
+ * Additional style.
31
31
  */
32
32
  style?: StyleProp<ViewStyle>;
33
33
  /**
@@ -0,0 +1,5 @@
1
+ declare const Footer: ({ label, onPress }: {
2
+ label: string;
3
+ onPress: () => void;
4
+ }) => JSX.Element;
5
+ export default Footer;
File without changes
@@ -0,0 +1,6 @@
1
+ declare const Option: ({ text, selected, onPress, }: {
2
+ text: string;
3
+ selected: boolean;
4
+ onPress: () => void;
5
+ }) => JSX.Element;
6
+ export default Option;
@@ -1,3 +1,9 @@
1
1
  import { MultiSelectProps } from '.';
2
- declare function OptionList<T>({ value, options, onPress, keyExtractor, }: Pick<MultiSelectProps<T>, 'value' | 'options' | 'onPress' | 'keyExtractor'>): JSX.Element;
2
+ interface OptionListProps<T> extends MultiSelectProps<T> {
3
+ /**
4
+ * event handler for select
5
+ */
6
+ onPress: (value: T[]) => void;
7
+ }
8
+ declare const OptionList: <T>({ value, options, onPress, keyExtractor, }: Pick<OptionListProps<T>, "onPress" | "value" | "options" | "keyExtractor">) => JSX.Element;
3
9
  export default OptionList;
@@ -1,5 +1,5 @@
1
1
  import { StyleProp, ViewStyle } from 'react-native';
2
- import { OptionType } from './types';
2
+ import { OptionType } from '../types';
3
3
  export interface MultiSelectProps<T> {
4
4
  /**
5
5
  * An array of options to be selected.
@@ -10,9 +10,9 @@ export interface MultiSelectProps<T> {
10
10
  */
11
11
  value: T[];
12
12
  /**
13
- * onPress event handler.
13
+ * event handler for footer button.
14
14
  */
15
- onPress: (value: T[]) => void;
15
+ onConfirm: (value: T[]) => void;
16
16
  /**
17
17
  * Field label.
18
18
  */
@@ -35,5 +35,5 @@ export interface MultiSelectProps<T> {
35
35
  */
36
36
  testID?: string;
37
37
  }
38
- declare function MultiSelect<T>({ options, value, testID, style, label, footerLabel, onPress, }: MultiSelectProps<T>): JSX.Element;
38
+ declare function MultiSelect<T>({ options, value, testID, style, label, footerLabel, onConfirm, }: MultiSelectProps<T>): JSX.Element;
39
39
  export default MultiSelect;
File without changes
@@ -0,0 +1,6 @@
1
+ declare const Option: ({ text, selected, onPress, }: {
2
+ text: string;
3
+ selected: boolean;
4
+ onPress: () => void;
5
+ }) => JSX.Element;
6
+ export default Option;
@@ -0,0 +1,9 @@
1
+ import { SingleSelectProps } from '.';
2
+ interface OptionListProps<T> extends SingleSelectProps<T> {
3
+ /**
4
+ * event handler for select
5
+ */
6
+ onPress: (value: T | null) => void;
7
+ }
8
+ declare const OptionList: <T>({ value, options, onPress, keyExtractor, }: Pick<OptionListProps<T>, "onPress" | "value" | "options" | "keyExtractor">) => JSX.Element;
9
+ export default OptionList;
@@ -0,0 +1,35 @@
1
+ import { StyleProp, ViewStyle } from 'react-native';
2
+ import { OptionType } from '../types';
3
+ export interface SingleSelectProps<T> {
4
+ /**
5
+ * An array of options to be selected.
6
+ */
7
+ options: OptionType<T>[];
8
+ /**
9
+ * Current selected value.
10
+ */
11
+ value: T | null;
12
+ /**
13
+ * event handler for confirm button
14
+ */
15
+ onConfirm: (value: T | null) => void;
16
+ /**
17
+ * Field label.
18
+ */
19
+ label: string;
20
+ /**
21
+ * 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.
22
+ * The default extractor checks option.key, and then falls back to using the index, like React does.
23
+ */
24
+ keyExtractor?: (option: OptionType<T>, index?: number) => string;
25
+ /**
26
+ * Additional style.
27
+ */
28
+ style?: StyleProp<ViewStyle>;
29
+ /**
30
+ * Testing id of the component.
31
+ */
32
+ testID?: string;
33
+ }
34
+ declare const SingleSelect: <T>({ options, value, testID, style, label, onConfirm, }: SingleSelectProps<T>) => JSX.Element;
35
+ export default SingleSelect;
@@ -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,2 @@
1
+ import { OptionType } from './types';
2
+ export declare const getKey: <T>(option: OptionType<T>, index: number, keyExtractor?: ((opt: OptionType<T>, i?: number | undefined) => string) | undefined) => import("react").Key;
@@ -1,5 +1,5 @@
1
1
  import MultiSelect from './MultiSelect';
2
- declare const CompoundSelect: {
3
- readonly Multi: typeof MultiSelect;
2
+ declare const _default: (<T>({ options, value, testID, style, label, onConfirm, }: import("./SingleSelect").SingleSelectProps<T>) => JSX.Element) & {
3
+ Multi: typeof MultiSelect;
4
4
  };
5
- export default CompoundSelect;
5
+ export default _default;
@@ -0,0 +1,5 @@
1
+ export declare type OptionType<T> = {
2
+ value: T;
3
+ text: string;
4
+ key?: string;
5
+ };
File without changes
File without changes
@@ -18,7 +18,7 @@ export interface SwitchProps {
18
18
  */
19
19
  size?: 'small' | 'medium';
20
20
  /**
21
- * Addditional style.
21
+ * Additional style.
22
22
  */
23
23
  style?: StyleProp<ViewStyle>;
24
24
  /**
@@ -0,0 +1,45 @@
1
+ import { Animated, TouchableOpacity, View, ViewProps } from 'react-native';
2
+ declare const ToastContainerWrapper: import("@emotion/native").StyledComponent<ViewProps & {
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ } & {
6
+ position: 'top' | 'bottom';
7
+ }, {}, {
8
+ ref?: import("react").Ref<View> | undefined;
9
+ }>;
10
+ declare const Container: 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
+ themeVariant: 'default' | 'round';
17
+ themeIntent: 'success' | 'info' | 'warning' | 'error';
18
+ }, {}, {}>;
19
+ declare const IconContainer: import("@emotion/native").StyledComponent<ViewProps & {
20
+ theme?: import("@emotion/react").Theme | undefined;
21
+ as?: import("react").ElementType<any> | undefined;
22
+ }, {}, {
23
+ ref?: import("react").Ref<View> | undefined;
24
+ }>;
25
+ declare const TextContainer: import("@emotion/native").StyledComponent<ViewProps & {
26
+ theme?: import("@emotion/react").Theme | undefined;
27
+ as?: import("react").ElementType<any> | undefined;
28
+ }, {}, {
29
+ ref?: import("react").Ref<View> | undefined;
30
+ }>;
31
+ declare const ContentContainer: import("@emotion/native").StyledComponent<ViewProps & {
32
+ theme?: import("@emotion/react").Theme | undefined;
33
+ as?: import("react").ElementType<any> | undefined;
34
+ } & {
35
+ showDivider: boolean;
36
+ }, {}, {
37
+ ref?: import("react").Ref<View> | undefined;
38
+ }>;
39
+ declare const CTAWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
40
+ theme?: import("@emotion/react").Theme | undefined;
41
+ as?: import("react").ElementType<any> | undefined;
42
+ }, {}, {
43
+ ref?: import("react").Ref<TouchableOpacity> | undefined;
44
+ }>;
45
+ export { ToastContainerWrapper, Container, ContentContainer, TextContainer, IconContainer, CTAWrapper, };
@@ -0,0 +1,3 @@
1
+ import { ToastProps } from './types';
2
+ declare const Toast: ({ content, icon, variant, intent, style, duration, autoDismiss, onAction, actionLabel, onDismiss, }: ToastProps) => JSX.Element;
3
+ export default Toast;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { ToastContainerProps } from './types';
3
+ import { ToastControllerContextType } from './ToastContext';
4
+ declare const ToastContainer: React.ForwardRefExoticComponent<ToastContainerProps & React.RefAttributes<ToastControllerContextType>>;
5
+ export default ToastContainer;
@@ -0,0 +1,11 @@
1
+ import { ToastContainerProps, ToastProps } from './types';
2
+ export declare type ToastControllerContextType = {
3
+ show: (props: Omit<ToastProps, 'position'>) => string;
4
+ hide: (id: string) => void;
5
+ clearAll: () => void;
6
+ };
7
+ export declare const ToastContext: import("react").Context<ToastControllerContextType>;
8
+ export declare type ToastConfigContextType = Pick<ToastContainerProps, 'position' | 'displayType'>;
9
+ export declare const ToastConfigContext: import("react").Context<ToastConfigContextType>;
10
+ export declare const useToastConfig: () => ToastConfigContextType;
11
+ export declare const useToast: () => ToastControllerContextType;
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+ import { ToastContainerProps } from './types';
3
+ declare type ToastProviderProps = {
4
+ /**
5
+ * Content to be wrapped.
6
+ */
7
+ children?: ReactNode;
8
+ } & ToastContainerProps;
9
+ declare const ToastProvider: ({ children, displayType, position, }: ToastProviderProps) => JSX.Element;
10
+ export default ToastProvider;
@@ -0,0 +1,8 @@
1
+ declare const Toast: {
2
+ Provider: ({ children, displayType, position, }: {
3
+ children?: import("react").ReactNode;
4
+ } & import("./types").ToastContainerProps) => JSX.Element;
5
+ Container: import("react").ForwardRefExoticComponent<import("./types").ToastContainerProps & import("react").RefAttributes<import("./ToastContext").ToastControllerContextType>>;
6
+ useToast: () => import("./ToastContext").ToastControllerContextType;
7
+ };
8
+ export default Toast;
@@ -0,0 +1,67 @@
1
+ import { ReactElement } from 'react';
2
+ import { StyleProp, ViewStyle } from 'react-native';
3
+ import { IconName } from '../Icon';
4
+ export interface ToastProps {
5
+ /**
6
+ * Toast content.
7
+ */
8
+ content: string | ReactElement;
9
+ /**
10
+ * Icon name of the Toast.
11
+ * - undefined: use default icon according to Toast intent.
12
+ * - null: no icon at all.
13
+ * - IconName: an icon identifier from hero-design icon list.
14
+ */
15
+ icon?: null | IconName;
16
+ /**
17
+ * Visual intent color to apply to alert.
18
+ */
19
+ intent?: 'success' | 'info' | 'warning' | 'error';
20
+ /**
21
+ * Toast variants
22
+ */
23
+ variant?: 'default' | 'round';
24
+ /**
25
+ * Whether the toast message should be dismissed after the duration expired.
26
+ */
27
+ autoDismiss?: boolean;
28
+ /**
29
+ * Duration (in miliseconds) of how long the toast message will be displayed before it disapprears.
30
+ */
31
+ duration?: number;
32
+ /**
33
+ * Display action button with passed on the right side of the toast message.
34
+ * This action button will will dismiss the toast on pressed.
35
+ */
36
+ actionLabel?: string | ReactElement;
37
+ /**
38
+ * Callback that will be called when the action button of the toast is pressed.
39
+ */
40
+ onAction?: () => void;
41
+ /**
42
+ * Callback that will be called when the toast message is dismissed.
43
+ */
44
+ onDismiss?: () => void;
45
+ /**
46
+ * Addtitional style.
47
+ */
48
+ style?: StyleProp<ViewStyle>;
49
+ }
50
+ export interface ToastContainerProps {
51
+ /**
52
+ * Displays multiple toasts at a time or one by one.
53
+ */
54
+ displayType?: 'single' | 'stack';
55
+ /**
56
+ * Position that the toast message will appear on the screen.
57
+ */
58
+ position?: 'top' | 'bottom';
59
+ /**
60
+ * Additional style for toasts container.
61
+ */
62
+ style?: StyleProp<ViewStyle>;
63
+ }
64
+ export declare type ToastItemProps = {
65
+ id: string;
66
+ props: Omit<ToastProps, 'position'>;
67
+ };
@@ -0,0 +1,22 @@
1
+ import { TouchableOpacity, View, ViewProps } from 'react-native';
2
+ declare const ToolbarWrapper: 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 ToolbarGroupWrapper: import("@emotion/native").StyledComponent<ViewProps & {
9
+ theme?: import("@emotion/react").Theme | undefined;
10
+ as?: import("react").ElementType<any> | undefined;
11
+ } & {
12
+ align: 'left' | 'center' | 'right';
13
+ }, {}, {
14
+ ref?: import("react").Ref<View> | undefined;
15
+ }>;
16
+ declare const ToolbarItemWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
17
+ theme?: import("@emotion/react").Theme | undefined;
18
+ as?: import("react").ElementType<any> | undefined;
19
+ }, {}, {
20
+ ref?: import("react").Ref<TouchableOpacity> | undefined;
21
+ }>;
22
+ export { ToolbarWrapper, ToolbarGroupWrapper, ToolbarItemWrapper };