@hero-design/rn 7.6.1-alpha → 7.7.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 (379) 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 +2953 -295
  10. package/lib/index.js +3119 -459
  11. package/package.json +3 -2
  12. package/playground/.turbo/turbo-type-check.log +7 -0
  13. package/playground/package.json +3 -3
  14. package/playground/src/App.tsx +8 -0
  15. package/playground/src/Checkbox.tsx +55 -0
  16. package/playground/src/Toast.tsx +114 -0
  17. package/rollup.config.js +1 -7
  18. package/src/components/Checkbox/StyledCheckbox.tsx +18 -0
  19. package/src/components/Checkbox/__tests__/StyledCheckbox.spec.tsx +10 -0
  20. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +31 -0
  21. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +63 -0
  22. package/src/components/Checkbox/__tests__/index.spec.tsx +24 -0
  23. package/src/components/Checkbox/index.tsx +58 -0
  24. package/src/components/Toast/StyledToast.tsx +65 -0
  25. package/src/components/Toast/Toast.tsx +123 -0
  26. package/src/components/Toast/ToastContainer.tsx +88 -0
  27. package/src/components/Toast/ToastContext.ts +25 -0
  28. package/src/components/Toast/ToastProvider.tsx +53 -0
  29. package/src/components/Toast/__tests__/Toast.spec.tsx +125 -0
  30. package/src/components/Toast/__tests__/ToastContainer.spec.tsx +107 -0
  31. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +655 -0
  32. package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +93 -0
  33. package/src/components/Toast/index.tsx +11 -0
  34. package/src/components/Toast/types.ts +70 -0
  35. package/src/index.ts +4 -0
  36. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +41 -0
  37. package/src/theme/components/checkbox.ts +37 -0
  38. package/src/theme/components/toast.ts +33 -0
  39. package/src/theme/index.ts +6 -0
  40. package/types/components/Avatar/StyledAvatar.d.ts +0 -0
  41. package/types/components/Avatar/__tests__/StyledAvatar.spec.d.ts +0 -0
  42. package/types/components/Avatar/__tests__/index.spec.d.ts +0 -0
  43. package/types/components/Avatar/index.d.ts +0 -0
  44. package/types/components/Badge/Status.d.ts +0 -0
  45. package/types/components/Badge/StyledBadge.d.ts +0 -0
  46. package/types/components/Badge/__tests__/Badge.spec.d.ts +0 -0
  47. package/types/components/Badge/__tests__/Status.spec.d.ts +0 -0
  48. package/types/components/Badge/index.d.ts +0 -0
  49. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
  50. package/types/components/BottomNavigation/__tests__/index.spec.d.ts +0 -0
  51. package/types/components/BottomNavigation/index.d.ts +0 -0
  52. package/types/components/BottomSheet/Footer.d.ts +0 -0
  53. package/types/components/BottomSheet/Header.d.ts +0 -0
  54. package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -0
  55. package/types/components/BottomSheet/__tests__/index.spec.d.ts +0 -0
  56. package/types/components/BottomSheet/index.d.ts +0 -0
  57. package/types/components/Button/Button.d.ts +0 -0
  58. package/types/components/Button/IconButton.d.ts +0 -0
  59. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
  60. package/types/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.d.ts +0 -0
  61. package/types/components/Button/LoadingIndicator/__tests__/index.spec.d.ts +0 -0
  62. package/types/components/Button/LoadingIndicator/index.d.ts +0 -0
  63. package/types/components/Button/StyledButton.d.ts +0 -0
  64. package/types/components/Button/__tests__/Button.spec.d.ts +0 -0
  65. package/types/components/Button/__tests__/IconButton.spec.d.ts +0 -0
  66. package/types/components/Button/__tests__/StyledButton.spec.d.ts +0 -0
  67. package/types/components/Button/index.d.ts +0 -0
  68. package/types/components/Card/StyledCard.d.ts +0 -0
  69. package/types/components/Card/__tests__/StyledCard.spec.d.ts +0 -0
  70. package/types/components/Card/__tests__/index.spec.d.ts +0 -0
  71. package/types/components/Card/index.d.ts +0 -0
  72. package/types/components/Collapse/StyledCollapse.d.ts +0 -0
  73. package/types/components/Collapse/__tests__/StyledCollapse.spec.d.ts +0 -0
  74. package/types/components/Collapse/__tests__/index.spec.d.ts +0 -0
  75. package/types/components/Collapse/index.d.ts +0 -0
  76. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -0
  77. package/types/components/ContentNavigator/__tests__/StyledContentNavigator.spec.d.ts +0 -0
  78. package/types/components/ContentNavigator/__tests__/index.spec.d.ts +0 -0
  79. package/types/components/ContentNavigator/index.d.ts +0 -0
  80. package/types/components/Divider/StyledDivider.d.ts +0 -0
  81. package/types/components/Divider/__tests__/StyledDivider.spec.d.ts +0 -0
  82. package/types/components/Divider/index.d.ts +0 -0
  83. package/types/components/Drawer/StyledDrawer.d.ts +0 -0
  84. package/types/components/Drawer/__tests__/index.spec.d.ts +0 -0
  85. package/types/components/Drawer/index.d.ts +0 -0
  86. package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
  87. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
  88. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
  89. package/types/components/FAB/ActionGroup/__tests__/index.spec.d.ts +0 -0
  90. package/types/components/FAB/ActionGroup/index.d.ts +0 -0
  91. package/types/components/FAB/AnimatedFABIcon.d.ts +0 -0
  92. package/types/components/FAB/FAB.d.ts +0 -0
  93. package/types/components/FAB/StyledFAB.d.ts +0 -0
  94. package/types/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts +0 -0
  95. package/types/components/FAB/__tests__/StyledFAB.spec.d.ts +0 -0
  96. package/types/components/FAB/__tests__/index.spec.d.ts +0 -0
  97. package/types/components/FAB/index.d.ts +0 -0
  98. package/types/components/Icon/HeroIcon/index.d.ts +0 -0
  99. package/types/components/Icon/IconList.d.ts +0 -0
  100. package/types/components/Icon/__tests__/index.spec.d.ts +0 -0
  101. package/types/components/Icon/index.d.ts +0 -0
  102. package/types/components/Icon/utils.d.ts +0 -0
  103. package/types/components/Progress/ProgressBar.d.ts +0 -0
  104. package/types/components/Progress/ProgressCircle.d.ts +0 -0
  105. package/types/components/Progress/StyledProgressBar.d.ts +0 -0
  106. package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
  107. package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
  108. package/types/components/Progress/index.d.ts +0 -0
  109. package/types/components/Progress/types.d.ts +0 -0
  110. package/types/components/Radio/Radio.d.ts +0 -0
  111. package/types/components/Radio/RadioGroup.d.ts +0 -0
  112. package/types/components/Radio/StyledRadio.d.ts +0 -0
  113. package/types/components/Radio/__tests__/Radio.spec.d.ts +0 -0
  114. package/types/components/Radio/__tests__/RadioGroup.spec.d.ts +0 -0
  115. package/types/components/Radio/__tests__/StyledRadio.spec.d.ts +0 -0
  116. package/types/components/Radio/index.d.ts +0 -0
  117. package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
  118. package/types/components/SectionHeading/__tests__/index.spec.d.ts +0 -0
  119. package/types/components/SectionHeading/index.d.ts +0 -0
  120. package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
  121. package/types/components/Spinner/StyledSpinner.d.ts +0 -0
  122. package/types/components/Spinner/__tests__/AnimatedSpinner.spec.d.ts +0 -0
  123. package/types/components/Spinner/__tests__/StyledSpinner.spec.d.ts +0 -0
  124. package/types/components/Spinner/__tests__/index.spec.d.ts +0 -0
  125. package/types/components/Spinner/index.d.ts +0 -0
  126. package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
  127. package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
  128. package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -0
  129. package/types/components/Tabs/StyledTabs.d.ts +0 -0
  130. package/types/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +0 -0
  131. package/types/components/Tabs/__tests__/index.spec.d.ts +0 -0
  132. package/types/components/Tabs/index.d.ts +0 -0
  133. package/types/components/Tabs/utils.d.ts +0 -0
  134. package/types/components/Tag/StyledTag.d.ts +0 -0
  135. package/types/components/Tag/__tests__/Tag.spec.d.ts +0 -0
  136. package/types/components/Tag/index.d.ts +0 -0
  137. package/types/components/TextInput/StyledTextInput.d.ts +0 -0
  138. package/types/components/TextInput/__tests__/StyledTextInput.spec.d.ts +0 -0
  139. package/types/components/TextInput/__tests__/index.spec.d.ts +0 -0
  140. package/types/components/TextInput/index.d.ts +0 -0
  141. package/types/components/Toast/StyledToast.d.ts +45 -0
  142. package/types/components/Toast/Toast.d.ts +3 -0
  143. package/types/components/Toast/ToastContainer.d.ts +5 -0
  144. package/types/components/Toast/ToastContext.d.ts +11 -0
  145. package/types/components/Toast/ToastProvider.d.ts +10 -0
  146. package/{es/components/Avatar/__tests__/StyledAvatar.spec.d.ts → types/components/Toast/__tests__/Toast.spec.d.ts} +0 -0
  147. package/{es/components/Avatar/__tests__/index.spec.d.ts → types/components/Toast/__tests__/ToastContainer.spec.d.ts} +0 -0
  148. package/types/components/Toast/index.d.ts +8 -0
  149. package/types/components/Toast/types.d.ts +67 -0
  150. package/types/components/Typography/Text/StyledText.d.ts +0 -0
  151. package/types/components/Typography/Text/__tests__/StyledText.spec.d.ts +0 -0
  152. package/types/components/Typography/Text/__tests__/index.spec.d.ts +0 -0
  153. package/types/components/Typography/Text/index.d.ts +0 -0
  154. package/types/components/Typography/index.d.ts +0 -0
  155. package/types/index.d.ts +3 -1
  156. package/types/testHelpers/renderWithTheme.d.ts +0 -0
  157. package/types/theme/__tests__/index.spec.d.ts +0 -0
  158. package/types/theme/components/avatar.d.ts +0 -0
  159. package/types/theme/components/badge.d.ts +0 -0
  160. package/types/theme/components/bottomNavigation.d.ts +0 -0
  161. package/types/theme/components/bottomSheet.d.ts +0 -0
  162. package/types/theme/components/button.d.ts +0 -0
  163. package/types/theme/components/card.d.ts +0 -0
  164. package/types/theme/components/contentNavigator.d.ts +0 -0
  165. package/types/theme/components/divider.d.ts +0 -0
  166. package/types/theme/components/drawer.d.ts +0 -0
  167. package/types/theme/components/fab.d.ts +0 -0
  168. package/types/theme/components/icon.d.ts +0 -0
  169. package/types/theme/components/progress.d.ts +0 -0
  170. package/types/theme/components/radio.d.ts +0 -0
  171. package/types/theme/components/spinner.d.ts +0 -0
  172. package/types/theme/components/tabs.d.ts +0 -0
  173. package/types/theme/components/tag.d.ts +0 -0
  174. package/types/theme/components/textInput.d.ts +0 -0
  175. package/types/theme/components/toast.d.ts +24 -0
  176. package/types/theme/components/typography.d.ts +0 -0
  177. package/types/theme/global/borders.d.ts +0 -0
  178. package/types/theme/global/colors.d.ts +0 -0
  179. package/types/theme/global/index.d.ts +0 -0
  180. package/types/theme/global/scale.d.ts +0 -0
  181. package/types/theme/global/space.d.ts +0 -0
  182. package/types/theme/global/typography.d.ts +0 -0
  183. package/types/theme/index.d.ts +4 -0
  184. package/types/types.d.ts +0 -0
  185. package/types/utils/__tests__/scale.spec.d.ts +0 -0
  186. package/types/utils/helpers.d.ts +0 -0
  187. package/types/utils/hooks.d.ts +0 -0
  188. package/types/utils/scale.d.ts +0 -0
  189. package/.turbo/turbo-build:types.log +0 -2
  190. package/.turbo/turbo-build:watch.log +0 -1
  191. package/.turbo/turbo-lint.log +0 -2
  192. package/.turbo/turbo-type-check.log +0 -2
  193. package/es/components/Avatar/StyledAvatar.d.ts +0 -46
  194. package/es/components/Avatar/index.d.ts +0 -25
  195. package/es/components/Badge/Status.d.ts +0 -24
  196. package/es/components/Badge/StyledBadge.d.ts +0 -28
  197. package/es/components/Badge/__tests__/Badge.spec.d.ts +0 -1
  198. package/es/components/Badge/__tests__/Status.spec.d.ts +0 -1
  199. package/es/components/Badge/index.d.ts +0 -32
  200. package/es/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -52
  201. package/es/components/BottomNavigation/__tests__/index.spec.d.ts +0 -1
  202. package/es/components/BottomNavigation/index.d.ts +0 -45
  203. package/es/components/Button/IconButton.d.ts +0 -34
  204. package/es/components/Button/__tests__/index.spec.d.ts +0 -1
  205. package/es/components/Button/index.d.ts +0 -4
  206. package/es/components/Card/StyledCard.d.ts +0 -17
  207. package/es/components/Card/__tests__/StyledCard.spec.d.ts +0 -1
  208. package/es/components/Card/__tests__/index.spec.d.ts +0 -1
  209. package/es/components/Card/index.d.ts +0 -22
  210. package/es/components/Collapse/StyledCollapse.d.ts +0 -15
  211. package/es/components/Collapse/__tests__/StyledCollapse.spec.d.ts +0 -1
  212. package/es/components/Collapse/__tests__/index.spec.d.ts +0 -1
  213. package/es/components/Collapse/index.d.ts +0 -23
  214. package/es/components/Divider/StyledDivider.d.ts +0 -13
  215. package/es/components/Divider/__tests__/StyledDivider.spec.d.ts +0 -1
  216. package/es/components/Divider/index.d.ts +0 -21
  217. package/es/components/Drawer/StyledDrawer.d.ts +0 -25
  218. package/es/components/Drawer/__tests__/index.spec.d.ts +0 -1
  219. package/es/components/Drawer/index.d.ts +0 -25
  220. package/es/components/FAB/ActionGroup/ActionItem.d.ts +0 -12
  221. package/es/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -30
  222. package/es/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -13
  223. package/es/components/FAB/ActionGroup/__tests__/index.spec.d.ts +0 -1
  224. package/es/components/FAB/ActionGroup/index.d.ts +0 -34
  225. package/es/components/FAB/AnimatedFABIcon.d.ts +0 -6
  226. package/es/components/FAB/FAB.d.ts +0 -34
  227. package/es/components/FAB/StyledFAB.d.ts +0 -20
  228. package/es/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts +0 -1
  229. package/es/components/FAB/__tests__/StyledFAB.spec.d.ts +0 -1
  230. package/es/components/FAB/__tests__/index.spec.d.ts +0 -1
  231. package/es/components/FAB/index.d.ts +0 -4
  232. package/es/components/Icon/HeroIcon/index.d.ts +0 -13
  233. package/es/components/Icon/IconList.d.ts +0 -2
  234. package/es/components/Icon/__tests__/index.spec.d.ts +0 -1
  235. package/es/components/Icon/index.d.ts +0 -27
  236. package/es/components/Icon/utils.d.ts +0 -2
  237. package/es/components/Progress/ProgressBar.d.ts +0 -18
  238. package/es/components/Progress/ProgressCircle.d.ts +0 -18
  239. package/es/components/Progress/StyledProgressBar.d.ts +0 -18
  240. package/es/components/Progress/StyledProgressCircle.d.ts +0 -38
  241. package/es/components/Progress/index.d.ts +0 -5
  242. package/es/components/Progress/types.d.ts +0 -1
  243. package/es/components/Tabs/ActiveTabIndicator.d.ts +0 -8
  244. package/es/components/Tabs/ScrollableTabs.d.ts +0 -3
  245. package/es/components/Tabs/StyledScrollableTabs.d.ts +0 -61
  246. package/es/components/Tabs/StyledTabs.d.ts +0 -55
  247. package/es/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +0 -1
  248. package/es/components/Tabs/__tests__/index.spec.d.ts +0 -1
  249. package/es/components/Tabs/index.d.ts +0 -54
  250. package/es/components/Tabs/utils.d.ts +0 -2
  251. package/es/components/Tag/StyledTag.d.ts +0 -20
  252. package/es/components/Tag/__tests__/Tag.spec.d.ts +0 -1
  253. package/es/components/Tag/index.d.ts +0 -21
  254. package/es/components/Typography/Text/StyledText.d.ts +0 -13
  255. package/es/components/Typography/Text/__tests__/StyledText.spec.d.ts +0 -1
  256. package/es/components/Typography/Text/__tests__/index.spec.d.ts +0 -1
  257. package/es/components/Typography/Text/index.d.ts +0 -30
  258. package/es/components/Typography/index.d.ts +0 -6
  259. package/es/index.d.ts +0 -19
  260. package/es/theme/__tests__/index.spec.d.ts +0 -1
  261. package/es/theme/components/avatar.d.ts +0 -32
  262. package/es/theme/components/badge.d.ts +0 -29
  263. package/es/theme/components/bottomNavigation.d.ts +0 -23
  264. package/es/theme/components/card.d.ts +0 -10
  265. package/es/theme/components/divider.d.ts +0 -17
  266. package/es/theme/components/drawer.d.ts +0 -21
  267. package/es/theme/components/fab.d.ts +0 -51
  268. package/es/theme/components/icon.d.ts +0 -19
  269. package/es/theme/components/progress.d.ts +0 -21
  270. package/es/theme/components/tabs.d.ts +0 -27
  271. package/es/theme/components/tag.d.ts +0 -30
  272. package/es/theme/components/typography.d.ts +0 -26
  273. package/es/theme/global/borders.d.ts +0 -11
  274. package/es/theme/global/colors.d.ts +0 -29
  275. package/es/theme/global/index.d.ts +0 -39
  276. package/es/theme/global/scale.d.ts +0 -9
  277. package/es/theme/global/space.d.ts +0 -13
  278. package/es/theme/global/typography.d.ts +0 -21
  279. package/es/theme/index.d.ts +0 -33
  280. package/es/types.d.ts +0 -5
  281. package/es/utils/__tests__/scale.spec.d.ts +0 -1
  282. package/es/utils/helpers.d.ts +0 -2
  283. package/es/utils/hooks.d.ts +0 -1
  284. package/es/utils/scale.d.ts +0 -3
  285. package/lib/components/Avatar/StyledAvatar.d.ts +0 -46
  286. package/lib/components/Avatar/__tests__/StyledAvatar.spec.d.ts +0 -1
  287. package/lib/components/Avatar/__tests__/index.spec.d.ts +0 -1
  288. package/lib/components/Avatar/index.d.ts +0 -25
  289. package/lib/components/Badge/Status.d.ts +0 -24
  290. package/lib/components/Badge/StyledBadge.d.ts +0 -28
  291. package/lib/components/Badge/__tests__/Badge.spec.d.ts +0 -1
  292. package/lib/components/Badge/__tests__/Status.spec.d.ts +0 -1
  293. package/lib/components/Badge/index.d.ts +0 -32
  294. package/lib/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -52
  295. package/lib/components/BottomNavigation/__tests__/index.spec.d.ts +0 -1
  296. package/lib/components/BottomNavigation/index.d.ts +0 -45
  297. package/lib/components/Button/IconButton.d.ts +0 -34
  298. package/lib/components/Button/__tests__/index.spec.d.ts +0 -1
  299. package/lib/components/Button/index.d.ts +0 -4
  300. package/lib/components/Card/StyledCard.d.ts +0 -17
  301. package/lib/components/Card/__tests__/StyledCard.spec.d.ts +0 -1
  302. package/lib/components/Card/__tests__/index.spec.d.ts +0 -1
  303. package/lib/components/Card/index.d.ts +0 -22
  304. package/lib/components/Collapse/StyledCollapse.d.ts +0 -15
  305. package/lib/components/Collapse/__tests__/StyledCollapse.spec.d.ts +0 -1
  306. package/lib/components/Collapse/__tests__/index.spec.d.ts +0 -1
  307. package/lib/components/Collapse/index.d.ts +0 -23
  308. package/lib/components/Divider/StyledDivider.d.ts +0 -13
  309. package/lib/components/Divider/__tests__/StyledDivider.spec.d.ts +0 -1
  310. package/lib/components/Divider/index.d.ts +0 -21
  311. package/lib/components/Drawer/StyledDrawer.d.ts +0 -25
  312. package/lib/components/Drawer/__tests__/index.spec.d.ts +0 -1
  313. package/lib/components/Drawer/index.d.ts +0 -25
  314. package/lib/components/FAB/ActionGroup/ActionItem.d.ts +0 -12
  315. package/lib/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -30
  316. package/lib/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -13
  317. package/lib/components/FAB/ActionGroup/__tests__/index.spec.d.ts +0 -1
  318. package/lib/components/FAB/ActionGroup/index.d.ts +0 -34
  319. package/lib/components/FAB/AnimatedFABIcon.d.ts +0 -6
  320. package/lib/components/FAB/FAB.d.ts +0 -34
  321. package/lib/components/FAB/StyledFAB.d.ts +0 -20
  322. package/lib/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts +0 -1
  323. package/lib/components/FAB/__tests__/StyledFAB.spec.d.ts +0 -1
  324. package/lib/components/FAB/__tests__/index.spec.d.ts +0 -1
  325. package/lib/components/FAB/index.d.ts +0 -4
  326. package/lib/components/Icon/HeroIcon/index.d.ts +0 -13
  327. package/lib/components/Icon/IconList.d.ts +0 -2
  328. package/lib/components/Icon/__tests__/index.spec.d.ts +0 -1
  329. package/lib/components/Icon/index.d.ts +0 -27
  330. package/lib/components/Icon/utils.d.ts +0 -2
  331. package/lib/components/Progress/ProgressBar.d.ts +0 -18
  332. package/lib/components/Progress/ProgressCircle.d.ts +0 -18
  333. package/lib/components/Progress/StyledProgressBar.d.ts +0 -18
  334. package/lib/components/Progress/StyledProgressCircle.d.ts +0 -38
  335. package/lib/components/Progress/index.d.ts +0 -5
  336. package/lib/components/Progress/types.d.ts +0 -1
  337. package/lib/components/Tabs/ActiveTabIndicator.d.ts +0 -8
  338. package/lib/components/Tabs/ScrollableTabs.d.ts +0 -3
  339. package/lib/components/Tabs/StyledScrollableTabs.d.ts +0 -61
  340. package/lib/components/Tabs/StyledTabs.d.ts +0 -55
  341. package/lib/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +0 -1
  342. package/lib/components/Tabs/__tests__/index.spec.d.ts +0 -1
  343. package/lib/components/Tabs/index.d.ts +0 -54
  344. package/lib/components/Tabs/utils.d.ts +0 -2
  345. package/lib/components/Tag/StyledTag.d.ts +0 -20
  346. package/lib/components/Tag/__tests__/Tag.spec.d.ts +0 -1
  347. package/lib/components/Tag/index.d.ts +0 -21
  348. package/lib/components/Typography/Text/StyledText.d.ts +0 -13
  349. package/lib/components/Typography/Text/__tests__/StyledText.spec.d.ts +0 -1
  350. package/lib/components/Typography/Text/__tests__/index.spec.d.ts +0 -1
  351. package/lib/components/Typography/Text/index.d.ts +0 -30
  352. package/lib/components/Typography/index.d.ts +0 -6
  353. package/lib/index.d.ts +0 -19
  354. package/lib/theme/__tests__/index.spec.d.ts +0 -1
  355. package/lib/theme/components/avatar.d.ts +0 -32
  356. package/lib/theme/components/badge.d.ts +0 -29
  357. package/lib/theme/components/bottomNavigation.d.ts +0 -23
  358. package/lib/theme/components/card.d.ts +0 -10
  359. package/lib/theme/components/divider.d.ts +0 -17
  360. package/lib/theme/components/drawer.d.ts +0 -21
  361. package/lib/theme/components/fab.d.ts +0 -51
  362. package/lib/theme/components/icon.d.ts +0 -19
  363. package/lib/theme/components/progress.d.ts +0 -21
  364. package/lib/theme/components/tabs.d.ts +0 -27
  365. package/lib/theme/components/tag.d.ts +0 -30
  366. package/lib/theme/components/typography.d.ts +0 -26
  367. package/lib/theme/global/borders.d.ts +0 -11
  368. package/lib/theme/global/colors.d.ts +0 -29
  369. package/lib/theme/global/index.d.ts +0 -39
  370. package/lib/theme/global/scale.d.ts +0 -9
  371. package/lib/theme/global/space.d.ts +0 -13
  372. package/lib/theme/global/typography.d.ts +0 -21
  373. package/lib/theme/index.d.ts +0 -33
  374. package/lib/types.d.ts +0 -5
  375. package/lib/utils/__tests__/scale.spec.d.ts +0 -1
  376. package/lib/utils/helpers.d.ts +0 -2
  377. package/lib/utils/hooks.d.ts +0 -1
  378. package/lib/utils/scale.d.ts +0 -3
  379. package/types/components/SectionHeading/__tests__/StyledHeading.d.ts +0 -1
package/lib/index.js CHANGED
@@ -2,11 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var reactNative = require('react-native');
5
+ var ReactNative = require('react-native');
6
6
  var React = require('react');
7
- var reactNativeVectorIcons = require('react-native-vector-icons');
8
7
  var reactNativeSafeAreaContext = require('react-native-safe-area-context');
9
- var PagerView = require('react-native-pager-view');
10
8
 
11
9
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
12
10
 
@@ -28,9 +26,9 @@ function _interopNamespace(e) {
28
26
  return Object.freeze(n);
29
27
  }
30
28
 
31
- var reactNative__namespace = /*#__PURE__*/_interopNamespace(reactNative);
29
+ var ReactNative__default = /*#__PURE__*/_interopDefaultLegacy(ReactNative);
30
+ var ReactNative__namespace = /*#__PURE__*/_interopNamespace(ReactNative);
32
31
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
33
- var PagerView__default = /*#__PURE__*/_interopDefaultLegacy(PagerView);
34
32
 
35
33
  function ownKeys(object, enumerableOnly) {
36
34
  var keys = Object.keys(object);
@@ -49,7 +47,7 @@ function _objectSpread2(target) {
49
47
  for (var i = 1; i < arguments.length; i++) {
50
48
  var source = null != arguments[i] ? arguments[i] : {};
51
49
  i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
52
- _defineProperty(target, key, source[key]);
50
+ _defineProperty$2(target, key, source[key]);
53
51
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
54
52
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
55
53
  });
@@ -58,17 +56,42 @@ function _objectSpread2(target) {
58
56
  return target;
59
57
  }
60
58
 
61
- function _typeof(obj) {
59
+ function _typeof$2(obj) {
62
60
  "@babel/helpers - typeof";
63
61
 
64
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
62
+ return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
65
63
  return typeof obj;
66
64
  } : function (obj) {
67
65
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
68
- }, _typeof(obj);
66
+ }, _typeof$2(obj);
69
67
  }
70
68
 
