@hero-design/rn 7.7.0 → 7.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (366) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/es/index.js +1772 -334
  3. package/lib/index.js +1777 -337
  4. package/package.json +4 -8
  5. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  6. package/src/components/Avatar/index.tsx +1 -1
  7. package/src/components/Button/Button.tsx +4 -2
  8. package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +7 -2
  9. package/src/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.tsx +2 -0
  10. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +40 -0
  11. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +242 -0
  12. package/src/components/Button/LoadingIndicator/__tests__/index.spec.tsx +2 -0
  13. package/src/components/Button/LoadingIndicator/index.tsx +3 -1
  14. package/src/components/Button/StyledButton.tsx +15 -2
  15. package/src/components/Button/__tests__/Button.spec.tsx +2 -0
  16. package/src/components/Button/__tests__/StyledButton.spec.tsx +12 -0
  17. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +314 -0
  18. package/src/components/Card/DataCard/StyledDataCard.tsx +20 -0
  19. package/src/components/Card/DataCard/__tests__/StyledDataCard.spec.tsx +24 -0
  20. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +97 -0
  21. package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +156 -0
  22. package/src/components/Card/DataCard/__tests__/index.spec.tsx +30 -0
  23. package/src/components/Card/DataCard/index.tsx +35 -0
  24. package/src/components/Card/index.tsx +7 -2
  25. package/src/components/Checkbox/index.tsx +1 -1
  26. package/src/components/Collapse/index.tsx +1 -1
  27. package/src/components/Icon/index.tsx +1 -1
  28. package/src/components/List/BasicListItem.tsx +98 -0
  29. package/src/components/List/ListItem.tsx +142 -0
  30. package/src/components/List/StyledBasicListItem.tsx +34 -0
  31. package/src/components/List/StyledListItem.tsx +82 -0
  32. package/src/components/List/__tests__/BasicListItem.spec.tsx +37 -0
  33. package/src/components/List/__tests__/ListItem.spec.tsx +110 -0
  34. package/src/components/List/__tests__/StyledBasicListItem.spec.tsx +24 -0
  35. package/src/components/List/__tests__/StyledListItem.spec.tsx +48 -0
  36. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +103 -0
  37. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +760 -0
  38. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +105 -0
  39. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +200 -0
  40. package/src/components/List/index.tsx +14 -0
  41. package/src/components/SectionHeading/index.tsx +1 -1
  42. package/src/components/Select/Footer.tsx +13 -0
  43. package/src/components/Select/MultiSelect/Option.tsx +25 -0
  44. package/src/components/Select/MultiSelect/OptionList.tsx +30 -63
  45. package/src/components/Select/MultiSelect/__tests__/Option.spec.tsx +16 -0
  46. package/src/components/Select/MultiSelect/__tests__/OptionList.spec.tsx +42 -0
  47. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +70 -0
  48. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +627 -0
  49. package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +6 -6
  50. package/src/components/Select/MultiSelect/index.tsx +8 -7
  51. package/src/components/Select/SingleSelect/Option.tsx +23 -0
  52. package/src/components/Select/SingleSelect/OptionList.tsx +43 -0
  53. package/src/components/Select/SingleSelect/__tests__/Option.spec.tsx +16 -0
  54. package/src/components/Select/SingleSelect/__tests__/OptionList.spec.tsx +42 -0
  55. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +56 -0
  56. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +571 -0
  57. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +1430 -0
  58. package/src/components/Select/SingleSelect/__tests__/index.spec.tsx +89 -0
  59. package/src/components/Select/SingleSelect/index.tsx +89 -0
  60. package/src/components/Select/{MultiSelect/StyledMultiSelect.tsx → StyledSelect.tsx} +1 -1
  61. package/src/components/Select/{MultiSelect/__tests__/StyledMultiSelect.spec.tsx → __tests__/StyledSelect.spec.tsx} +2 -2
  62. package/src/components/Select/{MultiSelect/__tests__/__snapshots__/StyledMultiSelect.spec.tsx.snap → __tests__/__snapshots__/StyledSelect.spec.tsx.snap} +0 -0
  63. package/src/components/Select/helpers.tsx +18 -0
  64. package/src/components/Select/index.tsx +4 -3
  65. package/src/components/Select/{MultiSelect/types.ts → types.ts} +0 -0
  66. package/src/components/Switch/index.tsx +1 -1
  67. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +2 -2
  68. package/src/components/Toolbar/StyledToolbar.tsx +42 -0
  69. package/src/components/Toolbar/ToolbarGroup.tsx +31 -0
  70. package/src/components/Toolbar/ToolbarItem.tsx +57 -0
  71. package/src/components/Toolbar/__tests__/ToolbarGroup.spec.tsx +32 -0
  72. package/src/components/Toolbar/__tests__/ToolbarItem.spec.tsx +57 -0
  73. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +391 -0
  74. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +355 -0
  75. package/src/components/Toolbar/index.tsx +18 -0
  76. package/src/components/Typography/Text/StyledText.tsx +8 -1
  77. package/src/components/Typography/Text/__tests__/StyledText.spec.tsx +5 -0
  78. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +110 -0
  79. package/src/components/Typography/Text/index.tsx +9 -2
  80. package/src/index.ts +4 -0
  81. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +79 -3
  82. package/src/theme/components/button.ts +2 -0
  83. package/src/theme/components/card.ts +8 -1
  84. package/src/theme/components/list.ts +46 -0
  85. package/src/theme/components/toolbar.ts +27 -0
  86. package/src/theme/components/typography.ts +4 -0
  87. package/src/theme/global/colors.ts +9 -2
  88. package/src/theme/global/space.ts +2 -0
  89. package/src/theme/index.ts +6 -0
  90. package/tsconfig.json +1 -2
  91. package/types/components/Alert/StyledAlert.d.ts +0 -0
  92. package/types/components/Alert/__tests__/index.spec.d.ts +0 -0
  93. package/types/components/Alert/index.d.ts +0 -0
  94. package/types/components/Avatar/StyledAvatar.d.ts +0 -0
  95. package/types/components/Avatar/__tests__/StyledAvatar.spec.d.ts +0 -0
  96. package/types/components/Avatar/__tests__/index.spec.d.ts +0 -0
  97. package/types/components/Avatar/index.d.ts +1 -1
  98. package/types/components/Badge/Status.d.ts +0 -0
  99. package/types/components/Badge/StyledBadge.d.ts +0 -0
  100. package/types/components/Badge/__tests__/Badge.spec.d.ts +0 -0
  101. package/types/components/Badge/__tests__/Status.spec.d.ts +0 -0
  102. package/types/components/Badge/index.d.ts +0 -0
  103. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
  104. package/types/components/BottomNavigation/__tests__/index.spec.d.ts +0 -0
  105. package/types/components/BottomNavigation/index.d.ts +0 -0
  106. package/types/components/BottomSheet/Footer.d.ts +0 -0
  107. package/types/components/BottomSheet/Header.d.ts +0 -0
  108. package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -0
  109. package/types/components/BottomSheet/__tests__/index.spec.d.ts +0 -0
  110. package/types/components/BottomSheet/index.d.ts +0 -0
  111. package/types/components/Button/Button.d.ts +2 -2
  112. package/types/components/Button/IconButton.d.ts +0 -0
  113. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +1 -1
  114. package/types/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.d.ts +0 -0
  115. package/types/components/Button/LoadingIndicator/__tests__/index.spec.d.ts +0 -0
  116. package/types/components/Button/LoadingIndicator/index.d.ts +1 -1
  117. package/types/components/Button/StyledButton.d.ts +2 -2
  118. package/types/components/Button/__tests__/Button.spec.d.ts +0 -0
  119. package/types/components/Button/__tests__/IconButton.spec.d.ts +0 -0
  120. package/types/components/Button/__tests__/StyledButton.spec.d.ts +0 -0
  121. package/types/components/Button/index.d.ts +0 -0
  122. package/types/components/Card/DataCard/StyledDataCard.d.ts +16 -0
  123. package/types/components/Card/DataCard/__tests__/StyledDataCard.spec.d.ts +1 -0
  124. package/types/components/Card/DataCard/__tests__/index.spec.d.ts +1 -0
  125. package/types/components/Card/DataCard/index.d.ts +22 -0
  126. package/types/components/Card/StyledCard.d.ts +0 -0
  127. package/types/components/Card/__tests__/StyledCard.spec.d.ts +0 -0
  128. package/types/components/Card/__tests__/index.spec.d.ts +0 -0
  129. package/types/components/Card/index.d.ts +7 -3
  130. package/types/components/Checkbox/StyledCheckbox.d.ts +0 -0
  131. package/types/components/Checkbox/__tests__/StyledCheckbox.spec.d.ts +0 -0
  132. package/types/components/Checkbox/__tests__/index.spec.d.ts +0 -0
  133. package/types/components/Checkbox/index.d.ts +1 -1
  134. package/types/components/Collapse/StyledCollapse.d.ts +0 -0
  135. package/types/components/Collapse/__tests__/StyledCollapse.spec.d.ts +0 -0
  136. package/types/components/Collapse/__tests__/index.spec.d.ts +0 -0
  137. package/types/components/Collapse/index.d.ts +1 -1
  138. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -0
  139. package/types/components/ContentNavigator/__tests__/StyledContentNavigator.spec.d.ts +0 -0
  140. package/types/components/ContentNavigator/__tests__/index.spec.d.ts +0 -0
  141. package/types/components/ContentNavigator/index.d.ts +0 -0
  142. package/types/components/Divider/StyledDivider.d.ts +0 -0
  143. package/types/components/Divider/__tests__/StyledDivider.spec.d.ts +0 -0
  144. package/types/components/Divider/index.d.ts +0 -0
  145. package/types/components/Drawer/StyledDrawer.d.ts +0 -0
  146. package/types/components/Drawer/__tests__/index.spec.d.ts +0 -0
  147. package/types/components/Drawer/index.d.ts +0 -0
  148. package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
  149. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
  150. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
  151. package/types/components/FAB/ActionGroup/__tests__/index.spec.d.ts +0 -0
  152. package/types/components/FAB/ActionGroup/index.d.ts +0 -0
  153. package/types/components/FAB/AnimatedFABIcon.d.ts +0 -0
  154. package/types/components/FAB/FAB.d.ts +0 -0
  155. package/types/components/FAB/StyledFAB.d.ts +0 -0
  156. package/types/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts +0 -0
  157. package/types/components/FAB/__tests__/StyledFAB.spec.d.ts +0 -0
  158. package/types/components/FAB/__tests__/index.spec.d.ts +0 -0
  159. package/types/components/FAB/index.d.ts +0 -0
  160. package/types/components/Icon/HeroIcon/index.d.ts +0 -0
  161. package/types/components/Icon/IconList.d.ts +0 -0
  162. package/types/components/Icon/__tests__/index.spec.d.ts +0 -0
  163. package/types/components/Icon/index.d.ts +1 -1
  164. package/types/components/Icon/utils.d.ts +0 -0
  165. package/types/components/List/BasicListItem.d.ts +43 -0
  166. package/types/components/List/ListItem.d.ts +51 -0
  167. package/types/components/List/StyledBasicListItem.d.ts +29 -0
  168. package/types/components/List/StyledListItem.d.ts +51 -0
  169. package/types/components/List/__tests__/BasicListItem.spec.d.ts +1 -0
  170. package/types/components/List/__tests__/ListItem.spec.d.ts +1 -0
  171. package/types/components/List/__tests__/StyledBasicListItem.spec.d.ts +1 -0
  172. package/types/components/List/__tests__/StyledListItem.spec.d.ts +1 -0
  173. package/types/components/List/index.d.ts +8 -0
  174. package/types/components/Progress/ProgressBar.d.ts +0 -0
  175. package/types/components/Progress/ProgressCircle.d.ts +0 -0
  176. package/types/components/Progress/StyledProgressBar.d.ts +0 -0
  177. package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
  178. package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
  179. package/types/components/Progress/index.d.ts +0 -0
  180. package/types/components/Progress/types.d.ts +0 -0
  181. package/types/components/Radio/Radio.d.ts +0 -0
  182. package/types/components/Radio/RadioGroup.d.ts +0 -0
  183. package/types/components/Radio/StyledRadio.d.ts +0 -0
  184. package/types/components/Radio/__tests__/Radio.spec.d.ts +0 -0
  185. package/types/components/Radio/__tests__/RadioGroup.spec.d.ts +0 -0
  186. package/types/components/Radio/__tests__/StyledRadio.spec.d.ts +0 -0
  187. package/types/components/Radio/index.d.ts +0 -0
  188. package/types/components/Radio/types.d.ts +0 -0
  189. package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
  190. package/types/components/SectionHeading/__tests__/StyledHeading.spec.d.ts +0 -0
  191. package/types/components/SectionHeading/__tests__/index.spec.d.ts +0 -0
  192. package/types/components/SectionHeading/index.d.ts +1 -1
  193. package/types/components/Select/Footer.d.ts +5 -0
  194. package/types/components/Select/MultiSelect/Footer.d.ts +0 -0
  195. package/types/components/Select/MultiSelect/Option.d.ts +6 -0
  196. package/types/components/Select/MultiSelect/OptionList.d.ts +7 -1
  197. package/types/components/Select/MultiSelect/StyledMultiSelect.d.ts +0 -0
  198. package/types/components/Select/MultiSelect/__tests__/Option.spec.d.ts +1 -0
  199. package/types/components/Select/MultiSelect/__tests__/OptionList.spec.d.ts +1 -0
  200. package/types/components/Select/MultiSelect/__tests__/StyledMultiSelect.spec.d.ts +0 -0
  201. package/types/components/Select/MultiSelect/__tests__/index.spec.d.ts +0 -0
  202. package/types/components/Select/MultiSelect/index.d.ts +4 -4
  203. package/types/components/Select/MultiSelect/types.d.ts +0 -0
  204. package/types/components/Select/SingleSelect/Option.d.ts +6 -0
  205. package/types/components/Select/SingleSelect/OptionList.d.ts +9 -0
  206. package/types/components/Select/SingleSelect/__tests__/Option.spec.d.ts +1 -0
  207. package/types/components/Select/SingleSelect/__tests__/OptionList.spec.d.ts +1 -0
  208. package/types/components/Select/SingleSelect/__tests__/index.spec.d.ts +1 -0
  209. package/types/components/Select/SingleSelect/index.d.ts +35 -0
  210. package/types/components/Select/StyledSelect.d.ts +26 -0
  211. package/types/components/Select/__tests__/StyledSelect.spec.d.ts +1 -0
  212. package/types/components/Select/helpers.d.ts +2 -0
  213. package/types/components/Select/index.d.ts +3 -3
  214. package/types/components/Select/types.d.ts +5 -0
  215. package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
  216. package/types/components/Spinner/StyledSpinner.d.ts +0 -0
  217. package/types/components/Spinner/__tests__/AnimatedSpinner.spec.d.ts +0 -0
  218. package/types/components/Spinner/__tests__/StyledSpinner.spec.d.ts +0 -0
  219. package/types/components/Spinner/__tests__/index.spec.d.ts +0 -0
  220. package/types/components/Spinner/index.d.ts +0 -0
  221. package/types/components/Switch/StyledSwitch.d.ts +0 -0
  222. package/types/components/Switch/__tests__/StyledHeading.spec.d.ts +0 -0
  223. package/types/components/Switch/__tests__/index.spec.d.ts +0 -0
  224. package/types/components/Switch/index.d.ts +1 -1
  225. package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
  226. package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
  227. package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -0
  228. package/types/components/Tabs/StyledTabs.d.ts +0 -0
  229. package/types/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +0 -0
  230. package/types/components/Tabs/__tests__/index.spec.d.ts +0 -0
  231. package/types/components/Tabs/index.d.ts +0 -0
  232. package/types/components/Tabs/utils.d.ts +0 -0
  233. package/types/components/Tag/StyledTag.d.ts +0 -0
  234. package/types/components/Tag/__tests__/Tag.spec.d.ts +0 -0
  235. package/types/components/Tag/index.d.ts +0 -0
  236. package/types/components/TextInput/StyledTextInput.d.ts +0 -0
  237. package/types/components/TextInput/__tests__/StyledTextInput.spec.d.ts +0 -0
  238. package/types/components/TextInput/__tests__/index.spec.d.ts +0 -0
  239. package/types/components/TextInput/index.d.ts +0 -0
  240. package/types/components/Toast/StyledToast.d.ts +0 -0
  241. package/types/components/Toast/Toast.d.ts +0 -0
  242. package/types/components/Toast/ToastContainer.d.ts +0 -0
  243. package/types/components/Toast/ToastContext.d.ts +0 -0
  244. package/types/components/Toast/ToastProvider.d.ts +0 -0
  245. package/types/components/Toast/__tests__/Toast.spec.d.ts +0 -0
  246. package/types/components/Toast/__tests__/ToastContainer.spec.d.ts +0 -0
  247. package/types/components/Toast/index.d.ts +0 -0
  248. package/types/components/Toast/types.d.ts +0 -0
  249. package/types/components/Toolbar/StyledToolbar.d.ts +22 -0
  250. package/types/components/Toolbar/ToolbarGroup.d.ts +13 -0
  251. package/types/components/Toolbar/ToolbarItem.d.ts +25 -0
  252. package/types/components/Toolbar/__tests__/ToolbarGroup.spec.d.ts +1 -0
  253. package/types/components/Toolbar/__tests__/ToolbarItem.spec.d.ts +1 -0
  254. package/types/components/Toolbar/index.d.ts +11 -0
  255. package/types/components/Typography/Text/StyledText.d.ts +1 -1
  256. package/types/components/Typography/Text/__tests__/StyledText.spec.d.ts +0 -0
  257. package/types/components/Typography/Text/__tests__/index.spec.d.ts +0 -0
  258. package/types/components/Typography/Text/index.d.ts +2 -2
  259. package/types/components/Typography/index.d.ts +0 -0
  260. package/types/index.d.ts +3 -1
  261. package/types/testHelpers/renderWithTheme.d.ts +0 -0
  262. package/types/theme/__tests__/index.spec.d.ts +0 -0
  263. package/types/theme/components/alert.d.ts +0 -0
  264. package/types/theme/components/avatar.d.ts +0 -0
  265. package/types/theme/components/badge.d.ts +0 -0
  266. package/types/theme/components/bottomNavigation.d.ts +0 -0
  267. package/types/theme/components/bottomSheet.d.ts +0 -0
  268. package/types/theme/components/button.d.ts +2 -0
  269. package/types/theme/components/card.d.ts +7 -0
  270. package/types/theme/components/checkbox.d.ts +0 -0
  271. package/types/theme/components/contentNavigator.d.ts +0 -0
  272. package/types/theme/components/divider.d.ts +0 -0
  273. package/types/theme/components/drawer.d.ts +0 -0
  274. package/types/theme/components/fab.d.ts +0 -0
  275. package/types/theme/components/icon.d.ts +0 -0
  276. package/types/theme/components/list.d.ts +40 -0
  277. package/types/theme/components/progress.d.ts +0 -0
  278. package/types/theme/components/radio.d.ts +0 -0
  279. package/types/theme/components/sectionHeading.d.ts +0 -0
  280. package/types/theme/components/select.d.ts +0 -0
  281. package/types/theme/components/spinner.d.ts +0 -0
  282. package/types/theme/components/switch.d.ts +0 -0
  283. package/types/theme/components/tabs.d.ts +0 -0
  284. package/types/theme/components/tag.d.ts +0 -0
  285. package/types/theme/components/textInput.d.ts +0 -0
  286. package/types/theme/components/toast.d.ts +0 -0
  287. package/types/theme/components/toolbar.d.ts +21 -0
  288. package/types/theme/components/typography.d.ts +4 -0
  289. package/types/theme/global/borders.d.ts +0 -0
  290. package/types/theme/global/colors.d.ts +5 -0
  291. package/types/theme/global/index.d.ts +5 -0
  292. package/types/theme/global/scale.d.ts +0 -0
  293. package/types/theme/global/space.d.ts +1 -0
  294. package/types/theme/global/typography.d.ts +0 -0
  295. package/types/theme/index.d.ts +4 -0
  296. package/types/types.d.ts +0 -0
  297. package/types/utils/__tests__/scale.spec.d.ts +0 -0
  298. package/types/utils/helpers.d.ts +0 -0
  299. package/types/utils/hooks.d.ts +0 -0
  300. package/types/utils/scale.d.ts +0 -0
  301. package/playground/.detoxrc.json +0 -49
  302. package/playground/.prettierrc.json +0 -8
  303. package/playground/.turbo/turbo-type-check.log +0 -7
  304. package/playground/app.json +0 -9
  305. package/playground/babel.config.js +0 -63
  306. package/playground/e2e/config.json +0 -9
  307. package/playground/e2e/environment.js +0 -23
  308. package/playground/e2e/firstTest.e2e.js +0 -16
  309. package/playground/expoEntry.js +0 -5
  310. package/playground/fonts/be-vietnam-pro-light.ttf +0 -0
  311. package/playground/fonts/be-vietnam-pro-regular.ttf +0 -0
  312. package/playground/fonts/be-vietnam-pro-semibold.ttf +0 -0
  313. package/playground/fonts/hero-icons.ttf +0 -0
  314. package/playground/index.js +0 -7
  315. package/playground/ios/MobileHeroDesignPlayground/AppDelegate.h +0 -9
  316. package/playground/ios/MobileHeroDesignPlayground/AppDelegate.m +0 -75
  317. package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/AppIcon.appiconset/Contents.json +0 -38
  318. package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/Contents.json +0 -6
  319. package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/SplashScreenBackground.imageset/Contents.json +0 -21
  320. package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/SplashScreenBackground.imageset/image.png +0 -0
  321. package/playground/ios/MobileHeroDesignPlayground/Info.plist +0 -85
  322. package/playground/ios/MobileHeroDesignPlayground/MobileHeroDesignPlayground-Bridging-Header.h +0 -3
  323. package/playground/ios/MobileHeroDesignPlayground/MobileHeroDesignPlayground.entitlements +0 -8
  324. package/playground/ios/MobileHeroDesignPlayground/SplashScreen.storyboard +0 -40
  325. package/playground/ios/MobileHeroDesignPlayground/Supporting/Expo.plist +0 -16
  326. package/playground/ios/MobileHeroDesignPlayground/main.m +0 -10
  327. package/playground/ios/MobileHeroDesignPlayground/noop-file.swift +0 -4
  328. package/playground/ios/MobileHeroDesignPlayground.xcodeproj/project.pbxproj +0 -515
  329. package/playground/ios/MobileHeroDesignPlayground.xcodeproj/xcshareddata/xcschemes/MobileHeroDesignPlayground.xcscheme +0 -88
  330. package/playground/ios/MobileHeroDesignPlayground.xcworkspace/contents.xcworkspacedata +0 -10
  331. package/playground/ios/MobileHeroDesignPlayground.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  332. package/playground/ios/Podfile +0 -49
  333. package/playground/ios/Podfile.lock +0 -478
  334. package/playground/ios/Podfile.properties.json +0 -3
  335. package/playground/metro.config.js +0 -24
  336. package/playground/package.json +0 -63
  337. package/playground/src/Alert.tsx +0 -80
  338. package/playground/src/App.tsx +0 -210
  339. package/playground/src/Avatar.tsx +0 -102
  340. package/playground/src/Badge.tsx +0 -187
  341. package/playground/src/BottomNavigation.tsx +0 -72
  342. package/playground/src/BottomSheet.tsx +0 -43
  343. package/playground/src/Button.tsx +0 -170
  344. package/playground/src/Card.tsx +0 -342
  345. package/playground/src/Checkbox.tsx +0 -55
  346. package/playground/src/Collapse.tsx +0 -99
  347. package/playground/src/ContentNavigator.tsx +0 -58
  348. package/playground/src/Divider.tsx +0 -13
  349. package/playground/src/Drawer.tsx +0 -32
  350. package/playground/src/FAB.tsx +0 -66
  351. package/playground/src/Icon.tsx +0 -144
  352. package/playground/src/IconButton.tsx +0 -78
  353. package/playground/src/MultipleThemes.tsx +0 -34
  354. package/playground/src/Progress.tsx +0 -95
  355. package/playground/src/Radio.tsx +0 -25
  356. package/playground/src/SectionHeading.tsx +0 -68
  357. package/playground/src/Select.tsx +0 -32
  358. package/playground/src/Spinner.tsx +0 -19
  359. package/playground/src/Switch.tsx +0 -80
  360. package/playground/src/Tabs.tsx +0 -136
  361. package/playground/src/Tag.tsx +0 -45
  362. package/playground/src/TextInput.tsx +0 -14
  363. package/playground/src/Toast.tsx +0 -114
  364. package/playground/src/Typography.tsx +0 -23
  365. package/playground/tsconfig.json +0 -21
  366. package/src/components/Select/MultiSelect/Footer.tsx +0 -15
package/lib/index.js CHANGED
@@ -1634,124 +1634,1029 @@ var scale$1 = {
1634
1634
  radius: BASE_RADIUS
1635
1635
  };
1636
1636
 
1637
- var palette = {
1638
- black: '#000000',
1637
+ var hexCharacters = 'a-f\\d';
1638
+ var match3or4Hex = "#?[".concat(hexCharacters, "]{3}[").concat(hexCharacters, "]?");
1639
+ var match6or8Hex = "#?[".concat(hexCharacters, "]{6}([").concat(hexCharacters, "]{2})?");
1640
+ var nonHexChars = new RegExp("[^#".concat(hexCharacters, "]"), 'gi');
1641
+ var validHexSize = new RegExp("^".concat(match3or4Hex, "$|^").concat(match6or8Hex, "$"), 'i');
1642
+
1643
+ var hexRgb = function hexRgb(hex) {
1644
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1645
+
1646
+ if (typeof hex !== 'string' || nonHexChars.test(hex) || !validHexSize.test(hex)) {
1647
+ throw new TypeError('Expected a valid hex string');
1648
+ }
1649
+
1650
+ hex = hex.replace(/^#/, '');
1651
+ var alphaFromHex = 1;
1652
+
1653
+ if (hex.length === 8) {
1654
+ alphaFromHex = Number.parseInt(hex.slice(6, 8), 16) / 255;
1655
+ hex = hex.slice(0, 6);
1656
+ }
1657
+
1658
+ if (hex.length === 4) {
1659
+ alphaFromHex = Number.parseInt(hex.slice(3, 4).repeat(2), 16) / 255;
1660
+ hex = hex.slice(0, 3);
1661
+ }
1662
+
1663
+ if (hex.length === 3) {
1664
+ hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];
1665
+ }
1666
+
1667
+ var number = Number.parseInt(hex, 16);
1668
+ var red = number >> 16;
1669
+ var green = number >> 8 & 255;
1670
+ var blue = number & 255;
1671
+ var alpha = typeof options.alpha === 'number' ? options.alpha : alphaFromHex;
1672
+
1673
+ if (options.format === 'array') {
1674
+ return [red, green, blue, alpha];
1675
+ }
1676
+
1677
+ if (options.format === 'css') {
1678
+ var alphaString = alpha === 1 ? '' : " / ".concat(Number((alpha * 100).toFixed(2)), "%");
1679
+ return "rgb(".concat(red, " ").concat(green, " ").concat(blue).concat(alphaString, ")");
1680
+ }
1681
+
1682
+ return {
1683
+ red: red,
1684
+ green: green,
1685
+ blue: blue,
1686
+ alpha: alpha
1687
+ };
1688
+ };
1689
+
1690
+ var colorName = {
1691
+ "aliceblue": [240, 248, 255],
1692
+ "antiquewhite": [250, 235, 215],
1693
+ "aqua": [0, 255, 255],
1694
+ "aquamarine": [127, 255, 212],
1695
+ "azure": [240, 255, 255],
1696
+ "beige": [245, 245, 220],
1697
+ "bisque": [255, 228, 196],
1698
+ "black": [0, 0, 0],
1699
+ "blanchedalmond": [255, 235, 205],
1700
+ "blue": [0, 0, 255],
1701
+ "blueviolet": [138, 43, 226],
1702
+ "brown": [165, 42, 42],
1703
+ "burlywood": [222, 184, 135],
1704
+ "cadetblue": [95, 158, 160],
1705
+ "chartreuse": [127, 255, 0],
1706
+ "chocolate": [210, 105, 30],
1707
+ "coral": [255, 127, 80],
1708
+ "cornflowerblue": [100, 149, 237],
1709
+ "cornsilk": [255, 248, 220],
1710
+ "crimson": [220, 20, 60],
1711
+ "cyan": [0, 255, 255],
1712
+ "darkblue": [0, 0, 139],
1713
+ "darkcyan": [0, 139, 139],
1714
+ "darkgoldenrod": [184, 134, 11],
1715
+ "darkgray": [169, 169, 169],
1716
+ "darkgreen": [0, 100, 0],
1717
+ "darkgrey": [169, 169, 169],
1718
+ "darkkhaki": [189, 183, 107],
1719
+ "darkmagenta": [139, 0, 139],
1720
+ "darkolivegreen": [85, 107, 47],
1721
+ "darkorange": [255, 140, 0],
1722
+ "darkorchid": [153, 50, 204],
1723
+ "darkred": [139, 0, 0],
1724
+ "darksalmon": [233, 150, 122],
1725
+ "darkseagreen": [143, 188, 143],
1726
+ "darkslateblue": [72, 61, 139],
1727
+ "darkslategray": [47, 79, 79],
1728
+ "darkslategrey": [47, 79, 79],
1729
+ "darkturquoise": [0, 206, 209],
1730
+ "darkviolet": [148, 0, 211],
1731
+ "deeppink": [255, 20, 147],
1732
+ "deepskyblue": [0, 191, 255],
1733
+ "dimgray": [105, 105, 105],
1734
+ "dimgrey": [105, 105, 105],
1735
+ "dodgerblue": [30, 144, 255],
1736
+ "firebrick": [178, 34, 34],
1737
+ "floralwhite": [255, 250, 240],
1738
+ "forestgreen": [34, 139, 34],
1739
+ "fuchsia": [255, 0, 255],
1740
+ "gainsboro": [220, 220, 220],
1741
+ "ghostwhite": [248, 248, 255],
1742
+ "gold": [255, 215, 0],
1743
+ "goldenrod": [218, 165, 32],
1744
+ "gray": [128, 128, 128],
1745
+ "green": [0, 128, 0],
1746
+ "greenyellow": [173, 255, 47],
1747
+ "grey": [128, 128, 128],
1748
+ "honeydew": [240, 255, 240],
1749
+ "hotpink": [255, 105, 180],
1750
+ "indianred": [205, 92, 92],
1751
+ "indigo": [75, 0, 130],
1752
+ "ivory": [255, 255, 240],
1753
+ "khaki": [240, 230, 140],
1754
+ "lavender": [230, 230, 250],
1755
+ "lavenderblush": [255, 240, 245],
1756
+ "lawngreen": [124, 252, 0],
1757
+ "lemonchiffon": [255, 250, 205],
1758
+ "lightblue": [173, 216, 230],
1759
+ "lightcoral": [240, 128, 128],
1760
+ "lightcyan": [224, 255, 255],
1761
+ "lightgoldenrodyellow": [250, 250, 210],
1762
+ "lightgray": [211, 211, 211],
1763
+ "lightgreen": [144, 238, 144],
1764
+ "lightgrey": [211, 211, 211],
1765
+ "lightpink": [255, 182, 193],
1766
+ "lightsalmon": [255, 160, 122],
1767
+ "lightseagreen": [32, 178, 170],
1768
+ "lightskyblue": [135, 206, 250],
1769
+ "lightslategray": [119, 136, 153],
1770
+ "lightslategrey": [119, 136, 153],
1771
+ "lightsteelblue": [176, 196, 222],
1772
+ "lightyellow": [255, 255, 224],
1773
+ "lime": [0, 255, 0],
1774
+ "limegreen": [50, 205, 50],
1775
+ "linen": [250, 240, 230],
1776
+ "magenta": [255, 0, 255],
1777
+ "maroon": [128, 0, 0],
1778
+ "mediumaquamarine": [102, 205, 170],
1779
+ "mediumblue": [0, 0, 205],
1780
+ "mediumorchid": [186, 85, 211],
1781
+ "mediumpurple": [147, 112, 219],
1782
+ "mediumseagreen": [60, 179, 113],
1783
+ "mediumslateblue": [123, 104, 238],
1784
+ "mediumspringgreen": [0, 250, 154],
1785
+ "mediumturquoise": [72, 209, 204],
1786
+ "mediumvioletred": [199, 21, 133],
1787
+ "midnightblue": [25, 25, 112],
1788
+ "mintcream": [245, 255, 250],
1789
+ "mistyrose": [255, 228, 225],
1790
+ "moccasin": [255, 228, 181],
1791
+ "navajowhite": [255, 222, 173],
1792
+ "navy": [0, 0, 128],
1793
+ "oldlace": [253, 245, 230],
1794
+ "olive": [128, 128, 0],
1795
+ "olivedrab": [107, 142, 35],
1796
+ "orange": [255, 165, 0],
1797
+ "orangered": [255, 69, 0],
1798
+ "orchid": [218, 112, 214],
1799
+ "palegoldenrod": [238, 232, 170],
1800
+ "palegreen": [152, 251, 152],
1801
+ "paleturquoise": [175, 238, 238],
1802
+ "palevioletred": [219, 112, 147],
1803
+ "papayawhip": [255, 239, 213],
1804
+ "peachpuff": [255, 218, 185],
1805
+ "peru": [205, 133, 63],
1806
+ "pink": [255, 192, 203],
1807
+ "plum": [221, 160, 221],
1808
+ "powderblue": [176, 224, 230],
1809
+ "purple": [128, 0, 128],
1810
+ "rebeccapurple": [102, 51, 153],
1811
+ "red": [255, 0, 0],
1812
+ "rosybrown": [188, 143, 143],
1813
+ "royalblue": [65, 105, 225],
1814
+ "saddlebrown": [139, 69, 19],
1815
+ "salmon": [250, 128, 114],
1816
+ "sandybrown": [244, 164, 96],
1817
+ "seagreen": [46, 139, 87],
1818
+ "seashell": [255, 245, 238],
1819
+ "sienna": [160, 82, 45],
1820
+ "silver": [192, 192, 192],
1821
+ "skyblue": [135, 206, 235],
1822
+ "slateblue": [106, 90, 205],
1823
+ "slategray": [112, 128, 144],
1824
+ "slategrey": [112, 128, 144],
1825
+ "snow": [255, 250, 250],
1826
+ "springgreen": [0, 255, 127],
1827
+ "steelblue": [70, 130, 180],
1828
+ "tan": [210, 180, 140],
1829
+ "teal": [0, 128, 128],
1830
+ "thistle": [216, 191, 216],
1831
+ "tomato": [255, 99, 71],
1832
+ "turquoise": [64, 224, 208],
1833
+ "violet": [238, 130, 238],
1834
+ "wheat": [245, 222, 179],
1835
+ "white": [255, 255, 255],
1836
+ "whitesmoke": [245, 245, 245],
1837
+ "yellow": [255, 255, 0],
1838
+ "yellowgreen": [154, 205, 50]
1839
+ };
1840
+ var pattern$8 = /^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/;
1841
+ var hexRe$1 = new RegExp(pattern$8, 'i');
1842
+ var float$1 = '-?\\d*(?:\\.\\d+)';
1843
+ var number$1 = "(".concat(float$1, "?)");
1844
+ var percentage$1 = "(".concat(float$1, "?%)");
1845
+ var numberOrPercentage$1 = "(".concat(float$1, "?%?)");
1846
+ var pattern$1$1 = "^\n hsla?\\(\n \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*,\n \\s*".concat(percentage$1, "\\s*,\n \\s*").concat(percentage$1, "\\s*\n (?:,\\s*").concat(numberOrPercentage$1, "\\s*)?\n \\)\n $\n").replace(/\n|\s/g, '');
1847
+ var hsl3Re$1 = new RegExp(pattern$1$1);
1848
+ var pattern$2$1 = "^\n hsla?\\(\n \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*\n \\s+".concat(percentage$1, "\n \\s+").concat(percentage$1, "\n \\s*(?:\\s*\\/\\s*").concat(numberOrPercentage$1, "\\s*)?\n \\)\n $\n").replace(/\n|\s/g, '');
1849
+ var hsl4Re$1 = new RegExp(pattern$2$1);
1850
+ var pattern$3$1 = "^\n rgba?\\(\n \\s*".concat(number$1, "\\s*,\n \\s*").concat(number$1, "\\s*,\n \\s*").concat(number$1, "\\s*\n (?:,\\s*").concat(numberOrPercentage$1, "\\s*)?\n \\)\n $\n").replace(/\n|\s/g, '');
1851
+ var rgb3NumberRe$1 = new RegExp(pattern$3$1);
1852
+ var pattern$4$1 = "^\n rgba?\\(\n \\s*".concat(percentage$1, "\\s*,\n \\s*").concat(percentage$1, "\\s*,\n \\s*").concat(percentage$1, "\\s*\n (?:,\\s*").concat(numberOrPercentage$1, "\\s*)?\n \\)\n $\n").replace(/\n|\s/g, '');
1853
+ var rgb3PercentageRe$1 = new RegExp(pattern$4$1);
1854
+ var pattern$5$1 = "^\n rgba?\\(\n \\s*".concat(number$1, "\n \\s+").concat(number$1, "\n \\s+").concat(number$1, "\n \\s*(?:\\s*\\/\\s*").concat(numberOrPercentage$1, "\\s*)?\n \\)\n$\n").replace(/\n|\s/g, '');
1855
+ var rgb4NumberRe$1 = new RegExp(pattern$5$1);
1856
+ var pattern$6$1 = "^\n rgba?\\(\n \\s*".concat(percentage$1, "\n \\s+").concat(percentage$1, "\n \\s+").concat(percentage$1, "\n \\s*(?:\\s*\\/\\s*").concat(numberOrPercentage$1, "\\s*)?\n \\)\n$\n").replace(/\n|\s/g, '');
1857
+ var rgb4PercentageRe$1 = new RegExp(pattern$6$1);
1858
+ var pattern$7$1 = /^transparent$/;
1859
+ var transparentRe$1 = new RegExp(pattern$7$1, 'i');
1860
+
1861
+ var clamp$3 = function clamp$3(num, min, max) {
1862
+ return Math.min(Math.max(min, num), max);
1863
+ };
1864
+ /* 500 => 255, -10 => 0, 128 => 128 */
1865
+
1866
+
1867
+ var parseRGB$1 = function parseRGB$1(num) {
1868
+ var n = num;
1869
+ if (typeof n !== 'number') n = n.endsWith('%') ? parseFloat(n) * 255 / 100 : parseFloat(n);
1870
+ return clamp$3(Math.round(n), 0, 255);
1871
+ };
1872
+ /* 200 => 100, -100 => 0, 50 => 50 */
1873
+
1874
+
1875
+ var parsePercentage$1 = function parsePercentage$1(percentage) {
1876
+ return clamp$3(parseFloat(percentage), 0, 100);
1877
+ };
1878
+ /* '50%' => 5.0, 200 => 1, -10 => 0 */
1879
+
1880
+
1881
+ function parseAlpha$1(alpha) {
1882
+ var a = alpha;
1883
+ if (typeof a !== 'number') a = a.endsWith('%') ? parseFloat(a) / 100 : parseFloat(a);
1884
+ return clamp$3(a, 0, 1);
1885
+ }
1886
+
1887
+ function getHEX$1(hex) {
1888
+ var _hex2Rgb = hexRgb(hex, {
1889
+ format: 'array'
1890
+ }),
1891
+ _hex2Rgb2 = _slicedToArray(_hex2Rgb, 4),
1892
+ r = _hex2Rgb2[0],
1893
+ g = _hex2Rgb2[1],
1894
+ b = _hex2Rgb2[2],
1895
+ a = _hex2Rgb2[3];
1896
+
1897
+ return getRGB$1([null].concat([r, g, b, a]));
1898
+ }
1899
+
1900
+ function getHSL$1(_ref) {
1901
+ var _ref2 = _slicedToArray(_ref, 5),
1902
+ h = _ref2[1],
1903
+ s = _ref2[2],
1904
+ l = _ref2[3],
1905
+ _ref2$ = _ref2[4],
1906
+ a = _ref2$ === void 0 ? 1 : _ref2$;
1907
+
1908
+ var hh = h;
1909
+
1910
+ if (hh.endsWith('turn')) {
1911
+ hh = parseFloat(hh) * 360 / 1;
1912
+ } else if (hh.endsWith('rad')) {
1913
+ hh = Math.round(parseFloat(hh) * 180 / Math.PI);
1914
+ } else {
1915
+ hh = parseFloat(hh);
1916
+ }
1917
+
1918
+ return {
1919
+ type: 'hsl',
1920
+ values: [hh, parsePercentage$1(s), parsePercentage$1(l)],
1921
+ alpha: parseAlpha$1(a === null ? 1 : a)
1922
+ };
1923
+ }
1924
+
1925
+ function getRGB$1(_ref3) {
1926
+ var _ref4 = _slicedToArray(_ref3, 5),
1927
+ r = _ref4[1],
1928
+ g = _ref4[2],
1929
+ b = _ref4[3],
1930
+ _ref4$ = _ref4[4],
1931
+ a = _ref4$ === void 0 ? 1 : _ref4$;
1932
+
1933
+ return {
1934
+ type: 'rgb',
1935
+ values: [r, g, b].map(parseRGB$1),
1936
+ alpha: parseAlpha$1(a === null ? 1 : a)
1937
+ };
1938
+ }
1939
+ /**
1940
+ * parse-css-color
1941
+ * @version v0.1.2
1942
+ * @link http://github.com/noeldelgado/parse-css-color/
1943
+ * @license MIT
1944
+ */
1945
+
1946
+
1947
+ var parseCSSColor$1 = function parseCSSColor$1(str) {
1948
+ if (typeof str !== 'string') return null;
1949
+ var hex = hexRe$1.exec(str);
1950
+ if (hex) return getHEX$1(hex[0]);
1951
+ var hsl = hsl4Re$1.exec(str) || hsl3Re$1.exec(str);
1952
+ if (hsl) return getHSL$1(hsl);
1953
+ var rgb = rgb4NumberRe$1.exec(str) || rgb4PercentageRe$1.exec(str) || rgb3NumberRe$1.exec(str) || rgb3PercentageRe$1.exec(str);
1954
+ if (rgb) return getRGB$1(rgb);
1955
+ if (transparentRe$1.exec(str)) return getRGB$1([null, 0, 0, 0, 0]);
1956
+ var cn = colorName[str.toLowerCase()];
1957
+ if (cn) return getRGB$1([null, cn[0], cn[1], cn[2], 1]);
1958
+ return null;
1959
+ };
1960
+
1961
+ function hsl2rgb(hsl) {
1962
+ var h = hsl[0] / 360,
1963
+ s = hsl[1] / 100,
1964
+ l = hsl[2] / 100,
1965
+ t1,
1966
+ t2,
1967
+ t3,
1968
+ rgb,
1969
+ val;
1970
+
1971
+ if (s == 0) {
1972
+ val = l * 255;
1973
+ return [val, val, val];
1974
+ }
1975
+
1976
+ if (l < 0.5) t2 = l * (1 + s);else t2 = l + s - l * s;
1977
+ t1 = 2 * l - t2;
1978
+ rgb = [0, 0, 0];
1979
+
1980
+ for (var i = 0; i < 3; i++) {
1981
+ t3 = h + 1 / 3 * -(i - 1);
1982
+ t3 < 0 && t3++;
1983
+ t3 > 1 && t3--;
1984
+ if (6 * t3 < 1) val = t1 + (t2 - t1) * 6 * t3;else if (2 * t3 < 1) val = t2;else if (3 * t3 < 2) val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;else val = t1;
1985
+ rgb[i] = val * 255;
1986
+ }
1987
+
1988
+ return rgb;
1989
+ }
1990
+
1991
+ var hsl2rgb_1 = hsl2rgb;
1992
+
1993
+ function clamp$2(val, min, max) {
1994
+ return Math.min(Math.max(val, min), max);
1995
+ }
1996
+
1997
+ var clamp_1 = clamp$2;
1998
+ var clamp$1 = clamp_1;
1999
+
2000
+ function componentToHex(c) {
2001
+ var value = Math.round(clamp$1(c, 0, 255));
2002
+ var hex = value.toString(16);
2003
+ return hex.length == 1 ? "0" + hex : hex;
2004
+ }
2005
+
2006
+ function rgb2hex(rgb) {
2007
+ var alpha = rgb.length === 4 ? componentToHex(rgb[3] * 255) : "";
2008
+ return "#" + componentToHex(rgb[0]) + componentToHex(rgb[1]) + componentToHex(rgb[2]) + alpha;
2009
+ }
2010
+
2011
+ var rgb2hex_1 = rgb2hex;
2012
+
2013
+ function rgb2hsl(rgb) {
2014
+ var r = rgb[0] / 255,
2015
+ g = rgb[1] / 255,
2016
+ b = rgb[2] / 255,
2017
+ min = Math.min(r, g, b),
2018
+ max = Math.max(r, g, b),
2019
+ delta = max - min,
2020
+ h,
2021
+ s,
2022
+ l;
2023
+ if (max == min) h = 0;else if (r == max) h = (g - b) / delta;else if (g == max) h = 2 + (b - r) / delta;else if (b == max) h = 4 + (r - g) / delta;
2024
+ h = Math.min(h * 60, 360);
2025
+ if (h < 0) h += 360;
2026
+ l = (min + max) / 2;
2027
+ if (max == min) s = 0;else if (l <= 0.5) s = delta / (max + min);else s = delta / (2 - max - min);
2028
+ return [h, s * 100, l * 100];
2029
+ }
2030
+
2031
+ var rgb2hsl_1 = rgb2hsl;
2032
+ /**
2033
+ * mix-css-color
2034
+ * @version v0.2.0
2035
+ * @link http://github.com/noeldelgado/mix-css-color/
2036
+ * @license MIT
2037
+ */
2038
+
2039
+ function parseColor(color) {
2040
+ var res = parseCSSColor$1(color);
2041
+ if (res === null) return null;
2042
+ if (res.type === 'hsl') res.values = hsl2rgb_1(res.values);
2043
+ return res;
2044
+ }
2045
+ /**
2046
+ * Mix two colors together in variable proportion. Opacity is included in the calculations.
2047
+ * Copyright (c) 2006-2009 Hampton Catlin, Natalie Weizenbaum, and Chris Eppstein
2048
+ * http://sass-lang.com
2049
+ * @see https://github.com/less/less.js/blob/cae5021358a5fca932c32ed071f652403d07def8/lib/less/functions/color.js#L302
2050
+ */
2051
+
2052
+
2053
+ function mix(color1, color2) {
2054
+ var percentage = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 50;
2055
+ var c1 = parseColor(color1);
2056
+ var c2 = parseColor(color2);
2057
+ if (!c1 || !c2) return null;
2058
+ var p = Math.min(Math.max(0, percentage), 100) / 100.0;
2059
+ var w = p * 2 - 1;
2060
+ var a = c1.alpha - c2.alpha;
2061
+ var w1 = ((w * a === -1 ? w : (w + a) / (1 + w * a)) + 1) / 2.0;
2062
+ var w2 = 1 - w1;
2063
+
2064
+ var _c1$values$map = c1.values.map(function (c, i) {
2065
+ return Math.round(c1.values[i] * w1 + c2.values[i] * w2);
2066
+ }),
2067
+ _c1$values$map2 = _slicedToArray(_c1$values$map, 3),
2068
+ r = _c1$values$map2[0],
2069
+ g = _c1$values$map2[1],
2070
+ b = _c1$values$map2[2];
2071
+
2072
+ var alpha = parseFloat((c1.alpha * p + c2.alpha * (1 - p)).toFixed(8));
2073
+ return {
2074
+ hex: rgb2hex_1([r, g, b]),
2075
+ hexa: rgb2hex_1([r, g, b, alpha]),
2076
+ rgba: [r, g, b, alpha],
2077
+ hsla: [].concat(_toConsumableArray$1(rgb2hsl_1([r, g, b]).map(Math.round)), [alpha])
2078
+ };
2079
+ }
2080
+
2081
+ var pattern = /^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/;
2082
+ var hexRe = new RegExp(pattern, 'i');
2083
+ var _float = '-?\\d*(?:\\.\\d+)';
2084
+ var number = "(".concat(_float, "?)");
2085
+ var percentage = "(".concat(_float, "?%)");
2086
+ var numberOrPercentage = "(".concat(_float, "?%?)");
2087
+ var pattern$1 = "^\n hsla?\\(\n \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*,\n \\s*".concat(percentage, "\\s*,\n \\s*").concat(percentage, "\\s*\n (?:,\\s*").concat(numberOrPercentage, "\\s*)?\n \\)\n $\n").replace(/\n|\s/g, '');
2088
+ var hsl3Re = new RegExp(pattern$1);
2089
+ var pattern$2 = "^\n hsla?\\(\n \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*\n \\s+".concat(percentage, "\n \\s+").concat(percentage, "\n \\s*(?:\\s*\\/\\s*").concat(numberOrPercentage, "\\s*)?\n \\)\n $\n").replace(/\n|\s/g, '');
2090
+ var hsl4Re = new RegExp(pattern$2);
2091
+ var pattern$3 = "^\n rgba?\\(\n \\s*".concat(number, "\\s*,\n \\s*").concat(number, "\\s*,\n \\s*").concat(number, "\\s*\n (?:,\\s*").concat(numberOrPercentage, "\\s*)?\n \\)\n $\n").replace(/\n|\s/g, '');
2092
+ var rgb3NumberRe = new RegExp(pattern$3);
2093
+ var pattern$4 = "^\n rgba?\\(\n \\s*".concat(percentage, "\\s*,\n \\s*").concat(percentage, "\\s*,\n \\s*").concat(percentage, "\\s*\n (?:,\\s*").concat(numberOrPercentage, "\\s*)?\n \\)\n $\n").replace(/\n|\s/g, '');
2094
+ var rgb3PercentageRe = new RegExp(pattern$4);
2095
+ var pattern$5 = "^\n rgba?\\(\n \\s*".concat(number, "\n \\s+").concat(number, "\n \\s+").concat(number, "\n \\s*(?:\\s*\\/\\s*").concat(numberOrPercentage, "\\s*)?\n \\)\n$\n").replace(/\n|\s/g, '');
2096
+ var rgb4NumberRe = new RegExp(pattern$5);
2097
+ var pattern$6 = "^\n rgba?\\(\n \\s*".concat(percentage, "\n \\s+").concat(percentage, "\n \\s+").concat(percentage, "\n \\s*(?:\\s*\\/\\s*").concat(numberOrPercentage, "\\s*)?\n \\)\n$\n").replace(/\n|\s/g, '');
2098
+ var rgb4PercentageRe = new RegExp(pattern$6);
2099
+ var pattern$7 = /^transparent$/;
2100
+ var transparentRe = new RegExp(pattern$7, 'i');
2101
+
2102
+ var clamp = function clamp(num, min, max) {
2103
+ return Math.min(Math.max(min, num), max);
2104
+ };
2105
+ /* 500 => 255, -10 => 0, 128 => 128 */
2106
+
2107
+
2108
+ var parseRGB = function parseRGB(num) {
2109
+ var n = num;
2110
+ if (typeof n !== 'number') n = n.endsWith('%') ? parseFloat(n) * 255 / 100 : parseFloat(n);
2111
+ return clamp(Math.round(n), 0, 255);
2112
+ };
2113
+ /* 200 => 100, -100 => 0, 50 => 50 */
2114
+
2115
+
2116
+ var parsePercentage = function parsePercentage(percentage) {
2117
+ return clamp(parseFloat(percentage), 0, 100);
2118
+ };
2119
+ /* '50%' => 5.0, 200 => 1, -10 => 0 */
2120
+
2121
+
2122
+ function parseAlpha(alpha) {
2123
+ var a = alpha;
2124
+ if (typeof a !== 'number') a = a.endsWith('%') ? parseFloat(a) / 100 : parseFloat(a);
2125
+ return clamp(a, 0, 1);
2126
+ }
2127
+
2128
+ function getHEX(hex) {
2129
+ var _hex2Rgb3 = hexRgb(hex, {
2130
+ format: 'array'
2131
+ }),
2132
+ _hex2Rgb4 = _slicedToArray(_hex2Rgb3, 4),
2133
+ r = _hex2Rgb4[0],
2134
+ g = _hex2Rgb4[1],
2135
+ b = _hex2Rgb4[2],
2136
+ a = _hex2Rgb4[3];
2137
+
2138
+ return getRGB([null].concat([r, g, b, a]));
2139
+ }
2140
+
2141
+ function getHSL(_ref5) {
2142
+ var _ref6 = _slicedToArray(_ref5, 5),
2143
+ h = _ref6[1],
2144
+ s = _ref6[2],
2145
+ l = _ref6[3],
2146
+ _ref6$ = _ref6[4],
2147
+ a = _ref6$ === void 0 ? 1 : _ref6$;
2148
+
2149
+ var hh = h;
2150
+
2151
+ if (hh.endsWith('turn')) {
2152
+ hh = parseFloat(hh) * 360 / 1;
2153
+ } else if (hh.endsWith('rad')) {
2154
+ hh = Math.round(parseFloat(hh) * 180 / Math.PI);
2155
+ } else {
2156
+ hh = parseFloat(hh);
2157
+ }
2158
+
2159
+ return {
2160
+ type: 'hsl',
2161
+ values: [hh, parsePercentage(s), parsePercentage(l)],
2162
+ alpha: parseAlpha(a === null ? 1 : a)
2163
+ };
2164
+ }
2165
+
2166
+ function getRGB(_ref7) {
2167
+ var _ref8 = _slicedToArray(_ref7, 5),
2168
+ r = _ref8[1],
2169
+ g = _ref8[2],
2170
+ b = _ref8[3],
2171
+ _ref8$ = _ref8[4],
2172
+ a = _ref8$ === void 0 ? 1 : _ref8$;
2173
+
2174
+ return {
2175
+ type: 'rgb',
2176
+ values: [r, g, b].map(parseRGB),
2177
+ alpha: parseAlpha(a === null ? 1 : a)
2178
+ };
2179
+ }
2180
+ /**
2181
+ * parse-css-color
2182
+ * @version v0.2.0
2183
+ * @link http://github.com/noeldelgado/parse-css-color/
2184
+ * @license MIT
2185
+ */
2186
+
2187
+
2188
+ var parseCSSColor = function parseCSSColor(str) {
2189
+ if (typeof str !== 'string') return null;
2190
+ var hex = hexRe.exec(str);
2191
+ if (hex) return getHEX(hex[0]);
2192
+ var hsl = hsl4Re.exec(str) || hsl3Re.exec(str);
2193
+ if (hsl) return getHSL(hsl);
2194
+ var rgb = rgb4NumberRe.exec(str) || rgb4PercentageRe.exec(str) || rgb3NumberRe.exec(str) || rgb3PercentageRe.exec(str);
2195
+ if (rgb) return getRGB(rgb);
2196
+ if (transparentRe.exec(str)) return getRGB([null, 0, 0, 0, 0]);
2197
+ var cn = colorName[str.toLowerCase()];
2198
+ if (cn) return getRGB([null, cn[0], cn[1], cn[2], 1]);
2199
+ return null;
2200
+ };
2201
+ /**
2202
+ * values.js - Get the tints and shades of a color
2203
+ * @version v2.1.1
2204
+ * @link http://noeldelgado.github.io/values.js/
2205
+ * @license MIT
2206
+ */
2207
+
2208
+
2209
+ var defaultNumberParam = function defaultNumberParam(v, d) {
2210
+ return v === null || isNaN(v) || typeof v === 'string' ? d : v;
2211
+ };
2212
+
2213
+ var Values = /*#__PURE__*/function () {
2214
+ function Values() {
2215
+ var color = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '#000';
2216
+ var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'base';
2217
+ var weight = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
2218
+
2219
+ _classCallCheck$1(this, Values);
2220
+
2221
+ var _ref9 = [[0, 0, 0], 1, type, weight];
2222
+ this.rgb = _ref9[0];
2223
+ this.alpha = _ref9[1];
2224
+ this.type = _ref9[2];
2225
+ this.weight = _ref9[3];
2226
+ var c = color === null ? '#000' : color;
2227
+ if (typeof c !== 'string') throw new TypeError("Input should be a string: ".concat(c));
2228
+ var parsed = parseCSSColor(c);
2229
+ if (!parsed) throw new Error("Unable to parse color from string: ".concat(c));
2230
+ return this["_setFrom".concat(parsed.type.toUpperCase())]([].concat(_toConsumableArray$1(parsed.values), [parsed.alpha]));
2231
+ }
2232
+
2233
+ _createClass$1(Values, [{
2234
+ key: "hex",
2235
+ get: function get() {
2236
+ return this.hexString().replace(/^#/, '');
2237
+ }
2238
+ }, {
2239
+ key: "setColor",
2240
+ value: function setColor(color) {
2241
+ var parsed = parseCSSColor(color);
2242
+ if (!parsed) return null;
2243
+ return this["_setFrom".concat(parsed.type.toUpperCase())]([].concat(_toConsumableArray$1(parsed.values), [parsed.alpha]));
2244
+ }
2245
+ }, {
2246
+ key: "tint",
2247
+ value: function tint(weight) {
2248
+ var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultNumberParam(weight, 50);
2249
+ return new Values("rgb(".concat(mix('#fff', this.rgbString(), w).rgba, ")"), 'tint', w);
2250
+ }
2251
+ }, {
2252
+ key: "shade",
2253
+ value: function shade(weight) {
2254
+ var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultNumberParam(weight, 50);
2255
+ return new Values("rgb(".concat(mix('#000', this.rgbString(), w).rgba, ")"), 'shade', w);
2256
+ }
2257
+ }, {
2258
+ key: "tints",
2259
+ value: function tints(weight) {
2260
+ var _this = this;
2261
+
2262
+ var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultNumberParam(weight, 10);
2263
+ return Array.from({
2264
+ length: 100 / w
2265
+ }, function (_, i) {
2266
+ return _this.tint((i + 1) * w);
2267
+ });
2268
+ }
2269
+ }, {
2270
+ key: "shades",
2271
+ value: function shades(weight) {
2272
+ var _this2 = this;
2273
+
2274
+ var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultNumberParam(weight, 10);
2275
+ return Array.from({
2276
+ length: 100 / w
2277
+ }, function (_, i) {
2278
+ return _this2.shade((i + 1) * w);
2279
+ });
2280
+ }
2281
+ }, {
2282
+ key: "all",
2283
+ value: function all() {
2284
+ var weight = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 10;
2285
+ return [].concat(_toConsumableArray$1(this.tints(weight).reverse()), [Object.assign(this)], _toConsumableArray$1(this.shades(weight)));
2286
+ }
2287
+ }, {
2288
+ key: "hexString",
2289
+ value: function hexString() {
2290
+ return rgb2hex_1(this.alpha >= 1 ? this.rgb : [].concat(_toConsumableArray$1(this.rgb), [this.alpha]));
2291
+ }
2292
+ }, {
2293
+ key: "rgbString",
2294
+ value: function rgbString() {
2295
+ var channels = (this.alpha >= 1 ? this.rgb : [].concat(_toConsumableArray$1(this.rgb), [this.alpha])).join(', ');
2296
+ return "".concat(this.alpha >= 1 ? 'rgb' : 'rgba', "(").concat(channels, ")");
2297
+ }
2298
+ }, {
2299
+ key: "getBrightness",
2300
+ value: function getBrightness() {
2301
+ return Math.round(this.rgb.reduce(function (a, b) {
2302
+ return a + b;
2303
+ }) / (255 * 3) * 100);
2304
+ }
2305
+ }, {
2306
+ key: "_setFromRGB",
2307
+ value: function _setFromRGB(_ref10) {
2308
+ var _ref11 = _slicedToArray(_ref10, 4),
2309
+ r = _ref11[0],
2310
+ g = _ref11[1],
2311
+ b = _ref11[2],
2312
+ a = _ref11[3];
2313
+
2314
+ var _ref12 = [[r, g, b], a];
2315
+ this.rgb = _ref12[0];
2316
+ this.alpha = _ref12[1];
2317
+ return this;
2318
+ }
2319
+ }, {
2320
+ key: "_setFromHSL",
2321
+ value: function _setFromHSL(_ref13) {
2322
+ var _ref14 = _slicedToArray(_ref13, 4),
2323
+ h = _ref14[0],
2324
+ s = _ref14[1],
2325
+ l = _ref14[2],
2326
+ a = _ref14[3];
2327
+
2328
+ var _ref15 = [hsl2rgb_1([h, s, l]).map(Math.round), a];
2329
+ this.rgb = _ref15[0];
2330
+ this.alpha = _ref15[1];
2331
+ return this;
2332
+ }
2333
+ }]);
2334
+
2335
+ return Values;
2336
+ }();
2337
+
2338
+ Values.VERSION = 'v2.1.1';
2339
+ var Values$1 = Values;
2340
+ var STEPS = [5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95];
2341
+
2342
+ var createColorScales = function createColorScales(base) {
2343
+ var colorValues = new Values$1(base);
2344
+ return _objectSpread2(_objectSpread2({}, STEPS.reduce(function (acc, step) {
2345
+ var _objectSpread2$1;
2346
+
2347
+ return _objectSpread2(_objectSpread2({}, acc), {}, (_objectSpread2$1 = {}, _defineProperty$2(_objectSpread2$1, "lighten".concat(step), colorValues.tint(step).hexString()), _defineProperty$2(_objectSpread2$1, "darken".concat(step), colorValues.shade(step).hexString()), _objectSpread2$1));
2348
+ }, {})), {}, {
2349
+ base: colorValues.hexString()
2350
+ });
2351
+ };
2352
+
2353
+ var BASE_COLORS = {
2354
+ antiFlashWhite: '#f1f2f3',
1639
2355
  blue: '#1dbeee',
1640
- blueDark30: '#1485a7',
1641
- blueDark75: '#07303c',
1642
- blueLight30: '#61d2f3',
1643
- blueLight75: '#c7effb',
1644
- blueLight90: '#e8f9fd',
1645
- dodgerBlue: '#4568fb',
1646
- dodgerBlueDark30: '#3049b0',
1647
- dodgerBlueLight30: '#7d95fc',
1648
- dodgerBlueLight75: '#d1d9fe',
1649
- dodgerBlueLight90: '#ecf0ff',
2356
+ blue1: '#5a68e2',
2357
+ nightBlue: '#353957',
2358
+ darkBlue: '#25006e',
2359
+ maasstrichtBlue: '#001f23',
2360
+ ultramarineBlue: '#4568fb',
2361
+ aliceBlue: '#ecf0ff',
2362
+ jordyBlue: '#92abfc',
2363
+ cornflowerBlue: '#5d80f0',
2364
+ paua: '#130066',
1650
2365
  green: '#01b39c',
1651
- greenDark15: '#019885',
1652
- greenDark30: '#017d6d',
1653
- greenDark75: '#002d27',
1654
- greenLight30: '#4dcaba',
1655
- greenLight75: '#c0ece6',
1656
- greenLight90: '#e6f7f5',
2366
+ emerald: '#5ace7d',
2367
+ pineGreen: '#017d6d',
2368
+ honeydew: '#f0fef4',
1657
2369
  grey: '#a3a6ac',
1658
- greyDark15: '#8b8d92',
1659
- greyDark30: '#727478',
1660
- greyDark45: '#5a5b5f',
1661
- greyDark60: '#414245',
1662
- greyDark75: '#292a2b',
1663
- greyLight45: '#ccced1',
1664
- greyLight60: '#dadbde',
1665
- greyLight75: '#e8e9ea',
1666
- greyLight85: '#f1f2f3',
1667
- greyLight90: '#f6f6f7',
1668
- greyLight95: '#fafbfb',
2370
+ currant: '#48000a',
2371
+ sonicSilver: '#737479',
1669
2372
  grotesqueGreen: '#6af293',
1670
- grotesqueGreenDark45: '#3a8551',
1671
- grotesqueGreenLight60: '#c3fad4',
1672
- grotesqueGreenLight75: '#dafce4',
1673
- grotesqueGreenLight90: '#f0fef4',
1674
- orange: '#ffa234',
1675
- orangeDark15: '#d98a2c',
1676
- orangeDark30: '#b37124',
1677
- orangeDark75: '#40290d',
1678
- orangeLight30: '#ffbe71',
1679
- orangeLight75: '#ffe8cc',
1680
- orangeLight90: '#fff6eb',
2373
+ mellowApricot: '#ffbe71',
2374
+ deepSaffron: '#ffa234',
1681
2375
  pink: '#fe56aa',
1682
- pinkDark15: '#cf4991',
1683
- pinkDark30: '#b23c77',
1684
- pinkDark45: '#8c2f5e',
1685
- pinkDark75: '#40162b',
1686
- pinkLight30: '#fe89c4',
1687
- pinkLight45: '#fea2d0',
1688
- pinkLight75: '#fcd5ea',
1689
- pinkLight90: '#ffeef7',
2376
+ hitPink: '#ffad79',
2377
+ apple: '#e3602a',
1690
2378
  purple: '#be83cf',
1691
- purpleDark15: '#a26fb0',
1692
- red: '#de350b',
1693
- redDark15: '#bd2d09',
1694
- redDark30: '#9b2508',
1695
- redDark75: '#380d03',
1696
- redLight15: '#e35330',
1697
- redLight30: '#e87254',
1698
- redLight60: '#f2ae9d',
1699
- redLight75: '#f7cdc2',
1700
- redLight90: '#fcebe7',
2379
+ scarletGum: '#401960',
2380
+ vodka: '#b5c3fd',
2381
+ peach: '#f8ac7d',
2382
+ pastelRed: '#f46363',
2383
+ vermilion: '#de350b',
2384
+ linen: '#fcebe7',
1701
2385
  smalt: '#003580',
1702
- smaltDark75: '#000d20',
1703
- smaltLight30: '#4d72a6',
1704
- smaltLight45: '#7390b9',
1705
- smaltLight75: '#bfcddf',
1706
- smaltLight90: '#e6ebf2',
1707
2386
  violet: '#7622d7',
1708
- violetDark15: '#641db7',
1709
- violetDark30: '#531897',
1710
- violetDark45: '#411376',
1711
- violetDark75: '#1e0936',
1712
- violetLight30: '#9f64e3',
1713
- violetLight60: '#c8a7ef',
1714
- violetLight75: '#ddc8f5',
1715
- violetLight90: '#f1e9fb',
1716
- white: '#ffffff',
2387
+ violet1: '#8505a2',
2388
+ mauve: '#c38cee',
1717
2389
  yellow: '#fadb14',
1718
- yellowDark15: '#d5ba11',
1719
- yellowDark75: '#3f3705',
1720
- yellowLight60: '#fdf1a1',
1721
- yellowLight90: '#fffbe8'
2390
+ seashell: '#ebf4ff',
2391
+ gold: '#ffd500'
1722
2392
  };
2393
+ var colorScales = Object.entries(BASE_COLORS).reduce(function (acc, _ref16) {
2394
+ var _ref17 = _slicedToArray(_ref16, 2),
2395
+ key = _ref17[0],
2396
+ value = _ref17[1];
2397
+
2398
+ return _objectSpread2(_objectSpread2({}, acc), {}, _defineProperty$2({}, key, createColorScales(value)));
2399
+ }, {});
2400
+ var blue$1 = colorScales.blue,
2401
+ ultramarineBlue$1 = colorScales.ultramarineBlue,
2402
+ green$1 = colorScales.green,
2403
+ grey$2 = colorScales.grey,
2404
+ grotesqueGreen = colorScales.grotesqueGreen,
2405
+ deepSaffron$2 = colorScales.deepSaffron,
2406
+ pink$1 = colorScales.pink,
2407
+ purple$1 = colorScales.purple,
2408
+ vermilion$2 = colorScales.vermilion,
2409
+ smalt = colorScales.smalt,
2410
+ violet$1 = colorScales.violet,
2411
+ yellow$1 = colorScales.yellow;
2412
+ var palette$6 = {
2413
+ black: '#000000',
2414
+ white: '#ffffff',
2415
+ blue: blue$1.base,
2416
+ blueDark30: blue$1.darken30,
2417
+ blueDark75: blue$1.darken75,
2418
+ blueLight30: blue$1.lighten30,
2419
+ blueLight75: blue$1.lighten75,
2420
+ blueLight90: blue$1.lighten90,
2421
+ dodgerBlue: ultramarineBlue$1.base,
2422
+ dodgerBlueDark30: ultramarineBlue$1.darken30,
2423
+ dodgerBlueLight30: ultramarineBlue$1.lighten30,
2424
+ dodgerBlueLight75: ultramarineBlue$1.lighten75,
2425
+ dodgerBlueLight90: ultramarineBlue$1.lighten90,
2426
+ green: green$1.base,
2427
+ greenDark15: green$1.darken15,
2428
+ greenDark30: green$1.darken30,
2429
+ greenDark75: green$1.darken75,
2430
+ greenLight30: green$1.lighten30,
2431
+ greenLight75: green$1.lighten75,
2432
+ greenLight90: green$1.lighten90,
2433
+ grey: grey$2.base,
2434
+ greyDark15: grey$2.darken15,
2435
+ greyDark30: grey$2.darken30,
2436
+ greyDark45: grey$2.darken45,
2437
+ greyDark60: grey$2.darken60,
2438
+ greyDark75: grey$2.darken75,
2439
+ greyLight45: grey$2.lighten45,
2440
+ greyLight60: grey$2.lighten60,
2441
+ greyLight75: grey$2.lighten75,
2442
+ greyLight85: grey$2.lighten85,
2443
+ greyLight90: grey$2.lighten90,
2444
+ greyLight95: grey$2.lighten95,
2445
+ grotesqueGreen: grotesqueGreen.base,
2446
+ grotesqueGreenDark45: grotesqueGreen.darken45,
2447
+ grotesqueGreenLight60: grotesqueGreen.lighten60,
2448
+ grotesqueGreenLight75: grotesqueGreen.lighten75,
2449
+ grotesqueGreenLight90: grotesqueGreen.lighten90,
2450
+ orange: deepSaffron$2.base,
2451
+ orangeDark15: deepSaffron$2.darken15,
2452
+ orangeDark30: deepSaffron$2.darken30,
2453
+ orangeDark75: deepSaffron$2.darken75,
2454
+ orangeLight30: deepSaffron$2.lighten30,
2455
+ orangeLight75: deepSaffron$2.lighten75,
2456
+ orangeLight90: deepSaffron$2.lighten90,
2457
+ pink: pink$1.base,
2458
+ pinkDark15: pink$1.darken15,
2459
+ pinkDark30: pink$1.darken30,
2460
+ pinkDark45: pink$1.darken45,
2461
+ pinkDark75: pink$1.darken75,
2462
+ pinkLight30: pink$1.lighten30,
2463
+ pinkLight45: pink$1.lighten45,
2464
+ pinkLight75: pink$1.lighten75,
2465
+ pinkLight90: pink$1.lighten90,
2466
+ purple: purple$1.base,
2467
+ purpleDark15: purple$1.darken15,
2468
+ red: vermilion$2.base,
2469
+ redDark15: vermilion$2.darken15,
2470
+ redDark30: vermilion$2.darken30,
2471
+ redDark75: vermilion$2.darken75,
2472
+ redLight15: vermilion$2.lighten15,
2473
+ redLight30: vermilion$2.lighten30,
2474
+ redLight60: vermilion$2.lighten60,
2475
+ redLight75: vermilion$2.lighten75,
2476
+ redLight90: vermilion$2.lighten90,
2477
+ smalt: smalt.base,
2478
+ smaltDark75: smalt.darken75,
2479
+ smaltLight30: smalt.lighten30,
2480
+ smaltLight45: smalt.lighten45,
2481
+ smaltLight75: smalt.lighten75,
2482
+ smaltLight90: smalt.lighten90,
2483
+ violet: violet$1.base,
2484
+ violetDark15: violet$1.darken15,
2485
+ violetDark30: violet$1.darken30,
2486
+ violetDark45: violet$1.darken45,
2487
+ violetDark75: violet$1.darken75,
2488
+ violetLight30: violet$1.lighten30,
2489
+ violetLight60: violet$1.lighten60,
2490
+ violetLight75: violet$1.lighten75,
2491
+ violetLight90: violet$1.lighten90,
2492
+ yellow: yellow$1.base,
2493
+ yellowDark15: yellow$1.darken15,
2494
+ yellowDark75: yellow$1.darken75,
2495
+ yellowLight60: yellow$1.lighten60,
2496
+ yellowLight90: yellow$1.lighten90
2497
+ };
2498
+ var maasstrichtBlue = colorScales.maasstrichtBlue,
2499
+ grey$1 = colorScales.grey,
2500
+ pastelRed$1 = colorScales.pastelRed,
2501
+ mellowApricot = colorScales.mellowApricot,
2502
+ emerald$1 = colorScales.emerald,
2503
+ vodka = colorScales.vodka,
2504
+ vermilion$1 = colorScales.vermilion,
2505
+ deepSaffron$1 = colorScales.deepSaffron,
2506
+ pineGreen = colorScales.pineGreen,
2507
+ ultramarineBlue = colorScales.ultramarineBlue,
2508
+ sonicSilver = colorScales.sonicSilver,
2509
+ linen$1 = colorScales.linen,
2510
+ seashell$1 = colorScales.seashell,
2511
+ honeydew$1 = colorScales.honeydew,
2512
+ aliceBlue = colorScales.aliceBlue,
2513
+ antiFlashWhite = colorScales.antiFlashWhite,
2514
+ apple$1 = colorScales.apple;
2515
+ var palette$5 = {
2516
+ black: '#000000',
2517
+ white: '#ffffff',
2518
+ greyLight95: grey$1.lighten95,
2519
+ greyLight90: grey$1.lighten90,
2520
+ greyLight75: grey$1.lighten75,
2521
+ greyLight45: grey$1.lighten45,
2522
+ greyLight30: grey$1.lighten30,
2523
+ grey: grey$1.base,
2524
+ maasstrichtBlueLight90: maasstrichtBlue.lighten90,
2525
+ maasstrichtBlueLight80: maasstrichtBlue.lighten80,
2526
+ maasstrichtBlueLight50: maasstrichtBlue.lighten50,
2527
+ maasstrichtBlueLight30: maasstrichtBlue.lighten30,
2528
+ maasstrichtBlue: maasstrichtBlue.base,
2529
+ pastelRed: pastelRed$1.base,
2530
+ mellowApricot: mellowApricot.base,
2531
+ emerald: emerald$1.base,
2532
+ vodka: vodka.base,
2533
+ vermilion: vermilion$1.base,
2534
+ deepSaffron: deepSaffron$1.base,
2535
+ pineGreen: pineGreen.base,
2536
+ ultramarineBlue: ultramarineBlue.base,
2537
+ sonicSilver: sonicSilver.base,
2538
+ linen: linen$1.base,
2539
+ seashell: seashell$1.base,
2540
+ honeydew: honeydew$1.base,
2541
+ aliceBlue: aliceBlue.base,
2542
+ antiFlashWhite: antiFlashWhite.base,
2543
+ apple: apple$1.base
2544
+ };
2545
+ var emerald = colorScales.emerald,
2546
+ blue1 = colorScales.blue1,
2547
+ nightBlue = colorScales.nightBlue,
2548
+ darkBlue = colorScales.darkBlue,
2549
+ grey$3 = colorScales.grey,
2550
+ deepSaffron = colorScales.deepSaffron,
2551
+ peach = colorScales.peach,
2552
+ vermilion = colorScales.vermilion,
2553
+ pastelRed = colorScales.pastelRed,
2554
+ mauve = colorScales.mauve;
2555
+
2556
+ _objectSpread2(_objectSpread2({}, palette$5), {}, {
2557
+ nightBlue: nightBlue.base,
2558
+ blueLight60: blue1.lighten60,
2559
+ blue: blue1.base,
2560
+ darkBlue: darkBlue.base,
2561
+ darkBlueDark15: darkBlue.darken15,
2562
+ green: emerald.base,
2563
+ greyDark45: grey$3.darken45,
2564
+ greyDark75: grey$3.darken75,
2565
+ greyLight30: grey$3.lighten30,
2566
+ greyLight45: grey$3.lighten45,
2567
+ greyLight90: grey$3.lighten90,
2568
+ orangeLight30: deepSaffron.lighten30,
2569
+ peach: peach.base,
2570
+ peachLight75: peach.lighten75,
2571
+ red: vermilion.base,
2572
+ pastelRed: pastelRed.base,
2573
+ mauve: mauve.base
2574
+ });
2575
+
2576
+ var apple = colorScales.apple,
2577
+ currant = colorScales.currant;
2578
+
2579
+ _objectSpread2(_objectSpread2({}, palette$5), {}, {
2580
+ apple: apple.base,
2581
+ currant: currant.base
2582
+ });
2583
+
2584
+ var scarletGum = colorScales.scarletGum,
2585
+ violet1 = colorScales.violet1;
2586
+
2587
+ _objectSpread2(_objectSpread2({}, palette$5), {}, {
2588
+ scarletGumLight30: scarletGum.lighten30,
2589
+ scarletGumLight50: scarletGum.lighten50,
2590
+ scarletGumLight80: scarletGum.lighten80,
2591
+ scarletGumLight90: scarletGum.lighten90,
2592
+ scarletGum: scarletGum.base,
2593
+ violetLight30: violet1.lighten30,
2594
+ violetLight50: violet1.lighten50,
2595
+ violetLight80: violet1.lighten80,
2596
+ violetLight90: violet1.lighten90,
2597
+ violet: violet1.base
2598
+ });
2599
+
2600
+ var jordyBlue = colorScales.jordyBlue,
2601
+ cornflowerBlue = colorScales.cornflowerBlue,
2602
+ paua = colorScales.paua;
2603
+
2604
+ _objectSpread2(_objectSpread2({}, palette$5), {}, {
2605
+ jordyBlueLight30: jordyBlue.lighten30,
2606
+ jordyBlueLight50: jordyBlue.lighten50,
2607
+ jordyBlueLight70: jordyBlue.lighten70,
2608
+ jordyBlueLight90: jordyBlue.lighten90,
2609
+ jordyBlue: jordyBlue.base,
2610
+ cornflowerBlue: cornflowerBlue.base,
2611
+ paua: paua.base
2612
+ });
2613
+
2614
+ var gold$1 = colorScales.gold;
2615
+
2616
+ _objectSpread2(_objectSpread2({}, palette$5), {}, {
2617
+ goldLight20: gold$1.lighten20,
2618
+ goldLight50: gold$1.lighten50,
2619
+ goldLight70: gold$1.lighten70,
2620
+ goldLight90: gold$1.lighten90,
2621
+ gold: gold$1.base
2622
+ });
1723
2623
 
1724
2624
  var systemPalette = {
1725
- primary: palette.violet,
1726
- primaryLight: palette.violetLight60,
1727
- primaryDark: palette.purpleDark15,
1728
- primaryBackground: palette.violetLight90,
1729
- secondary: palette.dodgerBlue,
1730
- secondaryLight: palette.dodgerBlueLight75,
1731
- info: palette.dodgerBlue,
1732
- infoMediumLight: palette.blue,
1733
- infoLight: palette.dodgerBlueLight75,
1734
- infoBackground: palette.dodgerBlueLight90,
1735
- success: palette.green,
1736
- successDark: palette.greenDark30,
1737
- successBackground: palette.grotesqueGreenLight90,
1738
- danger: palette.red,
1739
- dangerLight: palette.redLight60,
1740
- dangerBackground: palette.redLight90,
1741
- warning: palette.orange,
1742
- warningDark: palette.orangeDark15,
1743
- warningBackground: palette.orangeLight90,
1744
- platformBackground: palette.white,
1745
- backgroundLight: palette.greyLight95,
1746
- backgroundDark: palette.greyDark75,
1747
- text: palette.greyDark75,
1748
- disabledText: palette.greyDark15,
1749
- disabledLightText: palette.greyLight45,
1750
- invertedText: palette.white,
1751
- outline: palette.greyLight60,
1752
- archived: palette.greyLight45,
1753
- black: palette.black,
1754
- inactiveBackground: palette.greyDark30
2625
+ primary: palette$6.violet,
2626
+ primaryLight: palette$6.violetLight60,
2627
+ primaryDark: palette$6.purpleDark15,
2628
+ primaryBackground: palette$6.violetLight90,
2629
+ secondary: palette$6.dodgerBlue,
2630
+ secondaryLight: palette$6.dodgerBlueLight75,
2631
+ info: palette$6.dodgerBlue,
2632
+ infoMediumLight: palette$5.vodka,
2633
+ infoLight: palette$6.dodgerBlueLight75,
2634
+ infoBackground: palette$6.dodgerBlueLight90,
2635
+ success: palette$6.green,
2636
+ successLight: palette$5.emerald,
2637
+ successDark: palette$6.greenDark30,
2638
+ successBackground: palette$6.grotesqueGreenLight90,
2639
+ danger: palette$6.red,
2640
+ dangerMediumLight: palette$5.apple,
2641
+ dangerLight: palette$6.redLight60,
2642
+ dangerBackground: palette$6.redLight90,
2643
+ warning: palette$6.orange,
2644
+ warningLight: palette$5.mellowApricot,
2645
+ warningDark: palette$6.orangeDark15,
2646
+ warningBackground: palette$6.orangeLight90,
2647
+ platformBackground: palette$6.white,
2648
+ backgroundLight: palette$6.greyLight95,
2649
+ backgroundDark: palette$6.greyDark75,
2650
+ text: palette$6.greyDark75,
2651
+ disabledText: palette$6.greyDark15,
2652
+ disabledLightText: palette$6.greyLight45,
2653
+ invertedText: palette$6.white,
2654
+ outline: palette$6.greyLight60,
2655
+ archivedDark: palette$5.greyLight30,
2656
+ archived: palette$6.greyLight45,
2657
+ black: palette$6.black,
2658
+ inactiveBackground: palette$6.greyDark30,
2659
+ shadow: palette$6.greyLight60
1755
2660
  };
1756
2661
 
1757
2662
  var BASE_WIDTH = 390; // Based on iPhone 13's viewport size
@@ -1828,6 +2733,7 @@ var getSpace = function getSpace(baseSpace) {
1828
2733
  xxsmall: scale(baseSpace * 0.25),
1829
2734
  xsmall: scale(baseSpace * 0.5),
1830
2735
  small: scale(baseSpace),
2736
+ smallMedium: scale(baseSpace) * 1.5,
1831
2737
  medium: scale(baseSpace * 2),
1832
2738
  large: scale(baseSpace * 3),
1833
2739
  xlarge: scale(baseSpace * 4),
@@ -2065,6 +2971,8 @@ var getButtonTheme = function getButtonTheme(theme) {
2065
2971
  pressedPrimary: theme.colors.primaryLight,
2066
2972
  secondary: theme.colors.secondary,
2067
2973
  pressedSecondary: theme.colors.secondaryLight,
2974
+ danger: theme.colors.danger,
2975
+ pressedDanger: theme.colors.dangerLight,
2068
2976
  defaultText: theme.colors.text,
2069
2977
  disabledText: theme.colors.disabledLightText,
2070
2978
  disabledBorder: theme.colors.disabledLightText,
@@ -2085,10 +2993,17 @@ var getButtonTheme = function getButtonTheme(theme) {
2085
2993
 
2086
2994
  var getCardTheme = function getCardTheme(theme) {
2087
2995
  var colors = {
2088
- dataCardIndicator: theme.colors.primaryDark
2996
+ dataCardIndicator: theme.colors.primaryDark,
2997
+ indicator: {
2998
+ archived: theme.colors.archivedDark,
2999
+ info: theme.colors.infoMediumLight,
3000
+ success: theme.colors.successLight,
3001
+ warning: theme.colors.warningLight,
3002
+ danger: theme.colors.dangerMediumLight
3003
+ }
2089
3004
  };
2090
3005
  var radii = {
2091
- "default": 12
3006
+ "default": theme.radii.large
2092
3007
  };
2093
3008
  return {
2094
3009
  colors: colors,
@@ -2544,11 +3459,40 @@ var getToastTheme = function getToastTheme(theme) {
2544
3459
  };
2545
3460
  };
2546
3461
 
3462
+ var getToolbarTheme = function getToolbarTheme(theme) {
3463
+ var colors = {
3464
+ background: theme.colors.platformBackground,
3465
+ border: theme.colors.outline,
3466
+ primary: theme.colors.primary,
3467
+ info: theme.colors.info,
3468
+ success: theme.colors.success,
3469
+ danger: theme.colors.warning,
3470
+ error: theme.colors.danger,
3471
+ disabled: theme.colors.disabledText
3472
+ };
3473
+ var space = {
3474
+ verticalPadding: theme.space.small,
3475
+ horizontalPadding: theme.space.smallMedium
3476
+ };
3477
+ var borderWidths = {
3478
+ "default": theme.borderWidths.base
3479
+ };
3480
+ return {
3481
+ colors: colors,
3482
+ space: space,
3483
+ borderWidths: borderWidths
3484
+ };
3485
+ };
3486
+
2547
3487
  var getTypographyTheme = function getTypographyTheme(theme) {
2548
3488
  var colors = {
2549
3489
  body: theme.colors.text,
2550
3490
  subdued: theme.colors.disabledText,
2551
- primary: theme.colors.primary
3491
+ primary: theme.colors.primary,
3492
+ info: theme.colors.info,
3493
+ danger: theme.colors.danger,
3494
+ warning: theme.colors.warning,
3495
+ success: theme.colors.success
2552
3496
  };
2553
3497
  var fonts = {
2554
3498
  light: theme.fonts.light,
@@ -2575,6 +3519,53 @@ var getTypographyTheme = function getTypographyTheme(theme) {
2575
3519
  };
2576
3520
  };
2577
3521
 
3522
+ var getListTheme = function getListTheme(theme) {
3523
+ var colors = {
3524
+ checkedListItemContainerBackground: theme.colors.primaryBackground,
3525
+ listItemContainerBackground: theme.colors.platformBackground,
3526
+ leadingStatus: {
3527
+ danger: theme.colors.danger,
3528
+ info: theme.colors.infoLight,
3529
+ success: theme.colors.successDark,
3530
+ warning: theme.colors.warningLight,
3531
+ archived: theme.colors.archived
3532
+ }
3533
+ };
3534
+ var space = {
3535
+ listItemContainerPadding: theme.space.medium,
3536
+ leadingStatusMarginRight: theme.space.small,
3537
+ prefixContainerMarginRight: theme.space.small,
3538
+ suffixContainerMarginLeft: theme.space.small
3539
+ };
3540
+ var radii = {
3541
+ card: theme.radii.medium,
3542
+ cardShadow: theme.radii.base,
3543
+ leadingStatus: theme.radii.rounded
3544
+ };
3545
+ var offsets = {
3546
+ cardShadow: {
3547
+ width: 0,
3548
+ height: 2
3549
+ }
3550
+ };
3551
+ var widths = {
3552
+ leadingStatus: 8
3553
+ };
3554
+ var opacity = {
3555
+ disabled: 0.38,
3556
+ enabled: 1,
3557
+ cardShadow: 1
3558
+ };
3559
+ return {
3560
+ colors: colors,
3561
+ space: space,
3562
+ radii: radii,
3563
+ offsets: offsets,
3564
+ widths: widths,
3565
+ opacity: opacity
3566
+ };
3567
+ };
3568
+
2578
3569
  var getTheme = function getTheme() {
2579
3570
  var scale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : scale$1;
2580
3571
  var systemPallete = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : systemPalette;
@@ -2604,7 +3595,9 @@ var getTheme = function getTheme() {
2604
3595
  tag: getTagTheme(globalTheme),
2605
3596
  textInput: getTextInputTheme(globalTheme),
2606
3597
  toast: getToastTheme(globalTheme),
2607
- typography: getTypographyTheme(globalTheme)
3598
+ toolbar: getToolbarTheme(globalTheme),
3599
+ typography: getTypographyTheme(globalTheme),
3600
+ list: getListTheme(globalTheme)
2608
3601
  }
2609
3602
  });
2610
3603
  };
@@ -6496,7 +7489,7 @@ var getDisplayName = function getDisplayName(primitive) {
6496
7489
 
6497
7490
  var styled = createStyled(ReactNative.StyleSheet);
6498
7491
  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'];
6499
- var index$2 = components.reduce(function (acc, comp) {
7492
+ var index$5 = components.reduce(function (acc, comp) {
6500
7493
  return Object.defineProperty(acc, comp, {
6501
7494
  enumerable: true,
6502
7495
  configurable: false,
@@ -14435,7 +15428,7 @@ var COLOR_INTENTS = {
14435
15428
  warning: 'warning',
14436
15429
  'disabled-text': 'disabledText'
14437
15430
  };
14438
- var StyledHeroIcon = index$2(HeroIcon)(function (_ref) {
15431
+ var StyledHeroIcon = index$5(HeroIcon)(function (_ref) {
14439
15432
  var themeIntent = _ref.themeIntent,
14440
15433
  themeSize = _ref.themeSize,
14441
15434
  theme = _ref.theme;
@@ -14467,7 +15460,7 @@ var FONTWEIGHT_MAP = {
14467
15460
  regular: 'regular',
14468
15461
  'semi-bold': 'semiBold'
14469
15462
  };
14470
- var StyledText$3 = index$2(ReactNative.Text)(function (_ref) {
15463
+ var StyledText$3 = index$5(ReactNative.Text)(function (_ref) {
14471
15464
  var themeFontSize = _ref.themeFontSize,
14472
15465
  themeFontWeight = _ref.themeFontWeight,
14473
15466
  themeIntent = _ref.themeIntent,
@@ -14483,7 +15476,7 @@ var StyledText$3 = index$2(ReactNative.Text)(function (_ref) {
14483
15476
  });
14484
15477
  });
14485
15478
 
14486
- var _excluded$c = ["children", "fontSize", "fontWeight", "intent"];
15479
+ var _excluded$d = ["children", "fontSize", "fontWeight", "intent"];
14487
15480
 
14488
15481
  var Text = function Text(_ref) {
14489
15482
  var children = _ref.children,
@@ -14493,7 +15486,7 @@ var Text = function Text(_ref) {
14493
15486
  fontWeight = _ref$fontWeight === void 0 ? 'regular' : _ref$fontWeight,
14494
15487
  _ref$intent = _ref.intent,
14495
15488
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
14496
- nativeProps = _objectWithoutProperties$1(_ref, _excluded$c);
15489
+ nativeProps = _objectWithoutProperties$1(_ref, _excluded$d);
14497
15490
 
14498
15491
  return /*#__PURE__*/React__default["default"].createElement(StyledText$3, _extends$3({}, nativeProps, {
14499
15492
  themeFontSize: fontSize,
@@ -14506,7 +15499,7 @@ var Typography = {
14506
15499
  Text: Text
14507
15500
  };
14508
15501
 
14509
- var Container$2 = index$2(ReactNative.View)(function (_ref) {
15502
+ var Container$2 = index$5(ReactNative.View)(function (_ref) {
14510
15503
  var theme = _ref.theme,
14511
15504
  _ref$themeVariant = _ref.themeVariant,
14512
15505
  themeVariant = _ref$themeVariant === void 0 ? 'default' : _ref$themeVariant,
@@ -14518,21 +15511,21 @@ var Container$2 = index$2(ReactNative.View)(function (_ref) {
14518
15511
  flexDirection: 'row'
14519
15512
  };
14520
15513
  });
14521
- var IconContainer$1 = index$2(ReactNative.View)(function (_ref2) {
15514
+ var IconContainer$1 = index$5(ReactNative.View)(function (_ref2) {
14522
15515
  var theme = _ref2.theme;
14523
15516
  return {
14524
15517
  alignItems: 'center',
14525
15518
  paddingLeft: theme.__hd__.alert.space.padding
14526
15519
  };
14527
15520
  });
14528
- var TextContainer$1 = index$2(ReactNative.View)(function (_ref3) {
15521
+ var TextContainer$1 = index$5(ReactNative.View)(function (_ref3) {
14529
15522
  var theme = _ref3.theme;
14530
15523
  return {
14531
15524
  paddingHorizontal: theme.__hd__.alert.space.padding,
14532
15525
  flex: 1
14533
15526
  };
14534
15527
  });
14535
- var ContentContainer$1 = index$2(ReactNative.View)(function (_ref4) {
15528
+ var ContentContainer$1 = index$5(ReactNative.View)(function (_ref4) {
14536
15529
  var theme = _ref4.theme,
14537
15530
  showDivider = _ref4.showDivider;
14538
15531
  return {
@@ -14543,7 +15536,7 @@ var ContentContainer$1 = index$2(ReactNative.View)(function (_ref4) {
14543
15536
  flexDirection: 'row'
14544
15537
  };
14545
15538
  });
14546
- var CTAWrapper$1 = index$2(ReactNative.TouchableOpacity)(function (_ref5) {
15539
+ var CTAWrapper$1 = index$5(ReactNative.TouchableOpacity)(function (_ref5) {
14547
15540
  var theme = _ref5.theme;
14548
15541
  return {
14549
15542
  paddingHorizontal: theme.__hd__.alert.space.padding,
@@ -14601,7 +15594,7 @@ var Alert = function Alert(_ref) {
14601
15594
  })) : null);
14602
15595
  };
14603
15596
 
14604
- var StyledPressable = index$2(ReactNative.TouchableOpacity)(function (_ref) {
15597
+ var StyledPressable = index$5(ReactNative.TouchableOpacity)(function (_ref) {
14605
15598
  var themeSize = _ref.themeSize,
14606
15599
  themeIntent = _ref.themeIntent,
14607
15600
  theme = _ref.theme;
@@ -14614,7 +15607,7 @@ var StyledPressable = index$2(ReactNative.TouchableOpacity)(function (_ref) {
14614
15607
  overflow: 'hidden'
14615
15608
  };
14616
15609
  });
14617
- var StyledView$3 = index$2(ReactNative.View)(function (_ref2) {
15610
+ var StyledView$3 = index$5(ReactNative.View)(function (_ref2) {
14618
15611
  var themeSize = _ref2.themeSize,
14619
15612
  themeIntent = _ref2.themeIntent,
14620
15613
  theme = _ref2.theme;
@@ -14627,7 +15620,7 @@ var StyledView$3 = index$2(ReactNative.View)(function (_ref2) {
14627
15620
  overflow: 'hidden'
14628
15621
  };
14629
15622
  });
14630
- var StyledTextWrapper = index$2(ReactNative.View)(function () {
15623
+ var StyledTextWrapper = index$5(ReactNative.View)(function () {
14631
15624
  return {
14632
15625
  alignItems: 'center',
14633
15626
  justifyContent: 'center',
@@ -14636,7 +15629,7 @@ var StyledTextWrapper = index$2(ReactNative.View)(function () {
14636
15629
  height: '100%'
14637
15630
  };
14638
15631
  });
14639
- var StyledText$2 = index$2(ReactNative.Text)(function (_ref3) {
15632
+ var StyledText$2 = index$5(ReactNative.Text)(function (_ref3) {
14640
15633
  var themeSize = _ref3.themeSize,
14641
15634
  themeIntent = _ref3.themeIntent,
14642
15635
  theme = _ref3.theme;
@@ -14646,7 +15639,7 @@ var StyledText$2 = index$2(ReactNative.Text)(function (_ref3) {
14646
15639
  overflow: 'hidden'
14647
15640
  };
14648
15641
  });
14649
- var StyledImage = index$2(ReactNative.Image)(function (_ref4) {
15642
+ var StyledImage = index$5(ReactNative.Image)(function (_ref4) {
14650
15643
  var themeSize = _ref4.themeSize,
14651
15644
  theme = _ref4.theme;
14652
15645
  return {
@@ -14682,7 +15675,7 @@ var Avatar = function Avatar(_ref) {
14682
15675
  })) : null;
14683
15676
  };
14684
15677
 
14685
- var StyledView$2 = index$2(ReactNative.Animated.View)(function (_ref) {
15678
+ var StyledView$2 = index$5(ReactNative.Animated.View)(function (_ref) {
14686
15679
  var themeIntent = _ref.themeIntent,
14687
15680
  themePadding = _ref.themePadding,
14688
15681
  theme = _ref.theme;
@@ -14696,7 +15689,7 @@ var StyledView$2 = index$2(ReactNative.Animated.View)(function (_ref) {
14696
15689
  paddingHorizontal: themePadding === 'wideContent' ? theme.__hd__.badge.space.horizontalPadding : undefined
14697
15690
  };
14698
15691
  });
14699
- var StyledText$1 = index$2(ReactNative.Text)(function (_ref2) {
15692
+ var StyledText$1 = index$5(ReactNative.Text)(function (_ref2) {
14700
15693
  var theme = _ref2.theme;
14701
15694
  return {
14702
15695
  fontFamily: theme.__hd__.badge.fonts["default"],
@@ -14707,7 +15700,7 @@ var StyledText$1 = index$2(ReactNative.Text)(function (_ref2) {
14707
15700
  textAlign: 'center'
14708
15701
  };
14709
15702
  });
14710
- var StyledStatus = index$2(ReactNative.Animated.View)(function (_ref3) {
15703
+ var StyledStatus = index$5(ReactNative.Animated.View)(function (_ref3) {
14711
15704
  var themeIntent = _ref3.themeIntent,
14712
15705
  theme = _ref3.theme;
14713
15706
  return {
@@ -14721,7 +15714,7 @@ var StyledStatus = index$2(ReactNative.Animated.View)(function (_ref3) {
14721
15714
  };
14722
15715
  });
14723
15716
 
14724
- var _excluded$b = ["children", "visible", "intent", "style", "testID"];
15717
+ var _excluded$c = ["children", "visible", "intent", "style", "testID"];
14725
15718
 
14726
15719
  var Status = function Status(_ref) {
14727
15720
  var children = _ref.children,
@@ -14731,7 +15724,7 @@ var Status = function Status(_ref) {
14731
15724
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
14732
15725
  style = _ref.style,
14733
15726
  testID = _ref.testID,
14734
- nativeProps = _objectWithoutProperties$1(_ref, _excluded$b);
15727
+ nativeProps = _objectWithoutProperties$1(_ref, _excluded$c);
14735
15728
 
14736
15729
  var _React$useRef = React__default["default"].useRef(new ReactNative.Animated.Value(visible ? 1 : 0)),
14737
15730
  opacity = _React$useRef.current;
@@ -14767,7 +15760,7 @@ var Status = function Status(_ref) {
14767
15760
  }));
14768
15761
  };
14769
15762
 
14770
- var _excluded$a = ["content", "visible", "max", "intent", "style", "testID"];
15763
+ var _excluded$b = ["content", "visible", "max", "intent", "style", "testID"];
14771
15764
  var DEFAULT_MAX_NUMBER = 99;
14772
15765
 
14773
15766
  var getPaddingState = function getPaddingState(content) {
@@ -14784,7 +15777,7 @@ var Badge = function Badge(_ref) {
14784
15777
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
14785
15778
  style = _ref.style,
14786
15779
  testID = _ref.testID,
14787
- nativeProps = _objectWithoutProperties$1(_ref, _excluded$a);
15780
+ nativeProps = _objectWithoutProperties$1(_ref, _excluded$b);
14788
15781
 
14789
15782
  var _React$useRef = React__default["default"].useRef(new ReactNative.Animated.Value(visible ? 1 : 0)),
14790
15783
  opacity = _React$useRef.current;
@@ -14830,21 +15823,21 @@ var isHeroIcon = function isHeroIcon(x) {
14830
15823
  return IconList.includes(x);
14831
15824
  };
14832
15825
 
14833
- var BottomNavigationTab = index$2(ReactNative.View)(function (_ref) {
15826
+ var BottomNavigationTab = index$5(ReactNative.View)(function (_ref) {
14834
15827
  var themeVisibility = _ref.themeVisibility;
14835
15828
  return {
14836
15829
  flex: 1,
14837
15830
  display: themeVisibility === false ? 'none' : 'flex'
14838
15831
  };
14839
15832
  });
14840
- var BottomNavigationContainer = index$2(ReactNative.View)({
15833
+ var BottomNavigationContainer = index$5(ReactNative.View)({
14841
15834
  flex: 1,
14842
15835
  overflow: 'hidden'
14843
15836
  });
14844
- var ContentWrapper$2 = index$2(ReactNative.View)({
15837
+ var ContentWrapper$2 = index$5(ReactNative.View)({
14845
15838
  flex: 1
14846
15839
  });
14847
- var BottomBarWrapper = index$2(ReactNative.View)(function (_ref2) {
15840
+ var BottomBarWrapper = index$5(ReactNative.View)(function (_ref2) {
14848
15841
  var themeInsets = _ref2.themeInsets,
14849
15842
  theme = _ref2.theme;
14850
15843
  return {
@@ -14860,17 +15853,17 @@ var BottomBarWrapper = index$2(ReactNative.View)(function (_ref2) {
14860
15853
  elevation: theme.__hd__.bottomNavigation.shadows.elevation
14861
15854
  };
14862
15855
  });
14863
- var BottomBar = index$2(ReactNative.View)({
15856
+ var BottomBar = index$5(ReactNative.View)({
14864
15857
  flex: 1,
14865
15858
  flexDirection: 'row',
14866
15859
  overflow: 'hidden',
14867
15860
  alignItems: 'center'
14868
15861
  });
14869
- var BottomBarItem = index$2(ReactNative.View)({
15862
+ var BottomBarItem = index$5(ReactNative.View)({
14870
15863
  flex: 1,
14871
15864
  alignItems: 'center'
14872
15865
  });
14873
- var StyledBottomBarText = index$2(Typography.Text)(function (_ref3) {
15866
+ var StyledBottomBarText = index$5(Typography.Text)(function (_ref3) {
14874
15867
  var theme = _ref3.theme;
14875
15868
  return {
14876
15869
  marginTop: theme.__hd__.bottomNavigation.space.titleMarginTop
@@ -14880,7 +15873,7 @@ var StyledBottomBarText = index$2(Typography.Text)(function (_ref3) {
14880
15873
  var isIOS = ReactNative.Platform.OS === 'ios';
14881
15874
  ReactNative.Platform.OS === 'android';
14882
15875
 
14883
- var _excluded$9 = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
15876
+ var _excluded$a = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
14884
15877
 
14885
15878
  var getInactiveIcon = function getInactiveIcon(icon) {
14886
15879
  var inactiveIcon = "".concat(icon, "-outlined");
@@ -14893,7 +15886,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
14893
15886
  renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
14894
15887
  selectedTabKey = _ref.selectedTabKey,
14895
15888
  tabs = _ref.tabs,
14896
- nativeProps = _objectWithoutProperties$1(_ref, _excluded$9);
15889
+ nativeProps = _objectWithoutProperties$1(_ref, _excluded$a);
14897
15890
 
14898
15891
  var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
14899
15892
  /**
@@ -14967,7 +15960,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
14967
15960
  }))));
14968
15961
  };
14969
15962
 
14970
- var StyledDivider = index$2(ReactNative.View)(function (_ref) {
15963
+ var StyledDivider = index$5(ReactNative.View)(function (_ref) {
14971
15964
  var themeMarginHorizontal = _ref.themeMarginHorizontal,
14972
15965
  themeMarginVertical = _ref.themeMarginVertical,
14973
15966
  theme = _ref.theme;
@@ -14984,14 +15977,14 @@ var StyledDivider = index$2(ReactNative.View)(function (_ref) {
14984
15977
  }, horizontalMargin), verticalMargin);
14985
15978
  });
14986
15979
 
14987
- var _excluded$8 = ["marginHorizontal", "marginVertical", "style", "testID"];
15980
+ var _excluded$9 = ["marginHorizontal", "marginVertical", "style", "testID"];
14988
15981
 
14989
15982
  var Divider = function Divider(_ref) {
14990
15983
  var marginHorizontal = _ref.marginHorizontal,
14991
15984
  marginVertical = _ref.marginVertical,
14992
15985
  style = _ref.style,
14993
15986
  testID = _ref.testID,
14994
- nativeProps = _objectWithoutProperties$1(_ref, _excluded$8);
15987
+ nativeProps = _objectWithoutProperties$1(_ref, _excluded$9);
14995
15988
 
14996
15989
  return /*#__PURE__*/React__default["default"].createElement(StyledDivider, _extends$3({}, nativeProps, {
14997
15990
  themeMarginHorizontal: marginHorizontal,
@@ -15002,10 +15995,10 @@ var Divider = function Divider(_ref) {
15002
15995
  };
15003
15996
 
15004
15997
  var AnimatedPressable$1 = ReactNative.Animated.createAnimatedComponent(ReactNative.Pressable);
15005
- var StyledWrapper$5 = index$2(ReactNative.View)(_objectSpread2(_objectSpread2({}, ReactNative.StyleSheet.absoluteFillObject), {}, {
15998
+ var StyledWrapper$5 = index$5(ReactNative.View)(_objectSpread2(_objectSpread2({}, ReactNative.StyleSheet.absoluteFillObject), {}, {
15006
15999
  flexDirection: 'column-reverse'
15007
16000
  }));
15008
- var StyledBottomSheet = index$2(ReactNative.Animated.View)(function (_ref) {
16001
+ var StyledBottomSheet = index$5(ReactNative.Animated.View)(function (_ref) {
15009
16002
  var theme = _ref.theme;
15010
16003
  return {
15011
16004
  borderTopLeftRadius: theme.__hd__.bottomSheet.radii["default"],
@@ -15020,21 +16013,21 @@ var StyledBottomSheet = index$2(ReactNative.Animated.View)(function (_ref) {
15020
16013
  maxHeight: '94%'
15021
16014
  };
15022
16015
  });
15023
- var StyledBackdrop$2 = index$2(AnimatedPressable$1)(function (_ref2) {
16016
+ var StyledBackdrop$2 = index$5(AnimatedPressable$1)(function (_ref2) {
15024
16017
  var theme = _ref2.theme;
15025
16018
  return _objectSpread2(_objectSpread2({}, ReactNative.StyleSheet.absoluteFillObject), {}, {
15026
16019
  backgroundColor: theme.__hd__.bottomSheet.colors.backdrop,
15027
16020
  opacity: 0.48
15028
16021
  });
15029
16022
  });
15030
- var StyledHeaderWrapper = index$2(ReactNative.View)(function (_ref3) {
16023
+ var StyledHeaderWrapper = index$5(ReactNative.View)(function (_ref3) {
15031
16024
  var theme = _ref3.theme;
15032
16025
  return {
15033
16026
  minHeight: theme.__hd__.bottomSheet.sizes.sectionHeight,
15034
16027
  flexDirection: 'row'
15035
16028
  };
15036
16029
  });
15037
- var StyledHeader = index$2(ReactNative.View)(function (_ref4) {
16030
+ var StyledHeader = index$5(ReactNative.View)(function (_ref4) {
15038
16031
  var theme = _ref4.theme,
15039
16032
  adjacentIcon = _ref4.adjacentIcon;
15040
16033
  return {
@@ -15045,7 +16038,7 @@ var StyledHeader = index$2(ReactNative.View)(function (_ref4) {
15045
16038
  justifyContent: 'center'
15046
16039
  };
15047
16040
  });
15048
- var StyledFooter = index$2(ReactNative.View)(function (_ref5) {
16041
+ var StyledFooter = index$5(ReactNative.View)(function (_ref5) {
15049
16042
  var theme = _ref5.theme;
15050
16043
  return {
15051
16044
  paddingHorizontal: theme.__hd__.bottomSheet.space.horizontalPadding,
@@ -15056,7 +16049,7 @@ var StyledFooter = index$2(ReactNative.View)(function (_ref5) {
15056
16049
  flexDirection: 'row'
15057
16050
  };
15058
16051
  });
15059
- var StyledIconWrapper$1 = index$2(ReactNative.View)(function (_ref6) {
16052
+ var StyledIconWrapper$1 = index$5(ReactNative.View)(function (_ref6) {
15060
16053
  var theme = _ref6.theme;
15061
16054
  return {
15062
16055
  alignItems: 'center',
@@ -15077,7 +16070,7 @@ var genLoadingIndicatorStyles = function genLoadingIndicatorStyles(theme, intent
15077
16070
  };
15078
16071
  };
15079
16072
 
15080
- var StyledLoadingIndicatorWrapper = index$2(ReactNative.View)(function (_ref) {
16073
+ var StyledLoadingIndicatorWrapper = index$5(ReactNative.View)(function (_ref) {
15081
16074
  var theme = _ref.theme;
15082
16075
  return {
15083
16076
  flexDirection: 'row',
@@ -15086,7 +16079,7 @@ var StyledLoadingIndicatorWrapper = index$2(ReactNative.View)(function (_ref) {
15086
16079
  paddingVertical: theme.space.xxsmall
15087
16080
  };
15088
16081
  });
15089
- var StyledLoadingDot = index$2(ReactNative.View)(function (_ref2) {
16082
+ var StyledLoadingDot = index$5(ReactNative.View)(function (_ref2) {
15090
16083
  var _ref2$size = _ref2.size,
15091
16084
  size = _ref2$size === void 0 ? 12 : _ref2$size,
15092
16085
  themeVariant = _ref2.themeVariant,
@@ -15097,6 +16090,7 @@ var StyledLoadingDot = index$2(ReactNative.View)(function (_ref2) {
15097
16090
  case 'basic-transparent':
15098
16091
  case 'filled-primary':
15099
16092
  case 'filled-secondary':
16093
+ case 'filled-danger':
15100
16094
  return {
15101
16095
  backgroundColor: theme.__hd__.button.colors.invertedText
15102
16096
  };
@@ -15106,6 +16100,9 @@ var StyledLoadingDot = index$2(ReactNative.View)(function (_ref2) {
15106
16100
 
15107
16101
  case 'outlined-secondary':
15108
16102
  return genLoadingIndicatorStyles(theme, 'secondary');
16103
+
16104
+ case 'outlined-danger':
16105
+ return genLoadingIndicatorStyles(theme, 'danger');
15109
16106
  }
15110
16107
  };
15111
16108
 
@@ -15119,7 +16116,7 @@ var StyledLoadingDot = index$2(ReactNative.View)(function (_ref2) {
15119
16116
  }, themeStyling());
15120
16117
  });
15121
16118
 
15122
- var _excluded$7 = ["count", "size", "testID", "themeVariant"];
16119
+ var _excluded$8 = ["count", "size", "testID", "themeVariant"];
15123
16120
  var AnimatedLoadingIndicatorWrapper = ReactNative.Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
15124
16121
  var AnimatedLoadingDot = ReactNative.Animated.createAnimatedComponent(StyledLoadingDot);
15125
16122
 
@@ -15153,7 +16150,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
15153
16150
  size = _ref2$size === void 0 ? 12 : _ref2$size,
15154
16151
  testID = _ref2.testID,
15155
16152
  themeVariant = _ref2.themeVariant,
15156
- nativeProps = _objectWithoutProperties$1(_ref2, _excluded$7);
16153
+ nativeProps = _objectWithoutProperties$1(_ref2, _excluded$8);
15157
16154
 
15158
16155
  var progressAnimation = React.useRef(new ReactNative.Animated.Value(0));
15159
16156
  React.useEffect(function () {
@@ -15190,7 +16187,8 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
15190
16187
 
15191
16188
  var PRESSED_COLORS = {
15192
16189
  primary: 'pressedPrimary',
15193
- secondary: 'pressedSecondary'
16190
+ secondary: 'pressedSecondary',
16191
+ danger: 'pressedDanger'
15194
16192
  };
15195
16193
 
15196
16194
  var genBasicTransparentContainerStyles = function genBasicTransparentContainerStyles(theme, pressed, disabled) {
@@ -15304,7 +16302,7 @@ var genOutlineTextStyles = function genOutlineTextStyles(theme, intent, pressed,
15304
16302
  }, textColorStyling());
15305
16303
  };
15306
16304
 
15307
- var StyledButtonContainer = index$2(ReactNative.View)(function (_ref) {
16305
+ var StyledButtonContainer = index$5(ReactNative.View)(function (_ref) {
15308
16306
  var _ref$disabled = _ref.disabled,
15309
16307
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
15310
16308
  _ref$pressed = _ref.pressed,
@@ -15322,14 +16320,20 @@ var StyledButtonContainer = index$2(ReactNative.View)(function (_ref) {
15322
16320
  case 'filled-secondary':
15323
16321
  return genFilledContainerStyles(theme, 'secondary', pressed, disabled);
15324
16322
 
16323
+ case 'filled-danger':
16324
+ return genFilledContainerStyles(theme, 'danger', pressed, disabled);
16325
+
15325
16326
  case 'outlined-primary':
15326
16327
  return genOutlineContainerStyles(theme, 'primary', pressed, disabled);
15327
16328
 
15328
16329
  case 'outlined-secondary':
15329
16330
  return genOutlineContainerStyles(theme, 'secondary', pressed, disabled);
16331
+
16332
+ case 'outlined-danger':
16333
+ return genOutlineContainerStyles(theme, 'danger', pressed, disabled);
15330
16334
  }
15331
16335
  });
15332
- var StyledButtonText = index$2(Typography.Text)(function (_ref2) {
16336
+ var StyledButtonText = index$5(Typography.Text)(function (_ref2) {
15333
16337
  var disabled = _ref2.disabled,
15334
16338
  pressed = _ref2.pressed,
15335
16339
  themeVariant = _ref2.themeVariant,
@@ -15346,6 +16350,7 @@ var StyledButtonText = index$2(Typography.Text)(function (_ref2) {
15346
16350
 
15347
16351
  case 'filled-primary':
15348
16352
  case 'filled-secondary':
16353
+ case 'filled-danger':
15349
16354
  return {
15350
16355
  fontSize: theme.__hd__.button.fontSize["default"],
15351
16356
  lineHeight: theme.__hd__.button.lineHeight["default"],
@@ -15357,6 +16362,9 @@ var StyledButtonText = index$2(Typography.Text)(function (_ref2) {
15357
16362
 
15358
16363
  case 'outlined-secondary':
15359
16364
  return genOutlineTextStyles(theme, 'secondary', pressed, disabled);
16365
+
16366
+ case 'outlined-danger':
16367
+ return genOutlineTextStyles(theme, 'danger', pressed, disabled);
15360
16368
  }
15361
16369
  };
15362
16370
 
@@ -15366,7 +16374,7 @@ var StyledButtonText = index$2(Typography.Text)(function (_ref2) {
15366
16374
  fontFamily: theme.__hd__.button.fonts["default"]
15367
16375
  }, themeStyling());
15368
16376
  });
15369
- var StyledButtonIconWrapper = index$2(ReactNative.View)(function (_ref3) {
16377
+ var StyledButtonIconWrapper = index$5(ReactNative.View)(function (_ref3) {
15370
16378
  var themePosition = _ref3.themePosition,
15371
16379
  theme = _ref3.theme;
15372
16380
 
@@ -15382,7 +16390,7 @@ var StyledButtonIconWrapper = index$2(ReactNative.View)(function (_ref3) {
15382
16390
  };
15383
16391
  }
15384
16392
  });
15385
- var StyledButtonIcon = index$2(Icon)(function (_ref4) {
16393
+ var StyledButtonIcon = index$5(Icon)(function (_ref4) {
15386
16394
  var disabled = _ref4.disabled,
15387
16395
  pressed = _ref4.pressed,
15388
16396
  themeVariant = _ref4.themeVariant,
@@ -15397,6 +16405,7 @@ var StyledButtonIcon = index$2(Icon)(function (_ref4) {
15397
16405
 
15398
16406
  case 'filled-primary':
15399
16407
  case 'filled-secondary':
16408
+ case 'filled-danger':
15400
16409
  return {
15401
16410
  color: theme.__hd__.button.colors.invertedText
15402
16411
  };
@@ -15406,6 +16415,9 @@ var StyledButtonIcon = index$2(Icon)(function (_ref4) {
15406
16415
 
15407
16416
  case 'outlined-secondary':
15408
16417
  return genOutlineTextStyles(theme, 'secondary', pressed, disabled);
16418
+
16419
+ case 'outlined-danger':
16420
+ return genOutlineTextStyles(theme, 'danger', pressed, disabled);
15409
16421
  }
15410
16422
  };
15411
16423
 
@@ -15416,11 +16428,13 @@ var StyledButtonIcon = index$2(Icon)(function (_ref4) {
15416
16428
 
15417
16429
  var FILLED_VARIANTS = {
15418
16430
  primary: 'filled-primary',
15419
- secondary: 'filled-secondary'
16431
+ secondary: 'filled-secondary',
16432
+ danger: 'filled-danger'
15420
16433
  };
15421
16434
  var OUTLINED_VARIANTS = {
15422
16435
  primary: 'outlined-primary',
15423
- secondary: 'outlined-secondary'
16436
+ secondary: 'outlined-secondary',
16437
+ danger: 'outlined-danger'
15424
16438
  };
15425
16439
  var getThemeVariant = function getThemeVariant(variant, intent) {
15426
16440
  switch (variant) {
@@ -15648,27 +16662,60 @@ var BottomSheet = function BottomSheet(_ref) {
15648
16662
  }, footer) : null)));
15649
16663
  };
15650
16664
 
15651
- var StyledCard = index$2(ReactNative.View)(function (_ref) {
15652
- var themeVariant = _ref.themeVariant,
15653
- theme = _ref.theme;
15654
- var sharedStyles = {
16665
+ var StyledDataCard = index$5(ReactNative.View)(function (_ref) {
16666
+ var theme = _ref.theme;
16667
+ return {
15655
16668
  borderRadius: theme.__hd__.card.radii["default"],
15656
- overflow: 'hidden'
15657
- };
15658
- var dataStyles = {
16669
+ overflow: 'hidden',
15659
16670
  flex: 1,
15660
16671
  flexDirection: 'row'
15661
16672
  };
15662
-
15663
- switch (themeVariant) {
15664
- case 'basic':
16673
+ });
16674
+ var Indicator = index$5(ReactNative.View)(function (_ref2) {
16675
+ var theme = _ref2.theme,
16676
+ themeIntent = _ref2.themeIntent;
16677
+ return {
16678
+ backgroundColor: theme.__hd__.card.colors.indicator[themeIntent],
16679
+ width: scale(16),
16680
+ height: '100%'
16681
+ };
16682
+ });
16683
+
16684
+ var _excluded$7 = ["intent", "children"];
16685
+
16686
+ var DataCard = function DataCard(_ref) {
16687
+ var _ref$intent = _ref.intent,
16688
+ intent = _ref$intent === void 0 ? 'info' : _ref$intent,
16689
+ children = _ref.children,
16690
+ nativeProps = _objectWithoutProperties$1(_ref, _excluded$7);
16691
+
16692
+ return /*#__PURE__*/React__default["default"].createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__default["default"].createElement(Indicator, {
16693
+ themeIntent: intent,
16694
+ testID: "data-card-indicator"
16695
+ }), children);
16696
+ };
16697
+
16698
+ var StyledCard = index$5(ReactNative.View)(function (_ref) {
16699
+ var themeVariant = _ref.themeVariant,
16700
+ theme = _ref.theme;
16701
+ var sharedStyles = {
16702
+ borderRadius: theme.__hd__.card.radii["default"],
16703
+ overflow: 'hidden'
16704
+ };
16705
+ var dataStyles = {
16706
+ flex: 1,
16707
+ flexDirection: 'row'
16708
+ };
16709
+
16710
+ switch (themeVariant) {
16711
+ case 'basic':
15665
16712
  return sharedStyles;
15666
16713
 
15667
16714
  case 'data':
15668
16715
  return _objectSpread2(_objectSpread2({}, sharedStyles), dataStyles);
15669
16716
  }
15670
16717
  });
15671
- var LeftDataCard = index$2(ReactNative.View)(function (_ref2) {
16718
+ var LeftDataCard = index$5(ReactNative.View)(function (_ref2) {
15672
16719
  var theme = _ref2.theme;
15673
16720
  return {
15674
16721
  backgroundColor: theme.__hd__.card.colors.dataCardIndicator,
@@ -15692,7 +16739,11 @@ var Card = function Card(_ref) {
15692
16739
  }), children);
15693
16740
  };
15694
16741
 
15695
- var StyledWrapper$4 = index$2(ReactNative.Animated.View)(function () {
16742
+ var index$4 = Object.assign(Card, {
16743
+ Data: DataCard
16744
+ });
16745
+
16746
+ var StyledWrapper$4 = index$5(ReactNative.Animated.View)(function () {
15696
16747
  return {
15697
16748
  margin: 0,
15698
16749
  padding: 0,
@@ -15705,12 +16756,12 @@ var StyledWrapper$4 = index$2(ReactNative.Animated.View)(function () {
15705
16756
  * to use with Animated.timing
15706
16757
  */
15707
16758
 
15708
- var StyledHiddenWrapper = index$2(ReactNative.View)(function () {
16759
+ var StyledHiddenWrapper = index$5(ReactNative.View)(function () {
15709
16760
  return {
15710
16761
  height: ReactNative.Dimensions.get('window').height
15711
16762
  };
15712
16763
  });
15713
- var StyledChildWrapper = index$2(ReactNative.View)(function () {
16764
+ var StyledChildWrapper = index$5(ReactNative.View)(function () {
15714
16765
  return {
15715
16766
  margin: 0,
15716
16767
  padding: 0
@@ -15764,7 +16815,7 @@ var Collapse = function Collapse(_ref) {
15764
16815
  }, children)));
15765
16816
  };
15766
16817
 
15767
- var StyledWrapper$3 = index$2(ReactNative.TouchableOpacity)(function (_ref) {
16818
+ var StyledWrapper$3 = index$5(ReactNative.TouchableOpacity)(function (_ref) {
15768
16819
  var theme = _ref.theme,
15769
16820
  disabled = _ref.disabled;
15770
16821
  return {
@@ -15804,14 +16855,14 @@ var CheckBox = function CheckBox(_ref) {
15804
16855
  }));
15805
16856
  };
15806
16857
 
15807
- var Wrapper$1 = index$2(ReactNative.View)(function () {
16858
+ var Wrapper$1 = index$5(ReactNative.View)(function () {
15808
16859
  return {
15809
16860
  flex: 1,
15810
16861
  flexDirection: 'row',
15811
16862
  justifyContent: 'space-between'
15812
16863
  };
15813
16864
  });
15814
- var Value = index$2(Typography.Text)(function (_ref) {
16865
+ var Value = index$5(Typography.Text)(function (_ref) {
15815
16866
  var theme = _ref.theme;
15816
16867
  return {
15817
16868
  paddingHorizontal: theme.__hd__.contentNavigator.space.valueHorizontalPadding
@@ -15847,7 +16898,7 @@ function ContentNavigator(_ref) {
15847
16898
  }
15848
16899
 
15849
16900
  var AnimatedPressable = ReactNative.Animated.createAnimatedComponent(ReactNative.Pressable);
15850
- var StyledContainer$1 = index$2(ReactNative.View)(function (_ref) {
16901
+ var StyledContainer$1 = index$5(ReactNative.View)(function (_ref) {
15851
16902
  var theme = _ref.theme,
15852
16903
  enableShadow = _ref.enableShadow;
15853
16904
  return _objectSpread2(_objectSpread2({}, ReactNative.StyleSheet.absoluteFillObject), {}, {
@@ -15860,13 +16911,13 @@ var StyledContainer$1 = index$2(ReactNative.View)(function (_ref) {
15860
16911
  elevation: 9999
15861
16912
  });
15862
16913
  });
15863
- var StyledBackdrop$1 = index$2(AnimatedPressable)(function (_ref2) {
16914
+ var StyledBackdrop$1 = index$5(AnimatedPressable)(function (_ref2) {
15864
16915
  var theme = _ref2.theme;
15865
16916
  return _objectSpread2(_objectSpread2({}, ReactNative.StyleSheet.absoluteFillObject), {}, {
15866
16917
  backgroundColor: theme.__hd__.drawer.colors.backdrop
15867
16918
  });
15868
16919
  });
15869
- var StyledDrawerContainer = index$2(ReactNative.Animated.View)(function (_ref3) {
16920
+ var StyledDrawerContainer = index$5(ReactNative.Animated.View)(function (_ref3) {
15870
16921
  var theme = _ref3.theme,
15871
16922
  enableShadow = _ref3.enableShadow;
15872
16923
  return {
@@ -15936,7 +16987,7 @@ var Drawer = function Drawer(_ref) {
15936
16987
  }, children));
15937
16988
  };
15938
16989
 
15939
- var StyledFABContainer = index$2(ReactNative.TouchableHighlight)(function (_ref) {
16990
+ var StyledFABContainer = index$5(ReactNative.TouchableHighlight)(function (_ref) {
15940
16991
  var theme = _ref.theme;
15941
16992
  return {
15942
16993
  backgroundColor: theme.__hd__.fab.colors.buttonBackground,
@@ -15950,7 +17001,7 @@ var StyledFABContainer = index$2(ReactNative.TouchableHighlight)(function (_ref)
15950
17001
  flexDirection: 'row'
15951
17002
  };
15952
17003
  });
15953
- var StyledFABIcon = index$2(Icon)(function (_ref2) {
17004
+ var StyledFABIcon = index$5(Icon)(function (_ref2) {
15954
17005
  var theme = _ref2.theme;
15955
17006
  return {
15956
17007
  color: theme.__hd__.fab.colors.icon,
@@ -15959,7 +17010,7 @@ var StyledFABIcon = index$2(Icon)(function (_ref2) {
15959
17010
  textAlign: 'center'
15960
17011
  };
15961
17012
  });
15962
- var StyledFABText = index$2(ReactNative.Text)(function (_ref3) {
17013
+ var StyledFABText = index$5(ReactNative.Text)(function (_ref3) {
15963
17014
  var theme = _ref3.theme;
15964
17015
  return {
15965
17016
  fontFamily: theme.__hd__.fab.fonts.title,
@@ -16056,7 +17107,7 @@ var FAB = function FAB(_ref3) {
16056
17107
  }));
16057
17108
  };
16058
17109
 
16059
- var StyledActionItem = index$2(ReactNative.TouchableOpacity)(function (_ref) {
17110
+ var StyledActionItem = index$5(ReactNative.TouchableOpacity)(function (_ref) {
16060
17111
  var theme = _ref.theme;
16061
17112
  return {
16062
17113
  paddingLeft: theme.__hd__.fab.space.actionItemPaddingLeft,
@@ -16073,7 +17124,7 @@ var StyledActionItem = index$2(ReactNative.TouchableOpacity)(function (_ref) {
16073
17124
  overflow: 'hidden'
16074
17125
  };
16075
17126
  });
16076
- var StyledActionItemText = index$2(Typography.Text)(function (_ref2) {
17127
+ var StyledActionItemText = index$5(Typography.Text)(function (_ref2) {
16077
17128
  var theme = _ref2.theme;
16078
17129
  return {
16079
17130
  paddingLeft: theme.__hd__.fab.space.actionItemTextPaddingLeft,
@@ -16098,7 +17149,7 @@ var ActionItem = function ActionItem(_ref) {
16098
17149
  }), /*#__PURE__*/React__default["default"].createElement(StyledActionItemText, null, title));
16099
17150
  };
16100
17151
 
16101
- var StyledContainer = index$2(ReactNative.View)({
17152
+ var StyledContainer = index$5(ReactNative.View)({
16102
17153
  position: 'absolute',
16103
17154
  left: 0,
16104
17155
  right: 0,
@@ -16107,12 +17158,12 @@ var StyledContainer = index$2(ReactNative.View)({
16107
17158
  alignItems: 'flex-end',
16108
17159
  justifyContent: 'flex-end'
16109
17160
  });
16110
- var StyledActionGroupContainer = index$2(ReactNative.Animated.View)({
17161
+ var StyledActionGroupContainer = index$5(ReactNative.Animated.View)({
16111
17162
  alignItems: 'flex-end',
16112
17163
  justifyContent: 'flex-end',
16113
17164
  width: '70%'
16114
17165
  });
16115
- var StyledFAB = index$2(FAB)(function (_ref) {
17166
+ var StyledFAB = index$5(FAB)(function (_ref) {
16116
17167
  var theme = _ref.theme;
16117
17168
  return {
16118
17169
  marginRight: theme.__hd__.fab.space.buttonMarginRight,
@@ -16120,7 +17171,7 @@ var StyledFAB = index$2(FAB)(function (_ref) {
16120
17171
  alignSelf: 'flex-end'
16121
17172
  };
16122
17173
  });
16123
- var StyledBackdrop = index$2(ReactNative.Animated.View)(function (_ref2) {
17174
+ var StyledBackdrop = index$5(ReactNative.Animated.View)(function (_ref2) {
16124
17175
  var theme = _ref2.theme;
16125
17176
  return {
16126
17177
  position: 'absolute',
@@ -16131,7 +17182,7 @@ var StyledBackdrop = index$2(ReactNative.Animated.View)(function (_ref2) {
16131
17182
  backgroundColor: theme.__hd__.fab.colors.backdropBackground
16132
17183
  };
16133
17184
  });
16134
- var StyledHeaderText = index$2(Typography.Text)(function (_ref3) {
17185
+ var StyledHeaderText = index$5(Typography.Text)(function (_ref3) {
16135
17186
  var theme = _ref3.theme;
16136
17187
  return {
16137
17188
  fontSize: theme.__hd__.fab.fontSizes.header,
@@ -16210,11 +17261,200 @@ var ActionGroup = function ActionGroup(_ref2) {
16210
17261
  }));
16211
17262
  };
16212
17263
 
16213
- var index$1 = Object.assign(FAB, {
17264
+ var index$3 = Object.assign(FAB, {
16214
17265
  ActionGroup: ActionGroup
16215
17266
  });
16216
17267
 
16217
- var HalfCircleWrapper = index$2(ReactNative.View)(function (_ref) {
17268
+ var StyledListItemContainer$1 = index$5(ReactNative.TouchableOpacity)(function (_ref) {
17269
+ var theme = _ref.theme,
17270
+ _ref$themeSelected = _ref.themeSelected,
17271
+ themeSelected = _ref$themeSelected === void 0 ? false : _ref$themeSelected,
17272
+ _ref$themeVariant = _ref.themeVariant,
17273
+ themeVariant = _ref$themeVariant === void 0 ? 'basic' : _ref$themeVariant;
17274
+ var sharedStyles = {
17275
+ flexDirection: 'row',
17276
+ backgroundColor: themeSelected ? theme.__hd__.list.colors.checkedListItemContainerBackground : theme.__hd__.list.colors.listItemContainerBackground,
17277
+ padding: theme.__hd__.list.space.listItemContainerPadding
17278
+ };
17279
+
17280
+ switch (themeVariant) {
17281
+ case 'basic':
17282
+ return sharedStyles;
17283
+
17284
+ case 'card':
17285
+ return _objectSpread2(_objectSpread2({}, sharedStyles), {}, {
17286
+ alignItems: 'center',
17287
+ borderRadius: theme.__hd__.list.radii.card,
17288
+ shadowColor: theme.colors.shadow,
17289
+ shadowRadius: theme.__hd__.list.radii.cardShadow,
17290
+ shadowOffset: theme.__hd__.list.offsets.cardShadow,
17291
+ shadowOpacity: theme.__hd__.list.opacity.cardShadow
17292
+ });
17293
+
17294
+ default:
17295
+ return sharedStyles;
17296
+ }
17297
+ });
17298
+ var StyledContentContainer = index$5(ReactNative.View)(function () {
17299
+ return {
17300
+ flexDirection: 'column',
17301
+ flex: 1,
17302
+ flexGrow: 2
17303
+ };
17304
+ });
17305
+ var StyledChildrenContainer = index$5(ReactNative.View)(function () {
17306
+ return {
17307
+ flexDirection: 'column',
17308
+ justifyContent: 'flex-start',
17309
+ alignItems: 'flex-start'
17310
+ };
17311
+ });
17312
+ var StyledLeadingStatus = index$5(ReactNative.View)(function (_ref2) {
17313
+ var theme = _ref2.theme,
17314
+ themeLeadingStatusIntent = _ref2.themeLeadingStatusIntent;
17315
+ return {
17316
+ width: theme.__hd__.list.widths.leadingStatus,
17317
+ marginRight: theme.__hd__.list.space.leadingStatusMarginRight,
17318
+ borderRadius: theme.__hd__.list.radii.leadingStatus,
17319
+ backgroundColor: theme.__hd__.list.colors.leadingStatus[themeLeadingStatusIntent]
17320
+ };
17321
+ });
17322
+ var StyledPrefixContainer$1 = index$5(ReactNative.View)(function (_ref3) {
17323
+ var theme = _ref3.theme;
17324
+ return {
17325
+ marginRight: theme.__hd__.list.space.prefixContainerMarginRight
17326
+ };
17327
+ });
17328
+ var StyledSuffixContainer$1 = index$5(ReactNative.View)(function (_ref4) {
17329
+ var theme = _ref4.theme;
17330
+ return {
17331
+ marginLeft: theme.__hd__.list.space.suffixContainerMarginLeft
17332
+ };
17333
+ });
17334
+ var StyledTitleContainer$1 = index$5(ReactNative.View)(function () {
17335
+ return {
17336
+ flex: 1
17337
+ };
17338
+ });
17339
+
17340
+ var ListItem = function ListItem(_ref) {
17341
+ var prefix = _ref.prefix,
17342
+ suffix = _ref.suffix,
17343
+ title = _ref.title,
17344
+ subtitle = _ref.subtitle,
17345
+ style = _ref.style,
17346
+ testID = _ref.testID,
17347
+ _ref$selected = _ref.selected,
17348
+ selected = _ref$selected === void 0 ? false : _ref$selected,
17349
+ children = _ref.children,
17350
+ leadingStatus = _ref.leadingStatus,
17351
+ _ref$variant = _ref.variant,
17352
+ variant = _ref$variant === void 0 ? 'full-width' : _ref$variant,
17353
+ onPress = _ref.onPress,
17354
+ _ref$disabled = _ref.disabled,
17355
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled;
17356
+ return /*#__PURE__*/React__default["default"].createElement(StyledListItemContainer$1, {
17357
+ style: style,
17358
+ testID: testID,
17359
+ themeSelected: selected,
17360
+ themeVariant: variant,
17361
+ onPress: onPress,
17362
+ disabled: disabled
17363
+ }, leadingStatus && /*#__PURE__*/React__default["default"].createElement(StyledLeadingStatus, {
17364
+ themeLeadingStatusIntent: leadingStatus,
17365
+ testID: "leadingStatus"
17366
+ }), /*#__PURE__*/React__default["default"].createElement(StyledContentContainer, null, /*#__PURE__*/React__default["default"].createElement(ReactNative.View, {
17367
+ style: {
17368
+ flexDirection: 'row',
17369
+ alignItems: 'center'
17370
+ }
17371
+ }, prefix && /*#__PURE__*/React__default["default"].createElement(StyledPrefixContainer$1, null, typeof prefix === 'string' ? /*#__PURE__*/React__default["default"].createElement(Icon, {
17372
+ icon: prefix
17373
+ }) : prefix), /*#__PURE__*/React__default["default"].createElement(StyledTitleContainer$1, null, /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
17374
+ intent: "body",
17375
+ fontSize: "large",
17376
+ fontWeight: "semi-bold"
17377
+ }, title), subtitle && /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
17378
+ intent: "subdued",
17379
+ fontSize: "small"
17380
+ }, subtitle)), suffix && /*#__PURE__*/React__default["default"].createElement(StyledSuffixContainer$1, null, typeof suffix === 'string' ? /*#__PURE__*/React__default["default"].createElement(Icon, {
17381
+ icon: suffix,
17382
+ intent: disabled ? 'disabled-text' : 'primary',
17383
+ size: "small"
17384
+ }) : suffix)), children && /*#__PURE__*/React__default["default"].createElement(StyledChildrenContainer, null, children)));
17385
+ };
17386
+
17387
+ var StyledPrefixContainer = index$5(ReactNative.View)(function (_ref) {
17388
+ var theme = _ref.theme;
17389
+ return {
17390
+ marginRight: theme.__hd__.list.space.prefixContainerMarginRight
17391
+ };
17392
+ });
17393
+ var StyledSuffixContainer = index$5(ReactNative.View)(function (_ref2) {
17394
+ var theme = _ref2.theme;
17395
+ return {
17396
+ marginLeft: theme.__hd__.list.space.suffixContainerMarginLeft
17397
+ };
17398
+ });
17399
+ var StyledTitleContainer = index$5(ReactNative.View)(function () {
17400
+ return {
17401
+ flex: 1
17402
+ };
17403
+ });
17404
+ var StyledListItemContainer = index$5(ReactNative.TouchableOpacity)(function (_ref3) {
17405
+ var theme = _ref3.theme,
17406
+ themeSelected = _ref3.themeSelected,
17407
+ themeDisabled = _ref3.themeDisabled;
17408
+ return {
17409
+ alignItems: 'center',
17410
+ flex: 1,
17411
+ flexDirection: 'row',
17412
+ backgroundColor: themeSelected ? theme.__hd__.select.colors.checkedOption : theme.__hd__.select.colors.option,
17413
+ padding: theme.__hd__.list.space.listItemContainerPadding,
17414
+ opacity: themeDisabled ? theme.__hd__.list.opacity.disabled : theme.__hd__.list.opacity.enabled
17415
+ };
17416
+ });
17417
+
17418
+ var BasicListItem = function BasicListItem(_ref) {
17419
+ var prefix = _ref.prefix,
17420
+ suffix = _ref.suffix,
17421
+ title = _ref.title,
17422
+ subtitle = _ref.subtitle,
17423
+ style = _ref.style,
17424
+ testID = _ref.testID,
17425
+ _ref$selected = _ref.selected,
17426
+ selected = _ref$selected === void 0 ? false : _ref$selected,
17427
+ _ref$disabled = _ref.disabled,
17428
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
17429
+ onPress = _ref.onPress;
17430
+ return /*#__PURE__*/React__default["default"].createElement(StyledListItemContainer, {
17431
+ style: style,
17432
+ testID: testID,
17433
+ themeSelected: selected,
17434
+ themeDisabled: disabled,
17435
+ onPress: onPress,
17436
+ disabled: disabled
17437
+ }, prefix && /*#__PURE__*/React__default["default"].createElement(StyledPrefixContainer, null, typeof prefix === 'string' ? /*#__PURE__*/React__default["default"].createElement(Icon, {
17438
+ icon: prefix
17439
+ }) : prefix), /*#__PURE__*/React__default["default"].createElement(StyledTitleContainer, null, /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
17440
+ intent: "body",
17441
+ fontSize: "large"
17442
+ }, title), subtitle && /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
17443
+ intent: "subdued",
17444
+ fontSize: "small"
17445
+ }, subtitle)), suffix && /*#__PURE__*/React__default["default"].createElement(StyledSuffixContainer, null, typeof suffix === 'string' ? /*#__PURE__*/React__default["default"].createElement(Icon, {
17446
+ icon: suffix,
17447
+ intent: "text",
17448
+ size: "small"
17449
+ }) : suffix));
17450
+ };
17451
+
17452
+ var List = {
17453
+ Item: ListItem,
17454
+ BasicItem: BasicListItem
17455
+ };
17456
+
17457
+ var HalfCircleWrapper = index$5(ReactNative.View)(function (_ref) {
16218
17458
  var theme = _ref.theme;
16219
17459
  return {
16220
17460
  width: theme.__hd__.progress.sizes.radius,
@@ -16222,7 +17462,7 @@ var HalfCircleWrapper = index$2(ReactNative.View)(function (_ref) {
16222
17462
  overflow: 'hidden'
16223
17463
  };
16224
17464
  });
16225
- var HalfCircleInnerFG = index$2(ReactNative.View)(function (_ref2) {
17465
+ var HalfCircleInnerFG = index$5(ReactNative.View)(function (_ref2) {
16226
17466
  var theme = _ref2.theme,
16227
17467
  themeIntent = _ref2.themeIntent;
16228
17468
  return {
@@ -16232,7 +17472,7 @@ var HalfCircleInnerFG = index$2(ReactNative.View)(function (_ref2) {
16232
17472
  borderRadius: theme.__hd__.progress.radii["default"]
16233
17473
  };
16234
17474
  });
16235
- var HalfCircleInnerBG = index$2(ReactNative.View)(function (_ref3) {
17475
+ var HalfCircleInnerBG = index$5(ReactNative.View)(function (_ref3) {
16236
17476
  var theme = _ref3.theme;
16237
17477
  return {
16238
17478
  width: theme.__hd__.progress.sizes.radius * 2,
@@ -16241,7 +17481,7 @@ var HalfCircleInnerBG = index$2(ReactNative.View)(function (_ref3) {
16241
17481
  borderRadius: theme.__hd__.progress.radii["default"]
16242
17482
  };
16243
17483
  });
16244
- var DonutCircle = index$2(ReactNative.View)(function (_ref4) {
17484
+ var DonutCircle = index$5(ReactNative.View)(function (_ref4) {
16245
17485
  var theme = _ref4.theme;
16246
17486
  return {
16247
17487
  position: 'absolute',
@@ -16256,7 +17496,7 @@ var DonutCircle = index$2(ReactNative.View)(function (_ref4) {
16256
17496
  justifyContent: 'center'
16257
17497
  };
16258
17498
  });
16259
- var StrokeEnd = index$2(ReactNative.View)(function (_ref5) {
17499
+ var StrokeEnd = index$5(ReactNative.View)(function (_ref5) {
16260
17500
  var theme = _ref5.theme,
16261
17501
  themeIntent = _ref5.themeIntent;
16262
17502
  return {
@@ -16387,7 +17627,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
16387
17627
  }, "".concat(value, "%")))));
16388
17628
  };
16389
17629
 
16390
- var StyledWrapper$2 = index$2(ReactNative.View)(function (_ref) {
17630
+ var StyledWrapper$2 = index$5(ReactNative.View)(function (_ref) {
16391
17631
  var theme = _ref.theme;
16392
17632
  return {
16393
17633
  height: theme.__hd__.progress.sizes.barHeight,
@@ -16396,7 +17636,7 @@ var StyledWrapper$2 = index$2(ReactNative.View)(function (_ref) {
16396
17636
  overflow: 'hidden'
16397
17637
  };
16398
17638
  });
16399
- var StyledInner = index$2(ReactNative.Animated.View)(function (_ref2) {
17639
+ var StyledInner = index$5(ReactNative.Animated.View)(function (_ref2) {
16400
17640
  var theme = _ref2.theme,
16401
17641
  themeIntent = _ref2.themeIntent;
16402
17642
  return {
@@ -16466,13 +17706,13 @@ var Progress = {
16466
17706
  Bar: ProgressBar
16467
17707
  };
16468
17708
 
16469
- var StyledView$1 = index$2(ReactNative.View)();
16470
- var StyledSpinnerContainer = index$2(ReactNative.View)({
17709
+ var StyledView$1 = index$5(ReactNative.View)();
17710
+ var StyledSpinnerContainer = index$5(ReactNative.View)({
16471
17711
  height: '100%',
16472
17712
  justifyContent: 'center',
16473
17713
  alignItems: 'center'
16474
17714
  });
16475
- var StyledSpinnerRow = index$2(ReactNative.View)(function (_ref) {
17715
+ var StyledSpinnerRow = index$5(ReactNative.View)(function (_ref) {
16476
17716
  var themePosition = _ref.themePosition,
16477
17717
  theme = _ref.theme;
16478
17718
  return {
@@ -16480,7 +17720,7 @@ var StyledSpinnerRow = index$2(ReactNative.View)(function (_ref) {
16480
17720
  marginBottom: themePosition === 'top' ? theme.__hd__.spinner.space.spinnerDotPadding : 0
16481
17721
  };
16482
17722
  });
16483
- var StyledSpinnerDot = index$2(ReactNative.View)(function (_ref2) {
17723
+ var StyledSpinnerDot = index$5(ReactNative.View)(function (_ref2) {
16484
17724
  var themePosition = _ref2.themePosition,
16485
17725
  theme = _ref2.theme;
16486
17726
 
@@ -16571,7 +17811,7 @@ var Spinner = function Spinner(_ref) {
16571
17811
  }, /*#__PURE__*/React__default["default"].createElement(AnimatedSpinner, null)));
16572
17812
  };
16573
17813
 
16574
- var Wrapper = index$2(ReactNative.TouchableOpacity)(function (_ref) {
17814
+ var Wrapper = index$5(ReactNative.TouchableOpacity)(function (_ref) {
16575
17815
  var theme = _ref.theme,
16576
17816
  themeChecked = _ref.themeChecked;
16577
17817
  return {
@@ -16583,7 +17823,7 @@ var Wrapper = index$2(ReactNative.TouchableOpacity)(function (_ref) {
16583
17823
  backgroundColor: themeChecked ? theme.__hd__.radio.colors.checkedWrapper : theme.__hd__.radio.colors.wrapper
16584
17824
  };
16585
17825
  });
16586
- var Circle = index$2(ReactNative.View)(function (_ref2) {
17826
+ var Circle = index$5(ReactNative.View)(function (_ref2) {
16587
17827
  var theme = _ref2.theme,
16588
17828
  themeChecked = _ref2.themeChecked;
16589
17829
  return {
@@ -16596,7 +17836,7 @@ var Circle = index$2(ReactNative.View)(function (_ref2) {
16596
17836
  justifyContent: 'center'
16597
17837
  };
16598
17838
  });
16599
- var InnerCircle = index$2(ReactNative.View)(function (_ref3) {
17839
+ var InnerCircle = index$5(ReactNative.View)(function (_ref3) {
16600
17840
  var theme = _ref3.theme;
16601
17841
  return {
16602
17842
  height: theme.__hd__.radio.sizes.innerCircle,
@@ -16605,7 +17845,7 @@ var InnerCircle = index$2(ReactNative.View)(function (_ref3) {
16605
17845
  backgroundColor: theme.__hd__.radio.colors.checkedCircle
16606
17846
  };
16607
17847
  });
16608
- var Spacer$1 = index$2(ReactNative.View)(function (_ref4) {
17848
+ var Spacer$1 = index$5(ReactNative.View)(function (_ref4) {
16609
17849
  var theme = _ref4.theme;
16610
17850
  return {
16611
17851
  marginTop: theme.__hd__.radio.space.groupTopMargin
@@ -16678,7 +17918,7 @@ var CompoundRadio = {
16678
17918
  Group: RadioGroup
16679
17919
  };
16680
17920
 
16681
- var StyledHeading = index$2(ReactNative.View)(function (_ref) {
17921
+ var StyledHeading = index$5(ReactNative.View)(function (_ref) {
16682
17922
  var theme = _ref.theme;
16683
17923
  return {
16684
17924
  paddingVertical: theme.__hd__.sectionHeading.space.headingVerticalPadding,
@@ -16691,13 +17931,13 @@ var StyledHeading = index$2(ReactNative.View)(function (_ref) {
16691
17931
  justifyContent: 'space-between'
16692
17932
  };
16693
17933
  });
16694
- var StyledIconWrapper = index$2(ReactNative.View)(function (_ref2) {
17934
+ var StyledIconWrapper = index$5(ReactNative.View)(function (_ref2) {
16695
17935
  var theme = _ref2.theme;
16696
17936
  return {
16697
17937
  marginRight: theme.__hd__.sectionHeading.space.iconMarginRight
16698
17938
  };
16699
17939
  });
16700
- var StyledWrapper$1 = index$2(ReactNative.View)(function () {
17940
+ var StyledWrapper$1 = index$5(ReactNative.View)(function () {
16701
17941
  return {
16702
17942
  display: 'flex',
16703
17943
  flexDirection: 'row'
@@ -16742,7 +17982,106 @@ var SectionHeading = function SectionHeading(_ref) {
16742
17982
  }, text)), rightChildren);
16743
17983
  };
16744
17984
 
16745
- var Container$1 = index$2(ReactNative.View)(function (_ref) {
17985
+ var OptionWrapper = index$5(ReactNative.TouchableOpacity)(function (_ref) {
17986
+ var theme = _ref.theme,
17987
+ themeSelected = _ref.themeSelected;
17988
+ return {
17989
+ flexDirection: 'row',
17990
+ justifyContent: 'space-between',
17991
+ alignItems: 'center',
17992
+ borderRadius: theme.__hd__.select.radii.option,
17993
+ padding: theme.__hd__.select.space.optionPadding,
17994
+ backgroundColor: themeSelected ? theme.__hd__.select.colors.checkedOption : theme.__hd__.select.colors.option
17995
+ };
17996
+ });
17997
+ var OptionListWrapper = index$5(ReactNative.View)(function (_ref2) {
17998
+ var theme = _ref2.theme;
17999
+ return {
18000
+ padding: theme.__hd__.select.space.optionListPadding
18001
+ };
18002
+ });
18003
+ var Spacer = index$5(ReactNative.View)(function (_ref3) {
18004
+ var theme = _ref3.theme;
18005
+ return {
18006
+ marginTop: theme.__hd__.select.space.optionListSpacing
18007
+ };
18008
+ });
18009
+ var FooterText = index$5(Typography.Text)(function (_ref4) {
18010
+ var theme = _ref4.theme;
18011
+ return {
18012
+ color: theme.__hd__.select.colors.footerText
18013
+ };
18014
+ });
18015
+
18016
+ var Footer = function Footer(_ref) {
18017
+ var label = _ref.label,
18018
+ onPress = _ref.onPress;
18019
+ return /*#__PURE__*/React__default["default"].createElement(ReactNative.TouchableOpacity, {
18020
+ onPress: onPress
18021
+ }, /*#__PURE__*/React__default["default"].createElement(FooterText, {
18022
+ fontSize: "large",
18023
+ fontWeight: "semi-bold"
18024
+ }, label));
18025
+ };
18026
+
18027
+ var getKey = function getKey(option, index, keyExtractor) {
18028
+ var key = '';
18029
+
18030
+ if (keyExtractor !== undefined) {
18031
+ key = keyExtractor(option, index);
18032
+ } else if (option.key !== undefined) {
18033
+ key = option.key;
18034
+ } else {
18035
+ key = index;
18036
+ }
18037
+
18038
+ return key;
18039
+ };
18040
+
18041
+ var Option$1 = function Option(_ref) {
18042
+ var text = _ref.text,
18043
+ selected = _ref.selected,
18044
+ onPress = _ref.onPress;
18045
+ return /*#__PURE__*/React__default["default"].createElement(OptionWrapper, {
18046
+ themeSelected: selected,
18047
+ onPress: onPress
18048
+ }, /*#__PURE__*/React__default["default"].createElement(ReactNative.View, {
18049
+ style: {
18050
+ flex: 1
18051
+ }
18052
+ }, /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
18053
+ fontSize: "large"
18054
+ }, text)), selected && /*#__PURE__*/React__default["default"].createElement(Icon, {
18055
+ icon: "checkmark",
18056
+ size: "small"
18057
+ }));
18058
+ };
18059
+
18060
+ var OptionList$1 = function OptionList(_ref) {
18061
+ var value = _ref.value,
18062
+ options = _ref.options,
18063
+ _onPress = _ref.onPress,
18064
+ keyExtractor = _ref.keyExtractor;
18065
+ return /*#__PURE__*/React__default["default"].createElement(OptionListWrapper, null, options.map(function (opt, index) {
18066
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
18067
+ key: getKey(opt, index, keyExtractor)
18068
+ }, index !== 0 && /*#__PURE__*/React__default["default"].createElement(Spacer, null), /*#__PURE__*/React__default["default"].createElement(Option$1, {
18069
+ text: opt.text,
18070
+ selected: value.includes(opt.value),
18071
+ onPress: function onPress() {
18072
+ if (value.includes(opt.value)) {
18073
+ _onPress(value.filter(function (val) {
18074
+ return val !== opt.value;
18075
+ }));
18076
+ } else {
18077
+ _onPress([].concat(_toConsumableArray$1(value), [opt.value]));
18078
+ }
18079
+ }
18080
+ }));
18081
+ }));
18082
+ };
18083
+
18084
+ var Container$1 = index$5(ReactNative.View)(function (_ref) {
16746
18085
  var theme = _ref.theme;
16747
18086
  return {
16748
18087
  position: 'relative',
@@ -16754,7 +18093,7 @@ var Container$1 = index$2(ReactNative.View)(function (_ref) {
16754
18093
  alignItems: 'center'
16755
18094
  };
16756
18095
  });
16757
- var Label = index$2(Typography.Text)(function (_ref2) {
18096
+ var Label = index$5(Typography.Text)(function (_ref2) {
16758
18097
  var theme = _ref2.theme;
16759
18098
  return {
16760
18099
  position: 'absolute',
@@ -16765,7 +18104,7 @@ var Label = index$2(Typography.Text)(function (_ref2) {
16765
18104
  paddingHorizontal: theme.__hd__.textInput.space.labelHorizontalPadding
16766
18105
  };
16767
18106
  });
16768
- var StyledTextInput = index$2(ReactNative.TextInput)(function (_ref3) {
18107
+ var StyledTextInput = index$5(ReactNative.TextInput)(function (_ref3) {
16769
18108
  var theme = _ref3.theme;
16770
18109
  return {
16771
18110
  flex: 1,
@@ -16809,49 +18148,75 @@ var TextInput = function TextInput(_ref) {
16809
18148
  }));
16810
18149
  };
16811
18150
 
16812
- var OptionWrapper = index$2(ReactNative.TouchableOpacity)(function (_ref) {
16813
- var theme = _ref.theme,
16814
- themeSelected = _ref.themeSelected;
16815
- return {
16816
- flexDirection: 'row',
16817
- justifyContent: 'space-between',
16818
- alignItems: 'center',
16819
- borderRadius: theme.__hd__.select.radii.option,
16820
- padding: theme.__hd__.select.space.optionPadding,
16821
- backgroundColor: themeSelected ? theme.__hd__.select.colors.checkedOption : theme.__hd__.select.colors.option
16822
- };
16823
- });
16824
- var OptionListWrapper = index$2(ReactNative.View)(function (_ref2) {
16825
- var theme = _ref2.theme;
16826
- return {
16827
- padding: theme.__hd__.select.space.optionListPadding
16828
- };
16829
- });
16830
- var Spacer = index$2(ReactNative.View)(function (_ref3) {
16831
- var theme = _ref3.theme;
16832
- return {
16833
- marginTop: theme.__hd__.select.space.optionListSpacing
16834
- };
16835
- });
16836
- var FooterText = index$2(Typography.Text)(function (_ref4) {
16837
- var theme = _ref4.theme;
16838
- return {
16839
- color: theme.__hd__.select.colors.footerText
16840
- };
16841
- });
18151
+ function MultiSelect(_ref) {
18152
+ var options = _ref.options,
18153
+ value = _ref.value,
18154
+ testID = _ref.testID,
18155
+ style = _ref.style,
18156
+ label = _ref.label,
18157
+ footerLabel = _ref.footerLabel,
18158
+ onConfirm = _ref.onConfirm;
18159
+ var theme = useTheme$1();
16842
18160
 
16843
- function Footer(_ref) {
16844
- var label = _ref.label,
16845
- onPress = _ref.onPress;
18161
+ var _useState = React.useState(false),
18162
+ _useState2 = _slicedToArray(_useState, 2),
18163
+ open = _useState2[0],
18164
+ setOpen = _useState2[1];
18165
+
18166
+ var _useState3 = React.useState(value),
18167
+ _useState4 = _slicedToArray(_useState3, 2),
18168
+ selectingValue = _useState4[0],
18169
+ setSelectingValue = _useState4[1];
18170
+
18171
+ var displayedValue = options.filter(function (opt) {
18172
+ return value.includes(opt.value);
18173
+ }).map(function (opt) {
18174
+ return opt.text;
18175
+ }).join(', ');
16846
18176
  return /*#__PURE__*/React__default["default"].createElement(ReactNative.TouchableOpacity, {
16847
- onPress: onPress
16848
- }, /*#__PURE__*/React__default["default"].createElement(FooterText, {
16849
- fontSize: "large",
16850
- fontWeight: "semi-bold"
16851
- }, label));
18177
+ onPress: function onPress() {
18178
+ return setOpen(true);
18179
+ }
18180
+ }, /*#__PURE__*/React__default["default"].createElement(TextInput, {
18181
+ label: label,
18182
+ value: displayedValue,
18183
+ onPressIn: function onPressIn() {
18184
+ return setOpen(true);
18185
+ },
18186
+ editable: false // when input is not editable on Android, the text color is gray
18187
+ // hence, adding this to make the text color the same as iOS
18188
+ ,
18189
+ textStyle: {
18190
+ color: theme.colors.text
18191
+ },
18192
+ suffix: "arrow-down",
18193
+ multiline: true,
18194
+ style: style,
18195
+ testID: testID
18196
+ }), /*#__PURE__*/React__default["default"].createElement(BottomSheet, {
18197
+ open: open,
18198
+ onRequestClose: function onRequestClose() {
18199
+ return setOpen(false);
18200
+ },
18201
+ onDismiss: function onDismiss() {
18202
+ return setSelectingValue(value);
18203
+ },
18204
+ header: label,
18205
+ footer: /*#__PURE__*/React__default["default"].createElement(Footer, {
18206
+ label: footerLabel,
18207
+ onPress: function onPress() {
18208
+ setOpen(false);
18209
+ onConfirm(selectingValue);
18210
+ }
18211
+ })
18212
+ }, /*#__PURE__*/React__default["default"].createElement(OptionList$1, {
18213
+ options: options,
18214
+ value: selectingValue,
18215
+ onPress: setSelectingValue
18216
+ })));
16852
18217
  }
16853
18218
 
16854
- function Option(_ref) {
18219
+ var Option = function Option(_ref) {
16855
18220
  var text = _ref.text,
16856
18221
  selected = _ref.selected,
16857
18222
  onPress = _ref.onPress;
@@ -16864,58 +18229,40 @@ function Option(_ref) {
16864
18229
  }
16865
18230
  }, /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
16866
18231
  fontSize: "large"
16867
- }, text)), selected && /*#__PURE__*/React__default["default"].createElement(Icon, {
16868
- icon: "checkmark",
16869
- size: "small"
16870
- }));
16871
- }
16872
-
16873
- function getKey(option, index, keyExtractor) {
16874
- var key = '';
16875
-
16876
- if (keyExtractor !== undefined) {
16877
- key = keyExtractor(option, index);
16878
- } else if (option.key !== undefined) {
16879
- key = option.key;
16880
- } else {
16881
- key = index;
16882
- }
16883
-
16884
- return key;
16885
- }
18232
+ }, text)));
18233
+ };
16886
18234
 
16887
- function OptionList(_ref2) {
16888
- var value = _ref2.value,
16889
- options = _ref2.options,
16890
- _onPress = _ref2.onPress,
16891
- keyExtractor = _ref2.keyExtractor;
18235
+ var OptionList = function OptionList(_ref) {
18236
+ var value = _ref.value,
18237
+ options = _ref.options,
18238
+ _onPress = _ref.onPress,
18239
+ keyExtractor = _ref.keyExtractor;
16892
18240
  return /*#__PURE__*/React__default["default"].createElement(OptionListWrapper, null, options.map(function (opt, index) {
16893
18241
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
16894
18242
  key: getKey(opt, index, keyExtractor)
16895
18243
  }, index !== 0 && /*#__PURE__*/React__default["default"].createElement(Spacer, null), /*#__PURE__*/React__default["default"].createElement(Option, {
16896
18244
  text: opt.text,
16897
- selected: value.includes(opt.value),
18245
+ selected: value === opt.value,
16898
18246
  onPress: function onPress() {
16899
- if (value.includes(opt.value)) {
16900
- _onPress(value.filter(function (val) {
16901
- return val !== opt.value;
16902
- }));
18247
+ if (value === opt.value) {
18248
+ _onPress(null);
16903
18249
  } else {
16904
- _onPress([].concat(_toConsumableArray$1(value), [opt.value]));
18250
+ _onPress(opt.value);
16905
18251
  }
16906
18252
  }
16907
18253
  }));
16908
18254
  }));
16909
- }
18255
+ };
18256
+
18257
+ var SingleSelect = function SingleSelect(_ref) {
18258
+ var _options$find;
16910
18259
 
16911
- function MultiSelect(_ref) {
16912
18260
  var options = _ref.options,
16913
18261
  value = _ref.value,
16914
18262
  testID = _ref.testID,
16915
18263
  style = _ref.style,
16916
18264
  label = _ref.label,
16917
- footerLabel = _ref.footerLabel,
16918
- _onPress = _ref.onPress;
18265
+ onConfirm = _ref.onConfirm;
16919
18266
  var theme = useTheme$1();
16920
18267
 
16921
18268
  var _useState = React.useState(false),
@@ -16928,11 +18275,9 @@ function MultiSelect(_ref) {
16928
18275
  selectingValue = _useState4[0],
16929
18276
  setSelectingValue = _useState4[1];
16930
18277
 
16931
- var displayedValue = options.filter(function (opt) {
16932
- return value.includes(opt.value);
16933
- }).map(function (opt) {
16934
- return opt.text;
16935
- }).join(', ');
18278
+ var displayedValue = (_options$find = options.find(function (opt) {
18279
+ return value === opt.value;
18280
+ })) === null || _options$find === void 0 ? void 0 : _options$find.text;
16936
18281
  return /*#__PURE__*/React__default["default"].createElement(ReactNative.TouchableOpacity, {
16937
18282
  onPress: function onPress() {
16938
18283
  return setOpen(true);
@@ -16961,27 +18306,22 @@ function MultiSelect(_ref) {
16961
18306
  onDismiss: function onDismiss() {
16962
18307
  return setSelectingValue(value);
16963
18308
  },
16964
- header: label,
16965
- footer: /*#__PURE__*/React__default["default"].createElement(Footer, {
16966
- label: footerLabel,
16967
- onPress: function onPress() {
16968
- setOpen(false);
16969
-
16970
- _onPress(selectingValue);
16971
- }
16972
- })
18309
+ header: label
16973
18310
  }, /*#__PURE__*/React__default["default"].createElement(OptionList, {
16974
18311
  options: options,
16975
18312
  value: selectingValue,
16976
- onPress: setSelectingValue
18313
+ onPress: function onPress(selectedValue) {
18314
+ setOpen(false);
18315
+ onConfirm(selectedValue);
18316
+ }
16977
18317
  })));
16978
- }
18318
+ };
16979
18319
 
16980
- var CompoundSelect = {
18320
+ var index$2 = Object.assign(SingleSelect, {
16981
18321
  Multi: MultiSelect
16982
- };
18322
+ });
16983
18323
 
16984
- var StyledWrapper = index$2(ReactNative.View)(function (_ref) {
18324
+ var StyledWrapper = index$5(ReactNative.View)(function (_ref) {
16985
18325
  var theme = _ref.theme,
16986
18326
  themeChecked = _ref.themeChecked,
16987
18327
  themeSize = _ref.themeSize;
@@ -16993,7 +18333,7 @@ var StyledWrapper = index$2(ReactNative.View)(function (_ref) {
16993
18333
  backgroundColor: themeChecked ? theme.__hd__["switch"].colors.active : theme.__hd__["switch"].colors.inactive
16994
18334
  };
16995
18335
  });
16996
- var StyledDisabledWrapper = index$2(ReactNative.View)(function (_ref2) {
18336
+ var StyledDisabledWrapper = index$5(ReactNative.View)(function (_ref2) {
16997
18337
  var theme = _ref2.theme,
16998
18338
  themeSize = _ref2.themeSize;
16999
18339
  return {
@@ -17006,7 +18346,7 @@ var StyledDisabledWrapper = index$2(ReactNative.View)(function (_ref2) {
17006
18346
  opacity: 0.8
17007
18347
  };
17008
18348
  });
17009
- var StyledThumbWrapper = index$2(ReactNative.View)(function (_ref3) {
18349
+ var StyledThumbWrapper = index$5(ReactNative.View)(function (_ref3) {
17010
18350
  var theme = _ref3.theme,
17011
18351
  themeSize = _ref3.themeSize;
17012
18352
  return {
@@ -17017,7 +18357,7 @@ var StyledThumbWrapper = index$2(ReactNative.View)(function (_ref3) {
17017
18357
  justifyContent: 'center'
17018
18358
  };
17019
18359
  });
17020
- var StyledKnot = index$2(ReactNative.Animated.View)(function (_ref4) {
18360
+ var StyledKnot = index$5(ReactNative.Animated.View)(function (_ref4) {
17021
18361
  var theme = _ref4.theme,
17022
18362
  themeSize = _ref4.themeSize;
17023
18363
  return {
@@ -17274,11 +18614,11 @@ var PagerView = /*#__PURE__*/function (_React$Component) {
17274
18614
  }(React__default["default"].Component);
17275
18615
 
17276
18616
  var AnimatedPagerView = ReactNative.Animated.createAnimatedComponent(PagerView);
17277
- var TabContainer$1 = index$2(ReactNative.View)({
18617
+ var TabContainer$1 = index$5(ReactNative.View)({
17278
18618
  flex: 1,
17279
18619
  overflow: 'hidden'
17280
18620
  });
17281
- var HeaderTabWrapper$1 = index$2(ReactNative.View)(function (_ref) {
18621
+ var HeaderTabWrapper$1 = index$5(ReactNative.View)(function (_ref) {
17282
18622
  var theme = _ref.theme,
17283
18623
  themeInsets = _ref.themeInsets;
17284
18624
  return {
@@ -17287,10 +18627,10 @@ var HeaderTabWrapper$1 = index$2(ReactNative.View)(function (_ref) {
17287
18627
  borderBottomWidth: theme.__hd__.tabs.borderWidths.headerBottom
17288
18628
  };
17289
18629
  });
17290
- var HeaderTab = index$2(ReactNative.View)({
18630
+ var HeaderTab = index$5(ReactNative.View)({
17291
18631
  flexDirection: 'row'
17292
18632
  });
17293
- var HeaderTabItem$1 = index$2(ReactNative.View)(function (_ref2) {
18633
+ var HeaderTabItem$1 = index$5(ReactNative.View)(function (_ref2) {
17294
18634
  var theme = _ref2.theme;
17295
18635
  return {
17296
18636
  flex: 1,
@@ -17298,13 +18638,13 @@ var HeaderTabItem$1 = index$2(ReactNative.View)(function (_ref2) {
17298
18638
  paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
17299
18639
  };
17300
18640
  });
17301
- var ContentWrapper$1 = index$2(AnimatedPagerView)({
18641
+ var ContentWrapper$1 = index$5(AnimatedPagerView)({
17302
18642
  flex: 1
17303
18643
  });
17304
- var TabScreen$1 = index$2(ReactNative.View)({
18644
+ var TabScreen$1 = index$5(ReactNative.View)({
17305
18645
  flex: 1
17306
18646
  });
17307
- var StyledIndicator = index$2(ReactNative.Animated.View)(function (_ref3) {
18647
+ var StyledIndicator = index$5(ReactNative.Animated.View)(function (_ref3) {
17308
18648
  var theme = _ref3.theme,
17309
18649
  themeWidth = _ref3.themeWidth;
17310
18650
  return {
@@ -17337,17 +18677,17 @@ var ActiveTabIndicator = function ActiveTabIndicator(_ref) {
17337
18677
  });
17338
18678
  };
17339
18679
 
17340
- var TabScreen = index$2(ReactNative.View)({
18680
+ var TabScreen = index$5(ReactNative.View)({
17341
18681
  flex: 1
17342
18682
  });
17343
- var TabContainer = index$2(ReactNative.View)({
18683
+ var TabContainer = index$5(ReactNative.View)({
17344
18684
  flex: 1,
17345
18685
  overflow: 'hidden'
17346
18686
  });
17347
- var ContentWrapper = index$2(PagerView)({
18687
+ var ContentWrapper = index$5(PagerView)({
17348
18688
  flex: 1
17349
18689
  });
17350
- var HeaderTabWrapper = index$2(ReactNative.View)(function (_ref) {
18690
+ var HeaderTabWrapper = index$5(ReactNative.View)(function (_ref) {
17351
18691
  var theme = _ref.theme,
17352
18692
  themeInsets = _ref.themeInsets;
17353
18693
  return {
@@ -17356,21 +18696,21 @@ var HeaderTabWrapper = index$2(ReactNative.View)(function (_ref) {
17356
18696
  borderBottomWidth: theme.__hd__.tabs.borderWidths.headerBottom
17357
18697
  };
17358
18698
  });
17359
- var HeaderTabItem = index$2(ReactNative.Animated.View)(function (_ref2) {
18699
+ var HeaderTabItem = index$5(ReactNative.Animated.View)(function (_ref2) {
17360
18700
  var theme = _ref2.theme;
17361
18701
  return {
17362
18702
  paddingHorizontal: theme.__hd__.tabs.space.itemHorizontalPadding,
17363
18703
  paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
17364
18704
  };
17365
18705
  });
17366
- var HeaderTabItemOutlineWrapper = index$2(ReactNative.View)(function (_ref3) {
18706
+ var HeaderTabItemOutlineWrapper = index$5(ReactNative.View)(function (_ref3) {
17367
18707
  var theme = _ref3.theme;
17368
18708
  return _objectSpread2({
17369
18709
  paddingHorizontal: theme.__hd__.tabs.space.itemHorizontalPadding,
17370
18710
  paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
17371
18711
  }, ReactNative.StyleSheet.absoluteFillObject);
17372
18712
  });
17373
- var HeaderTabItemOutline = index$2(ReactNative.Animated.View)(function (_ref4) {
18713
+ var HeaderTabItemOutline = index$5(ReactNative.Animated.View)(function (_ref4) {
17374
18714
  var theme = _ref4.theme,
17375
18715
  themeActive = _ref4.themeActive;
17376
18716
  return {
@@ -17378,7 +18718,7 @@ var HeaderTabItemOutline = index$2(ReactNative.Animated.View)(function (_ref4) {
17378
18718
  backgroundColor: themeActive ? theme.__hd__.tabs.colors.activeBackground : undefined
17379
18719
  };
17380
18720
  });
17381
- var HeaderTabItemWrapper = index$2(ReactNative.View)(function (_ref5) {
18721
+ var HeaderTabItemWrapper = index$5(ReactNative.View)(function (_ref5) {
17382
18722
  var theme = _ref5.theme;
17383
18723
  return {
17384
18724
  paddingHorizontal: theme.__hd__.tabs.space.outlineHorizontalPadding,
@@ -17689,7 +19029,7 @@ var Tabs = function Tabs(_ref2) {
17689
19029
  })));
17690
19030
  };
17691
19031
 
17692
- var index = Object.assign(Tabs, {
19032
+ var index$1 = Object.assign(Tabs, {
17693
19033
  Scroll: ScrollableTab
17694
19034
  });
17695
19035
 
@@ -17699,7 +19039,7 @@ var BACKGROUND_INTENTS = {
17699
19039
  danger: 'dangerBackground',
17700
19040
  info: 'infoBackground'
17701
19041
  };
17702
- var StyledView = index$2(ReactNative.View)(function (_ref) {
19042
+ var StyledView = index$5(ReactNative.View)(function (_ref) {
17703
19043
  var themeIntent = _ref.themeIntent,
17704
19044
  theme = _ref.theme;
17705
19045
  return {
@@ -17711,7 +19051,7 @@ var StyledView = index$2(ReactNative.View)(function (_ref) {
17711
19051
  backgroundColor: theme.__hd__.tag.colors[BACKGROUND_INTENTS[themeIntent]]
17712
19052
  };
17713
19053
  });
17714
- var StyledText = index$2(ReactNative.Text)(function (_ref2) {
19054
+ var StyledText = index$5(ReactNative.Text)(function (_ref2) {
17715
19055
  var themeIntent = _ref2.themeIntent,
17716
19056
  theme = _ref2.theme;
17717
19057
  return {
@@ -17743,7 +19083,7 @@ var Tag = function Tag(_ref) {
17743
19083
  }, content));
17744
19084
  };
17745
19085
 
17746
- var ToastContainerWrapper = index$2(ReactNative.View)(function (_ref) {
19086
+ var ToastContainerWrapper = index$5(ReactNative.View)(function (_ref) {
17747
19087
  var theme = _ref.theme,
17748
19088
  position = _ref.position;
17749
19089
  return _objectSpread2(_objectSpread2({}, ReactNative.StyleSheet.absoluteFillObject), {}, {
@@ -17753,7 +19093,7 @@ var ToastContainerWrapper = index$2(ReactNative.View)(function (_ref) {
17753
19093
  elevation: 9999
17754
19094
  });
17755
19095
  });
17756
- var Container = index$2(ReactNative.Animated.View)(function (_ref2) {
19096
+ var Container = index$5(ReactNative.Animated.View)(function (_ref2) {
17757
19097
  var theme = _ref2.theme,
17758
19098
  themeVariant = _ref2.themeVariant,
17759
19099
  themeIntent = _ref2.themeIntent;
@@ -17764,21 +19104,21 @@ var Container = index$2(ReactNative.Animated.View)(function (_ref2) {
17764
19104
  flexDirection: 'row'
17765
19105
  };
17766
19106
  });
17767
- var IconContainer = index$2(ReactNative.View)(function (_ref3) {
19107
+ var IconContainer = index$5(ReactNative.View)(function (_ref3) {
17768
19108
  var theme = _ref3.theme;
17769
19109
  return {
17770
19110
  alignItems: 'center',
17771
19111
  paddingLeft: theme.__hd__.toast.space.mediumPadding
17772
19112
  };
17773
19113
  });
17774
- var TextContainer = index$2(ReactNative.View)(function (_ref4) {
19114
+ var TextContainer = index$5(ReactNative.View)(function (_ref4) {
17775
19115
  var theme = _ref4.theme;
17776
19116
  return {
17777
19117
  paddingHorizontal: theme.__hd__.toast.space.mediumPadding,
17778
19118
  flex: 1
17779
19119
  };
17780
19120
  });
17781
- var ContentContainer = index$2(ReactNative.View)(function (_ref5) {
19121
+ var ContentContainer = index$5(ReactNative.View)(function (_ref5) {
17782
19122
  var theme = _ref5.theme,
17783
19123
  showDivider = _ref5.showDivider;
17784
19124
  return {
@@ -17789,7 +19129,7 @@ var ContentContainer = index$2(ReactNative.View)(function (_ref5) {
17789
19129
  flexDirection: 'row'
17790
19130
  };
17791
19131
  });
17792
- var CTAWrapper = index$2(ReactNative.TouchableOpacity)(function (_ref6) {
19132
+ var CTAWrapper = index$5(ReactNative.TouchableOpacity)(function (_ref6) {
17793
19133
  var theme = _ref6.theme;
17794
19134
  return {
17795
19135
  paddingHorizontal: theme.__hd__.alert.space.padding,
@@ -18030,31 +19370,131 @@ var Toast = {
18030
19370
  useToast: useToast
18031
19371
  };
18032
19372
 
19373
+ var ToolbarWrapper = index$5(ReactNative.View)(function (_ref) {
19374
+ var theme = _ref.theme;
19375
+ return {
19376
+ position: 'absolute',
19377
+ bottom: 0,
19378
+ left: 0,
19379
+ right: 0,
19380
+ zIndex: 9999,
19381
+ elevation: 9999,
19382
+ width: '100%',
19383
+ paddingVertical: theme.__hd__.toolbar.space.verticalPadding,
19384
+ paddingHorizontal: theme.__hd__.toolbar.space.horizontalPadding,
19385
+ borderTopWidth: theme.__hd__.toolbar.borderWidths["default"],
19386
+ borderColor: theme.__hd__.toolbar.colors.border,
19387
+ flexDirection: 'row',
19388
+ alignItems: 'center',
19389
+ backgroundColor: theme.__hd__.toolbar.colors.background
19390
+ };
19391
+ });
19392
+ var alignment = {
19393
+ left: 'flex-start',
19394
+ center: 'center',
19395
+ right: 'flex-end'
19396
+ };
19397
+ var ToolbarGroupWrapper = index$5(ReactNative.View)(function (_ref2) {
19398
+ var align = _ref2.align;
19399
+ return {
19400
+ flex: 1,
19401
+ flexDirection: 'row',
19402
+ justifyContent: alignment[align],
19403
+ alignItems: 'center'
19404
+ };
19405
+ });
19406
+ var ToolbarItemWrapper = index$5(ReactNative.TouchableOpacity)(function (_ref3) {
19407
+ var theme = _ref3.theme;
19408
+ return {
19409
+ paddingVertical: theme.__hd__.toolbar.space.verticalPadding,
19410
+ paddingHorizontal: theme.__hd__.toolbar.space.horizontalPadding,
19411
+ alignItems: 'center'
19412
+ };
19413
+ });
19414
+
19415
+ var ToolbarItem = function ToolbarItem(_ref) {
19416
+ var icon = _ref.icon,
19417
+ label = _ref.label,
19418
+ onPress = _ref.onPress,
19419
+ _ref$intent = _ref.intent,
19420
+ intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
19421
+ _ref$disabled = _ref.disabled,
19422
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled;
19423
+ return /*#__PURE__*/React__default["default"].createElement(ToolbarItemWrapper, {
19424
+ onPress: onPress,
19425
+ disabled: disabled
19426
+ }, icon ? /*#__PURE__*/React__default["default"].createElement(Icon, {
19427
+ icon: icon,
19428
+ size: label ? 'medium' : 'large',
19429
+ intent: disabled ? 'disabled-text' : intent,
19430
+ testID: "toolbar-item-icon-".concat(icon)
19431
+ }) : null, label ? /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
19432
+ fontSize: icon ? 'small' : 'large',
19433
+ fontWeight: "semi-bold",
19434
+ intent: disabled ? 'subdued' : intent
19435
+ }, label) : null);
19436
+ };
19437
+
19438
+ var ToolbarGroup = function ToolbarGroup(_ref) {
19439
+ var _ref$align = _ref.align,
19440
+ align = _ref$align === void 0 ? 'right' : _ref$align,
19441
+ _ref$items = _ref.items,
19442
+ items = _ref$items === void 0 ? [] : _ref$items;
19443
+ return /*#__PURE__*/React__default["default"].createElement(ToolbarGroupWrapper, {
19444
+ align: align
19445
+ }, items.map(function (_ref2) {
19446
+ var label = _ref2.label,
19447
+ icon = _ref2.icon,
19448
+ onPress = _ref2.onPress,
19449
+ disabled = _ref2.disabled,
19450
+ intent = _ref2.intent;
19451
+ return /*#__PURE__*/React__default["default"].createElement(ToolbarItem, {
19452
+ key: "".concat(label, "-").concat(icon),
19453
+ label: label,
19454
+ icon: icon,
19455
+ intent: intent,
19456
+ onPress: onPress,
19457
+ disabled: disabled
19458
+ });
19459
+ }));
19460
+ };
19461
+
19462
+ var Toolbar = function Toolbar(_ref) {
19463
+ var children = _ref.children;
19464
+ return /*#__PURE__*/React__default["default"].createElement(ToolbarWrapper, null, children);
19465
+ };
19466
+
19467
+ var index = Object.assign(Toolbar, {
19468
+ Group: ToolbarGroup
19469
+ });
19470
+
18033
19471
  exports.Alert = Alert;
18034
19472
  exports.Avatar = Avatar;
18035
19473
  exports.Badge = Badge$1;
18036
19474
  exports.BottomNavigation = BottomNavigation;
18037
19475
  exports.BottomSheet = BottomSheet;
18038
19476
  exports.Button = CompoundButton;
18039
- exports.Card = Card;
19477
+ exports.Card = index$4;
18040
19478
  exports.Checkbox = CheckBox;
18041
19479
  exports.Collapse = Collapse;
18042
19480
  exports.ContentNavigator = ContentNavigator;
18043
19481
  exports.Divider = Divider;
18044
19482
  exports.Drawer = Drawer;
18045
- exports.FAB = index$1;
19483
+ exports.FAB = index$3;
18046
19484
  exports.Icon = Icon;
19485
+ exports.List = List;
18047
19486
  exports.Progress = Progress;
18048
19487
  exports.Radio = CompoundRadio;
18049
19488
  exports.SectionHeading = SectionHeading;
18050
- exports.Select = CompoundSelect;
19489
+ exports.Select = index$2;
18051
19490
  exports.Spinner = Spinner;
18052
19491
  exports.Switch = Switch;
18053
- exports.Tabs = index;
19492
+ exports.Tabs = index$1;
18054
19493
  exports.Tag = Tag;
18055
19494
  exports.TextInput = TextInput;
18056
19495
  exports.ThemeProvider = ThemeProvider;
18057
19496
  exports.Toast = Toast;
19497
+ exports.Toolbar = index;
18058
19498
  exports.Typography = Typography;
18059
19499
  exports.getTheme = getTheme;
18060
19500
  exports.scale = scale;