71
- function _defineProperty(obj, key, value) {
69
+ function _classCallCheck$1(instance, Constructor) {
70
+ if (!(instance instanceof Constructor)) {
71
+ throw new TypeError("Cannot call a class as a function");
72
+ }
73
+ }
74
+
75
+ function _defineProperties$1(target, props) {
76
+ for (var i = 0; i < props.length; i++) {
77
+ var descriptor = props[i];
78
+ descriptor.enumerable = descriptor.enumerable || false;
79
+ descriptor.configurable = true;
80
+ if ("value" in descriptor) descriptor.writable = true;
81
+ Object.defineProperty(target, descriptor.key, descriptor);
82
+ }
83
+ }
84
+
85
+ function _createClass$1(Constructor, protoProps, staticProps) {
86
+ if (protoProps) _defineProperties$1(Constructor.prototype, protoProps);
87
+ if (staticProps) _defineProperties$1(Constructor, staticProps);
88
+ Object.defineProperty(Constructor, "prototype", {
89
+ writable: false
90
+ });
91
+ return Constructor;
92
+ }
93
+
94
+ function _defineProperty$2(obj, key, value) {
72
95
  if (key in obj) {
73
96
  Object.defineProperty(obj, key, {
74
97
  value: value,
@@ -83,8 +106,8 @@ function _defineProperty(obj, key, value) {
83
106
  return obj;
84
107
  }
85
108
 
86
- function _extends$1() {
87
- _extends$1 = Object.assign || function (target) {
109
+ function _extends$3() {
110
+ _extends$3 = Object.assign || function (target) {
88
111
  for (var i = 1; i < arguments.length; i++) {
89
112
  var source = arguments[i];
90
113
 
@@ -98,10 +121,57 @@ function _extends$1() {
98
121
  return target;
99
122
  };
100
123
 
101
- return _extends$1.apply(this, arguments);
124
+ return _extends$3.apply(this, arguments);
102
125
  }
103
126
 
104
- function _objectWithoutPropertiesLoose(source, excluded) {
127
+ function _inherits$1(subClass, superClass) {
128
+ if (typeof superClass !== "function" && superClass !== null) {
129
+ throw new TypeError("Super expression must either be null or a function");
130
+ }
131
+
132
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
133
+ constructor: {
134
+ value: subClass,
135
+ writable: true,
136
+ configurable: true
137
+ }
138
+ });
139
+ Object.defineProperty(subClass, "prototype", {
140
+ writable: false
141
+ });
142
+ if (superClass) _setPrototypeOf$1(subClass, superClass);
143
+ }
144
+
145
+ function _getPrototypeOf$1(o) {
146
+ _getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
147
+ return o.__proto__ || Object.getPrototypeOf(o);
148
+ };
149
+ return _getPrototypeOf$1(o);
150
+ }
151
+
152
+ function _setPrototypeOf$1(o, p) {
153
+ _setPrototypeOf$1 = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
154
+ o.__proto__ = p;
155
+ return o;
156
+ };
157
+
158
+ return _setPrototypeOf$1(o, p);
159
+ }
160
+
161
+ function _isNativeReflectConstruct() {
162
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
163
+ if (Reflect.construct.sham) return false;
164
+ if (typeof Proxy === "function") return true;
165
+
166
+ try {
167
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
168
+ return true;
169
+ } catch (e) {
170
+ return false;
171
+ }
172
+ }
173
+
174
+ function _objectWithoutPropertiesLoose$1(source, excluded) {
105
175
  if (source == null) return {};
106
176
  var target = {};
107
177
  var sourceKeys = Object.keys(source);
@@ -116,10 +186,10 @@ function _objectWithoutPropertiesLoose(source, excluded) {
116
186
  return target;
117
187
  }
118
188
 
119
- function _objectWithoutProperties(source, excluded) {
189
+ function _objectWithoutProperties$1(source, excluded) {
120
190
  if (source == null) return {};
121
191
 
122
- var target = _objectWithoutPropertiesLoose(source, excluded);
192
+ var target = _objectWithoutPropertiesLoose$1(source, excluded);
123
193
 
124
194
  var key, i;
125
195
 
@@ -137,15 +207,52 @@ function _objectWithoutProperties(source, excluded) {
137
207
  return target;
138
208
  }
139
209
 
210
+ function _assertThisInitialized$1(self) {
211
+ if (self === void 0) {
212
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
213
+ }
214
+
215
+ return self;
216
+ }
217
+
218
+ function _possibleConstructorReturn$1(self, call) {
219
+ if (call && (typeof call === "object" || typeof call === "function")) {
220
+ return call;
221
+ } else if (call !== void 0) {
222
+ throw new TypeError("Derived constructors may only return object or undefined");
223
+ }
224
+
225
+ return _assertThisInitialized$1(self);
226
+ }
227
+
228
+ function _createSuper(Derived) {
229
+ var hasNativeReflectConstruct = _isNativeReflectConstruct();
230
+
231
+ return function _createSuperInternal() {
232
+ var Super = _getPrototypeOf$1(Derived),
233
+ result;
234
+
235
+ if (hasNativeReflectConstruct) {
236
+ var NewTarget = _getPrototypeOf$1(this).constructor;
237
+
238
+ result = Reflect.construct(Super, arguments, NewTarget);
239
+ } else {
240
+ result = Super.apply(this, arguments);
241
+ }
242
+
243
+ return _possibleConstructorReturn$1(this, result);
244
+ };
245
+ }
246
+
140
247
  function _slicedToArray(arr, i) {
141
248
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
142
249
  }
143
250
 
144
- function _toConsumableArray(arr) {
145
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
251
+ function _toConsumableArray$1(arr) {
252
+ return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread$1();
146
253
  }
147
254
 
148
- function _arrayWithoutHoles(arr) {
255
+ function _arrayWithoutHoles$1(arr) {
149
256
  if (Array.isArray(arr)) return _arrayLikeToArray(arr);
150
257
  }
151
258
 
@@ -153,7 +260,7 @@ function _arrayWithHoles(arr) {
153
260
  if (Array.isArray(arr)) return arr;
154
261
  }
155
262
 
156
- function _iterableToArray(iter) {
263
+ function _iterableToArray$1(iter) {
157
264
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
158
265
  }
159
266
 
@@ -204,7 +311,7 @@ function _arrayLikeToArray(arr, len) {
204
311
  return arr2;
205
312
  }
206
313
 
207
- function _nonIterableSpread() {
314
+ function _nonIterableSpread$1() {
208
315
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
209
316
  }
210
317
 
@@ -1451,8 +1558,8 @@ var createCache = function createCache(options) {
1451
1558
  return cache;
1452
1559
  };
1453
1560
 
1454
- function _extends() {
1455
- _extends = Object.assign ? Object.assign.bind() : function (target) {
1561
+ function _extends$2() {
1562
+ _extends$2 = Object.assign ? Object.assign.bind() : function (target) {
1456
1563
  for (var i = 1; i < arguments.length; i++) {
1457
1564
  var source = arguments[i];
1458
1565
 
@@ -1465,7 +1572,7 @@ function _extends() {
1465
1572
 
1466
1573
  return target;
1467
1574
  };
1468
- return _extends.apply(this, arguments);
1575
+ return _extends$2.apply(this, arguments);
1469
1576
  }
1470
1577
 
1471
1578
  var EmotionCacheContext = /* #__PURE__ */React.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
@@ -1493,7 +1600,7 @@ var getTheme$1 = function getTheme(outerTheme, theme) {
1493
1600
  return mergedTheme;
1494
1601
  }
1495
1602
 
1496
- return _extends({}, outerTheme, theme);
1603
+ return _extends$2({}, outerTheme, theme);
1497
1604
  };
1498
1605
 
1499
1606
  var createCacheWithTheme = /* #__PURE__ */weakMemoize(function (outerTheme) {
@@ -1650,7 +1757,7 @@ var systemPalette = {
1650
1757
  var BASE_WIDTH = 390; // Based on iPhone 13's viewport size
1651
1758
 
1652
1759
  var horizontalScale = function horizontalScale(size) {
1653
- var _Dimensions$get = reactNative.Dimensions.get('window'),
1760
+ var _Dimensions$get = ReactNative.Dimensions.get('window'),
1654
1761
  width = _Dimensions$get.width,
1655
1762
  height = _Dimensions$get.height;
1656
1763
 
@@ -1989,6 +2096,35 @@ var getCardTheme = function getCardTheme(theme) {
1989
2096
  };
1990
2097
  };
1991
2098
 
2099
+ var getCheckboxTheme = function getCheckboxTheme(theme) {
2100
+ var colors = {
2101
+ borderColor: theme.colors.primary,
2102
+ text: theme.colors.invertedText,
2103
+ disabled: theme.colors.inactiveBackground
2104
+ };
2105
+ var space = {
2106
+ // to remove the empty space above the check icon
2107
+ // and also to center the check mark
2108
+ iconTop: -theme.space.xsmall
2109
+ };
2110
+ var sizes = {
2111
+ base: theme.space.large
2112
+ };
2113
+ var radii = {
2114
+ base: theme.radii.base
2115
+ };
2116
+ var borderWidths = {
2117
+ "default": theme.borderWidths.medium
2118
+ };
2119
+ return {
2120
+ colors: colors,
2121
+ space: space,
2122
+ sizes: sizes,
2123
+ radii: radii,
2124
+ borderWidths: borderWidths
2125
+ };
2126
+ };
2127
+
1992
2128
  var getContentNavigatorTheme = function getContentNavigatorTheme(theme) {
1993
2129
  var space = {
1994
2130
  valueHorizontalPadding: theme.space.small
@@ -2219,236 +2355,2231 @@ var getSelectTheme = function getSelectTheme(theme) {
2219
2355
  };
2220
2356
  };
2221
2357
 
2222
- var getSpinnerTheme = function getSpinnerTheme(theme) {
2223
- var color = {
2224
- "default": theme.colors.primary
2225
- };
2226
- var space = {
2227
- spinnerDot: theme.space.medium,
2228
- spinnerDotPadding: theme.space.small,
2229
- spinnerTextPaddingTop: theme.space.small
2230
- };
2231
- var radii = {
2232
- "default": theme.radii.medium
2233
- };
2234
- return {
2235
- color: color,
2236
- space: space,
2237
- radii: radii
2238
- };
2239
- };
2358
+ var getSpinnerTheme = function getSpinnerTheme(theme) {
2359
+ var color = {
2360
+ "default": theme.colors.primary
2361
+ };
2362
+ var space = {
2363
+ spinnerDot: theme.space.medium,
2364
+ spinnerDotPadding: theme.space.small,
2365
+ spinnerTextPaddingTop: theme.space.small
2366
+ };
2367
+ var radii = {
2368
+ "default": theme.radii.medium
2369
+ };
2370
+ return {
2371
+ color: color,
2372
+ space: space,
2373
+ radii: radii
2374
+ };
2375
+ };
2376
+
2377
+ var getSwitchTheme = function getSwitchTheme(theme) {
2378
+ var colors = {
2379
+ thumb: theme.colors.platformBackground,
2380
+ active: theme.colors.primary,
2381
+ inactive: theme.colors.inactiveBackground
2382
+ };
2383
+ var thumbSizes = {
2384
+ small: theme.space.medium,
2385
+ medium: theme.space.medium * 1.3
2386
+ };
2387
+ var widths = {
2388
+ small: theme.space.xxxlarge,
2389
+ medium: theme.space.xxxxlarge
2390
+ };
2391
+ var heights = {
2392
+ small: theme.space.large,
2393
+ medium: theme.space.large * 1.2
2394
+ };
2395
+ var spaces = {
2396
+ small: theme.space.xsmall,
2397
+ medium: theme.space.xsmall,
2398
+ inactive: 0
2399
+ };
2400
+ var radii = {
2401
+ rounded: theme.radii.rounded
2402
+ };
2403
+ var borderWidths = {
2404
+ "default": theme.borderWidths.base
2405
+ };
2406
+ return {
2407
+ colors: colors,
2408
+ thumbSizes: thumbSizes,
2409
+ widths: widths,
2410
+ heights: heights,
2411
+ spaces: spaces,
2412
+ radii: radii,
2413
+ borderWidths: borderWidths
2414
+ };
2415
+ };
2416
+
2417
+ var getTabsTheme = function getTabsTheme(theme) {
2418
+ var colors = {
2419
+ active: theme.colors.primary,
2420
+ inactive: theme.colors.text,
2421
+ activeBackground: theme.colors.primaryBackground,
2422
+ headerBottom: theme.colors.outline,
2423
+ text: theme.colors.text
2424
+ };
2425
+ var space = {
2426
+ flatListHorizontalPadding: theme.space.small,
2427
+ itemHorizontalPadding: theme.space.small,
2428
+ itemVerticalPadding: theme.space.small,
2429
+ outlineHorizontalPadding: theme.space.small,
2430
+ outlineVerticalPadding: theme.space.xsmall
2431
+ };
2432
+ var radii = {
2433
+ outline: theme.radii.medium
2434
+ };
2435
+ var borderWidths = {
2436
+ headerBottom: theme.borderWidths.base
2437
+ };
2438
+ var sizes = {
2439
+ indicator: theme.space.xxsmall
2440
+ };
2441
+ return {
2442
+ borderWidths: borderWidths,
2443
+ colors: colors,
2444
+ space: space,
2445
+ radii: radii,
2446
+ sizes: sizes
2447
+ };
2448
+ };
2449
+
2450
+ var getTagTheme = function getTagTheme(theme) {
2451
+ var borderWidths = {
2452
+ "default": theme.borderWidths.base
2453
+ };
2454
+ var colors = {
2455
+ danger: theme.colors.danger,
2456
+ dangerBackground: theme.colors.dangerBackground,
2457
+ info: theme.colors.info,
2458
+ infoBackground: theme.colors.infoBackground,
2459
+ success: theme.colors.successDark,
2460
+ successBackground: theme.colors.successBackground,
2461
+ warning: theme.colors.warningDark,
2462
+ warningBackground: theme.colors.warningBackground
2463
+ };
2464
+ var fonts = {
2465
+ "default": theme.fonts.semiBold
2466
+ };
2467
+ var fontSizes = {
2468
+ "default": theme.fontSizes.small
2469
+ };
2470
+ var space = {
2471
+ horizontalPadding: theme.space.small,
2472
+ verticalPadding: theme.space.xxsmall
2473
+ };
2474
+ var radii = {
2475
+ "default": theme.radii.base
2476
+ };
2477
+ return {
2478
+ borderWidths: borderWidths,
2479
+ colors: colors,
2480
+ fonts: fonts,
2481
+ fontSizes: fontSizes,
2482
+ space: space,
2483
+ radii: radii
2484
+ };
2485
+ };
2486
+
2487
+ var getTextInputTheme = function getTextInputTheme(theme) {
2488
+ var colors = {
2489
+ labelBackground: theme.colors.platformBackground,
2490
+ border: theme.colors.text
2491
+ };
2492
+ var space = {
2493
+ containerPadding: theme.space.medium,
2494
+ labelLeft: theme.space.medium,
2495
+ labelTop: theme.lineHeights.small / -2,
2496
+ labelHorizontalPadding: theme.space.xsmall,
2497
+ inputHorizontalMargin: theme.space.small
2498
+ };
2499
+ var fontSizes = {
2500
+ text: theme.fontSizes.large
2501
+ };
2502
+ var borderWidths = {
2503
+ container: theme.borderWidths.base
2504
+ };
2505
+ var radii = {
2506
+ container: theme.radii.medium
2507
+ };
2508
+ return {
2509
+ colors: colors,
2510
+ space: space,
2511
+ fontSizes: fontSizes,
2512
+ borderWidths: borderWidths,
2513
+ radii: radii
2514
+ };
2515
+ };
2516
+
2517
+ var getToastTheme = function getToastTheme(theme) {
2518
+ var colors = {
2519
+ success: theme.colors.success,
2520
+ warning: theme.colors.warning,
2521
+ error: theme.colors.danger,
2522
+ info: theme.colors.infoMediumLight,
2523
+ divider: theme.colors.backgroundLight
2524
+ };
2525
+ var sizes = {
2526
+ height: scale(48)
2527
+ };
2528
+ var space = {
2529
+ mediumPadding: theme.space.medium,
2530
+ largePadding: theme.space.large
2531
+ };
2532
+ var radii = {
2533
+ "default": theme.radii.xlarge
2534
+ };
2535
+ var borderWidths = {
2536
+ base: theme.borderWidths.base
2537
+ };
2538
+ return {
2539
+ colors: colors,
2540
+ radii: radii,
2541
+ sizes: sizes,
2542
+ space: space,
2543
+ borderWidths: borderWidths
2544
+ };
2545
+ };
2546
+
2547
+ var getTypographyTheme = function getTypographyTheme(theme) {
2548
+ var colors = {
2549
+ body: theme.colors.text,
2550
+ subdued: theme.colors.disabledText,
2551
+ primary: theme.colors.primary
2552
+ };
2553
+ var fonts = {
2554
+ light: theme.fonts.light,
2555
+ regular: theme.fonts.regular,
2556
+ semiBold: theme.fonts.semiBold
2557
+ };
2558
+ var fontSizes = {
2559
+ small: theme.fontSizes.small,
2560
+ medium: theme.fontSizes.medium,
2561
+ large: theme.fontSizes.large,
2562
+ xlarge: theme.fontSizes.xlarge
2563
+ };
2564
+ var lineHeights = {
2565
+ small: theme.lineHeights.small,
2566
+ medium: theme.lineHeights.medium,
2567
+ large: theme.lineHeights.large,
2568
+ xlarge: theme.lineHeights.xlarge
2569
+ };
2570
+ return {
2571
+ colors: colors,
2572
+ fonts: fonts,
2573
+ fontSizes: fontSizes,
2574
+ lineHeights: lineHeights
2575
+ };
2576
+ };
2577
+
2578
+ var getTheme = function getTheme() {
2579
+ var scale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : scale$1;
2580
+ var systemPallete = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : systemPalette;
2581
+ var globalTheme = getGlobalTheme(scale, systemPallete);
2582
+ return _objectSpread2(_objectSpread2({}, globalTheme), {}, {
2583
+ __hd__: {
2584
+ avatar: getAvatarTheme(globalTheme),
2585
+ alert: getAlertTheme(globalTheme),
2586
+ badge: getBadgeTheme(globalTheme),
2587
+ bottomNavigation: getBottomNavigationTheme(globalTheme),
2588
+ bottomSheet: getBottomSheetTheme(globalTheme),
2589
+ button: getButtonTheme(globalTheme),
2590
+ card: getCardTheme(globalTheme),
2591
+ checkbox: getCheckboxTheme(globalTheme),
2592
+ contentNavigator: getContentNavigatorTheme(globalTheme),
2593
+ divider: getDividerTheme(globalTheme),
2594
+ drawer: getDrawerTheme(globalTheme),
2595
+ fab: getFABTheme(globalTheme),
2596
+ icon: getIconTheme(globalTheme),
2597
+ progress: getProgressTheme(globalTheme),
2598
+ radio: getRadioTheme(globalTheme),
2599
+ sectionHeading: getSectionHeadingTheme(globalTheme),
2600
+ select: getSelectTheme(globalTheme),
2601
+ spinner: getSpinnerTheme(globalTheme),
2602
+ "switch": getSwitchTheme(globalTheme),
2603
+ tabs: getTabsTheme(globalTheme),
2604
+ tag: getTagTheme(globalTheme),
2605
+ textInput: getTextInputTheme(globalTheme),
2606
+ toast: getToastTheme(globalTheme),
2607
+ typography: getTypographyTheme(globalTheme)
2608
+ }
2609
+ });
2610
+ };
2611
+
2612
+ var theme = getTheme();
2613
+ var ThemeProvider = ThemeProvider$1;
2614
+ var useTheme = useTheme$1;
2615
+
2616
+ function getDefaultExportFromCjs (x) {
2617
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
2618
+ }
2619
+
2620
+ var dist = {};
2621
+
2622
+ function _interopRequireDefault$5(obj) {
2623
+ return obj && obj.__esModule ? obj : {
2624
+ "default": obj
2625
+ };
2626
+ }
2627
+
2628
+ var interopRequireDefault = _interopRequireDefault$5;
2629
+
2630
+ var createIconSet$1 = {};
2631
+
2632
+ function _arrayWithoutHoles(arr) {
2633
+ if (Array.isArray(arr)) {
2634
+ for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {
2635
+ arr2[i] = arr[i];
2636
+ }
2637
+
2638
+ return arr2;
2639
+ }
2640
+ }
2641
+
2642
+ var arrayWithoutHoles$1 = _arrayWithoutHoles;
2643
+
2644
+ function _iterableToArray(iter) {
2645
+ if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
2646
+ }
2647
+
2648
+ var iterableToArray$1 = _iterableToArray;
2649
+
2650
+ function _nonIterableSpread() {
2651
+ throw new TypeError("Invalid attempt to spread non-iterable instance");
2652
+ }
2653
+
2654
+ var nonIterableSpread$1 = _nonIterableSpread;
2655
+
2656
+ var arrayWithoutHoles = arrayWithoutHoles$1;
2657
+ var iterableToArray = iterableToArray$1;
2658
+ var nonIterableSpread = nonIterableSpread$1;
2659
+
2660
+ function _toConsumableArray(arr) {
2661
+ return arrayWithoutHoles(arr) || iterableToArray(arr) || nonIterableSpread();
2662
+ }
2663
+
2664
+ var toConsumableArray = _toConsumableArray;
2665
+
2666
+ var runtime = {exports: {}};
2667
+
2668
+ (function (module) {
2669
+ var runtime = function (exports) {
2670
+
2671
+ var Op = Object.prototype;
2672
+ var hasOwn = Op.hasOwnProperty;
2673
+ var undefined$1; // More compressible than void 0.
2674
+
2675
+ var $Symbol = typeof Symbol === "function" ? Symbol : {};
2676
+ var iteratorSymbol = $Symbol.iterator || "@@iterator";
2677
+ var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
2678
+ var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
2679
+
2680
+ function wrap(innerFn, outerFn, self, tryLocsList) {
2681
+ // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
2682
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
2683
+ var generator = Object.create(protoGenerator.prototype);
2684
+ var context = new Context(tryLocsList || []); // The ._invoke method unifies the implementations of the .next,
2685
+ // .throw, and .return methods.
2686
+
2687
+ generator._invoke = makeInvokeMethod(innerFn, self, context);
2688
+ return generator;
2689
+ }
2690
+
2691
+ exports.wrap = wrap; // Try/catch helper to minimize deoptimizations. Returns a completion
2692
+ // record like context.tryEntries[i].completion. This interface could
2693
+ // have been (and was previously) designed to take a closure to be
2694
+ // invoked without arguments, but in all the cases we care about we
2695
+ // already have an existing method we want to call, so there's no need
2696
+ // to create a new function object. We can even get away with assuming
2697
+ // the method takes exactly one argument, since that happens to be true
2698
+ // in every case, so we don't have to touch the arguments object. The
2699
+ // only additional allocation required is the completion record, which
2700
+ // has a stable shape and so hopefully should be cheap to allocate.
2701
+
2702
+ function tryCatch(fn, obj, arg) {
2703
+ try {
2704
+ return {
2705
+ type: "normal",
2706
+ arg: fn.call(obj, arg)
2707
+ };
2708
+ } catch (err) {
2709
+ return {
2710
+ type: "throw",
2711
+ arg: err
2712
+ };
2713
+ }
2714
+ }
2715
+
2716
+ var GenStateSuspendedStart = "suspendedStart";
2717
+ var GenStateSuspendedYield = "suspendedYield";
2718
+ var GenStateExecuting = "executing";
2719
+ var GenStateCompleted = "completed"; // Returning this object from the innerFn has the same effect as
2720
+ // breaking out of the dispatch switch statement.
2721
+
2722
+ var ContinueSentinel = {}; // Dummy constructor functions that we use as the .constructor and
2723
+ // .constructor.prototype properties for functions that return Generator
2724
+ // objects. For full spec compliance, you may wish to configure your
2725
+ // minifier not to mangle the names of these two functions.
2726
+
2727
+ function Generator() {}
2728
+
2729
+ function GeneratorFunction() {}
2730
+
2731
+ function GeneratorFunctionPrototype() {} // This is a polyfill for %IteratorPrototype% for environments that
2732
+ // don't natively support it.
2733
+
2734
+
2735
+ var IteratorPrototype = {};
2736
+
2737
+ IteratorPrototype[iteratorSymbol] = function () {
2738
+ return this;
2739
+ };
2740
+
2741
+ var getProto = Object.getPrototypeOf;
2742
+ var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
2743
+
2744
+ if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
2745
+ // This environment has a native %IteratorPrototype%; use it instead
2746
+ // of the polyfill.
2747
+ IteratorPrototype = NativeIteratorPrototype;
2748
+ }
2749
+
2750
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
2751
+ GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
2752
+ GeneratorFunctionPrototype.constructor = GeneratorFunction;
2753
+ GeneratorFunctionPrototype[toStringTagSymbol] = GeneratorFunction.displayName = "GeneratorFunction"; // Helper for defining the .next, .throw, and .return methods of the
2754
+ // Iterator interface in terms of a single ._invoke method.
2755
+
2756
+ function defineIteratorMethods(prototype) {
2757
+ ["next", "throw", "return"].forEach(function (method) {
2758
+ prototype[method] = function (arg) {
2759
+ return this._invoke(method, arg);
2760
+ };
2761
+ });
2762
+ }
2763
+
2764
+ exports.isGeneratorFunction = function (genFun) {
2765
+ var ctor = typeof genFun === "function" && genFun.constructor;
2766
+ return ctor ? ctor === GeneratorFunction || // For the native GeneratorFunction constructor, the best we can
2767
+ // do is to check its .name property.
2768
+ (ctor.displayName || ctor.name) === "GeneratorFunction" : false;
2769
+ };
2770
+
2771
+ exports.mark = function (genFun) {
2772
+ if (Object.setPrototypeOf) {
2773
+ Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
2774
+ } else {
2775
+ genFun.__proto__ = GeneratorFunctionPrototype;
2776
+
2777
+ if (!(toStringTagSymbol in genFun)) {
2778
+ genFun[toStringTagSymbol] = "GeneratorFunction";
2779
+ }
2780
+ }
2781
+
2782
+ genFun.prototype = Object.create(Gp);
2783
+ return genFun;
2784
+ }; // Within the body of any async function, `await x` is transformed to
2785
+ // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
2786
+ // `hasOwn.call(value, "__await")` to determine if the yielded value is
2787
+ // meant to be awaited.
2788
+
2789
+
2790
+ exports.awrap = function (arg) {
2791
+ return {
2792
+ __await: arg
2793
+ };
2794
+ };
2795
+
2796
+ function AsyncIterator(generator) {
2797
+ function invoke(method, arg, resolve, reject) {
2798
+ var record = tryCatch(generator[method], generator, arg);
2799
+
2800
+ if (record.type === "throw") {
2801
+ reject(record.arg);
2802
+ } else {
2803
+ var result = record.arg;
2804
+ var value = result.value;
2805
+
2806
+ if (value && _typeof$2(value) === "object" && hasOwn.call(value, "__await")) {
2807
+ return Promise.resolve(value.__await).then(function (value) {
2808
+ invoke("next", value, resolve, reject);
2809
+ }, function (err) {
2810
+ invoke("throw", err, resolve, reject);
2811
+ });
2812
+ }
2813
+
2814
+ return Promise.resolve(value).then(function (unwrapped) {
2815
+ // When a yielded Promise is resolved, its final value becomes
2816
+ // the .value of the Promise<{value,done}> result for the
2817
+ // current iteration.
2818
+ result.value = unwrapped;
2819
+ resolve(result);
2820
+ }, function (error) {
2821
+ // If a rejected Promise was yielded, throw the rejection back
2822
+ // into the async generator function so it can be handled there.
2823
+ return invoke("throw", error, resolve, reject);
2824
+ });
2825
+ }
2826
+ }
2827
+
2828
+ var previousPromise;
2829
+
2830
+ function enqueue(method, arg) {
2831
+ function callInvokeWithMethodAndArg() {
2832
+ return new Promise(function (resolve, reject) {
2833
+ invoke(method, arg, resolve, reject);
2834
+ });
2835
+ }
2836
+
2837
+ return previousPromise = // If enqueue has been called before, then we want to wait until
2838
+ // all previous Promises have been resolved before calling invoke,
2839
+ // so that results are always delivered in the correct order. If
2840
+ // enqueue has not been called before, then it is important to
2841
+ // call invoke immediately, without waiting on a callback to fire,
2842
+ // so that the async generator function has the opportunity to do
2843
+ // any necessary setup in a predictable way. This predictability
2844
+ // is why the Promise constructor synchronously invokes its
2845
+ // executor callback, and why async functions synchronously
2846
+ // execute code before the first await. Since we implement simple
2847
+ // async functions in terms of async generators, it is especially
2848
+ // important to get this right, even though it requires care.
2849
+ previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, // Avoid propagating failures to Promises returned by later
2850
+ // invocations of the iterator.
2851
+ callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
2852
+ } // Define the unified helper method that is used to implement .next,
2853
+ // .throw, and .return (see defineIteratorMethods).
2854
+
2855
+
2856
+ this._invoke = enqueue;
2857
+ }
2858
+
2859
+ defineIteratorMethods(AsyncIterator.prototype);
2860
+
2861
+ AsyncIterator.prototype[asyncIteratorSymbol] = function () {
2862
+ return this;
2863
+ };
2864
+
2865
+ exports.AsyncIterator = AsyncIterator; // Note that simple async functions are implemented on top of
2866
+ // AsyncIterator objects; they just return a Promise for the value of
2867
+ // the final result produced by the iterator.
2868
+
2869
+ exports.async = function (innerFn, outerFn, self, tryLocsList) {
2870
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList));
2871
+ return exports.isGeneratorFunction(outerFn) ? iter // If outerFn is a generator, return the full iterator.
2872
+ : iter.next().then(function (result) {
2873
+ return result.done ? result.value : iter.next();
2874
+ });
2875
+ };
2876
+
2877
+ function makeInvokeMethod(innerFn, self, context) {
2878
+ var state = GenStateSuspendedStart;
2879
+ return function invoke(method, arg) {
2880
+ if (state === GenStateExecuting) {
2881
+ throw new Error("Generator is already running");
2882
+ }
2883
+
2884
+ if (state === GenStateCompleted) {
2885
+ if (method === "throw") {
2886
+ throw arg;
2887
+ } // Be forgiving, per 25.3.3.3.3 of the spec:
2888
+ // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
2889
+
2890
+
2891
+ return doneResult();
2892
+ }
2893
+
2894
+ context.method = method;
2895
+ context.arg = arg;
2896
+
2897
+ while (true) {
2898
+ var delegate = context.delegate;
2899
+
2900
+ if (delegate) {
2901
+ var delegateResult = maybeInvokeDelegate(delegate, context);
2902
+
2903
+ if (delegateResult) {
2904
+ if (delegateResult === ContinueSentinel) continue;
2905
+ return delegateResult;
2906
+ }
2907
+ }
2908
+
2909
+ if (context.method === "next") {
2910
+ // Setting context._sent for legacy support of Babel's
2911
+ // function.sent implementation.
2912
+ context.sent = context._sent = context.arg;
2913
+ } else if (context.method === "throw") {
2914
+ if (state === GenStateSuspendedStart) {
2915
+ state = GenStateCompleted;
2916
+ throw context.arg;
2917
+ }
2918
+
2919
+ context.dispatchException(context.arg);
2920
+ } else if (context.method === "return") {
2921
+ context.abrupt("return", context.arg);
2922
+ }
2923
+
2924
+ state = GenStateExecuting;
2925
+ var record = tryCatch(innerFn, self, context);
2926
+
2927
+ if (record.type === "normal") {
2928
+ // If an exception is thrown from innerFn, we leave state ===
2929
+ // GenStateExecuting and loop back for another invocation.
2930
+ state = context.done ? GenStateCompleted : GenStateSuspendedYield;
2931
+
2932
+ if (record.arg === ContinueSentinel) {
2933
+ continue;
2934
+ }
2935
+
2936
+ return {
2937
+ value: record.arg,
2938
+ done: context.done
2939
+ };
2940
+ } else if (record.type === "throw") {
2941
+ state = GenStateCompleted; // Dispatch the exception by looping back around to the
2942
+ // context.dispatchException(context.arg) call above.
2943
+
2944
+ context.method = "throw";
2945
+ context.arg = record.arg;
2946
+ }
2947
+ }
2948
+ };
2949
+ } // Call delegate.iterator[context.method](context.arg) and handle the
2950
+ // result, either by returning a { value, done } result from the
2951
+ // delegate iterator, or by modifying context.method and context.arg,
2952
+ // setting context.delegate to null, and returning the ContinueSentinel.
2953
+
2954
+
2955
+ function maybeInvokeDelegate(delegate, context) {
2956
+ var method = delegate.iterator[context.method];
2957
+
2958
+ if (method === undefined$1) {
2959
+ // A .throw or .return when the delegate iterator has no .throw
2960
+ // method always terminates the yield* loop.
2961
+ context.delegate = null;
2962
+
2963
+ if (context.method === "throw") {
2964
+ // Note: ["return"] must be used for ES3 parsing compatibility.
2965
+ if (delegate.iterator["return"]) {
2966
+ // If the delegate iterator has a return method, give it a
2967
+ // chance to clean up.
2968
+ context.method = "return";
2969
+ context.arg = undefined$1;
2970
+ maybeInvokeDelegate(delegate, context);
2971
+
2972
+ if (context.method === "throw") {
2973
+ // If maybeInvokeDelegate(context) changed context.method from
2974
+ // "return" to "throw", let that override the TypeError below.
2975
+ return ContinueSentinel;
2976
+ }
2977
+ }
2978
+
2979
+ context.method = "throw";
2980
+ context.arg = new TypeError("The iterator does not provide a 'throw' method");
2981
+ }
2982
+
2983
+ return ContinueSentinel;
2984
+ }
2985
+
2986
+ var record = tryCatch(method, delegate.iterator, context.arg);
2987
+
2988
+ if (record.type === "throw") {
2989
+ context.method = "throw";
2990
+ context.arg = record.arg;
2991
+ context.delegate = null;
2992
+ return ContinueSentinel;
2993
+ }
2994
+
2995
+ var info = record.arg;
2996
+
2997
+ if (!info) {
2998
+ context.method = "throw";
2999
+ context.arg = new TypeError("iterator result is not an object");
3000
+ context.delegate = null;
3001
+ return ContinueSentinel;
3002
+ }
3003
+
3004
+ if (info.done) {
3005
+ // Assign the result of the finished delegate to the temporary
3006
+ // variable specified by delegate.resultName (see delegateYield).
3007
+ context[delegate.resultName] = info.value; // Resume execution at the desired location (see delegateYield).
3008
+
3009
+ context.next = delegate.nextLoc; // If context.method was "throw" but the delegate handled the
3010
+ // exception, let the outer generator proceed normally. If
3011
+ // context.method was "next", forget context.arg since it has been
3012
+ // "consumed" by the delegate iterator. If context.method was
3013
+ // "return", allow the original .return call to continue in the
3014
+ // outer generator.
3015
+
3016
+ if (context.method !== "return") {
3017
+ context.method = "next";
3018
+ context.arg = undefined$1;
3019
+ }
3020
+ } else {
3021
+ // Re-yield the result returned by the delegate method.
3022
+ return info;
3023
+ } // The delegate iterator is finished, so forget it and continue with
3024
+ // the outer generator.
3025
+
3026
+
3027
+ context.delegate = null;
3028
+ return ContinueSentinel;
3029
+ } // Define Generator.prototype.{next,throw,return} in terms of the
3030
+ // unified ._invoke helper method.
3031
+
3032
+
3033
+ defineIteratorMethods(Gp);
3034
+ Gp[toStringTagSymbol] = "Generator"; // A Generator should always return itself as the iterator object when the
3035
+ // @@iterator function is called on it. Some browsers' implementations of the
3036
+ // iterator prototype chain incorrectly implement this, causing the Generator
3037
+ // object to not be returned from this call. This ensures that doesn't happen.
3038
+ // See https://github.com/facebook/regenerator/issues/274 for more details.
3039
+
3040
+ Gp[iteratorSymbol] = function () {
3041
+ return this;
3042
+ };
3043
+
3044
+ Gp.toString = function () {
3045
+ return "[object Generator]";
3046
+ };
3047
+
3048
+ function pushTryEntry(locs) {
3049
+ var entry = {
3050
+ tryLoc: locs[0]
3051
+ };
3052
+
3053
+ if (1 in locs) {
3054
+ entry.catchLoc = locs[1];
3055
+ }
3056
+
3057
+ if (2 in locs) {
3058
+ entry.finallyLoc = locs[2];
3059
+ entry.afterLoc = locs[3];
3060
+ }
3061
+
3062
+ this.tryEntries.push(entry);
3063
+ }
3064
+
3065
+ function resetTryEntry(entry) {
3066
+ var record = entry.completion || {};
3067
+ record.type = "normal";
3068
+ delete record.arg;
3069
+ entry.completion = record;
3070
+ }
3071
+
3072
+ function Context(tryLocsList) {
3073
+ // The root entry object (effectively a try statement without a catch
3074
+ // or a finally block) gives us a place to store values thrown from
3075
+ // locations where there is no enclosing try statement.
3076
+ this.tryEntries = [{
3077
+ tryLoc: "root"
3078
+ }];
3079
+ tryLocsList.forEach(pushTryEntry, this);
3080
+ this.reset(true);
3081
+ }
3082
+
3083
+ exports.keys = function (object) {
3084
+ var keys = [];
3085
+
3086
+ for (var key in object) {
3087
+ keys.push(key);
3088
+ }
3089
+
3090
+ keys.reverse(); // Rather than returning an object with a next method, we keep
3091
+ // things simple and return the next function itself.
3092
+
3093
+ return function next() {
3094
+ while (keys.length) {
3095
+ var key = keys.pop();
3096
+
3097
+ if (key in object) {
3098
+ next.value = key;
3099
+ next.done = false;
3100
+ return next;
3101
+ }
3102
+ } // To avoid creating an additional object, we just hang the .value
3103
+ // and .done properties off the next function object itself. This
3104
+ // also ensures that the minifier will not anonymize the function.
3105
+
3106
+
3107
+ next.done = true;
3108
+ return next;
3109
+ };
3110
+ };
3111
+
3112
+ function values(iterable) {
3113
+ if (iterable) {
3114
+ var iteratorMethod = iterable[iteratorSymbol];
3115
+
3116
+ if (iteratorMethod) {
3117
+ return iteratorMethod.call(iterable);
3118
+ }
3119
+
3120
+ if (typeof iterable.next === "function") {
3121
+ return iterable;
3122
+ }
3123
+
3124
+ if (!isNaN(iterable.length)) {
3125
+ var i = -1,
3126
+ next = function next() {
3127
+ while (++i < iterable.length) {
3128
+ if (hasOwn.call(iterable, i)) {
3129
+ next.value = iterable[i];
3130
+ next.done = false;
3131
+ return next;
3132
+ }
3133
+ }
3134
+
3135
+ next.value = undefined$1;
3136
+ next.done = true;
3137
+ return next;
3138
+ };
3139
+
3140
+ return next.next = next;
3141
+ }
3142
+ } // Return an iterator with no values.
3143
+
3144
+
3145
+ return {
3146
+ next: doneResult
3147
+ };
3148
+ }
3149
+
3150
+ exports.values = values;
3151
+
3152
+ function doneResult() {
3153
+ return {
3154
+ value: undefined$1,
3155
+ done: true
3156
+ };
3157
+ }
3158
+
3159
+ Context.prototype = {
3160
+ constructor: Context,
3161
+ reset: function reset(skipTempReset) {
3162
+ this.prev = 0;
3163
+ this.next = 0; // Resetting context._sent for legacy support of Babel's
3164
+ // function.sent implementation.
3165
+
3166
+ this.sent = this._sent = undefined$1;
3167
+ this.done = false;
3168
+ this.delegate = null;
3169
+ this.method = "next";
3170
+ this.arg = undefined$1;
3171
+ this.tryEntries.forEach(resetTryEntry);
3172
+
3173
+ if (!skipTempReset) {
3174
+ for (var name in this) {
3175
+ // Not sure about the optimal order of these conditions:
3176
+ if (name.charAt(0) === "t" && hasOwn.call(this, name) && !isNaN(+name.slice(1))) {
3177
+ this[name] = undefined$1;
3178
+ }
3179
+ }
3180
+ }
3181
+ },
3182
+ stop: function stop() {
3183
+ this.done = true;
3184
+ var rootEntry = this.tryEntries[0];
3185
+ var rootRecord = rootEntry.completion;
3186
+
3187
+ if (rootRecord.type === "throw") {
3188
+ throw rootRecord.arg;
3189
+ }
3190
+
3191
+ return this.rval;
3192
+ },
3193
+ dispatchException: function dispatchException(exception) {
3194
+ if (this.done) {
3195
+ throw exception;
3196
+ }
3197
+
3198
+ var context = this;
3199
+
3200
+ function handle(loc, caught) {
3201
+ record.type = "throw";
3202
+ record.arg = exception;
3203
+ context.next = loc;
3204
+
3205
+ if (caught) {
3206
+ // If the dispatched exception was caught by a catch block,
3207
+ // then let that catch block handle the exception normally.
3208
+ context.method = "next";
3209
+ context.arg = undefined$1;
3210
+ }
3211
+
3212
+ return !!caught;
3213
+ }
3214
+
3215
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
3216
+ var entry = this.tryEntries[i];
3217
+ var record = entry.completion;
3218
+
3219
+ if (entry.tryLoc === "root") {
3220
+ // Exception thrown outside of any try block that could handle
3221
+ // it, so set the completion value of the entire function to
3222
+ // throw the exception.
3223
+ return handle("end");
3224
+ }
3225
+
3226
+ if (entry.tryLoc <= this.prev) {
3227
+ var hasCatch = hasOwn.call(entry, "catchLoc");
3228
+ var hasFinally = hasOwn.call(entry, "finallyLoc");
3229
+
3230
+ if (hasCatch && hasFinally) {
3231
+ if (this.prev < entry.catchLoc) {
3232
+ return handle(entry.catchLoc, true);
3233
+ } else if (this.prev < entry.finallyLoc) {
3234
+ return handle(entry.finallyLoc);
3235
+ }
3236
+ } else if (hasCatch) {
3237
+ if (this.prev < entry.catchLoc) {
3238
+ return handle(entry.catchLoc, true);
3239
+ }
3240
+ } else if (hasFinally) {
3241
+ if (this.prev < entry.finallyLoc) {
3242
+ return handle(entry.finallyLoc);
3243
+ }
3244
+ } else {
3245
+ throw new Error("try statement without catch or finally");
3246
+ }
3247
+ }
3248
+ }
3249
+ },
3250
+ abrupt: function abrupt(type, arg) {
3251
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
3252
+ var entry = this.tryEntries[i];
3253
+
3254
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
3255
+ var finallyEntry = entry;
3256
+ break;
3257
+ }
3258
+ }
3259
+
3260
+ if (finallyEntry && (type === "break" || type === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) {
3261
+ // Ignore the finally entry if control is not jumping to a
3262
+ // location outside the try/catch block.
3263
+ finallyEntry = null;
3264
+ }
3265
+
3266
+ var record = finallyEntry ? finallyEntry.completion : {};
3267
+ record.type = type;
3268
+ record.arg = arg;
3269
+
3270
+ if (finallyEntry) {
3271
+ this.method = "next";
3272
+ this.next = finallyEntry.finallyLoc;
3273
+ return ContinueSentinel;
3274
+ }
3275
+
3276
+ return this.complete(record);
3277
+ },
3278
+ complete: function complete(record, afterLoc) {
3279
+ if (record.type === "throw") {
3280
+ throw record.arg;
3281
+ }
3282
+
3283
+ if (record.type === "break" || record.type === "continue") {
3284
+ this.next = record.arg;
3285
+ } else if (record.type === "return") {
3286
+ this.rval = this.arg = record.arg;
3287
+ this.method = "return";
3288
+ this.next = "end";
3289
+ } else if (record.type === "normal" && afterLoc) {
3290
+ this.next = afterLoc;
3291
+ }
3292
+
3293
+ return ContinueSentinel;
3294
+ },
3295
+ finish: function finish(finallyLoc) {
3296
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
3297
+ var entry = this.tryEntries[i];
3298
+
3299
+ if (entry.finallyLoc === finallyLoc) {
3300
+ this.complete(entry.completion, entry.afterLoc);
3301
+ resetTryEntry(entry);
3302
+ return ContinueSentinel;
3303
+ }
3304
+ }
3305
+ },
3306
+ "catch": function _catch(tryLoc) {
3307
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
3308
+ var entry = this.tryEntries[i];
3309
+
3310
+ if (entry.tryLoc === tryLoc) {
3311
+ var record = entry.completion;
3312
+
3313
+ if (record.type === "throw") {
3314
+ var thrown = record.arg;
3315
+ resetTryEntry(entry);
3316
+ }
3317
+
3318
+ return thrown;
3319
+ }
3320
+ } // The context.catch method must only be called with a location
3321
+ // argument that corresponds to a known catch block.
3322
+
3323
+
3324
+ throw new Error("illegal catch attempt");
3325
+ },
3326
+ delegateYield: function delegateYield(iterable, resultName, nextLoc) {
3327
+ this.delegate = {
3328
+ iterator: values(iterable),
3329
+ resultName: resultName,
3330
+ nextLoc: nextLoc
3331
+ };
3332
+
3333
+ if (this.method === "next") {
3334
+ // Deliberately forget the last sent value so that we don't
3335
+ // accidentally pass it on to the delegate.
3336
+ this.arg = undefined$1;
3337
+ }
3338
+
3339
+ return ContinueSentinel;
3340
+ }
3341
+ }; // Regardless of whether this script is executing as a CommonJS module
3342
+ // or not, return the runtime object so that we can declare the variable
3343
+ // regeneratorRuntime in the outer scope, which allows this module to be
3344
+ // injected easily by `bin/regenerator --include-runtime script.js`.
3345
+
3346
+ return exports;
3347
+ }( // If this script is executing as a CommonJS module, use module.exports
3348
+ // as the regeneratorRuntime namespace. Otherwise create a new empty
3349
+ // object. Either way, the resulting object will be used to initialize
3350
+ // the regeneratorRuntime variable at the top of this file.
3351
+ module.exports );
3352
+
3353
+ try {
3354
+ regeneratorRuntime = runtime;
3355
+ } catch (accidentalStrictMode) {
3356
+ // This module should not be running in strict mode, so the above
3357
+ // assignment should always work unless something is misconfigured. Just
3358
+ // in case runtime.js accidentally runs in strict mode, we can escape
3359
+ // strict mode using a global Function call. This could conceivably fail
3360
+ // if a Content Security Policy forbids using Function, but in that case
3361
+ // the proper solution is to fix the accidental strict mode problem. If
3362
+ // you've misconfigured your bundler to force strict mode and applied a
3363
+ // CSP to forbid Function, and you're not willing to fix either of those
3364
+ // problems, please detail your unique predicament in a GitHub issue.
3365
+ Function("r", "regeneratorRuntime = r")(runtime);
3366
+ }
3367
+ })(runtime);
3368
+
3369
+ var regenerator = runtime.exports;
3370
+
3371
+ function _extends$1() {
3372
+ _extends_1 = _extends$1 = Object.assign || function (target) {
3373
+ for (var i = 1; i < arguments.length; i++) {
3374
+ var source = arguments[i];
3375
+
3376
+ for (var key in source) {
3377
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
3378
+ target[key] = source[key];
3379
+ }
3380
+ }
3381
+ }
3382
+
3383
+ return target;
3384
+ };
3385
+
3386
+ return _extends$1.apply(this, arguments);
3387
+ }
3388
+
3389
+ var _extends_1 = _extends$1;
3390
+
3391
+ function _objectWithoutPropertiesLoose(source, excluded) {
3392
+ if (source == null) return {};
3393
+ var target = {};
3394
+ var sourceKeys = Object.keys(source);
3395
+ var key, i;
3396
+
3397
+ for (i = 0; i < sourceKeys.length; i++) {
3398
+ key = sourceKeys[i];
3399
+ if (excluded.indexOf(key) >= 0) continue;
3400
+ target[key] = source[key];
3401
+ }
3402
+
3403
+ return target;
3404
+ }
3405
+
3406
+ var objectWithoutPropertiesLoose$1 = _objectWithoutPropertiesLoose;
3407
+
3408
+ var objectWithoutPropertiesLoose = objectWithoutPropertiesLoose$1;
3409
+
3410
+ function _objectWithoutProperties(source, excluded) {
3411
+ if (source == null) return {};
3412
+ var target = objectWithoutPropertiesLoose(source, excluded);
3413
+ var key, i;
3414
+
3415
+ if (Object.getOwnPropertySymbols) {
3416
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
3417
+
3418
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
3419
+ key = sourceSymbolKeys[i];
3420
+ if (excluded.indexOf(key) >= 0) continue;
3421
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
3422
+ target[key] = source[key];
3423
+ }
3424
+ }
3425
+
3426
+ return target;
3427
+ }
3428
+
3429
+ var objectWithoutProperties = _objectWithoutProperties;
3430
+
3431
+ function _classCallCheck(instance, Constructor) {
3432
+ if (!(instance instanceof Constructor)) {
3433
+ throw new TypeError("Cannot call a class as a function");
3434
+ }
3435
+ }
3436
+
3437
+ var classCallCheck = _classCallCheck;
3438
+
3439
+ function _defineProperties(target, props) {
3440
+ for (var i = 0; i < props.length; i++) {
3441
+ var descriptor = props[i];
3442
+ descriptor.enumerable = descriptor.enumerable || false;
3443
+ descriptor.configurable = true;
3444
+ if ("value" in descriptor) descriptor.writable = true;
3445
+ Object.defineProperty(target, descriptor.key, descriptor);
3446
+ }
3447
+ }
3448
+
3449
+ function _createClass(Constructor, protoProps, staticProps) {
3450
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
3451
+ if (staticProps) _defineProperties(Constructor, staticProps);
3452
+ return Constructor;
3453
+ }
3454
+
3455
+ var createClass = _createClass;
3456
+
3457
+ function _typeof2(obj) {
3458
+ if (typeof Symbol === "function" && _typeof$2(Symbol.iterator) === "symbol") {
3459
+ _typeof2 = function _typeof2(obj) {
3460
+ return _typeof$2(obj);
3461
+ };
3462
+ } else {
3463
+ _typeof2 = function _typeof2(obj) {
3464
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof$2(obj);
3465
+ };
3466
+ }
3467
+
3468
+ return _typeof2(obj);
3469
+ }
3470
+
3471
+ function _typeof$1(obj) {
3472
+ if (typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol") {
3473
+ _typeof_1 = _typeof$1 = function _typeof(obj) {
3474
+ return _typeof2(obj);
3475
+ };
3476
+ } else {
3477
+ _typeof_1 = _typeof$1 = function _typeof(obj) {
3478
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof2(obj);
3479
+ };
3480
+ }
3481
+
3482
+ return _typeof$1(obj);
3483
+ }
3484
+
3485
+ var _typeof_1 = _typeof$1;
3486
+
3487
+ function _assertThisInitialized(self) {
3488
+ if (self === void 0) {
3489
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
3490
+ }
3491
+
3492
+ return self;
3493
+ }
3494
+
3495
+ var assertThisInitialized$1 = _assertThisInitialized;
3496
+
3497
+ var _typeof = _typeof_1;
3498
+ var assertThisInitialized = assertThisInitialized$1;
3499
+
3500
+ function _possibleConstructorReturn(self, call) {
3501
+ if (call && (_typeof(call) === "object" || typeof call === "function")) {
3502
+ return call;
3503
+ }
3504
+
3505
+ return assertThisInitialized(self);
3506
+ }
3507
+
3508
+ var possibleConstructorReturn = _possibleConstructorReturn;
3509
+
3510
+ function _getPrototypeOf(o) {
3511
+ getPrototypeOf = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
3512
+ return o.__proto__ || Object.getPrototypeOf(o);
3513
+ };
3514
+ return _getPrototypeOf(o);
3515
+ }
3516
+
3517
+ var getPrototypeOf = _getPrototypeOf;
3518
+
3519
+ function _setPrototypeOf(o, p) {
3520
+ setPrototypeOf$1 = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
3521
+ o.__proto__ = p;
3522
+ return o;
3523
+ };
3524
+
3525
+ return _setPrototypeOf(o, p);
3526
+ }
3527
+
3528
+ var setPrototypeOf$1 = _setPrototypeOf;
3529
+
3530
+ var setPrototypeOf = setPrototypeOf$1;
3531
+
3532
+ function _inherits(subClass, superClass) {
3533
+ if (typeof superClass !== "function" && superClass !== null) {
3534
+ throw new TypeError("Super expression must either be null or a function");
3535
+ }
3536
+
3537
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
3538
+ constructor: {
3539
+ value: subClass,
3540
+ writable: true,
3541
+ configurable: true
3542
+ }
3543
+ });
3544
+ if (superClass) setPrototypeOf(subClass, superClass);
3545
+ }
3546
+
3547
+ var inherits = _inherits;
3548
+
3549
+ var propTypes = {exports: {}};
3550
+
3551
+ /**
3552
+ * Copyright (c) 2013-present, Facebook, Inc.
3553
+ *
3554
+ * This source code is licensed under the MIT license found in the
3555
+ * LICENSE file in the root directory of this source tree.
3556
+ */
3557
+
3558
+ var ReactPropTypesSecret$1 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
3559
+ var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
3560
+
3561
+ /**
3562
+ * Copyright (c) 2013-present, Facebook, Inc.
3563
+ *
3564
+ * This source code is licensed under the MIT license found in the
3565
+ * LICENSE file in the root directory of this source tree.
3566
+ */
3567
+
3568
+ var ReactPropTypesSecret = ReactPropTypesSecret_1;
3569
+
3570
+ function emptyFunction() {}
3571
+
3572
+ function emptyFunctionWithReset() {}
3573
+
3574
+ emptyFunctionWithReset.resetWarningCache = emptyFunction;
3575
+
3576
+ var factoryWithThrowingShims = function factoryWithThrowingShims() {
3577
+ function shim(props, propName, componentName, location, propFullName, secret) {
3578
+ if (secret === ReactPropTypesSecret) {
3579
+ // It is still safe when called from React.
3580
+ return;
3581
+ }
3582
+
3583
+ var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
3584
+ err.name = 'Invariant Violation';
3585
+ throw err;
3586
+ }
3587
+ shim.isRequired = shim;
3588
+
3589
+ function getShim() {
3590
+ return shim;
3591
+ }
3592
+ // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
3593
+
3594
+ var ReactPropTypes = {
3595
+ array: shim,
3596
+ bool: shim,
3597
+ func: shim,
3598
+ number: shim,
3599
+ object: shim,
3600
+ string: shim,
3601
+ symbol: shim,
3602
+ any: shim,
3603
+ arrayOf: getShim,
3604
+ element: shim,
3605
+ elementType: shim,
3606
+ instanceOf: getShim,
3607
+ node: shim,
3608
+ objectOf: getShim,
3609
+ oneOf: getShim,
3610
+ oneOfType: getShim,
3611
+ shape: getShim,
3612
+ exact: getShim,
3613
+ checkPropTypes: emptyFunctionWithReset,
3614
+ resetWarningCache: emptyFunction
3615
+ };
3616
+ ReactPropTypes.PropTypes = ReactPropTypes;
3617
+ return ReactPropTypes;
3618
+ };
3619
+
3620
+ /**
3621
+ * Copyright (c) 2013-present, Facebook, Inc.
3622
+ *
3623
+ * This source code is licensed under the MIT license found in the
3624
+ * LICENSE file in the root directory of this source tree.
3625
+ */
3626
+
3627
+ {
3628
+ // By explicitly using `prop-types` you are opting into new production behavior.
3629
+ // http://fb.me/prop-types-in-prod
3630
+ propTypes.exports = factoryWithThrowingShims();
3631
+ }
3632
+
3633
+ var ensureNativeModuleAvailable$1 = {};
3634
+
3635
+ Object.defineProperty(ensureNativeModuleAvailable$1, "__esModule", {
3636
+ value: true
3637
+ });
3638
+
3639
+ ensureNativeModuleAvailable$1["default"] = ensureNativeModuleAvailable;
3640
+
3641
+ var _reactNative$2 = ReactNative__default["default"];
3642
+ var NativeIconAPI$1 = _reactNative$2.NativeModules.RNVectorIconsManager || _reactNative$2.NativeModules.RNVectorIconsModule;
3643
+
3644
+ function ensureNativeModuleAvailable() {
3645
+ if (!NativeIconAPI$1) {
3646
+ if (_reactNative$2.Platform.OS === 'android') {
3647
+ throw new Error('RNVectorIconsModule not available, did you properly integrate the module? Try running `react-native link react-native-vector-icons` and recompiling.');
3648
+ }
3649
+
3650
+ throw new Error('RNVectorIconsManager not available, did you add the library to your project and link with libRNVectorIcons.a? Try running `react-native link react-native-vector-icons` and recompiling.');
3651
+ }
3652
+ }
3653
+
3654
+ var createIconSourceCache$1 = {};
3655
+
3656
+ Object.defineProperty(createIconSourceCache$1, "__esModule", {
3657
+ value: true
3658
+ });
3659
+
3660
+ createIconSourceCache$1["default"] = createIconSourceCache;
3661
+
3662
+ var TYPE_VALUE = 'value';
3663
+ var TYPE_ERROR = 'error';
3664
+
3665
+ function createIconSourceCache() {
3666
+ var cache = new Map();
3667
+
3668
+ var setValue = function setValue(key, value) {
3669
+ return cache.set(key, {
3670
+ type: TYPE_VALUE,
3671
+ data: value
3672
+ });
3673
+ };
3674
+
3675
+ var setError = function setError(key, error) {
3676
+ return cache.set(key, {
3677
+ type: TYPE_ERROR,
3678
+ data: error
3679
+ });
3680
+ };
3681
+
3682
+ var has = function has(key) {
3683
+ return cache.has(key);
3684
+ };
3685
+
3686
+ var get = function get(key) {
3687
+ if (!cache.has(key)) {
3688
+ return undefined;
3689
+ }
3690
+
3691
+ var _cache$get = cache.get(key),
3692
+ type = _cache$get.type,
3693
+ data = _cache$get.data;
3694
+
3695
+ if (type === TYPE_ERROR) {
3696
+ throw data;
3697
+ }
3698
+
3699
+ return data;
3700
+ };
3701
+
3702
+ return {
3703
+ setValue: setValue,
3704
+ setError: setError,
3705
+ has: has,
3706
+ get: get
3707
+ };
3708
+ }
3709
+
3710
+ var iconButton = {};
3711
+
3712
+ var pick = function pick(obj) {
3713
+ for (var _len = arguments.length, keys = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
3714
+ keys[_key - 1] = arguments[_key];
3715
+ }
3716
+
3717
+ return keys.flat().filter(function (key) {
3718
+ return Object.prototype.hasOwnProperty.call(obj, key);
3719
+ }).reduce(function (acc, key) {
3720
+ acc[key] = obj[key];
3721
+ return acc;
3722
+ }, {});
3723
+ };
3724
+
3725
+ var omit = function omit(obj) {
3726
+ for (var _len2 = arguments.length, keysToOmit = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
3727
+ keysToOmit[_key2 - 1] = arguments[_key2];
3728
+ }
3729
+
3730
+ var keysToOmitSet = new Set(keysToOmit.flat());
3731
+ return Object.getOwnPropertyNames(obj).filter(function (key) {
3732
+ return !keysToOmitSet.has(key);
3733
+ }).reduce(function (acc, key) {
3734
+ acc[key] = obj[key];
3735
+ return acc;
3736
+ }, {});
3737
+ };
3738
+
3739
+ var objectUtils = {
3740
+ pick: pick,
3741
+ omit: omit
3742
+ };
3743
+
3744
+ var _interopRequireDefault$4 = interopRequireDefault;
3745
+ Object.defineProperty(iconButton, "__esModule", {
3746
+ value: true
3747
+ });
3748
+
3749
+ iconButton["default"] = createIconButtonComponent;
3750
+
3751
+ var _extends2$2 = _interopRequireDefault$4(_extends_1);
3752
+
3753
+ var _objectWithoutProperties2$1 = _interopRequireDefault$4(objectWithoutProperties);
3754
+
3755
+ var _classCallCheck2$2 = _interopRequireDefault$4(classCallCheck);
3756
+
3757
+ var _createClass2$2 = _interopRequireDefault$4(createClass);
3758
+
3759
+ var _possibleConstructorReturn2$2 = _interopRequireDefault$4(possibleConstructorReturn);
3760
+
3761
+ var _getPrototypeOf2$1 = _interopRequireDefault$4(getPrototypeOf);
3762
+
3763
+ var _inherits2$2 = _interopRequireDefault$4(inherits);
3764
+
3765
+ var _react$2 = _interopRequireWildcard$2(React__default["default"]);
3766
+
3767
+ var _propTypes$2 = _interopRequireDefault$4(propTypes.exports);
3768
+
3769
+ var _reactNative$1 = ReactNative__default["default"];
3770
+ var _objectUtils = objectUtils;
3771
+ var _jsxFileName$2 = "/home/runner/work/react-native-vector-icons/react-native-vector-icons/lib/icon-button.js";
3772
+
3773
+ function _getRequireWildcardCache$2(nodeInterop) {
3774
+ if (typeof WeakMap !== "function") return null;
3775
+ var cacheBabelInterop = new WeakMap();
3776
+ var cacheNodeInterop = new WeakMap();
3777
+ return (_getRequireWildcardCache$2 = function _getRequireWildcardCache(nodeInterop) {
3778
+ return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
3779
+ })(nodeInterop);
3780
+ }
3781
+
3782
+ function _interopRequireWildcard$2(obj, nodeInterop) {
3783
+ if (!nodeInterop && obj && obj.__esModule) {
3784
+ return obj;
3785
+ }
3786
+
3787
+ if (obj === null || _typeof$2(obj) !== "object" && typeof obj !== "function") {
3788
+ return {
3789
+ "default": obj
3790
+ };
3791
+ }
3792
+
3793
+ var cache = _getRequireWildcardCache$2(nodeInterop);
3794
+
3795
+ if (cache && cache.has(obj)) {
3796
+ return cache.get(obj);
3797
+ }
3798
+
3799
+ var newObj = {};
3800
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
3801
+
3802
+ for (var key in obj) {
3803
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
3804
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
3805
+
3806
+ if (desc && (desc.get || desc.set)) {
3807
+ Object.defineProperty(newObj, key, desc);
3808
+ } else {
3809
+ newObj[key] = obj[key];
3810
+ }
3811
+ }
3812
+ }
3813
+
3814
+ newObj["default"] = obj;
3815
+
3816
+ if (cache) {
3817
+ cache.set(obj, newObj);
3818
+ }
3819
+
3820
+ return newObj;
3821
+ }
3822
+
3823
+ var styles$1 = _reactNative$1.StyleSheet.create({
3824
+ container: {
3825
+ flexDirection: 'row',
3826
+ justifyContent: 'flex-start',
3827
+ alignItems: 'center',
3828
+ padding: 8
3829
+ },
3830
+ touchable: {
3831
+ overflow: 'hidden'
3832
+ },
3833
+ icon: {
3834
+ marginRight: 10
3835
+ },
3836
+ text: {
3837
+ fontWeight: '600',
3838
+ backgroundColor: 'transparent'
3839
+ }
3840
+ });
3841
+
3842
+ var IOS7_BLUE = '#007AFF';
3843
+ var TEXT_PROP_NAMES = ['ellipsizeMode', 'numberOfLines', 'textBreakStrategy', 'selectable', 'suppressHighlighting', 'allowFontScaling', 'adjustsFontSizeToFit', 'minimumFontScale'];
3844
+ var TOUCHABLE_PROP_NAMES = ['accessible', 'accessibilityLabel', 'accessibilityHint', 'accessibilityComponentType', 'accessibilityRole', 'accessibilityStates', 'accessibilityTraits', 'onFocus', 'onBlur', 'disabled', 'onPress', 'onPressIn', 'onPressOut', 'onLayout', 'onLongPress', 'nativeID', 'testID', 'delayPressIn', 'delayPressOut', 'delayLongPress', 'activeOpacity', 'underlayColor', 'selectionColor', 'onShowUnderlay', 'onHideUnderlay', 'hasTVPreferredFocus', 'tvParallaxProperties'];
3845
+
3846
+ function createIconButtonComponent(Icon) {
3847
+ var _class, _temp;
3848
+
3849
+ return _temp = _class = function (_PureComponent) {
3850
+ (0, _inherits2$2["default"])(IconButton, _PureComponent);
3851
+
3852
+ function IconButton() {
3853
+ (0, _classCallCheck2$2["default"])(this, IconButton);
3854
+ return (0, _possibleConstructorReturn2$2["default"])(this, (0, _getPrototypeOf2$1["default"])(IconButton).apply(this, arguments));
3855
+ }
3856
+
3857
+ (0, _createClass2$2["default"])(IconButton, [{
3858
+ key: "render",
3859
+ value: function render() {
3860
+ var _this$props = this.props,
3861
+ style = _this$props.style,
3862
+ iconStyle = _this$props.iconStyle,
3863
+ children = _this$props.children,
3864
+ restProps = (0, _objectWithoutProperties2$1["default"])(_this$props, ["style", "iconStyle", "children"]);
3865
+ var iconProps = (0, _objectUtils.pick)(restProps, TEXT_PROP_NAMES, 'style', 'name', 'size', 'color');
3866
+ var touchableProps = (0, _objectUtils.pick)(restProps, TOUCHABLE_PROP_NAMES);
3867
+ var props = (0, _objectUtils.omit)(restProps, Object.keys(iconProps), Object.keys(touchableProps), 'iconStyle', 'borderRadius', 'backgroundColor');
3868
+ iconProps.style = iconStyle ? [styles$1.icon, iconStyle] : styles$1.icon;
3869
+ var colorStyle = (0, _objectUtils.pick)(this.props, 'color');
3870
+ var blockStyle = (0, _objectUtils.pick)(this.props, 'backgroundColor', 'borderRadius');
3871
+ return _react$2["default"].createElement(_reactNative$1.TouchableHighlight, (0, _extends2$2["default"])({
3872
+ style: [styles$1.touchable, blockStyle]
3873
+ }, touchableProps, {
3874
+ __self: this,
3875
+ __source: {
3876
+ fileName: _jsxFileName$2,
3877
+ lineNumber: 116
3878
+ }
3879
+ }), _react$2["default"].createElement(_reactNative$1.View, (0, _extends2$2["default"])({
3880
+ style: [styles$1.container, blockStyle, style]
3881
+ }, props, {
3882
+ __self: this,
3883
+ __source: {
3884
+ fileName: _jsxFileName$2,
3885
+ lineNumber: 120
3886
+ }
3887
+ }), _react$2["default"].createElement(Icon, (0, _extends2$2["default"])({}, iconProps, {
3888
+ __self: this,
3889
+ __source: {
3890
+ fileName: _jsxFileName$2,
3891
+ lineNumber: 121
3892
+ }
3893
+ })), typeof children === 'string' ? _react$2["default"].createElement(_reactNative$1.Text, {
3894
+ style: [styles$1.text, colorStyle],
3895
+ selectable: false,
3896
+ __self: this,
3897
+ __source: {
3898
+ fileName: _jsxFileName$2,
3899
+ lineNumber: 123
3900
+ }
3901
+ }, children) : children));
3902
+ }
3903
+ }]);
3904
+ return IconButton;
3905
+ }(_react$2.PureComponent), _class.propTypes = {
3906
+ backgroundColor: _propTypes$2["default"].oneOfType([_propTypes$2["default"].string, _propTypes$2["default"].number]),
3907
+ borderRadius: _propTypes$2["default"].number,
3908
+ color: _propTypes$2["default"].any,
3909
+ size: _propTypes$2["default"].number,
3910
+ iconStyle: _propTypes$2["default"].any,
3911
+ style: _propTypes$2["default"].any,
3912
+ children: _propTypes$2["default"].node
3913
+ }, _class.defaultProps = {
3914
+ backgroundColor: IOS7_BLUE,
3915
+ borderRadius: 5,
3916
+ color: 'white',
3917
+ size: 20
3918
+ }, _temp;
3919
+ }
3920
+
3921
+ var _interopRequireDefault$3 = interopRequireDefault;
3922
+ Object.defineProperty(createIconSet$1, "__esModule", {
3923
+ value: true
3924
+ });
3925
+ createIconSet$1.NativeIconAPI = createIconSet$1.DEFAULT_ICON_SIZE = createIconSet$1.DEFAULT_ICON_COLOR = void 0;
3926
+
3927
+ createIconSet$1["default"] = createIconSet;
3928
+
3929
+ var _toConsumableArray2 = _interopRequireDefault$3(toConsumableArray);
3930
+
3931
+ var _regenerator = _interopRequireDefault$3(regenerator);
3932
+
3933
+ var _extends2$1 = _interopRequireDefault$3(_extends_1);
3934
+
3935
+ var _objectWithoutProperties2 = _interopRequireDefault$3(objectWithoutProperties);
3936
+
3937
+ var _classCallCheck2$1 = _interopRequireDefault$3(classCallCheck);
3938
+
3939
+ var _createClass2$1 = _interopRequireDefault$3(createClass);
3940
+
3941
+ var _possibleConstructorReturn2$1 = _interopRequireDefault$3(possibleConstructorReturn);
3942
+
3943
+ var _getPrototypeOf3 = _interopRequireDefault$3(getPrototypeOf);
3944
+
3945
+ var _inherits2$1 = _interopRequireDefault$3(inherits);
3946
+
3947
+ var _react$1 = _interopRequireWildcard$1(React__default["default"]);
3948
+
3949
+ var _propTypes$1 = _interopRequireDefault$3(propTypes.exports);
3950
+
3951
+ var _reactNative = ReactNative__default["default"];
3952
+
3953
+ var _ensureNativeModuleAvailable = _interopRequireDefault$3(ensureNativeModuleAvailable$1);
3954
+
3955
+ var _createIconSourceCache = _interopRequireDefault$3(createIconSourceCache$1);
3956
+
3957
+ var _iconButton = _interopRequireDefault$3(iconButton);
3958
+
3959
+ var _jsxFileName$1 = "/home/runner/work/react-native-vector-icons/react-native-vector-icons/lib/create-icon-set.js";
3960
+
3961
+ function _getRequireWildcardCache$1(nodeInterop) {
3962
+ if (typeof WeakMap !== "function") return null;
3963
+ var cacheBabelInterop = new WeakMap();
3964
+ var cacheNodeInterop = new WeakMap();
3965
+ return (_getRequireWildcardCache$1 = function _getRequireWildcardCache(nodeInterop) {
3966
+ return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
3967
+ })(nodeInterop);
3968
+ }
3969
+
3970
+ function _interopRequireWildcard$1(obj, nodeInterop) {
3971
+ if (!nodeInterop && obj && obj.__esModule) {
3972
+ return obj;
3973
+ }
3974
+
3975
+ if (obj === null || _typeof$2(obj) !== "object" && typeof obj !== "function") {
3976
+ return {
3977
+ "default": obj
3978
+ };
3979
+ }
3980
+
3981
+ var cache = _getRequireWildcardCache$1(nodeInterop);
3982
+
3983
+ if (cache && cache.has(obj)) {
3984
+ return cache.get(obj);
3985
+ }
3986
+
3987
+ var newObj = {};
3988
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
3989
+
3990
+ for (var key in obj) {
3991
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
3992
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
3993
+
3994
+ if (desc && (desc.get || desc.set)) {
3995
+ Object.defineProperty(newObj, key, desc);
3996
+ } else {
3997
+ newObj[key] = obj[key];
3998
+ }
3999
+ }
4000
+ }
4001
+
4002
+ newObj["default"] = obj;
4003
+
4004
+ if (cache) {
4005
+ cache.set(obj, newObj);
4006
+ }
4007
+
4008
+ return newObj;
4009
+ }
4010
+
4011
+ var NativeIconAPI = _reactNative.NativeModules.RNVectorIconsManager || _reactNative.NativeModules.RNVectorIconsModule;
4012
+ createIconSet$1.NativeIconAPI = NativeIconAPI;
4013
+ var DEFAULT_ICON_SIZE = 12;
4014
+ createIconSet$1.DEFAULT_ICON_SIZE = DEFAULT_ICON_SIZE;
4015
+ var DEFAULT_ICON_COLOR = 'black';
4016
+ createIconSet$1.DEFAULT_ICON_COLOR = DEFAULT_ICON_COLOR;
4017
+
4018
+ function createIconSet(glyphMap, fontFamily, fontFile, fontStyle) {
4019
+ var fontBasename = fontFile ? fontFile.replace(/\.(otf|ttf)$/, '') : fontFamily;
4020
+
4021
+ var fontReference = _reactNative.Platform.select({
4022
+ windows: "/Assets/" + fontFile + "#" + fontFamily,
4023
+ android: fontBasename,
4024
+ web: fontBasename,
4025
+ "default": fontFamily
4026
+ });
4027
+
4028
+ var IconNamePropType = _propTypes$1["default"].oneOf(Object.keys(glyphMap));
4029
+
4030
+ var Icon = function (_PureComponent) {
4031
+ (0, _inherits2$1["default"])(Icon, _PureComponent);
4032
+
4033
+ function Icon() {
4034
+ var _getPrototypeOf2;
4035
+
4036
+ var _this;
4037
+
4038
+ (0, _classCallCheck2$1["default"])(this, Icon);
4039
+
4040
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
4041
+ args[_key] = arguments[_key];
4042
+ }
4043
+
4044
+ _this = (0, _possibleConstructorReturn2$1["default"])(this, (_getPrototypeOf2 = (0, _getPrototypeOf3["default"])(Icon)).call.apply(_getPrototypeOf2, [this].concat(args)));
4045
+ _this.root = null;
4046
+
4047
+ _this.handleRef = function (ref) {
4048
+ _this.root = ref;
4049
+ };
4050
+
4051
+ return _this;
4052
+ }
4053
+
4054
+ (0, _createClass2$1["default"])(Icon, [{
4055
+ key: "setNativeProps",
4056
+ value: function setNativeProps(nativeProps) {
4057
+ if (this.root) {
4058
+ this.root.setNativeProps(nativeProps);
4059
+ }
4060
+ }
4061
+ }, {
4062
+ key: "render",
4063
+ value: function render() {
4064
+ var _this$props = this.props,
4065
+ name = _this$props.name,
4066
+ size = _this$props.size,
4067
+ color = _this$props.color,
4068
+ style = _this$props.style,
4069
+ children = _this$props.children,
4070
+ props = (0, _objectWithoutProperties2["default"])(_this$props, ["name", "size", "color", "style", "children"]);
4071
+ var glyph = name ? glyphMap[name] || '?' : '';
4072
+
4073
+ if (typeof glyph === 'number') {
4074
+ glyph = String.fromCodePoint(glyph);
4075
+ }
4076
+
4077
+ var styleDefaults = {
4078
+ fontSize: size,
4079
+ color: color
4080
+ };
4081
+ var styleOverrides = {
4082
+ fontFamily: fontReference,
4083
+ fontWeight: 'normal',
4084
+ fontStyle: 'normal'
4085
+ };
4086
+ props.style = [styleDefaults, style, styleOverrides, fontStyle || {}];
4087
+ props.ref = this.handleRef;
4088
+ return _react$1["default"].createElement(_reactNative.Text, (0, _extends2$1["default"])({
4089
+ selectable: false
4090
+ }, props, {
4091
+ __self: this,
4092
+ __source: {
4093
+ fileName: _jsxFileName$1,
4094
+ lineNumber: 91
4095
+ }
4096
+ }), glyph, children);
4097
+ }
4098
+ }]);
4099
+ return Icon;
4100
+ }(_react$1.PureComponent);
4101
+
4102
+ Icon.propTypes = {
4103
+ allowFontScaling: _propTypes$1["default"].bool,
4104
+ name: IconNamePropType,
4105
+ size: _propTypes$1["default"].number,
4106
+ color: _propTypes$1["default"].any,
4107
+ children: _propTypes$1["default"].node,
4108
+ style: _propTypes$1["default"].any
4109
+ };
4110
+ Icon.defaultProps = {
4111
+ size: DEFAULT_ICON_SIZE,
4112
+ allowFontScaling: false
4113
+ };
4114
+ var imageSourceCache = (0, _createIconSourceCache["default"])();
4115
+
4116
+ function resolveGlyph(name) {
4117
+ var glyph = glyphMap[name] || '?';
4118
+
4119
+ if (typeof glyph === 'number') {
4120
+ return String.fromCodePoint(glyph);
4121
+ }
4122
+
4123
+ return glyph;
4124
+ }
4125
+
4126
+ function getImageSourceSync(name) {
4127
+ var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_ICON_SIZE;
4128
+ var color = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : DEFAULT_ICON_COLOR;
4129
+ (0, _ensureNativeModuleAvailable["default"])();
4130
+ var glyph = resolveGlyph(name);
4131
+ var processedColor = (0, _reactNative.processColor)(color);
4132
+ var cacheKey = glyph + ":" + size + ":" + processedColor;
4133
+
4134
+ if (imageSourceCache.has(cacheKey)) {
4135
+ return imageSourceCache.get(cacheKey);
4136
+ }
4137
+
4138
+ try {
4139
+ var imagePath = NativeIconAPI.getImageForFontSync(fontReference, glyph, size, processedColor);
4140
+ var value = {
4141
+ uri: imagePath,
4142
+ scale: _reactNative.PixelRatio.get()
4143
+ };
4144
+ imageSourceCache.setValue(cacheKey, value);
4145
+ return value;
4146
+ } catch (error) {
4147
+ imageSourceCache.setError(cacheKey, error);
4148
+ throw error;
4149
+ }
4150
+ }
4151
+
4152
+ function getImageSource(name) {
4153
+ var size,
4154
+ color,
4155
+ glyph,
4156
+ processedColor,
4157
+ cacheKey,
4158
+ imagePath,
4159
+ value,
4160
+ _args = arguments;
4161
+ return _regenerator["default"].async(function getImageSource$(_context) {
4162
+ while (1) {
4163
+ switch (_context.prev = _context.next) {
4164
+ case 0:
4165
+ size = _args.length > 1 && _args[1] !== undefined ? _args[1] : DEFAULT_ICON_SIZE;
4166
+ color = _args.length > 2 && _args[2] !== undefined ? _args[2] : DEFAULT_ICON_COLOR;
4167
+ (0, _ensureNativeModuleAvailable["default"])();
4168
+ glyph = resolveGlyph(name);
4169
+ processedColor = (0, _reactNative.processColor)(color);
4170
+ cacheKey = glyph + ":" + size + ":" + processedColor;
4171
+
4172
+ if (!imageSourceCache.has(cacheKey)) {
4173
+ _context.next = 8;
4174
+ break;
4175
+ }
4176
+
4177
+ return _context.abrupt("return", imageSourceCache.get(cacheKey));
4178
+
4179
+ case 8:
4180
+ _context.prev = 8;
4181
+ _context.next = 11;
4182
+ return _regenerator["default"].awrap(NativeIconAPI.getImageForFont(fontReference, glyph, size, processedColor));
4183
+
4184
+ case 11:
4185
+ imagePath = _context.sent;
4186
+ value = {
4187
+ uri: imagePath,
4188
+ scale: _reactNative.PixelRatio.get()
4189
+ };
4190
+ imageSourceCache.setValue(cacheKey, value);
4191
+ return _context.abrupt("return", value);
4192
+
4193
+ case 17:
4194
+ _context.prev = 17;
4195
+ _context.t0 = _context["catch"](8);
4196
+ imageSourceCache.setError(cacheKey, _context.t0);
4197
+ throw _context.t0;
4198
+
4199
+ case 21:
4200
+ case "end":
4201
+ return _context.stop();
4202
+ }
4203
+ }
4204
+ }, null, null, [[8, 17]]);
4205
+ }
4206
+
4207
+ function loadFont() {
4208
+ var file,
4209
+ _args2 = arguments;
4210
+ return _regenerator["default"].async(function loadFont$(_context2) {
4211
+ while (1) {
4212
+ switch (_context2.prev = _context2.next) {
4213
+ case 0:
4214
+ file = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : fontFile;
4215
+
4216
+ if (!(_reactNative.Platform.OS === 'ios')) {
4217
+ _context2.next = 7;
4218
+ break;
4219
+ }
4220
+
4221
+ (0, _ensureNativeModuleAvailable["default"])();
4222
+
4223
+ if (file) {
4224
+ _context2.next = 5;
4225
+ break;
4226
+ }
4227
+
4228
+ throw new Error('Unable to load font, because no file was specified. ');
4229
+
4230
+ case 5:
4231
+ _context2.next = 7;
4232
+ return _regenerator["default"].awrap(NativeIconAPI.loadFontWithFileName.apply(NativeIconAPI, (0, _toConsumableArray2["default"])(file.split('.'))));
4233
+
4234
+ case 7:
4235
+ case "end":
4236
+ return _context2.stop();
4237
+ }
4238
+ }
4239
+ });
4240
+ }
4241
+
4242
+ function hasIcon(name) {
4243
+ return Object.prototype.hasOwnProperty.call(glyphMap, name);
4244
+ }
4245
+
4246
+ function getRawGlyphMap() {
4247
+ return glyphMap;
4248
+ }
4249
+
4250
+ function getFontFamily() {
4251
+ return fontReference;
4252
+ }
4253
+
4254
+ Icon.Button = (0, _iconButton["default"])(Icon);
4255
+ Icon.getImageSource = getImageSource;
4256
+ Icon.getImageSourceSync = getImageSourceSync;
4257
+ Icon.loadFont = loadFont;
4258
+ Icon.hasIcon = hasIcon;
4259
+ Icon.getRawGlyphMap = getRawGlyphMap;
4260
+ Icon.getFontFamily = getFontFamily;
4261
+ return Icon;
4262
+ }
4263
+
4264
+ var createMultiStyleIconSet$1 = {};
4265
+
4266
+ function _defineProperty$1(obj, key, value) {
4267
+ if (key in obj) {
4268
+ Object.defineProperty(obj, key, {
4269
+ value: value,
4270
+ enumerable: true,
4271
+ configurable: true,
4272
+ writable: true
4273
+ });
4274
+ } else {
4275
+ obj[key] = value;
4276
+ }
4277
+
4278
+ return obj;
4279
+ }
4280
+
4281
+ var defineProperty = _defineProperty$1;
4282
+
4283
+ var _interopRequireDefault$2 = interopRequireDefault;
4284
+ Object.defineProperty(createMultiStyleIconSet$1, "__esModule", {
4285
+ value: true
4286
+ });
4287
+
4288
+ createMultiStyleIconSet$1["default"] = createMultiStyleIconSet;
4289
+
4290
+ var _classCallCheck2 = _interopRequireDefault$2(classCallCheck);
4291
+
4292
+ var _createClass2 = _interopRequireDefault$2(createClass);
4293
+
4294
+ var _possibleConstructorReturn2 = _interopRequireDefault$2(possibleConstructorReturn);
4295
+
4296
+ var _getPrototypeOf2 = _interopRequireDefault$2(getPrototypeOf);
4297
+
4298
+ var _inherits2 = _interopRequireDefault$2(inherits);
4299
+
4300
+ var _defineProperty2 = _interopRequireDefault$2(defineProperty);
4301
+
4302
+ var _extends2 = _interopRequireDefault$2(_extends_1);
4303
+
4304
+ var _react = _interopRequireWildcard(React__default["default"]);
4305
+
4306
+ var _propTypes = _interopRequireDefault$2(propTypes.exports);
4307
+
4308
+ var _createIconSet$2 = _interopRequireWildcard(createIconSet$1);
4309
+
4310
+ var _jsxFileName = "/home/runner/work/react-native-vector-icons/react-native-vector-icons/lib/create-multi-style-icon-set.js";
4311
+
4312
+ function _getRequireWildcardCache(nodeInterop) {
4313
+ if (typeof WeakMap !== "function") return null;
4314
+ var cacheBabelInterop = new WeakMap();
4315
+ var cacheNodeInterop = new WeakMap();
4316
+ return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) {
4317
+ return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
4318
+ })(nodeInterop);
4319
+ }
4320
+
4321
+ function _interopRequireWildcard(obj, nodeInterop) {
4322
+ if (!nodeInterop && obj && obj.__esModule) {
4323
+ return obj;
4324
+ }
4325
+
4326
+ if (obj === null || _typeof$2(obj) !== "object" && typeof obj !== "function") {
4327
+ return {
4328
+ "default": obj
4329
+ };
4330
+ }
4331
+
4332
+ var cache = _getRequireWildcardCache(nodeInterop);
4333
+
4334
+ if (cache && cache.has(obj)) {
4335
+ return cache.get(obj);
4336
+ }
4337
+
4338
+ var newObj = {};
4339
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
4340
+
4341
+ for (var key in obj) {
4342
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
4343
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
4344
+
4345
+ if (desc && (desc.get || desc.set)) {
4346
+ Object.defineProperty(newObj, key, desc);
4347
+ } else {
4348
+ newObj[key] = obj[key];
4349
+ }
4350
+ }
4351
+ }
4352
+
4353
+ newObj["default"] = obj;
4354
+
4355
+ if (cache) {
4356
+ cache.set(obj, newObj);
4357
+ }
4358
+
4359
+ return newObj;
4360
+ }
4361
+
4362
+ function createMultiStyleIconSet(styles) {
4363
+ var optionsInput = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
4364
+ var styleNames = Object.keys(styles);
4365
+
4366
+ if (styleNames.length === 0) {
4367
+ throw new Error('You need to add at least one style');
4368
+ }
4369
+
4370
+ var options = (0, _extends2["default"])({
4371
+ defaultStyle: styleNames[0],
4372
+ fallbackFamily: function fallbackFamily() {
4373
+ return styleNames[0];
4374
+ },
4375
+ glyphValidator: function glyphValidator() {
4376
+ return true;
4377
+ }
4378
+ }, optionsInput);
4379
+ var iconSets = styleNames.reduce(function (acc, name) {
4380
+ var style = styles[name];
4381
+ acc[name] = (0, _createIconSet$2["default"])(style.glyphMap || {}, style.fontFamily || '', style.fontFile || '', style.fontStyle || {});
4382
+ return acc;
4383
+ }, {});
4384
+
4385
+ function styleFromProps(props) {
4386
+ return Object.keys(props).reduce(function (result, propName) {
4387
+ return styleNames.indexOf(propName) !== -1 && props[propName] === true ? propName : result;
4388
+ }, options.defaultStyle);
4389
+ }
4390
+
4391
+ function getIconSetForProps(props) {
4392
+ var name = props.name;
4393
+ var style = styleFromProps(props);
4394
+ if (options.glyphValidator(name, style)) return iconSets[style];
4395
+ var family = options.fallbackFamily(name);
4396
+
4397
+ if (styleNames.indexOf(family) === -1) {
4398
+ return options.defaultStyle;
4399
+ }
4400
+
4401
+ return iconSets[family];
4402
+ }
4403
+
4404
+ function selectIconClass(iconSet, iconClass) {
4405
+ return iconClass.length > 0 ? iconSet[iconClass] : iconSet;
4406
+ }
4407
+
4408
+ function reduceProps(props) {
4409
+ return Object.keys(props).reduce(function (acc, prop) {
4410
+ if (styleNames.indexOf(prop) === -1) {
4411
+ acc[prop] = props[prop];
4412
+ }
4413
+
4414
+ return acc;
4415
+ }, {});
4416
+ }
4417
+
4418
+ function getStyledIconSet(style) {
4419
+ var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
4420
+
4421
+ if (styleNames.indexOf(style) === -1) {
4422
+ return iconSets[options.defaultStyle];
4423
+ }
4424
+
4425
+ return !name ? iconSets[styleFromProps((0, _defineProperty2["default"])({}, style, true))] : getIconSetForProps((0, _defineProperty2["default"])({
4426
+ name: name
4427
+ }, style, true));
4428
+ }
4429
+
4430
+ function getImageSource(name) {
4431
+ var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _createIconSet$2.DEFAULT_ICON_SIZE;
4432
+ var color = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _createIconSet$2.DEFAULT_ICON_COLOR;
4433
+ var style = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : options.defaultStyle;
4434
+ return getStyledIconSet(style, name).getImageSource(name, size, color);
4435
+ }
4436
+
4437
+ function getFontFamily() {
4438
+ var style = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : options.defaultStyle;
4439
+ return getStyledIconSet(style).getFontFamily();
4440
+ }
4441
+
4442
+ function getRawGlyphMap() {
4443
+ var style = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : options.defaultStyle;
4444
+ return getStyledIconSet(style).getRawGlyphMap();
4445
+ }
4446
+
4447
+ function hasIcon(name) {
4448
+ var style = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : options.defaultStyle;
4449
+ return options.glyphValidator(name, style);
4450
+ }
4451
+
4452
+ function createStyledIconClass() {
4453
+ var selectClass = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
4454
+
4455
+ var IconClass = function (_PureComponent) {
4456
+ (0, _inherits2["default"])(IconClass, _PureComponent);
4457
+
4458
+ function IconClass() {
4459
+ (0, _classCallCheck2["default"])(this, IconClass);
4460
+ return (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(IconClass).apply(this, arguments));
4461
+ }
4462
+
4463
+ (0, _createClass2["default"])(IconClass, [{
4464
+ key: "render",
4465
+ value: function render() {
4466
+ var selectedIconSet = getIconSetForProps(this.props);
4467
+ var SelectedIconClass = selectIconClass(selectedIconSet, selectClass);
4468
+ var props = reduceProps(this.props);
4469
+ return _react["default"].createElement(SelectedIconClass, (0, _extends2["default"])({}, props, {
4470
+ __self: this,
4471
+ __source: {
4472
+ fileName: _jsxFileName,
4473
+ lineNumber: 123
4474
+ }
4475
+ }));
4476
+ }
4477
+ }]);
4478
+ return IconClass;
4479
+ }(_react.PureComponent);
4480
+
4481
+ IconClass.propTypes = styleNames.reduce(function (acc, name) {
4482
+ acc[name] = _propTypes["default"].bool;
4483
+ return acc;
4484
+ }, {});
4485
+ IconClass.defaultProps = styleNames.reduce(function (acc, name) {
4486
+ acc[name] = false;
4487
+ return acc;
4488
+ }, {});
4489
+ return IconClass;
4490
+ }
2240
4491
 
2241
- var getSwitchTheme = function getSwitchTheme(theme) {
2242
- var colors = {
2243
- thumb: theme.colors.platformBackground,
2244
- active: theme.colors.primary,
2245
- inactive: theme.colors.inactiveBackground
2246
- };
2247
- var thumbSizes = {
2248
- small: theme.space.medium,
2249
- medium: theme.space.medium * 1.3
2250
- };
2251
- var widths = {
2252
- small: theme.space.xxxlarge,
2253
- medium: theme.space.xxxxlarge
2254
- };
2255
- var heights = {
2256
- small: theme.space.large,
2257
- medium: theme.space.large * 1.2
2258
- };
2259
- var spaces = {
2260
- small: theme.space.xsmall,
2261
- medium: theme.space.xsmall,
2262
- inactive: 0
2263
- };
2264
- var radii = {
2265
- rounded: theme.radii.rounded
2266
- };
2267
- var borderWidths = {
2268
- "default": theme.borderWidths.base
2269
- };
2270
- return {
2271
- colors: colors,
2272
- thumbSizes: thumbSizes,
2273
- widths: widths,
2274
- heights: heights,
2275
- spaces: spaces,
2276
- radii: radii,
2277
- borderWidths: borderWidths
2278
- };
2279
- };
4492
+ var Icon = createStyledIconClass();
4493
+ Icon.Button = createStyledIconClass('Button');
4494
+ Icon.getStyledIconSet = getStyledIconSet;
4495
+ Icon.getImageSource = getImageSource;
4496
+ Icon.getFontFamily = getFontFamily;
4497
+ Icon.getRawGlyphMap = getRawGlyphMap;
4498
+ Icon.hasIcon = hasIcon;
4499
+ return Icon;
4500
+ }
2280
4501
 
2281
- var getTabsTheme = function getTabsTheme(theme) {
2282
- var colors = {
2283
- active: theme.colors.primary,
2284
- inactive: theme.colors.text,
2285
- activeBackground: theme.colors.primaryBackground,
2286
- headerBottom: theme.colors.outline,
2287
- text: theme.colors.text
2288
- };
2289
- var space = {
2290
- flatListHorizontalPadding: theme.space.small,
2291
- itemHorizontalPadding: theme.space.small,
2292
- itemVerticalPadding: theme.space.small,
2293
- outlineHorizontalPadding: theme.space.small,
2294
- outlineVerticalPadding: theme.space.xsmall
2295
- };
2296
- var radii = {
2297
- outline: theme.radii.medium
2298
- };
2299
- var borderWidths = {
2300
- headerBottom: theme.borderWidths.base
2301
- };
2302
- var sizes = {
2303
- indicator: theme.space.xxsmall
2304
- };
2305
- return {
2306
- borderWidths: borderWidths,
2307
- colors: colors,
2308
- space: space,
2309
- radii: radii,
2310
- sizes: sizes
2311
- };
2312
- };
4502
+ var createIconSetFromFontello$1 = {};
2313
4503
 
2314
- var getTagTheme = function getTagTheme(theme) {
2315
- var borderWidths = {
2316
- "default": theme.borderWidths.base
2317
- };
2318
- var colors = {
2319
- danger: theme.colors.danger,
2320
- dangerBackground: theme.colors.dangerBackground,
2321
- info: theme.colors.info,
2322
- infoBackground: theme.colors.infoBackground,
2323
- success: theme.colors.successDark,
2324
- successBackground: theme.colors.successBackground,
2325
- warning: theme.colors.warningDark,
2326
- warningBackground: theme.colors.warningBackground
2327
- };
2328
- var fonts = {
2329
- "default": theme.fonts.semiBold
2330
- };
2331
- var fontSizes = {
2332
- "default": theme.fontSizes.small
2333
- };
2334
- var space = {
2335
- horizontalPadding: theme.space.small,
2336
- verticalPadding: theme.space.xxsmall
2337
- };
2338
- var radii = {
2339
- "default": theme.radii.base
2340
- };
2341
- return {
2342
- borderWidths: borderWidths,
2343
- colors: colors,
2344
- fonts: fonts,
2345
- fontSizes: fontSizes,
2346
- space: space,
2347
- radii: radii
2348
- };
2349
- };
4504
+ var _interopRequireDefault$1 = interopRequireDefault;
4505
+ Object.defineProperty(createIconSetFromFontello$1, "__esModule", {
4506
+ value: true
4507
+ });
2350
4508
 
2351
- var getTextInputTheme = function getTextInputTheme(theme) {
2352
- var colors = {
2353
- labelBackground: theme.colors.platformBackground,
2354
- border: theme.colors.text
2355
- };
2356
- var space = {
2357
- containerPadding: theme.space.medium,
2358
- labelLeft: theme.space.medium,
2359
- labelTop: theme.lineHeights.small / -2,
2360
- labelHorizontalPadding: theme.space.xsmall,
2361
- inputHorizontalMargin: theme.space.small
2362
- };
2363
- var fontSizes = {
2364
- text: theme.fontSizes.large
2365
- };
2366
- var borderWidths = {
2367
- container: theme.borderWidths.base
2368
- };
2369
- var radii = {
2370
- container: theme.radii.medium
2371
- };
2372
- return {
2373
- colors: colors,
2374
- space: space,
2375
- fontSizes: fontSizes,
2376
- borderWidths: borderWidths,
2377
- radii: radii
2378
- };
2379
- };
4509
+ createIconSetFromFontello$1["default"] = createIconSetFromFontello;
2380
4510
 
2381
- var getTypographyTheme = function getTypographyTheme(theme) {
2382
- var colors = {
2383
- body: theme.colors.text,
2384
- subdued: theme.colors.disabledText,
2385
- primary: theme.colors.primary
2386
- };
2387
- var fonts = {
2388
- light: theme.fonts.light,
2389
- regular: theme.fonts.regular,
2390
- semiBold: theme.fonts.semiBold
2391
- };
2392
- var fontSizes = {
2393
- small: theme.fontSizes.small,
2394
- medium: theme.fontSizes.medium,
2395
- large: theme.fontSizes.large,
2396
- xlarge: theme.fontSizes.xlarge
2397
- };
2398
- var lineHeights = {
2399
- small: theme.lineHeights.small,
2400
- medium: theme.lineHeights.medium,
2401
- large: theme.lineHeights.large,
2402
- xlarge: theme.lineHeights.xlarge
2403
- };
2404
- return {
2405
- colors: colors,
2406
- fonts: fonts,
2407
- fontSizes: fontSizes,
2408
- lineHeights: lineHeights
2409
- };
2410
- };
4511
+ var _createIconSet$1 = _interopRequireDefault$1(createIconSet$1);
2411
4512
 
2412
- var getTheme = function getTheme() {
2413
- var scale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : scale$1;
2414
- var systemPallete = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : systemPalette;
2415
- var globalTheme = getGlobalTheme(scale, systemPallete);
2416
- return _objectSpread2(_objectSpread2({}, globalTheme), {}, {
2417
- __hd__: {
2418
- avatar: getAvatarTheme(globalTheme),
2419
- alert: getAlertTheme(globalTheme),
2420
- badge: getBadgeTheme(globalTheme),
2421
- bottomNavigation: getBottomNavigationTheme(globalTheme),
2422
- bottomSheet: getBottomSheetTheme(globalTheme),
2423
- button: getButtonTheme(globalTheme),
2424
- card: getCardTheme(globalTheme),
2425
- contentNavigator: getContentNavigatorTheme(globalTheme),
2426
- divider: getDividerTheme(globalTheme),
2427
- drawer: getDrawerTheme(globalTheme),
2428
- fab: getFABTheme(globalTheme),
2429
- icon: getIconTheme(globalTheme),
2430
- progress: getProgressTheme(globalTheme),
2431
- radio: getRadioTheme(globalTheme),
2432
- sectionHeading: getSectionHeadingTheme(globalTheme),
2433
- select: getSelectTheme(globalTheme),
2434
- spinner: getSpinnerTheme(globalTheme),
2435
- "switch": getSwitchTheme(globalTheme),
2436
- tabs: getTabsTheme(globalTheme),
2437
- tag: getTagTheme(globalTheme),
2438
- textInput: getTextInputTheme(globalTheme),
2439
- typography: getTypographyTheme(globalTheme)
2440
- }
4513
+ function createIconSetFromFontello(config, fontFamilyArg, fontFile) {
4514
+ var glyphMap = {};
4515
+ config.glyphs.forEach(function (glyph) {
4516
+ glyphMap[glyph.css] = glyph.code;
2441
4517
  });
2442
- };
4518
+ var fontFamily = fontFamilyArg || config.name || 'fontello';
4519
+ return (0, _createIconSet$1["default"])(glyphMap, fontFamily, fontFile || fontFamily + ".ttf");
4520
+ }
2443
4521
 
2444
- var theme = getTheme();
2445
- var ThemeProvider = ThemeProvider$1;
2446
- var useTheme = useTheme$1;
4522
+ var createIconSetFromIcomoon = {};
2447
4523
 
2448
- function getDefaultExportFromCjs (x) {
2449
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
4524
+ var _interopRequireDefault = interopRequireDefault;
4525
+ Object.defineProperty(createIconSetFromIcomoon, "__esModule", {
4526
+ value: true
4527
+ });
4528
+
4529
+ createIconSetFromIcomoon["default"] = createIconSetFromIcoMoon;
4530
+
4531
+ var _createIconSet = _interopRequireDefault(createIconSet$1);
4532
+
4533
+ function createIconSetFromIcoMoon(config, fontFamilyArg, fontFile) {
4534
+ var glyphMap = {};
4535
+ config.icons.forEach(function (icon) {
4536
+ icon.properties.name.split(/\s*,\s*/g).forEach(function (name) {
4537
+ glyphMap[name] = icon.properties.code;
4538
+ });
4539
+ });
4540
+ var fontFamily = fontFamilyArg || config.preferences.fontPref.metadata.fontFamily;
4541
+ return (0, _createIconSet["default"])(glyphMap, fontFamily, fontFile || fontFamily + ".ttf");
2450
4542
  }
2451
4543
 
4544
+ (function (exports) {
4545
+ var _interopRequireDefault = interopRequireDefault;
4546
+ Object.defineProperty(exports, "__esModule", {
4547
+ value: true
4548
+ });
4549
+ Object.defineProperty(exports, "createIconSet", {
4550
+ enumerable: true,
4551
+ get: function get() {
4552
+ return _createIconSet["default"];
4553
+ }
4554
+ });
4555
+ Object.defineProperty(exports, "createIconSetFromFontello", {
4556
+ enumerable: true,
4557
+ get: function get() {
4558
+ return _createIconSetFromFontello["default"];
4559
+ }
4560
+ });
4561
+ Object.defineProperty(exports, "createIconSetFromIcoMoon", {
4562
+ enumerable: true,
4563
+ get: function get() {
4564
+ return _createIconSetFromIcomoon["default"];
4565
+ }
4566
+ });
4567
+ Object.defineProperty(exports, "createMultiStyleIconSet", {
4568
+ enumerable: true,
4569
+ get: function get() {
4570
+ return _createMultiStyleIconSet["default"];
4571
+ }
4572
+ });
4573
+
4574
+ var _createIconSet = _interopRequireDefault(createIconSet$1);
4575
+
4576
+ var _createMultiStyleIconSet = _interopRequireDefault(createMultiStyleIconSet$1);
4577
+
4578
+ var _createIconSetFromFontello = _interopRequireDefault(createIconSetFromFontello$1);
4579
+
4580
+ var _createIconSetFromIcomoon = _interopRequireDefault(createIconSetFromIcomoon);
4581
+ })(dist);
4582
+
2452
4583
  var cssToReactNative = {};
2453
4584
 
2454
4585
  var openParentheses = "(".charCodeAt(0);
@@ -2928,7 +5059,7 @@ var camelize = function camelize(obj) {
2928
5059
  };
2929
5060
 
2930
5061
  function walk(obj) {
2931
- if (!obj || _typeof(obj) !== 'object') return obj;
5062
+ if (!obj || _typeof$2(obj) !== 'object') return obj;
2932
5063
  if (isDate(obj) || isRegex(obj)) return obj;
2933
5064
  if (isArray(obj)) return map(obj, walk);
2934
5065
  return reduce(objectKeys(obj), function (acc, key) {
@@ -3293,7 +5424,7 @@ var cssColorKeywords = require$$0;
3293
5424
  });
3294
5425
 
3295
5426
  function _interopDefault(ex) {
3296
- return ex && _typeof(ex) === 'object' && 'default' in ex ? ex['default'] : ex;
5427
+ return ex && _typeof$2(ex) === 'object' && 'default' in ex ? ex['default'] : ex;
3297
5428
  }
3298
5429
 
3299
5430
  var parse = lib;
@@ -4148,7 +6279,7 @@ var buffer = '';
4148
6279
  var lastType;
4149
6280
 
4150
6281
  function handleInterpolation(interpolation, i, arr) {
4151
- var type = _typeof(interpolation);
6282
+ var type = _typeof$2(interpolation);
4152
6283
 
4153
6284
  if (type === 'string') {
4154
6285
  // strip comments
@@ -4363,14 +6494,14 @@ var getDisplayName = function getDisplayName(primitive) {
4363
6494
  * a function that returns a styled component which render styles in React Native
4364
6495
  */
4365
6496
 
4366
- var styled = createStyled(reactNative.StyleSheet);
6497
+ var styled = createStyled(ReactNative.StyleSheet);
4367
6498
  var components = ['ActivityIndicator', 'Button', 'DatePickerIOS', 'DrawerLayoutAndroid', 'FlatList', 'Image', 'ImageBackground', 'KeyboardAvoidingView', 'ListView', 'Modal', 'NavigatorIOS', 'Picker', 'PickerIOS', 'Pressable', 'ProgressBarAndroid', 'ProgressViewIOS', 'RecyclerViewBackedScrollView', 'RefreshControl', 'SafeAreaView', 'ScrollView', 'SectionList', 'SegmentedControlIOS', 'Slider', 'SnapshotViewIOS', 'StatusBar', 'SwipeableListView', 'Switch', 'SwitchIOS', 'TabBarIOS', 'Text', 'TextInput', 'ToolbarAndroid', 'TouchableHighlight', 'TouchableNativeFeedback', 'TouchableOpacity', 'TouchableWithoutFeedback', 'View', 'ViewPagerAndroid'];
4368
6499
  var index$2 = components.reduce(function (acc, comp) {
4369
6500
  return Object.defineProperty(acc, comp, {
4370
6501
  enumerable: true,
4371
6502
  configurable: false,
4372
6503
  get: function get() {
4373
- return styled(reactNative__namespace[comp]);
6504
+ return styled(ReactNative__namespace[comp]);
4374
6505
  }
4375
6506
  });
4376
6507
  }, styled);
@@ -12294,7 +14425,7 @@ var heroIconConfig = {
12294
14425
  preferences: preferences
12295
14426
  };
12296
14427
 
12297
- var HeroIcon = reactNativeVectorIcons.createIconSetFromIcoMoon(heroIconConfig, 'hero-icons', 'hero-icons.ttf');
14428
+ var HeroIcon = dist.createIconSetFromIcoMoon(heroIconConfig, 'hero-icons', 'hero-icons.ttf');
12298
14429
  var COLOR_INTENTS = {
12299
14430
  text: 'text',
12300
14431
  primary: 'primary',
@@ -12336,7 +14467,7 @@ var FONTWEIGHT_MAP = {
12336
14467
  regular: 'regular',
12337
14468
  'semi-bold': 'semiBold'
12338
14469
  };
12339
- var StyledText$3 = index$2(reactNative.Text)(function (_ref) {
14470
+ var StyledText$3 = index$2(ReactNative.Text)(function (_ref) {
12340
14471
  var themeFontSize = _ref.themeFontSize,
12341
14472
  themeFontWeight = _ref.themeFontWeight,
12342
14473
  themeIntent = _ref.themeIntent,
@@ -12362,9 +14493,9 @@ var Text = function Text(_ref) {
12362
14493
  fontWeight = _ref$fontWeight === void 0 ? 'regular' : _ref$fontWeight,
12363
14494
  _ref$intent = _ref.intent,
12364
14495
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
12365
- nativeProps = _objectWithoutProperties(_ref, _excluded$c);
14496
+ nativeProps = _objectWithoutProperties$1(_ref, _excluded$c);
12366
14497
 
12367
- return /*#__PURE__*/React__default["default"].createElement(StyledText$3, _extends$1({}, nativeProps, {
14498
+ return /*#__PURE__*/React__default["default"].createElement(StyledText$3, _extends$3({}, nativeProps, {
12368
14499
  themeFontSize: fontSize,
12369
14500
  themeFontWeight: fontWeight,
12370
14501
  themeIntent: intent
@@ -12375,7 +14506,7 @@ var Typography = {
12375
14506
  Text: Text
12376
14507
  };
12377
14508
 
12378
- var Container$1 = index$2(reactNative.View)(function (_ref) {
14509
+ var Container$2 = index$2(ReactNative.View)(function (_ref) {
12379
14510
  var theme = _ref.theme,
12380
14511
  _ref$themeVariant = _ref.themeVariant,
12381
14512
  themeVariant = _ref$themeVariant === void 0 ? 'default' : _ref$themeVariant,
@@ -12387,21 +14518,21 @@ var Container$1 = index$2(reactNative.View)(function (_ref) {
12387
14518
  flexDirection: 'row'
12388
14519
  };
12389
14520
  });
12390
- var IconContainer = index$2(reactNative.View)(function (_ref2) {
14521
+ var IconContainer$1 = index$2(ReactNative.View)(function (_ref2) {
12391
14522
  var theme = _ref2.theme;
12392
14523
  return {
12393
14524
  alignItems: 'center',
12394
14525
  paddingLeft: theme.__hd__.alert.space.padding
12395
14526
  };
12396
14527
  });
12397
- var TextContainer = index$2(reactNative.View)(function (_ref3) {
14528
+ var TextContainer$1 = index$2(ReactNative.View)(function (_ref3) {
12398
14529
  var theme = _ref3.theme;
12399
14530
  return {
12400
14531
  paddingHorizontal: theme.__hd__.alert.space.padding,
12401
14532
  flex: 1
12402
14533
  };
12403
14534
  });
12404
- var ContentContainer = index$2(reactNative.View)(function (_ref4) {
14535
+ var ContentContainer$1 = index$2(ReactNative.View)(function (_ref4) {
12405
14536
  var theme = _ref4.theme,
12406
14537
  showDivider = _ref4.showDivider;
12407
14538
  return {
@@ -12412,7 +14543,7 @@ var ContentContainer = index$2(reactNative.View)(function (_ref4) {
12412
14543
  flexDirection: 'row'
12413
14544
  };
12414
14545
  });
12415
- var CTAWrapper = index$2(reactNative.TouchableOpacity)(function (_ref5) {
14546
+ var CTAWrapper$1 = index$2(ReactNative.TouchableOpacity)(function (_ref5) {
12416
14547
  var theme = _ref5.theme;
12417
14548
  return {
12418
14549
  paddingHorizontal: theme.__hd__.alert.space.padding,
@@ -12420,7 +14551,7 @@ var CTAWrapper = index$2(reactNative.TouchableOpacity)(function (_ref5) {
12420
14551
  };
12421
14552
  });
12422
14553
 
12423
- var getIntentIcon = function getIntentIcon(intent) {
14554
+ var getIntentIcon$1 = function getIntentIcon(intent) {
12424
14555
  switch (intent) {
12425
14556
  case 'success':
12426
14557
  return 'circle-ok';
@@ -12447,21 +14578,21 @@ var Alert = function Alert(_ref) {
12447
14578
  variant = _ref$variant === void 0 ? 'default' : _ref$variant,
12448
14579
  style = _ref.style,
12449
14580
  testID = _ref.testID;
12450
- return /*#__PURE__*/React__default["default"].createElement(Container$1, {
14581
+ return /*#__PURE__*/React__default["default"].createElement(Container$2, {
12451
14582
  themeVariant: variant,
12452
14583
  themeIntent: intent,
12453
14584
  style: style,
12454
14585
  testID: testID
12455
- }, /*#__PURE__*/React__default["default"].createElement(ContentContainer, {
14586
+ }, /*#__PURE__*/React__default["default"].createElement(ContentContainer$1, {
12456
14587
  showDivider: !!onClose
12457
- }, icon !== null ? /*#__PURE__*/React__default["default"].createElement(IconContainer, {
14588
+ }, icon !== null ? /*#__PURE__*/React__default["default"].createElement(IconContainer$1, {
12458
14589
  testID: "alert-left-icon"
12459
14590
  }, /*#__PURE__*/React__default["default"].createElement(Icon, {
12460
- icon: icon || getIntentIcon(intent),
14591
+ icon: icon || getIntentIcon$1(intent),
12461
14592
  size: "small"
12462
- })) : null, /*#__PURE__*/React__default["default"].createElement(TextContainer, null, typeof title === 'string' ? /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
14593
+ })) : null, /*#__PURE__*/React__default["default"].createElement(TextContainer$1, null, typeof title === 'string' ? /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
12463
14594
  fontWeight: "semi-bold"
12464
- }, title) : title, typeof content === 'string' ? /*#__PURE__*/React__default["default"].createElement(Typography.Text, null, content) : content)), onClose ? /*#__PURE__*/React__default["default"].createElement(CTAWrapper, {
14595
+ }, title) : title, typeof content === 'string' ? /*#__PURE__*/React__default["default"].createElement(Typography.Text, null, content) : content)), onClose ? /*#__PURE__*/React__default["default"].createElement(CTAWrapper$1, {
12465
14596
  onPress: onClose,
12466
14597
  testID: "alert-close-icon"
12467
14598
  }, /*#__PURE__*/React__default["default"].createElement(Icon, {
@@ -12470,7 +14601,7 @@ var Alert = function Alert(_ref) {
12470
14601
  })) : null);
12471
14602
  };
12472
14603
 
12473
- var StyledPressable = index$2(reactNative.TouchableOpacity)(function (_ref) {
14604
+ var StyledPressable = index$2(ReactNative.TouchableOpacity)(function (_ref) {
12474
14605
  var themeSize = _ref.themeSize,
12475
14606
  themeIntent = _ref.themeIntent,
12476
14607
  theme = _ref.theme;
@@ -12483,7 +14614,7 @@ var StyledPressable = index$2(reactNative.TouchableOpacity)(function (_ref) {
12483
14614
  overflow: 'hidden'
12484
14615
  };
12485
14616
  });
12486
- var StyledView$3 = index$2(reactNative.View)(function (_ref2) {
14617
+ var StyledView$3 = index$2(ReactNative.View)(function (_ref2) {
12487
14618
  var themeSize = _ref2.themeSize,
12488
14619
  themeIntent = _ref2.themeIntent,
12489
14620
  theme = _ref2.theme;
@@ -12496,7 +14627,7 @@ var StyledView$3 = index$2(reactNative.View)(function (_ref2) {
12496
14627
  overflow: 'hidden'
12497
14628
  };
12498
14629
  });
12499
- var StyledTextWrapper = index$2(reactNative.View)(function () {
14630
+ var StyledTextWrapper = index$2(ReactNative.View)(function () {
12500
14631
  return {
12501
14632
  alignItems: 'center',
12502
14633
  justifyContent: 'center',
@@ -12505,7 +14636,7 @@ var StyledTextWrapper = index$2(reactNative.View)(function () {
12505
14636
  height: '100%'
12506
14637
  };
12507
14638
  });
12508
- var StyledText$2 = index$2(reactNative.Text)(function (_ref3) {
14639
+ var StyledText$2 = index$2(ReactNative.Text)(function (_ref3) {
12509
14640
  var themeSize = _ref3.themeSize,
12510
14641
  themeIntent = _ref3.themeIntent,
12511
14642
  theme = _ref3.theme;
@@ -12515,7 +14646,7 @@ var StyledText$2 = index$2(reactNative.Text)(function (_ref3) {
12515
14646
  overflow: 'hidden'
12516
14647
  };
12517
14648
  });
12518
- var StyledImage = index$2(reactNative.Image)(function (_ref4) {
14649
+ var StyledImage = index$2(ReactNative.Image)(function (_ref4) {
12519
14650
  var themeSize = _ref4.themeSize,
12520
14651
  theme = _ref4.theme;
12521
14652
  return {
@@ -12551,7 +14682,7 @@ var Avatar = function Avatar(_ref) {
12551
14682
  })) : null;
12552
14683
  };
12553
14684
 
12554
- var StyledView$2 = index$2(reactNative.Animated.View)(function (_ref) {
14685
+ var StyledView$2 = index$2(ReactNative.Animated.View)(function (_ref) {
12555
14686
  var themeIntent = _ref.themeIntent,
12556
14687
  themePadding = _ref.themePadding,
12557
14688
  theme = _ref.theme;
@@ -12565,7 +14696,7 @@ var StyledView$2 = index$2(reactNative.Animated.View)(function (_ref) {
12565
14696
  paddingHorizontal: themePadding === 'wideContent' ? theme.__hd__.badge.space.horizontalPadding : undefined
12566
14697
  };
12567
14698
  });
12568
- var StyledText$1 = index$2(reactNative.Text)(function (_ref2) {
14699
+ var StyledText$1 = index$2(ReactNative.Text)(function (_ref2) {
12569
14700
  var theme = _ref2.theme;
12570
14701
  return {
12571
14702
  fontFamily: theme.__hd__.badge.fonts["default"],
@@ -12576,7 +14707,7 @@ var StyledText$1 = index$2(reactNative.Text)(function (_ref2) {
12576
14707
  textAlign: 'center'
12577
14708
  };
12578
14709
  });
12579
- var StyledStatus = index$2(reactNative.Animated.View)(function (_ref3) {
14710
+ var StyledStatus = index$2(ReactNative.Animated.View)(function (_ref3) {
12580
14711
  var themeIntent = _ref3.themeIntent,
12581
14712
  theme = _ref3.theme;
12582
14713
  return {
@@ -12600,9 +14731,9 @@ var Status = function Status(_ref) {
12600
14731
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
12601
14732
  style = _ref.style,
12602
14733
  testID = _ref.testID,
12603
- nativeProps = _objectWithoutProperties(_ref, _excluded$b);
14734
+ nativeProps = _objectWithoutProperties$1(_ref, _excluded$b);
12604
14735
 
12605
- var _React$useRef = React__default["default"].useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
14736
+ var _React$useRef = React__default["default"].useRef(new ReactNative.Animated.Value(visible ? 1 : 0)),
12606
14737
  opacity = _React$useRef.current;
12607
14738
 
12608
14739
  var isFirstRendering = React__default["default"].useRef(true);
@@ -12613,13 +14744,13 @@ var Status = function Status(_ref) {
12613
14744
  return;
12614
14745
  }
12615
14746
 
12616
- reactNative.Animated.timing(opacity, {
14747
+ ReactNative.Animated.timing(opacity, {
12617
14748
  toValue: visible ? 1 : 0,
12618
14749
  duration: 150,
12619
14750
  useNativeDriver: true
12620
14751
  }).start();
12621
14752
  }, [visible, opacity]);
12622
- return /*#__PURE__*/React__default["default"].createElement(reactNative.View, _extends$1({}, nativeProps, {
14753
+ return /*#__PURE__*/React__default["default"].createElement(ReactNative.View, _extends$3({}, nativeProps, {
12623
14754
  style: style,
12624
14755
  testID: testID
12625
14756
  }), children, /*#__PURE__*/React__default["default"].createElement(StyledStatus, {
@@ -12653,9 +14784,9 @@ var Badge = function Badge(_ref) {
12653
14784
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
12654
14785
  style = _ref.style,
12655
14786
  testID = _ref.testID,
12656
- nativeProps = _objectWithoutProperties(_ref, _excluded$a);
14787
+ nativeProps = _objectWithoutProperties$1(_ref, _excluded$a);
12657
14788
 
12658
- var _React$useRef = React__default["default"].useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
14789
+ var _React$useRef = React__default["default"].useRef(new ReactNative.Animated.Value(visible ? 1 : 0)),
12659
14790
  opacity = _React$useRef.current;
12660
14791
 
12661
14792
  var isFirstRendering = React__default["default"].useRef(true);
@@ -12666,14 +14797,14 @@ var Badge = function Badge(_ref) {
12666
14797
  return;
12667
14798
  }
12668
14799
 
12669
- reactNative.Animated.timing(opacity, {
14800
+ ReactNative.Animated.timing(opacity, {
12670
14801
  toValue: visible ? 1 : 0,
12671
14802
  duration: 150,
12672
14803
  useNativeDriver: true
12673
14804
  }).start();
12674
14805
  }, [visible, opacity]);
12675
14806
  var content = typeof originalContent === 'number' && originalContent > max ? "".concat(max, "+") : String(originalContent);
12676
- return /*#__PURE__*/React__default["default"].createElement(StyledView$2, _extends$1({}, nativeProps, {
14807
+ return /*#__PURE__*/React__default["default"].createElement(StyledView$2, _extends$3({}, nativeProps, {
12677
14808
  themeIntent: intent,
12678
14809
  themePadding: getPaddingState(content),
12679
14810
  style: [{
@@ -12699,21 +14830,21 @@ var isHeroIcon = function isHeroIcon(x) {
12699
14830
  return IconList.includes(x);
12700
14831
  };
12701
14832
 
12702
- var BottomNavigationTab = index$2(reactNative.View)(function (_ref) {
14833
+ var BottomNavigationTab = index$2(ReactNative.View)(function (_ref) {
12703
14834
  var themeVisibility = _ref.themeVisibility;
12704
14835
  return {
12705
14836
  flex: 1,
12706
14837
  display: themeVisibility === false ? 'none' : 'flex'
12707
14838
  };
12708
14839
  });
12709
- var BottomNavigationContainer = index$2(reactNative.View)({
14840
+ var BottomNavigationContainer = index$2(ReactNative.View)({
12710
14841
  flex: 1,
12711
14842
  overflow: 'hidden'
12712
14843
  });
12713
- var ContentWrapper$2 = index$2(reactNative.View)({
14844
+ var ContentWrapper$2 = index$2(ReactNative.View)({
12714
14845
  flex: 1
12715
14846
  });
12716
- var BottomBarWrapper = index$2(reactNative.View)(function (_ref2) {
14847
+ var BottomBarWrapper = index$2(ReactNative.View)(function (_ref2) {
12717
14848
  var themeInsets = _ref2.themeInsets,
12718
14849
  theme = _ref2.theme;
12719
14850
  return {
@@ -12729,13 +14860,13 @@ var BottomBarWrapper = index$2(reactNative.View)(function (_ref2) {
12729
14860
  elevation: theme.__hd__.bottomNavigation.shadows.elevation
12730
14861
  };
12731
14862
  });
12732
- var BottomBar = index$2(reactNative.View)({
14863
+ var BottomBar = index$2(ReactNative.View)({
12733
14864
  flex: 1,
12734
14865
  flexDirection: 'row',
12735
14866
  overflow: 'hidden',
12736
14867
  alignItems: 'center'
12737
14868
  });
12738
- var BottomBarItem = index$2(reactNative.View)({
14869
+ var BottomBarItem = index$2(ReactNative.View)({
12739
14870
  flex: 1,
12740
14871
  alignItems: 'center'
12741
14872
  });
@@ -12746,8 +14877,8 @@ var StyledBottomBarText = index$2(Typography.Text)(function (_ref3) {
12746
14877
  };
12747
14878
  });
12748
14879
 
12749
- var isIOS = reactNative.Platform.OS === 'ios';
12750
- reactNative.Platform.OS === 'android';
14880
+ var isIOS = ReactNative.Platform.OS === 'ios';
14881
+ ReactNative.Platform.OS === 'android';
12751
14882
 
12752
14883
  var _excluded$9 = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
12753
14884
 
@@ -12762,7 +14893,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
12762
14893
  renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
12763
14894
  selectedTabKey = _ref.selectedTabKey,
12764
14895
  tabs = _ref.tabs,
12765
- nativeProps = _objectWithoutProperties(_ref, _excluded$9);
14896
+ nativeProps = _objectWithoutProperties$1(_ref, _excluded$9);
12766
14897
 
12767
14898
  var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
12768
14899
  /**
@@ -12777,7 +14908,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
12777
14908
  if (!loaded.includes(selectedTabKey)) {
12778
14909
  // Set the current tab to be loaded if it was not loaded before
12779
14910
  setLoaded(function (loadedState) {
12780
- return [].concat(_toConsumableArray(loadedState), [selectedTabKey]);
14911
+ return [].concat(_toConsumableArray$1(loadedState), [selectedTabKey]);
12781
14912
  });
12782
14913
  }
12783
14914
 
@@ -12817,7 +14948,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
12817
14948
  testID = tab.testID;
12818
14949
  var active = selectedTabKey === key;
12819
14950
  var inactiveIcon = getInactiveIcon(icon);
12820
- return /*#__PURE__*/React__default["default"].createElement(reactNative.TouchableWithoutFeedback, {
14951
+ return /*#__PURE__*/React__default["default"].createElement(ReactNative.TouchableWithoutFeedback, {
12821
14952
  key: key,
12822
14953
  onPress: function onPress() {
12823
14954
  return onTabPress(key);
@@ -12836,7 +14967,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
12836
14967
  }))));
12837
14968
  };
12838
14969
 
12839
- var StyledDivider = index$2(reactNative.View)(function (_ref) {
14970
+ var StyledDivider = index$2(ReactNative.View)(function (_ref) {
12840
14971
  var themeMarginHorizontal = _ref.themeMarginHorizontal,
12841
14972
  themeMarginVertical = _ref.themeMarginVertical,
12842
14973
  theme = _ref.theme;
@@ -12860,9 +14991,9 @@ var Divider = function Divider(_ref) {
12860
14991
  marginVertical = _ref.marginVertical,
12861
14992
  style = _ref.style,
12862
14993
  testID = _ref.testID,
12863
- nativeProps = _objectWithoutProperties(_ref, _excluded$8);
14994
+ nativeProps = _objectWithoutProperties$1(_ref, _excluded$8);
12864
14995
 
12865
- return /*#__PURE__*/React__default["default"].createElement(StyledDivider, _extends$1({}, nativeProps, {
14996
+ return /*#__PURE__*/React__default["default"].createElement(StyledDivider, _extends$3({}, nativeProps, {
12866
14997
  themeMarginHorizontal: marginHorizontal,
12867
14998
  themeMarginVertical: marginVertical,
12868
14999
  style: style,
@@ -12870,11 +15001,11 @@ var Divider = function Divider(_ref) {
12870
15001
  }));
12871
15002
  };
12872
15003
 
12873
- var AnimatedPressable$1 = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
12874
- var StyledWrapper$4 = index$2(reactNative.View)(_objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
15004
+ var AnimatedPressable$1 = ReactNative.Animated.createAnimatedComponent(ReactNative.Pressable);
15005
+ var StyledWrapper$5 = index$2(ReactNative.View)(_objectSpread2(_objectSpread2({}, ReactNative.StyleSheet.absoluteFillObject), {}, {
12875
15006
  flexDirection: 'column-reverse'
12876
15007
  }));
12877
- var StyledBottomSheet = index$2(reactNative.Animated.View)(function (_ref) {
15008
+ var StyledBottomSheet = index$2(ReactNative.Animated.View)(function (_ref) {
12878
15009
  var theme = _ref.theme;
12879
15010
  return {
12880
15011
  borderTopLeftRadius: theme.__hd__.bottomSheet.radii["default"],
@@ -12891,19 +15022,19 @@ var StyledBottomSheet = index$2(reactNative.Animated.View)(function (_ref) {
12891
15022
  });
12892
15023
  var StyledBackdrop$2 = index$2(AnimatedPressable$1)(function (_ref2) {
12893
15024
  var theme = _ref2.theme;
12894
- return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
15025
+ return _objectSpread2(_objectSpread2({}, ReactNative.StyleSheet.absoluteFillObject), {}, {
12895
15026
  backgroundColor: theme.__hd__.bottomSheet.colors.backdrop,
12896
15027
  opacity: 0.48
12897
15028
  });
12898
15029
  });
12899
- var StyledHeaderWrapper = index$2(reactNative.View)(function (_ref3) {
15030
+ var StyledHeaderWrapper = index$2(ReactNative.View)(function (_ref3) {
12900
15031
  var theme = _ref3.theme;
12901
15032
  return {
12902
15033
  minHeight: theme.__hd__.bottomSheet.sizes.sectionHeight,
12903
15034
  flexDirection: 'row'
12904
15035
  };
12905
15036
  });
12906
- var StyledHeader = index$2(reactNative.View)(function (_ref4) {
15037
+ var StyledHeader = index$2(ReactNative.View)(function (_ref4) {
12907
15038
  var theme = _ref4.theme,
12908
15039
  adjacentIcon = _ref4.adjacentIcon;
12909
15040
  return {
@@ -12914,7 +15045,7 @@ var StyledHeader = index$2(reactNative.View)(function (_ref4) {
12914
15045
  justifyContent: 'center'
12915
15046
  };
12916
15047
  });
12917
- var StyledFooter = index$2(reactNative.View)(function (_ref5) {
15048
+ var StyledFooter = index$2(ReactNative.View)(function (_ref5) {
12918
15049
  var theme = _ref5.theme;
12919
15050
  return {
12920
15051
  paddingHorizontal: theme.__hd__.bottomSheet.space.horizontalPadding,
@@ -12925,7 +15056,7 @@ var StyledFooter = index$2(reactNative.View)(function (_ref5) {
12925
15056
  flexDirection: 'row'
12926
15057
  };
12927
15058
  });
12928
- var StyledIconWrapper$1 = index$2(reactNative.View)(function (_ref6) {
15059
+ var StyledIconWrapper$1 = index$2(ReactNative.View)(function (_ref6) {
12929
15060
  var theme = _ref6.theme;
12930
15061
  return {
12931
15062
  alignItems: 'center',
@@ -12937,7 +15068,7 @@ var StyledIconWrapper$1 = index$2(reactNative.View)(function (_ref6) {
12937
15068
  var Footer$1 = function Footer(_ref) {
12938
15069
  var children = _ref.children,
12939
15070
  showDivider = _ref.showDivider;
12940
- return /*#__PURE__*/React__default["default"].createElement(reactNative.View, null, showDivider ? /*#__PURE__*/React__default["default"].createElement(Divider, null) : null, /*#__PURE__*/React__default["default"].createElement(StyledFooter, null, children));
15071
+ return /*#__PURE__*/React__default["default"].createElement(ReactNative.View, null, showDivider ? /*#__PURE__*/React__default["default"].createElement(Divider, null) : null, /*#__PURE__*/React__default["default"].createElement(StyledFooter, null, children));
12941
15072
  };
12942
15073
 
12943
15074
  var genLoadingIndicatorStyles = function genLoadingIndicatorStyles(theme, intent) {
@@ -12946,7 +15077,7 @@ var genLoadingIndicatorStyles = function genLoadingIndicatorStyles(theme, intent
12946
15077
  };
12947
15078
  };
12948
15079
 
12949
- var StyledLoadingIndicatorWrapper = index$2(reactNative.View)(function (_ref) {
15080
+ var StyledLoadingIndicatorWrapper = index$2(ReactNative.View)(function (_ref) {
12950
15081
  var theme = _ref.theme;
12951
15082
  return {
12952
15083
  flexDirection: 'row',
@@ -12955,7 +15086,7 @@ var StyledLoadingIndicatorWrapper = index$2(reactNative.View)(function (_ref) {
12955
15086
  paddingVertical: theme.space.xxsmall
12956
15087
  };
12957
15088
  });
12958
- var StyledLoadingDot = index$2(reactNative.View)(function (_ref2) {
15089
+ var StyledLoadingDot = index$2(ReactNative.View)(function (_ref2) {
12959
15090
  var _ref2$size = _ref2.size,
12960
15091
  size = _ref2$size === void 0 ? 12 : _ref2$size,
12961
15092
  themeVariant = _ref2.themeVariant,
@@ -12989,8 +15120,8 @@ var StyledLoadingDot = index$2(reactNative.View)(function (_ref2) {
12989
15120
  });
12990
15121
 
12991
15122
  var _excluded$7 = ["count", "size", "testID", "themeVariant"];
12992
- var AnimatedLoadingIndicatorWrapper = reactNative.Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
12993
- var AnimatedLoadingDot = reactNative.Animated.createAnimatedComponent(StyledLoadingDot);
15123
+ var AnimatedLoadingIndicatorWrapper = ReactNative.Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
15124
+ var AnimatedLoadingDot = ReactNative.Animated.createAnimatedComponent(StyledLoadingDot);
12994
15125
 
12995
15126
  var renderDotComponent = function renderDotComponent(_ref) {
12996
15127
  var index = _ref.index,
@@ -13002,8 +15133,8 @@ var renderDotComponent = function renderDotComponent(_ref) {
13002
15133
  inputRange: [0.0, (index + 0.5) / (count + 1), (index + 1.0) / (count + 1), (index + 1.5) / (count + 1), 1.0],
13003
15134
  outputRange: [1.0, 1.36, 1.56, 1.06, 1.0]
13004
15135
  });
13005
- return /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, {
13006
- style: reactNative.StyleSheet.flatten([{
15136
+ return /*#__PURE__*/React__default["default"].createElement(ReactNative.Animated.View, {
15137
+ style: ReactNative.StyleSheet.flatten([{
13007
15138
  transform: [{
13008
15139
  scale: interpolatedProgressAnimation
13009
15140
  }]
@@ -13022,14 +15153,14 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
13022
15153
  size = _ref2$size === void 0 ? 12 : _ref2$size,
13023
15154
  testID = _ref2.testID,
13024
15155
  themeVariant = _ref2.themeVariant,
13025
- nativeProps = _objectWithoutProperties(_ref2, _excluded$7);
15156
+ nativeProps = _objectWithoutProperties$1(_ref2, _excluded$7);
13026
15157
 
13027
- var progressAnimation = React.useRef(new reactNative.Animated.Value(0));
15158
+ var progressAnimation = React.useRef(new ReactNative.Animated.Value(0));
13028
15159
  React.useEffect(function () {
13029
- var animation = reactNative.Animated.loop(reactNative.Animated.timing(progressAnimation.current, {
15160
+ var animation = ReactNative.Animated.loop(ReactNative.Animated.timing(progressAnimation.current, {
13030
15161
  toValue: 1,
13031
15162
  duration: 1200,
13032
- easing: reactNative.Easing.linear,
15163
+ easing: ReactNative.Easing.linear,
13033
15164
  useNativeDriver: true
13034
15165
  }));
13035
15166
  animation.start();
@@ -13052,7 +15183,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
13052
15183
  return null;
13053
15184
  };
13054
15185
 
13055
- return /*#__PURE__*/React__default["default"].createElement(AnimatedLoadingIndicatorWrapper, _extends$1({
15186
+ return /*#__PURE__*/React__default["default"].createElement(AnimatedLoadingIndicatorWrapper, _extends$3({
13056
15187
  testID: testID
13057
15188
  }, nativeProps), Array.from(new Array(count), renderLoadingDot, themeVariant));
13058
15189
  };
@@ -13173,7 +15304,7 @@ var genOutlineTextStyles = function genOutlineTextStyles(theme, intent, pressed,
13173
15304
  }, textColorStyling());
13174
15305
  };
13175
15306
 
13176
- var StyledButtonContainer = index$2(reactNative.View)(function (_ref) {
15307
+ var StyledButtonContainer = index$2(ReactNative.View)(function (_ref) {
13177
15308
  var _ref$disabled = _ref.disabled,
13178
15309
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
13179
15310
  _ref$pressed = _ref.pressed,
@@ -13235,7 +15366,7 @@ var StyledButtonText = index$2(Typography.Text)(function (_ref2) {
13235
15366
  fontFamily: theme.__hd__.button.fonts["default"]
13236
15367
  }, themeStyling());
13237
15368
  });
13238
- var StyledButtonIconWrapper = index$2(reactNative.View)(function (_ref3) {
15369
+ var StyledButtonIconWrapper = index$2(ReactNative.View)(function (_ref3) {
13239
15370
  var themePosition = _ref3.themePosition,
13240
15371
  theme = _ref3.theme;
13241
15372
 
@@ -13321,7 +15452,7 @@ var Button = function Button(_ref) {
13321
15452
  text = _ref.text,
13322
15453
  _ref$variant = _ref.variant,
13323
15454
  variant = _ref$variant === void 0 ? 'filled' : _ref$variant;
13324
- return /*#__PURE__*/React__default["default"].createElement(reactNative.Pressable, {
15455
+ return /*#__PURE__*/React__default["default"].createElement(ReactNative.Pressable, {
13325
15456
  accessibilityHint: accessibilityHint,
13326
15457
  accessibilityLabel: accessibilityLabel,
13327
15458
  disabled: disabled || loading,
@@ -13372,7 +15503,7 @@ var IconButton = function IconButton(_ref) {
13372
15503
  style = _ref.style,
13373
15504
  size = _ref.size,
13374
15505
  intent = _ref.intent;
13375
- return /*#__PURE__*/React__default["default"].createElement(reactNative.TouchableOpacity, {
15506
+ return /*#__PURE__*/React__default["default"].createElement(ReactNative.TouchableOpacity, {
13376
15507
  style: style,
13377
15508
  onPress: onPress,
13378
15509
  testID: testID,
@@ -13399,7 +15530,7 @@ var Header = function Header(_ref) {
13399
15530
  }, /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
13400
15531
  fontSize: "large",
13401
15532
  fontWeight: "semi-bold"
13402
- }, content)) : /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
15533
+ }, content)) : /*#__PURE__*/React__default["default"].createElement(ReactNative.View, {
13403
15534
  style: {
13404
15535
  flex: 1
13405
15536
  }
@@ -13439,7 +15570,7 @@ var BottomSheet = function BottomSheet(_ref) {
13439
15570
  visible = _useState4[0],
13440
15571
  setVisibility = _useState4[1];
13441
15572
 
13442
- var animatedValue = React.useRef(new reactNative.Animated.Value(open ? 0 : 1));
15573
+ var animatedValue = React.useRef(new ReactNative.Animated.Value(open ? 0 : 1));
13443
15574
  React.useEffect(function () {
13444
15575
  // Show the modal before the open animation start
13445
15576
  if (open && !visible) {
@@ -13463,9 +15594,9 @@ var BottomSheet = function BottomSheet(_ref) {
13463
15594
  }, [open]); // Animation
13464
15595
 
13465
15596
  React.useEffect(function () {
13466
- var animation = reactNative.Animated.timing(animatedValue.current, {
15597
+ var animation = ReactNative.Animated.timing(animatedValue.current, {
13467
15598
  toValue: open ? 1 : 0,
13468
- easing: reactNative.Easing.inOut(reactNative.Easing.cubic),
15599
+ easing: ReactNative.Easing.inOut(ReactNative.Easing.cubic),
13469
15600
  useNativeDriver: true
13470
15601
  });
13471
15602
  animation.start();
@@ -13482,13 +15613,13 @@ var BottomSheet = function BottomSheet(_ref) {
13482
15613
  inputRange: [0, 1],
13483
15614
  outputRange: [0, 0.48]
13484
15615
  }) : 0;
13485
- return /*#__PURE__*/React__default["default"].createElement(reactNative.Modal, {
15616
+ return /*#__PURE__*/React__default["default"].createElement(ReactNative.Modal, {
13486
15617
  visible: visible,
13487
15618
  onRequestClose: onRequestClose,
13488
15619
  transparent: true,
13489
15620
  testID: testID,
13490
15621
  onShow: onOpen
13491
- }, /*#__PURE__*/React__default["default"].createElement(StyledWrapper$4, {
15622
+ }, /*#__PURE__*/React__default["default"].createElement(StyledWrapper$5, {
13492
15623
  pointerEvents: "box-none"
13493
15624
  }, /*#__PURE__*/React__default["default"].createElement(StyledBackdrop$2, {
13494
15625
  style: {
@@ -13517,7 +15648,7 @@ var BottomSheet = function BottomSheet(_ref) {
13517
15648
  }, footer) : null)));
13518
15649
  };
13519
15650
 
13520
- var StyledCard = index$2(reactNative.View)(function (_ref) {
15651
+ var StyledCard = index$2(ReactNative.View)(function (_ref) {
13521
15652
  var themeVariant = _ref.themeVariant,
13522
15653
  theme = _ref.theme;
13523
15654
  var sharedStyles = {
@@ -13537,7 +15668,7 @@ var StyledCard = index$2(reactNative.View)(function (_ref) {
13537
15668
  return _objectSpread2(_objectSpread2({}, sharedStyles), dataStyles);
13538
15669
  }
13539
15670
  });
13540
- var LeftDataCard = index$2(reactNative.View)(function (_ref2) {
15671
+ var LeftDataCard = index$2(ReactNative.View)(function (_ref2) {
13541
15672
  var theme = _ref2.theme;
13542
15673
  return {
13543
15674
  backgroundColor: theme.__hd__.card.colors.dataCardIndicator,
@@ -13552,16 +15683,16 @@ var Card = function Card(_ref) {
13552
15683
  var _ref$variant = _ref.variant,
13553
15684
  variant = _ref$variant === void 0 ? 'basic' : _ref$variant,
13554
15685
  children = _ref.children,
13555
- nativeProps = _objectWithoutProperties(_ref, _excluded$6);
15686
+ nativeProps = _objectWithoutProperties$1(_ref, _excluded$6);
13556
15687
 
13557
- return /*#__PURE__*/React__default["default"].createElement(StyledCard, _extends$1({}, nativeProps, {
15688
+ return /*#__PURE__*/React__default["default"].createElement(StyledCard, _extends$3({}, nativeProps, {
13558
15689
  themeVariant: variant
13559
15690
  }), variant === 'data' && /*#__PURE__*/React__default["default"].createElement(LeftDataCard, {
13560
15691
  testID: "data-card-indicator"
13561
15692
  }), children);
13562
15693
  };
13563
15694
 
13564
- var StyledWrapper$3 = index$2(reactNative.Animated.View)(function () {
15695
+ var StyledWrapper$4 = index$2(ReactNative.Animated.View)(function () {
13565
15696
  return {
13566
15697
  margin: 0,
13567
15698
  padding: 0,
@@ -13574,12 +15705,12 @@ var StyledWrapper$3 = index$2(reactNative.Animated.View)(function () {
13574
15705
  * to use with Animated.timing
13575
15706
  */
13576
15707
 
13577
- var StyledHiddenWrapper = index$2(reactNative.View)(function () {
15708
+ var StyledHiddenWrapper = index$2(ReactNative.View)(function () {
13578
15709
  return {
13579
- height: reactNative.Dimensions.get('window').height
15710
+ height: ReactNative.Dimensions.get('window').height
13580
15711
  };
13581
15712
  });
13582
- var StyledChildWrapper = index$2(reactNative.View)(function () {
15713
+ var StyledChildWrapper = index$2(ReactNative.View)(function () {
13583
15714
  return {
13584
15715
  margin: 0,
13585
15716
  padding: 0
@@ -13600,7 +15731,7 @@ var Collapse = function Collapse(_ref) {
13600
15731
  children = _ref.children,
13601
15732
  testID = _ref.testID,
13602
15733
  style = _ref.style;
13603
- var collapseAnim = React__default["default"].useRef(new reactNative.Animated.Value(0)).current;
15734
+ var collapseAnim = React__default["default"].useRef(new ReactNative.Animated.Value(0)).current;
13604
15735
 
13605
15736
  var _React$useState = React__default["default"].useState(0),
13606
15737
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -13610,9 +15741,9 @@ var Collapse = function Collapse(_ref) {
13610
15741
  var previousOpenState = usePrevious(open);
13611
15742
  React.useEffect(function () {
13612
15743
  if (open !== previousOpenState && previousOpenState !== undefined) {
13613
- reactNative.Animated.timing(collapseAnim, {
15744
+ ReactNative.Animated.timing(collapseAnim, {
13614
15745
  toValue: open ? contentHeight : 0,
13615
- easing: reactNative.Easing.inOut(reactNative.Easing.ease),
15746
+ easing: ReactNative.Easing.inOut(ReactNative.Easing.ease),
13616
15747
  useNativeDriver: false
13617
15748
  }).start();
13618
15749
  }
@@ -13621,7 +15752,7 @@ var Collapse = function Collapse(_ref) {
13621
15752
  var height = _ref2.height;
13622
15753
  setContentHeight(height);
13623
15754
  }, [contentHeight]);
13624
- return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$3, {
15755
+ return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$4, {
13625
15756
  style: [style, {
13626
15757
  height: collapseAnim
13627
15758
  }],
@@ -13633,7 +15764,47 @@ var Collapse = function Collapse(_ref) {
13633
15764
  }, children)));
13634
15765
  };
13635
15766
 
13636
- var Wrapper$1 = index$2(reactNative.View)(function () {
15767
+ var StyledWrapper$3 = index$2(ReactNative.TouchableOpacity)(function (_ref) {
15768
+ var theme = _ref.theme,
15769
+ disabled = _ref.disabled;
15770
+ return {
15771
+ display: 'flex',
15772
+ flexDirection: 'row',
15773
+ justifyContent: 'center',
15774
+ height: theme.__hd__.checkbox.sizes.base,
15775
+ width: theme.__hd__.checkbox.sizes.base,
15776
+ borderRadius: theme.__hd__.checkbox.radii.base,
15777
+ borderWidth: theme.__hd__.checkbox.borderWidths["default"],
15778
+ borderColor: disabled ? theme.__hd__.checkbox.colors.disabled : theme.__hd__.checkbox.colors.borderColor,
15779
+ overflow: 'hidden'
15780
+ };
15781
+ });
15782
+
15783
+ var CheckBox = function CheckBox(_ref) {
15784
+ var checked = _ref.checked,
15785
+ disabled = _ref.disabled,
15786
+ onPress = _ref.onPress,
15787
+ style = _ref.style,
15788
+ testID = _ref.testID;
15789
+ return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$3, {
15790
+ onPress: onPress,
15791
+ disabled: disabled,
15792
+ style: style,
15793
+ testID: testID
15794
+ }, checked && /*#__PURE__*/React__default["default"].createElement(Icon, {
15795
+ icon: "circle-ok",
15796
+ intent: "primary",
15797
+ size: "large",
15798
+ style: _objectSpread2({
15799
+ position: 'absolute',
15800
+ top: theme.__hd__.checkbox.space.iconTop
15801
+ }, disabled ? {
15802
+ color: theme.__hd__.checkbox.colors.disabled
15803
+ } : {})
15804
+ }));
15805
+ };
15806
+
15807
+ var Wrapper$1 = index$2(ReactNative.View)(function () {
13637
15808
  return {
13638
15809
  flex: 1,
13639
15810
  flexDirection: 'row',
@@ -13675,11 +15846,11 @@ function ContentNavigator(_ref) {
13675
15846
  }));
13676
15847
  }
13677
15848
 
13678
- var AnimatedPressable = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
13679
- var StyledContainer$1 = index$2(reactNative.View)(function (_ref) {
15849
+ var AnimatedPressable = ReactNative.Animated.createAnimatedComponent(ReactNative.Pressable);
15850
+ var StyledContainer$1 = index$2(ReactNative.View)(function (_ref) {
13680
15851
  var theme = _ref.theme,
13681
15852
  enableShadow = _ref.enableShadow;
13682
- return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
15853
+ return _objectSpread2(_objectSpread2({}, ReactNative.StyleSheet.absoluteFillObject), {}, {
13683
15854
  shadowColor: enableShadow ? theme.__hd__.drawer.colors.shadow : 'transparent',
13684
15855
  shadowOffset: theme.__hd__.drawer.shadows.offset,
13685
15856
  shadowOpacity: theme.__hd__.drawer.shadows.opacity,
@@ -13691,11 +15862,11 @@ var StyledContainer$1 = index$2(reactNative.View)(function (_ref) {
13691
15862
  });
13692
15863
  var StyledBackdrop$1 = index$2(AnimatedPressable)(function (_ref2) {
13693
15864
  var theme = _ref2.theme;
13694
- return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
15865
+ return _objectSpread2(_objectSpread2({}, ReactNative.StyleSheet.absoluteFillObject), {}, {
13695
15866
  backgroundColor: theme.__hd__.drawer.colors.backdrop
13696
15867
  });
13697
15868
  });
13698
- var StyledDrawerContainer = index$2(reactNative.Animated.View)(function (_ref3) {
15869
+ var StyledDrawerContainer = index$2(ReactNative.Animated.View)(function (_ref3) {
13699
15870
  var theme = _ref3.theme,
13700
15871
  enableShadow = _ref3.enableShadow;
13701
15872
  return {
@@ -13714,7 +15885,7 @@ var Drawer = function Drawer(_ref) {
13714
15885
  hasBackdrop = _ref$hasBackdrop === void 0 ? true : _ref$hasBackdrop,
13715
15886
  onDismiss = _ref.onDismiss,
13716
15887
  testID = _ref.testID;
13717
- var animatedValue = React.useRef(new reactNative.Animated.Value(visible ? 1 : 0)).current;
15888
+ var animatedValue = React.useRef(new ReactNative.Animated.Value(visible ? 1 : 0)).current;
13718
15889
 
13719
15890
  var _useState = React.useState(0),
13720
15891
  _useState2 = _slicedToArray(_useState, 2),
@@ -13731,9 +15902,9 @@ var Drawer = function Drawer(_ref) {
13731
15902
  outputRange: [0, 0.35]
13732
15903
  }) : 0;
13733
15904
  React.useEffect(function () {
13734
- var animation = reactNative.Animated.timing(animatedValue, {
15905
+ var animation = ReactNative.Animated.timing(animatedValue, {
13735
15906
  toValue: visible ? 1 : 0,
13736
- easing: reactNative.Easing.inOut(reactNative.Easing.cubic),
15907
+ easing: ReactNative.Easing.inOut(ReactNative.Easing.cubic),
13737
15908
  useNativeDriver: true
13738
15909
  });
13739
15910
  animation.start();
@@ -13765,7 +15936,7 @@ var Drawer = function Drawer(_ref) {
13765
15936
  }, children));
13766
15937
  };
13767
15938
 
13768
- var StyledFABContainer = index$2(reactNative.TouchableHighlight)(function (_ref) {
15939
+ var StyledFABContainer = index$2(ReactNative.TouchableHighlight)(function (_ref) {
13769
15940
  var theme = _ref.theme;
13770
15941
  return {
13771
15942
  backgroundColor: theme.__hd__.fab.colors.buttonBackground,
@@ -13788,7 +15959,7 @@ var StyledFABIcon = index$2(Icon)(function (_ref2) {
13788
15959
  textAlign: 'center'
13789
15960
  };
13790
15961
  });
13791
- var StyledFABText = index$2(reactNative.Text)(function (_ref3) {
15962
+ var StyledFABText = index$2(ReactNative.Text)(function (_ref3) {
13792
15963
  var theme = _ref3.theme;
13793
15964
  return {
13794
15965
  fontFamily: theme.__hd__.fab.fonts.title,
@@ -13802,15 +15973,15 @@ var StyledFABText = index$2(reactNative.Text)(function (_ref3) {
13802
15973
  });
13803
15974
 
13804
15975
  var _excluded$5 = ["active"];
13805
- var AnimatedIcons = reactNative.Animated.createAnimatedComponent(StyledFABIcon);
15976
+ var AnimatedIcons = ReactNative.Animated.createAnimatedComponent(StyledFABIcon);
13806
15977
 
13807
15978
  var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
13808
15979
  var active = _ref.active,
13809
- iconProps = _objectWithoutProperties(_ref, _excluded$5);
15980
+ iconProps = _objectWithoutProperties$1(_ref, _excluded$5);
13810
15981
 
13811
- var rotateAnimation = React.useRef(new reactNative.Animated.Value(active ? 1 : 0));
15982
+ var rotateAnimation = React.useRef(new ReactNative.Animated.Value(active ? 1 : 0));
13812
15983
  React.useEffect(function () {
13813
- var animation = reactNative.Animated.timing(rotateAnimation.current, {
15984
+ var animation = ReactNative.Animated.timing(rotateAnimation.current, {
13814
15985
  toValue: active ? 1 : 0,
13815
15986
  useNativeDriver: true
13816
15987
  });
@@ -13823,8 +15994,8 @@ var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
13823
15994
  inputRange: [0, 1],
13824
15995
  outputRange: ['0deg', '-45deg']
13825
15996
  });
13826
- return /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, {
13827
- style: reactNative.StyleSheet.flatten([{
15997
+ return /*#__PURE__*/React__default["default"].createElement(ReactNative.Animated.View, {
15998
+ style: ReactNative.StyleSheet.flatten([{
13828
15999
  transform: [{
13829
16000
  rotate: interpolatedRotateAnimation
13830
16001
  }]
@@ -13885,7 +16056,7 @@ var FAB = function FAB(_ref3) {
13885
16056
  }));
13886
16057
  };
13887
16058
 
13888
- var StyledActionItem = index$2(reactNative.TouchableOpacity)(function (_ref) {
16059
+ var StyledActionItem = index$2(ReactNative.TouchableOpacity)(function (_ref) {
13889
16060
  var theme = _ref.theme;
13890
16061
  return {
13891
16062
  paddingLeft: theme.__hd__.fab.space.actionItemPaddingLeft,
@@ -13927,7 +16098,7 @@ var ActionItem = function ActionItem(_ref) {
13927
16098
  }), /*#__PURE__*/React__default["default"].createElement(StyledActionItemText, null, title));
13928
16099
  };
13929
16100
 
13930
- var StyledContainer = index$2(reactNative.View)({
16101
+ var StyledContainer = index$2(ReactNative.View)({
13931
16102
  position: 'absolute',
13932
16103
  left: 0,
13933
16104
  right: 0,
@@ -13936,7 +16107,7 @@ var StyledContainer = index$2(reactNative.View)({
13936
16107
  alignItems: 'flex-end',
13937
16108
  justifyContent: 'flex-end'
13938
16109
  });
13939
- var StyledActionGroupContainer = index$2(reactNative.Animated.View)({
16110
+ var StyledActionGroupContainer = index$2(ReactNative.Animated.View)({
13940
16111
  alignItems: 'flex-end',
13941
16112
  justifyContent: 'flex-end',
13942
16113
  width: '70%'
@@ -13949,7 +16120,7 @@ var StyledFAB = index$2(FAB)(function (_ref) {
13949
16120
  alignSelf: 'flex-end'
13950
16121
  };
13951
16122
  });
13952
- var StyledBackdrop = index$2(reactNative.Animated.View)(function (_ref2) {
16123
+ var StyledBackdrop = index$2(ReactNative.Animated.View)(function (_ref2) {
13953
16124
  var theme = _ref2.theme;
13954
16125
  return {
13955
16126
  position: 'absolute',
@@ -13975,10 +16146,10 @@ var StyledHeaderText = index$2(Typography.Text)(function (_ref3) {
13975
16146
  var ActionItemsListComponent = function ActionItemsListComponent(_ref) {
13976
16147
  var style = _ref.style,
13977
16148
  items = _ref.items;
13978
- return /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
16149
+ return /*#__PURE__*/React__default["default"].createElement(ReactNative.View, {
13979
16150
  style: style
13980
16151
  }, items === null || items === void 0 ? void 0 : items.map(function (itemProp) {
13981
- return /*#__PURE__*/React__default["default"].createElement(ActionItem, _extends$1({
16152
+ return /*#__PURE__*/React__default["default"].createElement(ActionItem, _extends$3({
13982
16153
  key: itemProp.icon
13983
16154
  }, itemProp));
13984
16155
  }));
@@ -13992,9 +16163,9 @@ var ActionGroup = function ActionGroup(_ref2) {
13992
16163
  items = _ref2.items,
13993
16164
  testID = _ref2.testID,
13994
16165
  fabTitle = _ref2.fabTitle;
13995
- var tranlateXAnimation = React.useRef(new reactNative.Animated.Value(active ? 1 : 0));
16166
+ var tranlateXAnimation = React.useRef(new ReactNative.Animated.Value(active ? 1 : 0));
13996
16167
  React.useEffect(function () {
13997
- var animation = reactNative.Animated.timing(tranlateXAnimation.current, {
16168
+ var animation = ReactNative.Animated.timing(tranlateXAnimation.current, {
13998
16169
  toValue: active ? 1 : 0,
13999
16170
  useNativeDriver: true
14000
16171
  });
@@ -14043,7 +16214,7 @@ var index$1 = Object.assign(FAB, {
14043
16214
  ActionGroup: ActionGroup
14044
16215
  });
14045
16216
 
14046
- var HalfCircleWrapper = index$2(reactNative.View)(function (_ref) {
16217
+ var HalfCircleWrapper = index$2(ReactNative.View)(function (_ref) {
14047
16218
  var theme = _ref.theme;
14048
16219
  return {
14049
16220
  width: theme.__hd__.progress.sizes.radius,
@@ -14051,7 +16222,7 @@ var HalfCircleWrapper = index$2(reactNative.View)(function (_ref) {
14051
16222
  overflow: 'hidden'
14052
16223
  };
14053
16224
  });
14054
- var HalfCircleInnerFG = index$2(reactNative.View)(function (_ref2) {
16225
+ var HalfCircleInnerFG = index$2(ReactNative.View)(function (_ref2) {
14055
16226
  var theme = _ref2.theme,
14056
16227
  themeIntent = _ref2.themeIntent;
14057
16228
  return {
@@ -14061,7 +16232,7 @@ var HalfCircleInnerFG = index$2(reactNative.View)(function (_ref2) {
14061
16232
  borderRadius: theme.__hd__.progress.radii["default"]
14062
16233
  };
14063
16234
  });
14064
- var HalfCircleInnerBG = index$2(reactNative.View)(function (_ref3) {
16235
+ var HalfCircleInnerBG = index$2(ReactNative.View)(function (_ref3) {
14065
16236
  var theme = _ref3.theme;
14066
16237
  return {
14067
16238
  width: theme.__hd__.progress.sizes.radius * 2,
@@ -14070,7 +16241,7 @@ var HalfCircleInnerBG = index$2(reactNative.View)(function (_ref3) {
14070
16241
  borderRadius: theme.__hd__.progress.radii["default"]
14071
16242
  };
14072
16243
  });
14073
- var DonutCircle = index$2(reactNative.View)(function (_ref4) {
16244
+ var DonutCircle = index$2(ReactNative.View)(function (_ref4) {
14074
16245
  var theme = _ref4.theme;
14075
16246
  return {
14076
16247
  position: 'absolute',
@@ -14085,7 +16256,7 @@ var DonutCircle = index$2(reactNative.View)(function (_ref4) {
14085
16256
  justifyContent: 'center'
14086
16257
  };
14087
16258
  });
14088
- var StrokeEnd = index$2(reactNative.View)(function (_ref5) {
16259
+ var StrokeEnd = index$2(ReactNative.View)(function (_ref5) {
14089
16260
  var theme = _ref5.theme,
14090
16261
  themeIntent = _ref5.themeIntent;
14091
16262
  return {
@@ -14117,13 +16288,13 @@ var ProgressCircle = function ProgressCircle(_ref2) {
14117
16288
  intent = _ref2$intent === void 0 ? 'primary' : _ref2$intent,
14118
16289
  style = _ref2.style,
14119
16290
  testID = _ref2.testID,
14120
- nativeProps = _objectWithoutProperties(_ref2, _excluded$4);
16291
+ nativeProps = _objectWithoutProperties$1(_ref2, _excluded$4);
14121
16292
 
14122
16293
  var theme = useTheme$1();
14123
16294
  var radius = theme.__hd__.progress.sizes.radius;
14124
- var progressAnimatedValue = React.useRef(new reactNative.Animated.Value(0));
16295
+ var progressAnimatedValue = React.useRef(new ReactNative.Animated.Value(0));
14125
16296
  React.useEffect(function () {
14126
- var animation = reactNative.Animated.timing(progressAnimatedValue.current, {
16297
+ var animation = ReactNative.Animated.timing(progressAnimatedValue.current, {
14127
16298
  toValue: value,
14128
16299
  useNativeDriver: true
14129
16300
  });
@@ -14155,18 +16326,18 @@ var ProgressCircle = function ProgressCircle(_ref2) {
14155
16326
  outputRange: ['0deg', '360deg'],
14156
16327
  extrapolate: 'clamp'
14157
16328
  });
14158
- return /*#__PURE__*/React__default["default"].createElement(reactNative.View, _extends$1({}, nativeProps, {
16329
+ return /*#__PURE__*/React__default["default"].createElement(ReactNative.View, _extends$3({}, nativeProps, {
14159
16330
  testID: testID,
14160
16331
  style: style
14161
- }), /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
16332
+ }), /*#__PURE__*/React__default["default"].createElement(ReactNative.View, {
14162
16333
  style: {
14163
16334
  flexDirection: 'row'
14164
16335
  }
14165
- }, /*#__PURE__*/React__default["default"].createElement(reactNative.View, null, /*#__PURE__*/React__default["default"].createElement(HalfCircle, {
16336
+ }, /*#__PURE__*/React__default["default"].createElement(ReactNative.View, null, /*#__PURE__*/React__default["default"].createElement(HalfCircle, {
14166
16337
  type: "foreground",
14167
16338
  themeIntent: intent
14168
- }), /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, {
14169
- style: _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
16339
+ }), /*#__PURE__*/React__default["default"].createElement(ReactNative.Animated.View, {
16340
+ style: _objectSpread2(_objectSpread2({}, ReactNative.StyleSheet.absoluteFillObject), {}, {
14170
16341
  transform: [{
14171
16342
  translateX: radius / 2
14172
16343
  }, {
@@ -14177,7 +16348,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
14177
16348
  })
14178
16349
  }, /*#__PURE__*/React__default["default"].createElement(HalfCircle, {
14179
16350
  type: "background"
14180
- }))), /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
16351
+ }))), /*#__PURE__*/React__default["default"].createElement(ReactNative.View, {
14181
16352
  style: {
14182
16353
  transform: [{
14183
16354
  rotate: '180deg'
@@ -14187,8 +16358,8 @@ var ProgressCircle = function ProgressCircle(_ref2) {
14187
16358
  }, /*#__PURE__*/React__default["default"].createElement(HalfCircle, {
14188
16359
  type: "foreground",
14189
16360
  themeIntent: intent
14190
- }), /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, {
14191
- style: _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
16361
+ }), /*#__PURE__*/React__default["default"].createElement(ReactNative.Animated.View, {
16362
+ style: _objectSpread2(_objectSpread2({}, ReactNative.StyleSheet.absoluteFillObject), {}, {
14192
16363
  transform: [{
14193
16364
  translateX: radius / 2
14194
16365
  }, {
@@ -14202,8 +16373,8 @@ var ProgressCircle = function ProgressCircle(_ref2) {
14202
16373
  type: "background"
14203
16374
  }))), /*#__PURE__*/React__default["default"].createElement(StrokeEnd, {
14204
16375
  themeIntent: intent
14205
- }), /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, {
14206
- style: _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
16376
+ }), /*#__PURE__*/React__default["default"].createElement(ReactNative.Animated.View, {
16377
+ style: _objectSpread2(_objectSpread2({}, ReactNative.StyleSheet.absoluteFillObject), {}, {
14207
16378
  zIndex: 2,
14208
16379
  transform: [{
14209
16380
  rotate: interpolateDotRotate
@@ -14216,7 +16387,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
14216
16387
  }, "".concat(value, "%")))));
14217
16388
  };
14218
16389
 
14219
- var StyledWrapper$2 = index$2(reactNative.View)(function (_ref) {
16390
+ var StyledWrapper$2 = index$2(ReactNative.View)(function (_ref) {
14220
16391
  var theme = _ref.theme;
14221
16392
  return {
14222
16393
  height: theme.__hd__.progress.sizes.barHeight,
@@ -14225,7 +16396,7 @@ var StyledWrapper$2 = index$2(reactNative.View)(function (_ref) {
14225
16396
  overflow: 'hidden'
14226
16397
  };
14227
16398
  });
14228
- var StyledInner = index$2(reactNative.Animated.View)(function (_ref2) {
16399
+ var StyledInner = index$2(ReactNative.Animated.View)(function (_ref2) {
14229
16400
  var theme = _ref2.theme,
14230
16401
  themeIntent = _ref2.themeIntent;
14231
16402
  return {
@@ -14243,16 +16414,16 @@ var ProgressBar = function ProgressBar(_ref) {
14243
16414
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
14244
16415
  style = _ref.style,
14245
16416
  testID = _ref.testID,
14246
- nativeProps = _objectWithoutProperties(_ref, _excluded$3);
16417
+ nativeProps = _objectWithoutProperties$1(_ref, _excluded$3);
14247
16418
 
14248
16419
  var _useState = React.useState(0),
14249
16420
  _useState2 = _slicedToArray(_useState, 2),
14250
16421
  width = _useState2[0],
14251
16422
  setWidth = _useState2[1];
14252
16423
 
14253
- var progressAnimatedValue = React.useRef(new reactNative.Animated.Value(0));
16424
+ var progressAnimatedValue = React.useRef(new ReactNative.Animated.Value(0));
14254
16425
  React.useEffect(function () {
14255
- var animation = reactNative.Animated.timing(progressAnimatedValue.current, {
16426
+ var animation = ReactNative.Animated.timing(progressAnimatedValue.current, {
14256
16427
  toValue: value,
14257
16428
  useNativeDriver: true
14258
16429
  });
@@ -14271,7 +16442,7 @@ var ProgressBar = function ProgressBar(_ref) {
14271
16442
  outputRange: [999, 0],
14272
16443
  extrapolate: 'clamp'
14273
16444
  });
14274
- return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$2, _extends$1({}, nativeProps, {
16445
+ return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$2, _extends$3({}, nativeProps, {
14275
16446
  testID: testID,
14276
16447
  style: style
14277
16448
  }), /*#__PURE__*/React__default["default"].createElement(StyledInner, {
@@ -14295,13 +16466,13 @@ var Progress = {
14295
16466
  Bar: ProgressBar
14296
16467
  };
14297
16468
 
14298
- var StyledView$1 = index$2(reactNative.View)();
14299
- var StyledSpinnerContainer = index$2(reactNative.View)({
16469
+ var StyledView$1 = index$2(ReactNative.View)();
16470
+ var StyledSpinnerContainer = index$2(ReactNative.View)({
14300
16471
  height: '100%',
14301
16472
  justifyContent: 'center',
14302
16473
  alignItems: 'center'
14303
16474
  });
14304
- var StyledSpinnerRow = index$2(reactNative.View)(function (_ref) {
16475
+ var StyledSpinnerRow = index$2(ReactNative.View)(function (_ref) {
14305
16476
  var themePosition = _ref.themePosition,
14306
16477
  theme = _ref.theme;
14307
16478
  return {
@@ -14309,7 +16480,7 @@ var StyledSpinnerRow = index$2(reactNative.View)(function (_ref) {
14309
16480
  marginBottom: themePosition === 'top' ? theme.__hd__.spinner.space.spinnerDotPadding : 0
14310
16481
  };
14311
16482
  });
14312
- var StyledSpinnerDot = index$2(reactNative.View)(function (_ref2) {
16483
+ var StyledSpinnerDot = index$2(ReactNative.View)(function (_ref2) {
14313
16484
  var themePosition = _ref2.themePosition,
14314
16485
  theme = _ref2.theme;
14315
16486
 
@@ -14347,16 +16518,16 @@ var StyledSpinnerDot = index$2(reactNative.View)(function (_ref2) {
14347
16518
  }, themeStyling());
14348
16519
  });
14349
16520
 
14350
- var AnimatedRow = reactNative.Animated.createAnimatedComponent(StyledSpinnerRow);
14351
- var AnimatedDot = reactNative.Animated.createAnimatedComponent(StyledSpinnerDot);
16521
+ var AnimatedRow = ReactNative.Animated.createAnimatedComponent(StyledSpinnerRow);
16522
+ var AnimatedDot = ReactNative.Animated.createAnimatedComponent(StyledSpinnerDot);
14352
16523
 
14353
16524
  var AnimatedSpinner = function AnimatedSpinner() {
14354
- var rotateAnimation = React.useRef(new reactNative.Animated.Value(0));
16525
+ var rotateAnimation = React.useRef(new ReactNative.Animated.Value(0));
14355
16526
  React.useEffect(function () {
14356
- var animation = reactNative.Animated.loop(reactNative.Animated.timing(rotateAnimation.current, {
16527
+ var animation = ReactNative.Animated.loop(ReactNative.Animated.timing(rotateAnimation.current, {
14357
16528
  toValue: 1,
14358
16529
  duration: 1200,
14359
- easing: reactNative.Easing.linear,
16530
+ easing: ReactNative.Easing.linear,
14360
16531
  useNativeDriver: true
14361
16532
  }));
14362
16533
  animation.start();
@@ -14368,8 +16539,8 @@ var AnimatedSpinner = function AnimatedSpinner() {
14368
16539
  inputRange: [0, 1],
14369
16540
  outputRange: ['0deg', '360deg']
14370
16541
  });
14371
- return /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, {
14372
- style: reactNative.StyleSheet.flatten([{
16542
+ return /*#__PURE__*/React__default["default"].createElement(ReactNative.Animated.View, {
16543
+ style: ReactNative.StyleSheet.flatten([{
14373
16544
  transform: [{
14374
16545
  rotate: interpolatedRotateAnimation
14375
16546
  }]
@@ -14393,14 +16564,14 @@ var _excluded$2 = ["testID"];
14393
16564
 
14394
16565
  var Spinner = function Spinner(_ref) {
14395
16566
  var testID = _ref.testID,
14396
- nativeProps = _objectWithoutProperties(_ref, _excluded$2);
16567
+ nativeProps = _objectWithoutProperties$1(_ref, _excluded$2);
14397
16568
 
14398
16569
  return /*#__PURE__*/React__default["default"].createElement(StyledView$1, nativeProps, /*#__PURE__*/React__default["default"].createElement(StyledSpinnerContainer, {
14399
16570
  testID: testID
14400
16571
  }, /*#__PURE__*/React__default["default"].createElement(AnimatedSpinner, null)));
14401
16572
  };
14402
16573
 
14403
- var Wrapper = index$2(reactNative.TouchableOpacity)(function (_ref) {
16574
+ var Wrapper = index$2(ReactNative.TouchableOpacity)(function (_ref) {
14404
16575
  var theme = _ref.theme,
14405
16576
  themeChecked = _ref.themeChecked;
14406
16577
  return {
@@ -14412,7 +16583,7 @@ var Wrapper = index$2(reactNative.TouchableOpacity)(function (_ref) {
14412
16583
  backgroundColor: themeChecked ? theme.__hd__.radio.colors.checkedWrapper : theme.__hd__.radio.colors.wrapper
14413
16584
  };
14414
16585
  });
14415
- var Circle = index$2(reactNative.View)(function (_ref2) {
16586
+ var Circle = index$2(ReactNative.View)(function (_ref2) {
14416
16587
  var theme = _ref2.theme,
14417
16588
  themeChecked = _ref2.themeChecked;
14418
16589
  return {
@@ -14425,7 +16596,7 @@ var Circle = index$2(reactNative.View)(function (_ref2) {
14425
16596
  justifyContent: 'center'
14426
16597
  };
14427
16598
  });
14428
- var InnerCircle = index$2(reactNative.View)(function (_ref3) {
16599
+ var InnerCircle = index$2(ReactNative.View)(function (_ref3) {
14429
16600
  var theme = _ref3.theme;
14430
16601
  return {
14431
16602
  height: theme.__hd__.radio.sizes.innerCircle,
@@ -14434,7 +16605,7 @@ var InnerCircle = index$2(reactNative.View)(function (_ref3) {
14434
16605
  backgroundColor: theme.__hd__.radio.colors.checkedCircle
14435
16606
  };
14436
16607
  });
14437
- var Spacer$1 = index$2(reactNative.View)(function (_ref4) {
16608
+ var Spacer$1 = index$2(ReactNative.View)(function (_ref4) {
14438
16609
  var theme = _ref4.theme;
14439
16610
  return {
14440
16611
  marginTop: theme.__hd__.radio.space.groupTopMargin
@@ -14453,7 +16624,7 @@ var Radio = function Radio(_ref) {
14453
16624
  themeChecked: checked,
14454
16625
  style: style,
14455
16626
  testID: testID
14456
- }, /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
16627
+ }, /*#__PURE__*/React__default["default"].createElement(ReactNative.View, {
14457
16628
  style: {
14458
16629
  flex: 1
14459
16630
  }
@@ -14487,7 +16658,7 @@ var RadioGroup = function RadioGroup(_ref) {
14487
16658
  keyExtractor = _ref.keyExtractor,
14488
16659
  style = _ref.style,
14489
16660
  testID = _ref.testID;
14490
- return /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
16661
+ return /*#__PURE__*/React__default["default"].createElement(ReactNative.View, {
14491
16662
  style: style,
14492
16663
  testID: testID
14493
16664
  }, options.map(function (option, index) {
@@ -14507,7 +16678,7 @@ var CompoundRadio = {
14507
16678
  Group: RadioGroup
14508
16679
  };
14509
16680
 
14510
- var StyledHeading = index$2(reactNative.View)(function (_ref) {
16681
+ var StyledHeading = index$2(ReactNative.View)(function (_ref) {
14511
16682
  var theme = _ref.theme;
14512
16683
  return {
14513
16684
  paddingVertical: theme.__hd__.sectionHeading.space.headingVerticalPadding,
@@ -14520,13 +16691,13 @@ var StyledHeading = index$2(reactNative.View)(function (_ref) {
14520
16691
  justifyContent: 'space-between'
14521
16692
  };
14522
16693
  });
14523
- var StyledIconWrapper = index$2(reactNative.View)(function (_ref2) {
16694
+ var StyledIconWrapper = index$2(ReactNative.View)(function (_ref2) {
14524
16695
  var theme = _ref2.theme;
14525
16696
  return {
14526
16697
  marginRight: theme.__hd__.sectionHeading.space.iconMarginRight
14527
16698
  };
14528
16699
  });
14529
- var StyledWrapper$1 = index$2(reactNative.View)(function () {
16700
+ var StyledWrapper$1 = index$2(ReactNative.View)(function () {
14530
16701
  return {
14531
16702
  display: 'flex',
14532
16703
  flexDirection: 'row'
@@ -14571,7 +16742,7 @@ var SectionHeading = function SectionHeading(_ref) {
14571
16742
  }, text)), rightChildren);
14572
16743
  };
14573
16744
 
14574
- var Container = index$2(reactNative.View)(function (_ref) {
16745
+ var Container$1 = index$2(ReactNative.View)(function (_ref) {
14575
16746
  var theme = _ref.theme;
14576
16747
  return {
14577
16748
  position: 'relative',
@@ -14594,7 +16765,7 @@ var Label = index$2(Typography.Text)(function (_ref2) {
14594
16765
  paddingHorizontal: theme.__hd__.textInput.space.labelHorizontalPadding
14595
16766
  };
14596
16767
  });
14597
- var StyledTextInput = index$2(reactNative.TextInput)(function (_ref3) {
16768
+ var StyledTextInput = index$2(ReactNative.TextInput)(function (_ref3) {
14598
16769
  var theme = _ref3.theme;
14599
16770
  return {
14600
16771
  flex: 1,
@@ -14613,9 +16784,9 @@ var TextInput = function TextInput(_ref) {
14613
16784
  textStyle = _ref.textStyle,
14614
16785
  testID = _ref.testID,
14615
16786
  accessibilityLabelledBy = _ref.accessibilityLabelledBy,
14616
- nativeProps = _objectWithoutProperties(_ref, _excluded$1);
16787
+ nativeProps = _objectWithoutProperties$1(_ref, _excluded$1);
14617
16788
 
14618
- return /*#__PURE__*/React__default["default"].createElement(Container, {
16789
+ return /*#__PURE__*/React__default["default"].createElement(Container$1, {
14619
16790
  style: style,
14620
16791
  testID: testID
14621
16792
  }, label && /*#__PURE__*/React__default["default"].createElement(Label, {
@@ -14626,7 +16797,7 @@ var TextInput = function TextInput(_ref) {
14626
16797
  testID: "input-prefix",
14627
16798
  icon: prefix,
14628
16799
  size: "xsmall"
14629
- }), /*#__PURE__*/React__default["default"].createElement(StyledTextInput, _extends$1({
16800
+ }), /*#__PURE__*/React__default["default"].createElement(StyledTextInput, _extends$3({
14630
16801
  style: textStyle,
14631
16802
  testID: "text-input" // @ts-ignore
14632
16803
  ,
@@ -14638,7 +16809,7 @@ var TextInput = function TextInput(_ref) {
14638
16809
  }));
14639
16810
  };
14640
16811
 
14641
- var OptionWrapper = index$2(reactNative.TouchableOpacity)(function (_ref) {
16812
+ var OptionWrapper = index$2(ReactNative.TouchableOpacity)(function (_ref) {
14642
16813
  var theme = _ref.theme,
14643
16814
  themeSelected = _ref.themeSelected;
14644
16815
  return {
@@ -14650,13 +16821,13 @@ var OptionWrapper = index$2(reactNative.TouchableOpacity)(function (_ref) {
14650
16821
  backgroundColor: themeSelected ? theme.__hd__.select.colors.checkedOption : theme.__hd__.select.colors.option
14651
16822
  };
14652
16823
  });
14653
- var OptionListWrapper = index$2(reactNative.View)(function (_ref2) {
16824
+ var OptionListWrapper = index$2(ReactNative.View)(function (_ref2) {
14654
16825
  var theme = _ref2.theme;
14655
16826
  return {
14656
16827
  padding: theme.__hd__.select.space.optionListPadding
14657
16828
  };
14658
16829
  });
14659
- var Spacer = index$2(reactNative.View)(function (_ref3) {
16830
+ var Spacer = index$2(ReactNative.View)(function (_ref3) {
14660
16831
  var theme = _ref3.theme;
14661
16832
  return {
14662
16833
  marginTop: theme.__hd__.select.space.optionListSpacing
@@ -14672,7 +16843,7 @@ var FooterText = index$2(Typography.Text)(function (_ref4) {
14672
16843
  function Footer(_ref) {
14673
16844
  var label = _ref.label,
14674
16845
  onPress = _ref.onPress;
14675
- return /*#__PURE__*/React__default["default"].createElement(reactNative.TouchableOpacity, {
16846
+ return /*#__PURE__*/React__default["default"].createElement(ReactNative.TouchableOpacity, {
14676
16847
  onPress: onPress
14677
16848
  }, /*#__PURE__*/React__default["default"].createElement(FooterText, {
14678
16849
  fontSize: "large",
@@ -14687,7 +16858,7 @@ function Option(_ref) {
14687
16858
  return /*#__PURE__*/React__default["default"].createElement(OptionWrapper, {
14688
16859
  themeSelected: selected,
14689
16860
  onPress: onPress
14690
- }, /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
16861
+ }, /*#__PURE__*/React__default["default"].createElement(ReactNative.View, {
14691
16862
  style: {
14692
16863
  flex: 1
14693
16864
  }
@@ -14730,7 +16901,7 @@ function OptionList(_ref2) {
14730
16901
  return val !== opt.value;
14731
16902
  }));
14732
16903
  } else {
14733
- _onPress([].concat(_toConsumableArray(value), [opt.value]));
16904
+ _onPress([].concat(_toConsumableArray$1(value), [opt.value]));
14734
16905
  }
14735
16906
  }
14736
16907
  }));
@@ -14762,7 +16933,7 @@ function MultiSelect(_ref) {
14762
16933
  }).map(function (opt) {
14763
16934
  return opt.text;
14764
16935
  }).join(', ');
14765
- return /*#__PURE__*/React__default["default"].createElement(reactNative.TouchableOpacity, {
16936
+ return /*#__PURE__*/React__default["default"].createElement(ReactNative.TouchableOpacity, {
14766
16937
  onPress: function onPress() {
14767
16938
  return setOpen(true);
14768
16939
  }
@@ -14810,7 +16981,7 @@ var CompoundSelect = {
14810
16981
  Multi: MultiSelect
14811
16982
  };
14812
16983
 
14813
- var StyledWrapper = index$2(reactNative.View)(function (_ref) {
16984
+ var StyledWrapper = index$2(ReactNative.View)(function (_ref) {
14814
16985
  var theme = _ref.theme,
14815
16986
  themeChecked = _ref.themeChecked,
14816
16987
  themeSize = _ref.themeSize;
@@ -14822,7 +16993,7 @@ var StyledWrapper = index$2(reactNative.View)(function (_ref) {
14822
16993
  backgroundColor: themeChecked ? theme.__hd__["switch"].colors.active : theme.__hd__["switch"].colors.inactive
14823
16994
  };
14824
16995
  });
14825
- var StyledDisabledWrapper = index$2(reactNative.View)(function (_ref2) {
16996
+ var StyledDisabledWrapper = index$2(ReactNative.View)(function (_ref2) {
14826
16997
  var theme = _ref2.theme,
14827
16998
  themeSize = _ref2.themeSize;
14828
16999
  return {
@@ -14835,7 +17006,7 @@ var StyledDisabledWrapper = index$2(reactNative.View)(function (_ref2) {
14835
17006
  opacity: 0.8
14836
17007
  };
14837
17008
  });
14838
- var StyledThumbWrapper = index$2(reactNative.View)(function (_ref3) {
17009
+ var StyledThumbWrapper = index$2(ReactNative.View)(function (_ref3) {
14839
17010
  var theme = _ref3.theme,
14840
17011
  themeSize = _ref3.themeSize;
14841
17012
  return {
@@ -14846,7 +17017,7 @@ var StyledThumbWrapper = index$2(reactNative.View)(function (_ref3) {
14846
17017
  justifyContent: 'center'
14847
17018
  };
14848
17019
  });
14849
- var StyledKnot = index$2(reactNative.Animated.View)(function (_ref4) {
17020
+ var StyledKnot = index$2(ReactNative.Animated.View)(function (_ref4) {
14850
17021
  var theme = _ref4.theme,
14851
17022
  themeSize = _ref4.themeSize;
14852
17023
  return {
@@ -14870,19 +17041,19 @@ var Switch = function Switch(_ref) {
14870
17041
  var offset = checked ? theme.__hd__["switch"].widths[size] - theme.__hd__["switch"].thumbSizes[size] - theme.__hd__["switch"].spaces[size] * 2 : theme.__hd__["switch"].spaces.inactive;
14871
17042
 
14872
17043
  var _useState = React.useState(function () {
14873
- return new reactNative.Animated.Value(offset);
17044
+ return new ReactNative.Animated.Value(offset);
14874
17045
  }),
14875
17046
  _useState2 = _slicedToArray(_useState, 1),
14876
17047
  animatedOffset = _useState2[0];
14877
17048
 
14878
17049
  React.useEffect(function () {
14879
- reactNative.Animated.timing(animatedOffset, {
17050
+ ReactNative.Animated.timing(animatedOffset, {
14880
17051
  toValue: offset,
14881
- easing: reactNative.Easing.inOut(reactNative.Easing.cubic),
17052
+ easing: ReactNative.Easing.inOut(ReactNative.Easing.cubic),
14882
17053
  useNativeDriver: false
14883
17054
  }).start();
14884
17055
  }, [checked]);
14885
- return /*#__PURE__*/React__default["default"].createElement(reactNative.TouchableWithoutFeedback, {
17056
+ return /*#__PURE__*/React__default["default"].createElement(ReactNative.TouchableWithoutFeedback, {
14886
17057
  testID: testID,
14887
17058
  onPress: onPress,
14888
17059
  disabled: disabled
@@ -14902,12 +17073,212 @@ var Switch = function Switch(_ref) {
14902
17073
  }))));
14903
17074
  };
14904
17075
 
14905
- var AnimatedPagerView = reactNative.Animated.createAnimatedComponent(PagerView__default["default"]);
14906
- var TabContainer$1 = index$2(reactNative.View)({
17076
+ var childrenWithOverriddenStyle = function childrenWithOverriddenStyle(children) {
17077
+ return React.Children.map(children, function (child) {
17078
+ var element = child;
17079
+ return (
17080
+ /*#__PURE__*/
17081
+ // Add a wrapper to ensure layout is calculated correctly
17082
+ React__default["default"].createElement(ReactNative.View, {
17083
+ style: ReactNative.StyleSheet.absoluteFill,
17084
+ collapsable: false
17085
+ }, /*#__PURE__*/React__default["default"].cloneElement(element, _objectSpread2(_objectSpread2({}, element.props), {}, {
17086
+ // Override styles so that each page will fill the parent.
17087
+ style: [element.props.style, ReactNative.StyleSheet.absoluteFill]
17088
+ })))
17089
+ );
17090
+ });
17091
+ };
17092
+
17093
+ var VIEW_MANAGER_NAME = 'RNCViewPager';
17094
+ var PagerViewViewManager = ReactNative.requireNativeComponent(VIEW_MANAGER_NAME);
17095
+ function getViewManagerConfig() {
17096
+ var viewManagerName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : VIEW_MANAGER_NAME;
17097
+ return ReactNative.UIManager.getViewManagerConfig(viewManagerName);
17098
+ }
17099
+
17100
+ function _extends() {
17101
+ _extends = Object.assign || function (target) {
17102
+ for (var i = 1; i < arguments.length; i++) {
17103
+ var source = arguments[i];
17104
+
17105
+ for (var key in source) {
17106
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
17107
+ target[key] = source[key];
17108
+ }
17109
+ }
17110
+ }
17111
+
17112
+ return target;
17113
+ };
17114
+
17115
+ return _extends.apply(this, arguments);
17116
+ }
17117
+
17118
+ function _defineProperty(obj, key, value) {
17119
+ if (key in obj) {
17120
+ Object.defineProperty(obj, key, {
17121
+ value: value,
17122
+ enumerable: true,
17123
+ configurable: true,
17124
+ writable: true
17125
+ });
17126
+ } else {
17127
+ obj[key] = value;
17128
+ }
17129
+
17130
+ return obj;
17131
+ }
17132
+ /**
17133
+ * Container that allows to flip left and right between child views. Each
17134
+ * child view of the `PagerView` will be treated as a separate page
17135
+ * and will be stretched to fill the `PagerView`.
17136
+ *
17137
+ * It is important all children are `<View>`s and not composite components.
17138
+ * You can set style properties like `padding` or `backgroundColor` for each
17139
+ * child. It is also important that each child have a `key` prop.
17140
+ *
17141
+ * Example:
17142
+ *
17143
+ * ```
17144
+ * render: function() {
17145
+ * return (
17146
+ * <PagerView
17147
+ * style={styles.PagerView}
17148
+ * initialPage={0}>
17149
+ * <View style={styles.pageStyle} key="1">
17150
+ * <Text>First page</Text>
17151
+ * </View>
17152
+ * <View style={styles.pageStyle} key="2">
17153
+ * <Text>Second page</Text>
17154
+ * </View>
17155
+ * </PagerView>
17156
+ * );
17157
+ * }
17158
+ *
17159
+ * ...
17160
+ *
17161
+ * var styles = {
17162
+ * ...
17163
+ * PagerView: {
17164
+ * flex: 1
17165
+ * },
17166
+ * pageStyle: {
17167
+ * alignItems: 'center',
17168
+ * padding: 20,
17169
+ * }
17170
+ * }
17171
+ * ```
17172
+ */
17173
+
17174
+ var PagerView = /*#__PURE__*/function (_React$Component) {
17175
+ _inherits$1(PagerView, _React$Component);
17176
+
17177
+ var _super = _createSuper(PagerView);
17178
+
17179
+ function PagerView() {
17180
+ var _this;
17181
+
17182
+ _classCallCheck$1(this, PagerView);
17183
+
17184
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
17185
+ args[_key] = arguments[_key];
17186
+ }
17187
+
17188
+ _this = _super.call.apply(_super, [this].concat(args));
17189
+
17190
+ _defineProperty(_assertThisInitialized$1(_this), "isScrolling", false);
17191
+
17192
+ _defineProperty(_assertThisInitialized$1(_this), "PagerView", /*#__PURE__*/React__default["default"].createRef());
17193
+
17194
+ _defineProperty(_assertThisInitialized$1(_this), "getInnerViewNode", function () {
17195
+ return _this.PagerView.current.getInnerViewNode();
17196
+ });
17197
+
17198
+ _defineProperty(_assertThisInitialized$1(_this), "_onPageScroll", function (e) {
17199
+ if (_this.props.onPageScroll) {
17200
+ _this.props.onPageScroll(e);
17201
+ } // Not implemented on iOS yet
17202
+
17203
+
17204
+ if (ReactNative.Platform.OS === 'android') {
17205
+ if (_this.props.keyboardDismissMode === 'on-drag') {
17206
+ ReactNative.Keyboard.dismiss();
17207
+ }
17208
+ }
17209
+ });
17210
+
17211
+ _defineProperty(_assertThisInitialized$1(_this), "_onPageScrollStateChanged", function (e) {
17212
+ if (_this.props.onPageScrollStateChanged) {
17213
+ _this.props.onPageScrollStateChanged(e);
17214
+ }
17215
+
17216
+ _this.isScrolling = e.nativeEvent.pageScrollState === 'dragging';
17217
+ });
17218
+
17219
+ _defineProperty(_assertThisInitialized$1(_this), "_onPageSelected", function (e) {
17220
+ if (_this.props.onPageSelected) {
17221
+ _this.props.onPageSelected(e);
17222
+ }
17223
+ });
17224
+
17225
+ _defineProperty(_assertThisInitialized$1(_this), "setPage", function (selectedPage) {
17226
+ ReactNative.UIManager.dispatchViewManagerCommand(ReactNative__default["default"].findNodeHandle(_assertThisInitialized$1(_this)), getViewManagerConfig().Commands.setPage, [selectedPage]);
17227
+ });
17228
+
17229
+ _defineProperty(_assertThisInitialized$1(_this), "setPageWithoutAnimation", function (selectedPage) {
17230
+ ReactNative.UIManager.dispatchViewManagerCommand(ReactNative__default["default"].findNodeHandle(_assertThisInitialized$1(_this)), getViewManagerConfig().Commands.setPageWithoutAnimation, [selectedPage]);
17231
+ });
17232
+
17233
+ _defineProperty(_assertThisInitialized$1(_this), "setScrollEnabled", function (scrollEnabled) {
17234
+ ReactNative.UIManager.dispatchViewManagerCommand(ReactNative__default["default"].findNodeHandle(_assertThisInitialized$1(_this)), getViewManagerConfig().Commands.setScrollEnabled, [scrollEnabled]);
17235
+ });
17236
+
17237
+ _defineProperty(_assertThisInitialized$1(_this), "_onMoveShouldSetResponderCapture", function () {
17238
+ return _this.isScrolling;
17239
+ });
17240
+
17241
+ return _this;
17242
+ }
17243
+
17244
+ _createClass$1(PagerView, [{
17245
+ key: "deducedLayoutDirection",
17246
+ get: function get() {
17247
+ var shouldUseDeviceRtlSetup = !this.props.layoutDirection || this.props.layoutDirection === 'locale';
17248
+
17249
+ if (shouldUseDeviceRtlSetup) {
17250
+ return ReactNative.I18nManager.isRTL ? 'rtl' : 'ltr';
17251
+ } else {
17252
+ return this.props.layoutDirection;
17253
+ }
17254
+ }
17255
+ }, {
17256
+ key: "render",
17257
+ value: function render() {
17258
+ return /*#__PURE__*/React__default["default"].createElement(PagerViewViewManager, _extends({}, this.props, {
17259
+ ref: this.PagerView
17260
+ /** TODO: Fix ref type */
17261
+ ,
17262
+ style: this.props.style,
17263
+ layoutDirection: this.deducedLayoutDirection,
17264
+ onPageScroll: this._onPageScroll,
17265
+ onPageScrollStateChanged: this._onPageScrollStateChanged,
17266
+ onPageSelected: this._onPageSelected,
17267
+ onMoveShouldSetResponderCapture: this._onMoveShouldSetResponderCapture,
17268
+ children: childrenWithOverriddenStyle(this.props.children)
17269
+ }));
17270
+ }
17271
+ }]);
17272
+
17273
+ return PagerView;
17274
+ }(React__default["default"].Component);
17275
+
17276
+ var AnimatedPagerView = ReactNative.Animated.createAnimatedComponent(PagerView);
17277
+ var TabContainer$1 = index$2(ReactNative.View)({
14907
17278
  flex: 1,
14908
17279
  overflow: 'hidden'
14909
17280
  });
14910
- var HeaderTabWrapper$1 = index$2(reactNative.View)(function (_ref) {
17281
+ var HeaderTabWrapper$1 = index$2(ReactNative.View)(function (_ref) {
14911
17282
  var theme = _ref.theme,
14912
17283
  themeInsets = _ref.themeInsets;
14913
17284
  return {
@@ -14916,10 +17287,10 @@ var HeaderTabWrapper$1 = index$2(reactNative.View)(function (_ref) {
14916
17287
  borderBottomWidth: theme.__hd__.tabs.borderWidths.headerBottom
14917
17288
  };
14918
17289
  });
14919
- var HeaderTab = index$2(reactNative.View)({
17290
+ var HeaderTab = index$2(ReactNative.View)({
14920
17291
  flexDirection: 'row'
14921
17292
  });
14922
- var HeaderTabItem$1 = index$2(reactNative.View)(function (_ref2) {
17293
+ var HeaderTabItem$1 = index$2(ReactNative.View)(function (_ref2) {
14923
17294
  var theme = _ref2.theme;
14924
17295
  return {
14925
17296
  flex: 1,
@@ -14930,10 +17301,10 @@ var HeaderTabItem$1 = index$2(reactNative.View)(function (_ref2) {
14930
17301
  var ContentWrapper$1 = index$2(AnimatedPagerView)({
14931
17302
  flex: 1
14932
17303
  });
14933
- var TabScreen$1 = index$2(reactNative.View)({
17304
+ var TabScreen$1 = index$2(ReactNative.View)({
14934
17305
  flex: 1
14935
17306
  });
14936
- var StyledIndicator = index$2(reactNative.Animated.View)(function (_ref3) {
17307
+ var StyledIndicator = index$2(ReactNative.Animated.View)(function (_ref3) {
14937
17308
  var theme = _ref3.theme,
14938
17309
  themeWidth = _ref3.themeWidth;
14939
17310
  return {
@@ -14952,7 +17323,7 @@ var ActiveTabIndicator = function ActiveTabIndicator(_ref) {
14952
17323
  tabsWidth = _ref.tabsWidth;
14953
17324
  var inputRange = [0, tabsLength];
14954
17325
  var indicatorWidth = tabsWidth / tabsLength;
14955
- var translateX = reactNative.Animated.add(scrollOffsetAnimatedValue, positionAnimatedValue).interpolate({
17326
+ var translateX = ReactNative.Animated.add(scrollOffsetAnimatedValue, positionAnimatedValue).interpolate({
14956
17327
  inputRange: inputRange,
14957
17328
  outputRange: [0, tabsLength * indicatorWidth]
14958
17329
  });
@@ -14966,17 +17337,17 @@ var ActiveTabIndicator = function ActiveTabIndicator(_ref) {
14966
17337
  });
14967
17338
  };
14968
17339
 
14969
- var TabScreen = index$2(reactNative.View)({
17340
+ var TabScreen = index$2(ReactNative.View)({
14970
17341
  flex: 1
14971
17342
  });
14972
- var TabContainer = index$2(reactNative.View)({
17343
+ var TabContainer = index$2(ReactNative.View)({
14973
17344
  flex: 1,
14974
17345
  overflow: 'hidden'
14975
17346
  });
14976
- var ContentWrapper = index$2(PagerView__default["default"])({
17347
+ var ContentWrapper = index$2(PagerView)({
14977
17348
  flex: 1
14978
17349
  });
14979
- var HeaderTabWrapper = index$2(reactNative.View)(function (_ref) {
17350
+ var HeaderTabWrapper = index$2(ReactNative.View)(function (_ref) {
14980
17351
  var theme = _ref.theme,
14981
17352
  themeInsets = _ref.themeInsets;
14982
17353
  return {
@@ -14985,21 +17356,21 @@ var HeaderTabWrapper = index$2(reactNative.View)(function (_ref) {
14985
17356
  borderBottomWidth: theme.__hd__.tabs.borderWidths.headerBottom
14986
17357
  };
14987
17358
  });
14988
- var HeaderTabItem = index$2(reactNative.Animated.View)(function (_ref2) {
17359
+ var HeaderTabItem = index$2(ReactNative.Animated.View)(function (_ref2) {
14989
17360
  var theme = _ref2.theme;
14990
17361
  return {
14991
17362
  paddingHorizontal: theme.__hd__.tabs.space.itemHorizontalPadding,
14992
17363
  paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
14993
17364
  };
14994
17365
  });
14995
- var HeaderTabItemOutlineWrapper = index$2(reactNative.View)(function (_ref3) {
17366
+ var HeaderTabItemOutlineWrapper = index$2(ReactNative.View)(function (_ref3) {
14996
17367
  var theme = _ref3.theme;
14997
17368
  return _objectSpread2({
14998
17369
  paddingHorizontal: theme.__hd__.tabs.space.itemHorizontalPadding,
14999
17370
  paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
15000
- }, reactNative.StyleSheet.absoluteFillObject);
17371
+ }, ReactNative.StyleSheet.absoluteFillObject);
15001
17372
  });
15002
- var HeaderTabItemOutline = index$2(reactNative.Animated.View)(function (_ref4) {
17373
+ var HeaderTabItemOutline = index$2(ReactNative.Animated.View)(function (_ref4) {
15003
17374
  var theme = _ref4.theme,
15004
17375
  themeActive = _ref4.themeActive;
15005
17376
  return {
@@ -15007,7 +17378,7 @@ var HeaderTabItemOutline = index$2(reactNative.Animated.View)(function (_ref4) {
15007
17378
  backgroundColor: themeActive ? theme.__hd__.tabs.colors.activeBackground : undefined
15008
17379
  };
15009
17380
  });
15010
- var HeaderTabItemWrapper = index$2(reactNative.View)(function (_ref5) {
17381
+ var HeaderTabItemWrapper = index$2(ReactNative.View)(function (_ref5) {
15011
17382
  var theme = _ref5.theme;
15012
17383
  return {
15013
17384
  paddingHorizontal: theme.__hd__.tabs.space.outlineHorizontalPadding,
@@ -15021,7 +17392,7 @@ var useAnimatedValueArray = function useAnimatedValueArray(initialValues) {
15021
17392
  initialValues.forEach(function (initialValue, i) {
15022
17393
  var _refs$current$i;
15023
17394
 
15024
- refs.current[i] = (_refs$current$i = refs.current[i]) !== null && _refs$current$i !== void 0 ? _refs$current$i : new reactNative.Animated.Value(initialValue);
17395
+ refs.current[i] = (_refs$current$i = refs.current[i]) !== null && _refs$current$i !== void 0 ? _refs$current$i : new ReactNative.Animated.Value(initialValue);
15025
17396
  });
15026
17397
  return refs.current;
15027
17398
  };
@@ -15085,8 +17456,8 @@ var ScrollableTab = function ScrollableTab(_ref2) {
15085
17456
  });
15086
17457
  }
15087
17458
 
15088
- var animation = reactNative.Animated.parallel(_toConsumableArray(tabs.map(function (_, i) {
15089
- return reactNative.Animated.timing(tabsAnims[i], {
17459
+ var animation = ReactNative.Animated.parallel(_toConsumableArray$1(tabs.map(function (_, i) {
17460
+ return ReactNative.Animated.timing(tabsAnims[i], {
15090
17461
  toValue: i === selectedTabIndex ? 1 : 0,
15091
17462
  duration: 150,
15092
17463
  useNativeDriver: true
@@ -15102,7 +17473,7 @@ var ScrollableTab = function ScrollableTab(_ref2) {
15102
17473
  }, /*#__PURE__*/React__default["default"].createElement(HeaderTabWrapper, {
15103
17474
  themeInsets: insets,
15104
17475
  style: barStyle
15105
- }, /*#__PURE__*/React__default["default"].createElement(reactNative.FlatList, {
17476
+ }, /*#__PURE__*/React__default["default"].createElement(ReactNative.FlatList, {
15106
17477
  ref: flatListRef,
15107
17478
  horizontal: true,
15108
17479
  data: tabs,
@@ -15145,7 +17516,7 @@ var ScrollableTab = function ScrollableTab(_ref2) {
15145
17516
  color: active ? theme.__hd__.tabs.colors.active : theme.__hd__.tabs.colors.inactive,
15146
17517
  active: active
15147
17518
  });
15148
- return /*#__PURE__*/React__default["default"].createElement(reactNative.TouchableWithoutFeedback, {
17519
+ return /*#__PURE__*/React__default["default"].createElement(ReactNative.TouchableWithoutFeedback, {
15149
17520
  key: key,
15150
17521
  onPress: function onPress() {
15151
17522
  var _pagerViewRef$current;
@@ -15230,8 +17601,8 @@ var Tabs = function Tabs(_ref2) {
15230
17601
  var selectedTabIndex = tabs.findIndex(function (item) {
15231
17602
  return item.key === selectedTabKey;
15232
17603
  });
15233
- var scrollOffsetAnimatedValue = React__default["default"].useRef(new reactNative.Animated.Value(0)).current;
15234
- var positionAnimatedValue = React__default["default"].useRef(new reactNative.Animated.Value(0)).current;
17604
+ var scrollOffsetAnimatedValue = React__default["default"].useRef(new ReactNative.Animated.Value(0)).current;
17605
+ var positionAnimatedValue = React__default["default"].useRef(new ReactNative.Animated.Value(0)).current;
15235
17606
 
15236
17607
  var _React$useState = React__default["default"].useState(0),
15237
17608
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -15243,7 +17614,7 @@ var Tabs = function Tabs(_ref2) {
15243
17614
  }, /*#__PURE__*/React__default["default"].createElement(HeaderTabWrapper$1, {
15244
17615
  themeInsets: insets,
15245
17616
  style: barStyle
15246
- }, /*#__PURE__*/React__default["default"].createElement(reactNative.View, null, /*#__PURE__*/React__default["default"].createElement(HeaderTab, {
17617
+ }, /*#__PURE__*/React__default["default"].createElement(ReactNative.View, null, /*#__PURE__*/React__default["default"].createElement(HeaderTab, {
15247
17618
  onLayout: function onLayout(e) {
15248
17619
  var width = e.nativeEvent.layout.width;
15249
17620
 
@@ -15265,7 +17636,7 @@ var Tabs = function Tabs(_ref2) {
15265
17636
  color: theme.__hd__.tabs.colors.text,
15266
17637
  active: active
15267
17638
  });
15268
- return /*#__PURE__*/React__default["default"].createElement(reactNative.TouchableWithoutFeedback, {
17639
+ return /*#__PURE__*/React__default["default"].createElement(ReactNative.TouchableWithoutFeedback, {
15269
17640
  key: key,
15270
17641
  onPress: function onPress() {
15271
17642
  var _pagerViewRef$current;
@@ -15293,7 +17664,7 @@ var Tabs = function Tabs(_ref2) {
15293
17664
  onTabPress(selectedItem.key);
15294
17665
  }
15295
17666
  },
15296
- onPageScroll: reactNative.Animated.event([{
17667
+ onPageScroll: ReactNative.Animated.event([{
15297
17668
  nativeEvent: {
15298
17669
  offset: scrollOffsetAnimatedValue,
15299
17670
  position: positionAnimatedValue
@@ -15328,7 +17699,7 @@ var BACKGROUND_INTENTS = {
15328
17699
  danger: 'dangerBackground',
15329
17700
  info: 'infoBackground'
15330
17701
  };
15331
- var StyledView = index$2(reactNative.View)(function (_ref) {
17702
+ var StyledView = index$2(ReactNative.View)(function (_ref) {
15332
17703
  var themeIntent = _ref.themeIntent,
15333
17704
  theme = _ref.theme;
15334
17705
  return {
@@ -15340,7 +17711,7 @@ var StyledView = index$2(reactNative.View)(function (_ref) {
15340
17711
  backgroundColor: theme.__hd__.tag.colors[BACKGROUND_INTENTS[themeIntent]]
15341
17712
  };
15342
17713
  });
15343
- var StyledText = index$2(reactNative.Text)(function (_ref2) {
17714
+ var StyledText = index$2(ReactNative.Text)(function (_ref2) {
15344
17715
  var themeIntent = _ref2.themeIntent,
15345
17716
  theme = _ref2.theme;
15346
17717
  return {
@@ -15361,9 +17732,9 @@ var Tag = function Tag(_ref) {
15361
17732
  intent = _ref$intent === void 0 ? 'info' : _ref$intent,
15362
17733
  style = _ref.style,
15363
17734
  testID = _ref.testID,
15364
- nativeProps = _objectWithoutProperties(_ref, _excluded);
17735
+ nativeProps = _objectWithoutProperties$1(_ref, _excluded);
15365
17736
 
15366
- return /*#__PURE__*/React__default["default"].createElement(StyledView, _extends$1({}, nativeProps, {
17737
+ return /*#__PURE__*/React__default["default"].createElement(StyledView, _extends$3({}, nativeProps, {
15367
17738
  themeIntent: intent,
15368
17739
  style: style,
15369
17740
  testID: testID
@@ -15372,6 +17743,293 @@ var Tag = function Tag(_ref) {
15372
17743
  }, content));
15373
17744
  };
15374
17745
 
17746
+ var ToastContainerWrapper = index$2(ReactNative.View)(function (_ref) {
17747
+ var theme = _ref.theme,
17748
+ position = _ref.position;
17749
+ return _objectSpread2(_objectSpread2({}, ReactNative.StyleSheet.absoluteFillObject), {}, {
17750
+ paddingHorizontal: theme.__hd__.toast.space.largePadding,
17751
+ paddingVertical: theme.__hd__.toast.space.mediumPadding,
17752
+ flexDirection: position === 'bottom' ? 'column-reverse' : 'column',
17753
+ elevation: 9999
17754
+ });
17755
+ });
17756
+ var Container = index$2(ReactNative.Animated.View)(function (_ref2) {
17757
+ var theme = _ref2.theme,
17758
+ themeVariant = _ref2.themeVariant,
17759
+ themeIntent = _ref2.themeIntent;
17760
+ return {
17761
+ borderRadius: themeVariant === 'round' ? theme.__hd__.toast.radii["default"] : 0,
17762
+ backgroundColor: theme.__hd__.toast.colors[themeIntent],
17763
+ minHeight: theme.__hd__.toast.sizes.height,
17764
+ flexDirection: 'row'
17765
+ };
17766
+ });
17767
+ var IconContainer = index$2(ReactNative.View)(function (_ref3) {
17768
+ var theme = _ref3.theme;
17769
+ return {
17770
+ alignItems: 'center',
17771
+ paddingLeft: theme.__hd__.toast.space.mediumPadding
17772
+ };
17773
+ });
17774
+ var TextContainer = index$2(ReactNative.View)(function (_ref4) {
17775
+ var theme = _ref4.theme;
17776
+ return {
17777
+ paddingHorizontal: theme.__hd__.toast.space.mediumPadding,
17778
+ flex: 1
17779
+ };
17780
+ });
17781
+ var ContentContainer = index$2(ReactNative.View)(function (_ref5) {
17782
+ var theme = _ref5.theme,
17783
+ showDivider = _ref5.showDivider;
17784
+ return {
17785
+ paddingVertical: theme.__hd__.toast.space.mediumPadding,
17786
+ flex: 1,
17787
+ borderRightWidth: showDivider ? theme.__hd__.toast.borderWidths.base : 0,
17788
+ borderColor: theme.__hd__.toast.colors.divider,
17789
+ flexDirection: 'row'
17790
+ };
17791
+ });
17792
+ var CTAWrapper = index$2(ReactNative.TouchableOpacity)(function (_ref6) {
17793
+ var theme = _ref6.theme;
17794
+ return {
17795
+ paddingHorizontal: theme.__hd__.alert.space.padding,
17796
+ justifyContent: 'center'
17797
+ };
17798
+ });
17799
+
17800
+ var ToastContext = /*#__PURE__*/React.createContext({});
17801
+ var ToastConfigContext = /*#__PURE__*/React.createContext({});
17802
+ var useToastConfig = function useToastConfig() {
17803
+ return React.useContext(ToastConfigContext);
17804
+ };
17805
+ var useToast = function useToast() {
17806
+ return React.useContext(ToastContext);
17807
+ };
17808
+
17809
+ var getIntentIcon = function getIntentIcon(intent) {
17810
+ switch (intent) {
17811
+ case 'success':
17812
+ return 'circle-ok';
17813
+
17814
+ case 'warning':
17815
+ return 'warning';
17816
+
17817
+ case 'info':
17818
+ return 'circle-info';
17819
+
17820
+ case 'error':
17821
+ return 'circle-warning';
17822
+ }
17823
+ };
17824
+
17825
+ var Toast$1 = function Toast(_ref) {
17826
+ var content = _ref.content,
17827
+ icon = _ref.icon,
17828
+ _ref$variant = _ref.variant,
17829
+ variant = _ref$variant === void 0 ? 'default' : _ref$variant,
17830
+ _ref$intent = _ref.intent,
17831
+ intent = _ref$intent === void 0 ? 'info' : _ref$intent,
17832
+ style = _ref.style,
17833
+ _ref$duration = _ref.duration,
17834
+ duration = _ref$duration === void 0 ? 2000 : _ref$duration,
17835
+ _ref$autoDismiss = _ref.autoDismiss,
17836
+ autoDismiss = _ref$autoDismiss === void 0 ? true : _ref$autoDismiss,
17837
+ onAction = _ref.onAction,
17838
+ actionLabel = _ref.actionLabel,
17839
+ onDismiss = _ref.onDismiss;
17840
+ var animatedValue = React.useRef(new ReactNative.Animated.Value(0)).current;
17841
+ var toastConfig = useToastConfig();
17842
+ React.useEffect(function () {
17843
+ if (autoDismiss && duration >= 0) {
17844
+ var id = setTimeout(function () {
17845
+ return onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss();
17846
+ }, duration);
17847
+ return function () {
17848
+ return clearTimeout(id);
17849
+ };
17850
+ } // Consistent return
17851
+
17852
+
17853
+ return function () {};
17854
+ }, []);
17855
+ React.useEffect(function () {
17856
+ var animation = ReactNative.Animated.timing(animatedValue, {
17857
+ toValue: 1,
17858
+ useNativeDriver: true
17859
+ });
17860
+ animation.start();
17861
+ return function () {
17862
+ return animation.stop();
17863
+ };
17864
+ }, []);
17865
+ React.useLayoutEffect(function () {
17866
+ ReactNative.LayoutAnimation.configureNext(ReactNative.LayoutAnimation.Presets.easeInEaseOut);
17867
+ });
17868
+ var interpolateY = animatedValue.interpolate({
17869
+ inputRange: [0, 1],
17870
+ outputRange: [toastConfig.position === 'top' ? -20 : 20, 0]
17871
+ });
17872
+ return /*#__PURE__*/React__default["default"].createElement(Container, {
17873
+ themeVariant: variant,
17874
+ themeIntent: intent,
17875
+ style: [style, {
17876
+ opacity: animatedValue,
17877
+ transform: [{
17878
+ translateY: interpolateY
17879
+ }]
17880
+ }]
17881
+ }, /*#__PURE__*/React__default["default"].createElement(ContentContainer, {
17882
+ showDivider: !!actionLabel
17883
+ }, icon !== null ? /*#__PURE__*/React__default["default"].createElement(IconContainer, {
17884
+ testID: "toast-left-icon"
17885
+ }, /*#__PURE__*/React__default["default"].createElement(Icon, {
17886
+ icon: icon || getIntentIcon(intent),
17887
+ size: "small"
17888
+ })) : null, /*#__PURE__*/React__default["default"].createElement(TextContainer, null, typeof content === 'string' ? /*#__PURE__*/React__default["default"].createElement(Typography.Text, null, content) : content)), actionLabel ? /*#__PURE__*/React__default["default"].createElement(CTAWrapper, {
17889
+ testID: "toast-action-button",
17890
+ onPress: function onPress() {
17891
+ onAction === null || onAction === void 0 ? void 0 : onAction();
17892
+ onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss();
17893
+ }
17894
+ }, typeof actionLabel === 'string' ? /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
17895
+ fontWeight: "semi-bold"
17896
+ }, actionLabel) : actionLabel) : null);
17897
+ };
17898
+
17899
+ var generateID = function generateID() {
17900
+ return (performance.now().toString(36) + Math.random().toString(36)).replace(/\./g, '');
17901
+ };
17902
+
17903
+ var SingleToastDisplay = function SingleToastDisplay(_ref) {
17904
+ var toastList = _ref.toastList,
17905
+ setToastList = _ref.setToastList;
17906
+ var theme = useTheme$1();
17907
+ var toast = toastList[toastList.length - 1];
17908
+ return toast ? /*#__PURE__*/React__default["default"].createElement(Toast$1, _extends$3({}, toast.props, {
17909
+ key: toast.id,
17910
+ style: {
17911
+ marginBottom: theme.space.small
17912
+ },
17913
+ onDismiss: function onDismiss() {
17914
+ var _toast$props$onDismis, _toast$props;
17915
+
17916
+ setToastList(function (state) {
17917
+ return state.filter(function (item) {
17918
+ return item.id !== toast.id;
17919
+ });
17920
+ });
17921
+ (_toast$props$onDismis = (_toast$props = toast.props).onDismiss) === null || _toast$props$onDismis === void 0 ? void 0 : _toast$props$onDismis.call(_toast$props);
17922
+ }
17923
+ })) : null;
17924
+ };
17925
+
17926
+ var ToastContainer = /*#__PURE__*/React__default["default"].forwardRef(function (_ref2, ref) {
17927
+ var _ref2$displayType = _ref2.displayType,
17928
+ displayType = _ref2$displayType === void 0 ? 'single' : _ref2$displayType,
17929
+ _ref2$position = _ref2.position,
17930
+ position = _ref2$position === void 0 ? 'top' : _ref2$position,
17931
+ style = _ref2.style;
17932
+ var theme = useTheme$1();
17933
+
17934
+ var _useState = React.useState([]),
17935
+ _useState2 = _slicedToArray(_useState, 2),
17936
+ toastList = _useState2[0],
17937
+ setToastList = _useState2[1];
17938
+
17939
+ React.useImperativeHandle(ref, function () {
17940
+ return {
17941
+ show: function show(props) {
17942
+ var item = {
17943
+ id: generateID(),
17944
+ props: props
17945
+ };
17946
+ setToastList(function (state) {
17947
+ return [item].concat(_toConsumableArray$1(state));
17948
+ });
17949
+ return item.id;
17950
+ },
17951
+ hide: function hide(id) {
17952
+ setToastList(function (state) {
17953
+ return state.filter(function (item) {
17954
+ return item.id !== id;
17955
+ });
17956
+ });
17957
+ },
17958
+ clearAll: function clearAll() {
17959
+ setToastList([]);
17960
+ }
17961
+ };
17962
+ });
17963
+ return /*#__PURE__*/React__default["default"].createElement(ToastContainerWrapper, {
17964
+ pointerEvents: "box-none",
17965
+ position: position,
17966
+ style: style
17967
+ }, displayType === 'single' ? /*#__PURE__*/React__default["default"].createElement(SingleToastDisplay, {
17968
+ toastList: toastList,
17969
+ setToastList: setToastList
17970
+ }) : toastList.map(function (_ref3) {
17971
+ var id = _ref3.id,
17972
+ props = _ref3.props;
17973
+ return /*#__PURE__*/React__default["default"].createElement(Toast$1, _extends$3({}, props, {
17974
+ key: id,
17975
+ style: {
17976
+ marginBottom: theme.space.small
17977
+ },
17978
+ onDismiss: function onDismiss() {
17979
+ var _props$onDismiss;
17980
+
17981
+ setToastList(function (state) {
17982
+ return state.filter(function (item) {
17983
+ return item.id !== id;
17984
+ });
17985
+ });
17986
+ (_props$onDismiss = props.onDismiss) === null || _props$onDismiss === void 0 ? void 0 : _props$onDismiss.call(props);
17987
+ }
17988
+ }));
17989
+ }));
17990
+ });
17991
+
17992
+ var ToastProvider = function ToastProvider(_ref) {
17993
+ var children = _ref.children,
17994
+ _ref$displayType = _ref.displayType,
17995
+ displayType = _ref$displayType === void 0 ? 'single' : _ref$displayType,
17996
+ _ref$position = _ref.position,
17997
+ position = _ref$position === void 0 ? 'top' : _ref$position;
17998
+ var toastRef = React.useRef(null);
17999
+
18000
+ var _useState = React.useState({}),
18001
+ _useState2 = _slicedToArray(_useState, 2),
18002
+ refState = _useState2[0],
18003
+ setRefState = _useState2[1];
18004
+
18005
+ React.useEffect(function () {
18006
+ if (toastRef.current) {
18007
+ setRefState(toastRef.current);
18008
+ }
18009
+ }, []);
18010
+ var config = React.useMemo(function () {
18011
+ return {
18012
+ displayType: displayType,
18013
+ position: position
18014
+ };
18015
+ }, [displayType, position]);
18016
+ return /*#__PURE__*/React__default["default"].createElement(ToastContext.Provider, {
18017
+ value: refState
18018
+ }, children, /*#__PURE__*/React__default["default"].createElement(ToastConfigContext.Provider, {
18019
+ value: config
18020
+ }, /*#__PURE__*/React__default["default"].createElement(ToastContainer, {
18021
+ ref: toastRef,
18022
+ displayType: displayType,
18023
+ position: position
18024
+ })));
18025
+ };
18026
+
18027
+ var Toast = {
18028
+ Provider: ToastProvider,
18029
+ Container: ToastContainer,
18030
+ useToast: useToast
18031
+ };
18032
+
15375
18033
  exports.Alert = Alert;
15376
18034
  exports.Avatar = Avatar;
15377
18035
  exports.Badge = Badge$1;
@@ -15379,6 +18037,7 @@ exports.BottomNavigation = BottomNavigation;
15379
18037
  exports.BottomSheet = BottomSheet;
15380
18038
  exports.Button = CompoundButton;
15381
18039
  exports.Card = Card;
18040
+ exports.Checkbox = CheckBox;
15382
18041
  exports.Collapse = Collapse;
15383
18042
  exports.ContentNavigator = ContentNavigator;
15384
18043
  exports.Divider = Divider;
@@ -15395,6 +18054,7 @@ exports.Tabs = index;
15395
18054
  exports.Tag = Tag;
15396
18055
  exports.TextInput = TextInput;
15397
18056
  exports.ThemeProvider = ThemeProvider;
18057
+ exports.Toast = Toast;
15398
18058
  exports.Typography = Typography;
15399
18059
  exports.getTheme = getTheme;
15400
18060
  exports.scale = scale;