@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/es/index.js CHANGED
@@ -1607,124 +1607,1029 @@ var scale$1 = {
1607
1607
  radius: BASE_RADIUS
1608
1608
  };
1609
1609
 
1610
- var palette = {
1611
- black: '#000000',
1610
+ var hexCharacters = 'a-f\\d';
1611
+ var match3or4Hex = "#?[".concat(hexCharacters, "]{3}[").concat(hexCharacters, "]?");
1612
+ var match6or8Hex = "#?[".concat(hexCharacters, "]{6}([").concat(hexCharacters, "]{2})?");
1613
+ var nonHexChars = new RegExp("[^#".concat(hexCharacters, "]"), 'gi');
1614
+ var validHexSize = new RegExp("^".concat(match3or4Hex, "$|^").concat(match6or8Hex, "$"), 'i');
1615
+
1616
+ var hexRgb = function hexRgb(hex) {
1617
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1618
+
1619
+ if (typeof hex !== 'string' || nonHexChars.test(hex) || !validHexSize.test(hex)) {
1620
+ throw new TypeError('Expected a valid hex string');
1621
+ }
1622
+
1623
+ hex = hex.replace(/^#/, '');
1624
+ var alphaFromHex = 1;
1625
+
1626
+ if (hex.length === 8) {
1627
+ alphaFromHex = Number.parseInt(hex.slice(6, 8), 16) / 255;
1628
+ hex = hex.slice(0, 6);
1629
+ }
1630
+
1631
+ if (hex.length === 4) {
1632
+ alphaFromHex = Number.parseInt(hex.slice(3, 4).repeat(2), 16) / 255;
1633
+ hex = hex.slice(0, 3);
1634
+ }
1635
+
1636
+ if (hex.length === 3) {
1637
+ hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];
1638
+ }
1639
+
1640
+ var number = Number.parseInt(hex, 16);
1641
+ var red = number >> 16;
1642
+ var green = number >> 8 & 255;
1643
+ var blue = number & 255;
1644
+ var alpha = typeof options.alpha === 'number' ? options.alpha : alphaFromHex;
1645
+
1646
+ if (options.format === 'array') {
1647
+ return [red, green, blue, alpha];
1648
+ }
1649
+
1650
+ if (options.format === 'css') {
1651
+ var alphaString = alpha === 1 ? '' : " / ".concat(Number((alpha * 100).toFixed(2)), "%");
1652
+ return "rgb(".concat(red, " ").concat(green, " ").concat(blue).concat(alphaString, ")");
1653
+ }
1654
+
1655
+ return {
1656
+ red: red,
1657
+ green: green,
1658
+ blue: blue,
1659
+ alpha: alpha
1660
+ };
1661
+ };
1662
+
1663
+ var colorName = {
1664
+ "aliceblue": [240, 248, 255],
1665
+ "antiquewhite": [250, 235, 215],
1666
+ "aqua": [0, 255, 255],
1667
+ "aquamarine": [127, 255, 212],
1668
+ "azure": [240, 255, 255],
1669
+ "beige": [245, 245, 220],
1670
+ "bisque": [255, 228, 196],
1671
+ "black": [0, 0, 0],
1672
+ "blanchedalmond": [255, 235, 205],
1673
+ "blue": [0, 0, 255],
1674
+ "blueviolet": [138, 43, 226],
1675
+ "brown": [165, 42, 42],
1676
+ "burlywood": [222, 184, 135],
1677
+ "cadetblue": [95, 158, 160],
1678
+ "chartreuse": [127, 255, 0],
1679
+ "chocolate": [210, 105, 30],
1680
+ "coral": [255, 127, 80],
1681
+ "cornflowerblue": [100, 149, 237],
1682
+ "cornsilk": [255, 248, 220],
1683
+ "crimson": [220, 20, 60],
1684
+ "cyan": [0, 255, 255],
1685
+ "darkblue": [0, 0, 139],
1686
+ "darkcyan": [0, 139, 139],
1687
+ "darkgoldenrod": [184, 134, 11],
1688
+ "darkgray": [169, 169, 169],
1689
+ "darkgreen": [0, 100, 0],
1690
+ "darkgrey": [169, 169, 169],
1691
+ "darkkhaki": [189, 183, 107],
1692
+ "darkmagenta": [139, 0, 139],
1693
+ "darkolivegreen": [85, 107, 47],
1694
+ "darkorange": [255, 140, 0],
1695
+ "darkorchid": [153, 50, 204],
1696
+ "darkred": [139, 0, 0],
1697
+ "darksalmon": [233, 150, 122],
1698
+ "darkseagreen": [143, 188, 143],
1699
+ "darkslateblue": [72, 61, 139],
1700
+ "darkslategray": [47, 79, 79],
1701
+ "darkslategrey": [47, 79, 79],
1702
+ "darkturquoise": [0, 206, 209],
1703
+ "darkviolet": [148, 0, 211],
1704
+ "deeppink": [255, 20, 147],
1705
+ "deepskyblue": [0, 191, 255],
1706
+ "dimgray": [105, 105, 105],
1707
+ "dimgrey": [105, 105, 105],
1708
+ "dodgerblue": [30, 144, 255],
1709
+ "firebrick": [178, 34, 34],
1710
+ "floralwhite": [255, 250, 240],
1711
+ "forestgreen": [34, 139, 34],
1712
+ "fuchsia": [255, 0, 255],
1713
+ "gainsboro": [220, 220, 220],
1714
+ "ghostwhite": [248, 248, 255],
1715
+ "gold": [255, 215, 0],
1716
+ "goldenrod": [218, 165, 32],
1717
+ "gray": [128, 128, 128],
1718
+ "green": [0, 128, 0],
1719
+ "greenyellow": [173, 255, 47],
1720
+ "grey": [128, 128, 128],
1721
+ "honeydew": [240, 255, 240],
1722
+ "hotpink": [255, 105, 180],
1723
+ "indianred": [205, 92, 92],
1724
+ "indigo": [75, 0, 130],
1725
+ "ivory": [255, 255, 240],
1726
+ "khaki": [240, 230, 140],
1727
+ "lavender": [230, 230, 250],
1728
+ "lavenderblush": [255, 240, 245],
1729
+ "lawngreen": [124, 252, 0],
1730
+ "lemonchiffon": [255, 250, 205],
1731
+ "lightblue": [173, 216, 230],
1732
+ "lightcoral": [240, 128, 128],
1733
+ "lightcyan": [224, 255, 255],
1734
+ "lightgoldenrodyellow": [250, 250, 210],
1735
+ "lightgray": [211, 211, 211],
1736
+ "lightgreen": [144, 238, 144],
1737
+ "lightgrey": [211, 211, 211],
1738
+ "lightpink": [255, 182, 193],
1739
+ "lightsalmon": [255, 160, 122],
1740
+ "lightseagreen": [32, 178, 170],
1741
+ "lightskyblue": [135, 206, 250],
1742
+ "lightslategray": [119, 136, 153],
1743
+ "lightslategrey": [119, 136, 153],
1744
+ "lightsteelblue": [176, 196, 222],
1745
+ "lightyellow": [255, 255, 224],
1746
+ "lime": [0, 255, 0],
1747
+ "limegreen": [50, 205, 50],
1748
+ "linen": [250, 240, 230],
1749
+ "magenta": [255, 0, 255],
1750
+ "maroon": [128, 0, 0],
1751
+ "mediumaquamarine": [102, 205, 170],
1752
+ "mediumblue": [0, 0, 205],
1753
+ "mediumorchid": [186, 85, 211],
1754
+ "mediumpurple": [147, 112, 219],
1755
+ "mediumseagreen": [60, 179, 113],
1756
+ "mediumslateblue": [123, 104, 238],
1757
+ "mediumspringgreen": [0, 250, 154],
1758
+ "mediumturquoise": [72, 209, 204],
1759
+ "mediumvioletred": [199, 21, 133],
1760
+ "midnightblue": [25, 25, 112],
1761
+ "mintcream": [245, 255, 250],
1762
+ "mistyrose": [255, 228, 225],
1763
+ "moccasin": [255, 228, 181],
1764
+ "navajowhite": [255, 222, 173],
1765
+ "navy": [0, 0, 128],
1766
+ "oldlace": [253, 245, 230],
1767
+ "olive": [128, 128, 0],
1768
+ "olivedrab": [107, 142, 35],
1769
+ "orange": [255, 165, 0],
1770
+ "orangered": [255, 69, 0],
1771
+ "orchid": [218, 112, 214],
1772
+ "palegoldenrod": [238, 232, 170],
1773
+ "palegreen": [152, 251, 152],
1774
+ "paleturquoise": [175, 238, 238],
1775
+ "palevioletred": [219, 112, 147],
1776
+ "papayawhip": [255, 239, 213],
1777
+ "peachpuff": [255, 218, 185],
1778
+ "peru": [205, 133, 63],
1779
+ "pink": [255, 192, 203],
1780
+ "plum": [221, 160, 221],
1781
+ "powderblue": [176, 224, 230],
1782
+ "purple": [128, 0, 128],
1783
+ "rebeccapurple": [102, 51, 153],
1784
+ "red": [255, 0, 0],
1785
+ "rosybrown": [188, 143, 143],
1786
+ "royalblue": [65, 105, 225],
1787
+ "saddlebrown": [139, 69, 19],
1788
+ "salmon": [250, 128, 114],
1789
+ "sandybrown": [244, 164, 96],
1790
+ "seagreen": [46, 139, 87],
1791
+ "seashell": [255, 245, 238],
1792
+ "sienna": [160, 82, 45],
1793
+ "silver": [192, 192, 192],
1794
+ "skyblue": [135, 206, 235],
1795
+ "slateblue": [106, 90, 205],
1796
+ "slategray": [112, 128, 144],
1797
+ "slategrey": [112, 128, 144],
1798
+ "snow": [255, 250, 250],
1799
+ "springgreen": [0, 255, 127],
1800
+ "steelblue": [70, 130, 180],
1801
+ "tan": [210, 180, 140],
1802
+ "teal": [0, 128, 128],
1803
+ "thistle": [216, 191, 216],
1804
+ "tomato": [255, 99, 71],
1805
+ "turquoise": [64, 224, 208],
1806
+ "violet": [238, 130, 238],
1807
+ "wheat": [245, 222, 179],
1808
+ "white": [255, 255, 255],
1809
+ "whitesmoke": [245, 245, 245],
1810
+ "yellow": [255, 255, 0],
1811
+ "yellowgreen": [154, 205, 50]
1812
+ };
1813
+ var pattern$8 = /^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/;
1814
+ var hexRe$1 = new RegExp(pattern$8, 'i');
1815
+ var float$1 = '-?\\d*(?:\\.\\d+)';
1816
+ var number$1 = "(".concat(float$1, "?)");
1817
+ var percentage$1 = "(".concat(float$1, "?%)");
1818
+ var numberOrPercentage$1 = "(".concat(float$1, "?%?)");
1819
+ 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, '');
1820
+ var hsl3Re$1 = new RegExp(pattern$1$1);
1821
+ 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, '');
1822
+ var hsl4Re$1 = new RegExp(pattern$2$1);
1823
+ 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, '');
1824
+ var rgb3NumberRe$1 = new RegExp(pattern$3$1);
1825
+ 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, '');
1826
+ var rgb3PercentageRe$1 = new RegExp(pattern$4$1);
1827
+ 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, '');
1828
+ var rgb4NumberRe$1 = new RegExp(pattern$5$1);
1829
+ 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, '');
1830
+ var rgb4PercentageRe$1 = new RegExp(pattern$6$1);
1831
+ var pattern$7$1 = /^transparent$/;
1832
+ var transparentRe$1 = new RegExp(pattern$7$1, 'i');
1833
+
1834
+ var clamp$3 = function clamp$3(num, min, max) {
1835
+ return Math.min(Math.max(min, num), max);
1836
+ };
1837
+ /* 500 => 255, -10 => 0, 128 => 128 */
1838
+
1839
+
1840
+ var parseRGB$1 = function parseRGB$1(num) {
1841
+ var n = num;
1842
+ if (typeof n !== 'number') n = n.endsWith('%') ? parseFloat(n) * 255 / 100 : parseFloat(n);
1843
+ return clamp$3(Math.round(n), 0, 255);
1844
+ };
1845
+ /* 200 => 100, -100 => 0, 50 => 50 */
1846
+
1847
+
1848
+ var parsePercentage$1 = function parsePercentage$1(percentage) {
1849
+ return clamp$3(parseFloat(percentage), 0, 100);
1850
+ };
1851
+ /* '50%' => 5.0, 200 => 1, -10 => 0 */
1852
+
1853
+
1854
+ function parseAlpha$1(alpha) {
1855
+ var a = alpha;
1856
+ if (typeof a !== 'number') a = a.endsWith('%') ? parseFloat(a) / 100 : parseFloat(a);
1857
+ return clamp$3(a, 0, 1);
1858
+ }
1859
+
1860
+ function getHEX$1(hex) {
1861
+ var _hex2Rgb = hexRgb(hex, {
1862
+ format: 'array'
1863
+ }),
1864
+ _hex2Rgb2 = _slicedToArray(_hex2Rgb, 4),
1865
+ r = _hex2Rgb2[0],
1866
+ g = _hex2Rgb2[1],
1867
+ b = _hex2Rgb2[2],
1868
+ a = _hex2Rgb2[3];
1869
+
1870
+ return getRGB$1([null].concat([r, g, b, a]));
1871
+ }
1872
+
1873
+ function getHSL$1(_ref) {
1874
+ var _ref2 = _slicedToArray(_ref, 5),
1875
+ h = _ref2[1],
1876
+ s = _ref2[2],
1877
+ l = _ref2[3],
1878
+ _ref2$ = _ref2[4],
1879
+ a = _ref2$ === void 0 ? 1 : _ref2$;
1880
+
1881
+ var hh = h;
1882
+
1883
+ if (hh.endsWith('turn')) {
1884
+ hh = parseFloat(hh) * 360 / 1;
1885
+ } else if (hh.endsWith('rad')) {
1886
+ hh = Math.round(parseFloat(hh) * 180 / Math.PI);
1887
+ } else {
1888
+ hh = parseFloat(hh);
1889
+ }
1890
+
1891
+ return {
1892
+ type: 'hsl',
1893
+ values: [hh, parsePercentage$1(s), parsePercentage$1(l)],
1894
+ alpha: parseAlpha$1(a === null ? 1 : a)
1895
+ };
1896
+ }
1897
+
1898
+ function getRGB$1(_ref3) {
1899
+ var _ref4 = _slicedToArray(_ref3, 5),
1900
+ r = _ref4[1],
1901
+ g = _ref4[2],
1902
+ b = _ref4[3],
1903
+ _ref4$ = _ref4[4],
1904
+ a = _ref4$ === void 0 ? 1 : _ref4$;
1905
+
1906
+ return {
1907
+ type: 'rgb',
1908
+ values: [r, g, b].map(parseRGB$1),
1909
+ alpha: parseAlpha$1(a === null ? 1 : a)
1910
+ };
1911
+ }
1912
+ /**
1913
+ * parse-css-color
1914
+ * @version v0.1.2
1915
+ * @link http://github.com/noeldelgado/parse-css-color/
1916
+ * @license MIT
1917
+ */
1918
+
1919
+
1920
+ var parseCSSColor$1 = function parseCSSColor$1(str) {
1921
+ if (typeof str !== 'string') return null;
1922
+ var hex = hexRe$1.exec(str);
1923
+ if (hex) return getHEX$1(hex[0]);
1924
+ var hsl = hsl4Re$1.exec(str) || hsl3Re$1.exec(str);
1925
+ if (hsl) return getHSL$1(hsl);
1926
+ var rgb = rgb4NumberRe$1.exec(str) || rgb4PercentageRe$1.exec(str) || rgb3NumberRe$1.exec(str) || rgb3PercentageRe$1.exec(str);
1927
+ if (rgb) return getRGB$1(rgb);
1928
+ if (transparentRe$1.exec(str)) return getRGB$1([null, 0, 0, 0, 0]);
1929
+ var cn = colorName[str.toLowerCase()];
1930
+ if (cn) return getRGB$1([null, cn[0], cn[1], cn[2], 1]);
1931
+ return null;
1932
+ };
1933
+
1934
+ function hsl2rgb(hsl) {
1935
+ var h = hsl[0] / 360,
1936
+ s = hsl[1] / 100,
1937
+ l = hsl[2] / 100,
1938
+ t1,
1939
+ t2,
1940
+ t3,
1941
+ rgb,
1942
+ val;
1943
+
1944
+ if (s == 0) {
1945
+ val = l * 255;
1946
+ return [val, val, val];
1947
+ }
1948
+
1949
+ if (l < 0.5) t2 = l * (1 + s);else t2 = l + s - l * s;
1950
+ t1 = 2 * l - t2;
1951
+ rgb = [0, 0, 0];
1952
+
1953
+ for (var i = 0; i < 3; i++) {
1954
+ t3 = h + 1 / 3 * -(i - 1);
1955
+ t3 < 0 && t3++;
1956
+ t3 > 1 && t3--;
1957
+ 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;
1958
+ rgb[i] = val * 255;
1959
+ }
1960
+
1961
+ return rgb;
1962
+ }
1963
+
1964
+ var hsl2rgb_1 = hsl2rgb;
1965
+
1966
+ function clamp$2(val, min, max) {
1967
+ return Math.min(Math.max(val, min), max);
1968
+ }
1969
+
1970
+ var clamp_1 = clamp$2;
1971
+ var clamp$1 = clamp_1;
1972
+
1973
+ function componentToHex(c) {
1974
+ var value = Math.round(clamp$1(c, 0, 255));
1975
+ var hex = value.toString(16);
1976
+ return hex.length == 1 ? "0" + hex : hex;
1977
+ }
1978
+
1979
+ function rgb2hex(rgb) {
1980
+ var alpha = rgb.length === 4 ? componentToHex(rgb[3] * 255) : "";
1981
+ return "#" + componentToHex(rgb[0]) + componentToHex(rgb[1]) + componentToHex(rgb[2]) + alpha;
1982
+ }
1983
+
1984
+ var rgb2hex_1 = rgb2hex;
1985
+
1986
+ function rgb2hsl(rgb) {
1987
+ var r = rgb[0] / 255,
1988
+ g = rgb[1] / 255,
1989
+ b = rgb[2] / 255,
1990
+ min = Math.min(r, g, b),
1991
+ max = Math.max(r, g, b),
1992
+ delta = max - min,
1993
+ h,
1994
+ s,
1995
+ l;
1996
+ 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;
1997
+ h = Math.min(h * 60, 360);
1998
+ if (h < 0) h += 360;
1999
+ l = (min + max) / 2;
2000
+ if (max == min) s = 0;else if (l <= 0.5) s = delta / (max + min);else s = delta / (2 - max - min);
2001
+ return [h, s * 100, l * 100];
2002
+ }
2003
+
2004
+ var rgb2hsl_1 = rgb2hsl;
2005
+ /**
2006
+ * mix-css-color
2007
+ * @version v0.2.0
2008
+ * @link http://github.com/noeldelgado/mix-css-color/
2009
+ * @license MIT
2010
+ */
2011
+
2012
+ function parseColor(color) {
2013
+ var res = parseCSSColor$1(color);
2014
+ if (res === null) return null;
2015
+ if (res.type === 'hsl') res.values = hsl2rgb_1(res.values);
2016
+ return res;
2017
+ }
2018
+ /**
2019
+ * Mix two colors together in variable proportion. Opacity is included in the calculations.
2020
+ * Copyright (c) 2006-2009 Hampton Catlin, Natalie Weizenbaum, and Chris Eppstein
2021
+ * http://sass-lang.com
2022
+ * @see https://github.com/less/less.js/blob/cae5021358a5fca932c32ed071f652403d07def8/lib/less/functions/color.js#L302
2023
+ */
2024
+
2025
+
2026
+ function mix(color1, color2) {
2027
+ var percentage = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 50;
2028
+ var c1 = parseColor(color1);
2029
+ var c2 = parseColor(color2);
2030
+ if (!c1 || !c2) return null;
2031
+ var p = Math.min(Math.max(0, percentage), 100) / 100.0;
2032
+ var w = p * 2 - 1;
2033
+ var a = c1.alpha - c2.alpha;
2034
+ var w1 = ((w * a === -1 ? w : (w + a) / (1 + w * a)) + 1) / 2.0;
2035
+ var w2 = 1 - w1;
2036
+
2037
+ var _c1$values$map = c1.values.map(function (c, i) {
2038
+ return Math.round(c1.values[i] * w1 + c2.values[i] * w2);
2039
+ }),
2040
+ _c1$values$map2 = _slicedToArray(_c1$values$map, 3),
2041
+ r = _c1$values$map2[0],
2042
+ g = _c1$values$map2[1],
2043
+ b = _c1$values$map2[2];
2044
+
2045
+ var alpha = parseFloat((c1.alpha * p + c2.alpha * (1 - p)).toFixed(8));
2046
+ return {
2047
+ hex: rgb2hex_1([r, g, b]),
2048
+ hexa: rgb2hex_1([r, g, b, alpha]),
2049
+ rgba: [r, g, b, alpha],
2050
+ hsla: [].concat(_toConsumableArray$1(rgb2hsl_1([r, g, b]).map(Math.round)), [alpha])
2051
+ };
2052
+ }
2053
+
2054
+ var pattern = /^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/;
2055
+ var hexRe = new RegExp(pattern, 'i');
2056
+ var _float = '-?\\d*(?:\\.\\d+)';
2057
+ var number = "(".concat(_float, "?)");
2058
+ var percentage = "(".concat(_float, "?%)");
2059
+ var numberOrPercentage = "(".concat(_float, "?%?)");
2060
+ 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, '');
2061
+ var hsl3Re = new RegExp(pattern$1);
2062
+ 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, '');
2063
+ var hsl4Re = new RegExp(pattern$2);
2064
+ 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, '');
2065
+ var rgb3NumberRe = new RegExp(pattern$3);
2066
+ 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, '');
2067
+ var rgb3PercentageRe = new RegExp(pattern$4);
2068
+ 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, '');
2069
+ var rgb4NumberRe = new RegExp(pattern$5);
2070
+ 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, '');
2071
+ var rgb4PercentageRe = new RegExp(pattern$6);
2072
+ var pattern$7 = /^transparent$/;
2073
+ var transparentRe = new RegExp(pattern$7, 'i');
2074
+
2075
+ var clamp = function clamp(num, min, max) {
2076
+ return Math.min(Math.max(min, num), max);
2077
+ };
2078
+ /* 500 => 255, -10 => 0, 128 => 128 */
2079
+
2080
+
2081
+ var parseRGB = function parseRGB(num) {
2082
+ var n = num;
2083
+ if (typeof n !== 'number') n = n.endsWith('%') ? parseFloat(n) * 255 / 100 : parseFloat(n);
2084
+ return clamp(Math.round(n), 0, 255);
2085
+ };
2086
+ /* 200 => 100, -100 => 0, 50 => 50 */
2087
+
2088
+
2089
+ var parsePercentage = function parsePercentage(percentage) {
2090
+ return clamp(parseFloat(percentage), 0, 100);
2091
+ };
2092
+ /* '50%' => 5.0, 200 => 1, -10 => 0 */
2093
+
2094
+
2095
+ function parseAlpha(alpha) {
2096
+ var a = alpha;
2097
+ if (typeof a !== 'number') a = a.endsWith('%') ? parseFloat(a) / 100 : parseFloat(a);
2098
+ return clamp(a, 0, 1);
2099
+ }
2100
+
2101
+ function getHEX(hex) {
2102
+ var _hex2Rgb3 = hexRgb(hex, {
2103
+ format: 'array'
2104
+ }),
2105
+ _hex2Rgb4 = _slicedToArray(_hex2Rgb3, 4),
2106
+ r = _hex2Rgb4[0],
2107
+ g = _hex2Rgb4[1],
2108
+ b = _hex2Rgb4[2],
2109
+ a = _hex2Rgb4[3];
2110
+
2111
+ return getRGB([null].concat([r, g, b, a]));
2112
+ }
2113
+
2114
+ function getHSL(_ref5) {
2115
+ var _ref6 = _slicedToArray(_ref5, 5),
2116
+ h = _ref6[1],
2117
+ s = _ref6[2],
2118
+ l = _ref6[3],
2119
+ _ref6$ = _ref6[4],
2120
+ a = _ref6$ === void 0 ? 1 : _ref6$;
2121
+
2122
+ var hh = h;
2123
+
2124
+ if (hh.endsWith('turn')) {
2125
+ hh = parseFloat(hh) * 360 / 1;
2126
+ } else if (hh.endsWith('rad')) {
2127
+ hh = Math.round(parseFloat(hh) * 180 / Math.PI);
2128
+ } else {
2129
+ hh = parseFloat(hh);
2130
+ }
2131
+
2132
+ return {
2133
+ type: 'hsl',
2134
+ values: [hh, parsePercentage(s), parsePercentage(l)],
2135
+ alpha: parseAlpha(a === null ? 1 : a)
2136
+ };
2137
+ }
2138
+
2139
+ function getRGB(_ref7) {
2140
+ var _ref8 = _slicedToArray(_ref7, 5),
2141
+ r = _ref8[1],
2142
+ g = _ref8[2],
2143
+ b = _ref8[3],
2144
+ _ref8$ = _ref8[4],
2145
+ a = _ref8$ === void 0 ? 1 : _ref8$;
2146
+
2147
+ return {
2148
+ type: 'rgb',
2149
+ values: [r, g, b].map(parseRGB),
2150
+ alpha: parseAlpha(a === null ? 1 : a)
2151
+ };
2152
+ }
2153
+ /**
2154
+ * parse-css-color
2155
+ * @version v0.2.0
2156
+ * @link http://github.com/noeldelgado/parse-css-color/
2157
+ * @license MIT
2158
+ */
2159
+
2160
+
2161
+ var parseCSSColor = function parseCSSColor(str) {
2162
+ if (typeof str !== 'string') return null;
2163
+ var hex = hexRe.exec(str);
2164
+ if (hex) return getHEX(hex[0]);
2165
+ var hsl = hsl4Re.exec(str) || hsl3Re.exec(str);
2166
+ if (hsl) return getHSL(hsl);
2167
+ var rgb = rgb4NumberRe.exec(str) || rgb4PercentageRe.exec(str) || rgb3NumberRe.exec(str) || rgb3PercentageRe.exec(str);
2168
+ if (rgb) return getRGB(rgb);
2169
+ if (transparentRe.exec(str)) return getRGB([null, 0, 0, 0, 0]);
2170
+ var cn = colorName[str.toLowerCase()];
2171
+ if (cn) return getRGB([null, cn[0], cn[1], cn[2], 1]);
2172
+ return null;
2173
+ };
2174
+ /**
2175
+ * values.js - Get the tints and shades of a color
2176
+ * @version v2.1.1
2177
+ * @link http://noeldelgado.github.io/values.js/
2178
+ * @license MIT
2179
+ */
2180
+
2181
+
2182
+ var defaultNumberParam = function defaultNumberParam(v, d) {
2183
+ return v === null || isNaN(v) || typeof v === 'string' ? d : v;
2184
+ };
2185
+
2186
+ var Values = /*#__PURE__*/function () {
2187
+ function Values() {
2188
+ var color = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '#000';
2189
+ var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'base';
2190
+ var weight = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
2191
+
2192
+ _classCallCheck$1(this, Values);
2193
+
2194
+ var _ref9 = [[0, 0, 0], 1, type, weight];
2195
+ this.rgb = _ref9[0];
2196
+ this.alpha = _ref9[1];
2197
+ this.type = _ref9[2];
2198
+ this.weight = _ref9[3];
2199
+ var c = color === null ? '#000' : color;
2200
+ if (typeof c !== 'string') throw new TypeError("Input should be a string: ".concat(c));
2201
+ var parsed = parseCSSColor(c);
2202
+ if (!parsed) throw new Error("Unable to parse color from string: ".concat(c));
2203
+ return this["_setFrom".concat(parsed.type.toUpperCase())]([].concat(_toConsumableArray$1(parsed.values), [parsed.alpha]));
2204
+ }
2205
+
2206
+ _createClass$1(Values, [{
2207
+ key: "hex",
2208
+ get: function get() {
2209
+ return this.hexString().replace(/^#/, '');
2210
+ }
2211
+ }, {
2212
+ key: "setColor",
2213
+ value: function setColor(color) {
2214
+ var parsed = parseCSSColor(color);
2215
+ if (!parsed) return null;
2216
+ return this["_setFrom".concat(parsed.type.toUpperCase())]([].concat(_toConsumableArray$1(parsed.values), [parsed.alpha]));
2217
+ }
2218
+ }, {
2219
+ key: "tint",
2220
+ value: function tint(weight) {
2221
+ var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultNumberParam(weight, 50);
2222
+ return new Values("rgb(".concat(mix('#fff', this.rgbString(), w).rgba, ")"), 'tint', w);
2223
+ }
2224
+ }, {
2225
+ key: "shade",
2226
+ value: function shade(weight) {
2227
+ var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultNumberParam(weight, 50);
2228
+ return new Values("rgb(".concat(mix('#000', this.rgbString(), w).rgba, ")"), 'shade', w);
2229
+ }
2230
+ }, {
2231
+ key: "tints",
2232
+ value: function tints(weight) {
2233
+ var _this = this;
2234
+
2235
+ var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultNumberParam(weight, 10);
2236
+ return Array.from({
2237
+ length: 100 / w
2238
+ }, function (_, i) {
2239
+ return _this.tint((i + 1) * w);
2240
+ });
2241
+ }
2242
+ }, {
2243
+ key: "shades",
2244
+ value: function shades(weight) {
2245
+ var _this2 = this;
2246
+
2247
+ var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultNumberParam(weight, 10);
2248
+ return Array.from({
2249
+ length: 100 / w
2250
+ }, function (_, i) {
2251
+ return _this2.shade((i + 1) * w);
2252
+ });
2253
+ }
2254
+ }, {
2255
+ key: "all",
2256
+ value: function all() {
2257
+ var weight = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 10;
2258
+ return [].concat(_toConsumableArray$1(this.tints(weight).reverse()), [Object.assign(this)], _toConsumableArray$1(this.shades(weight)));
2259
+ }
2260
+ }, {
2261
+ key: "hexString",
2262
+ value: function hexString() {
2263
+ return rgb2hex_1(this.alpha >= 1 ? this.rgb : [].concat(_toConsumableArray$1(this.rgb), [this.alpha]));
2264
+ }
2265
+ }, {
2266
+ key: "rgbString",
2267
+ value: function rgbString() {
2268
+ var channels = (this.alpha >= 1 ? this.rgb : [].concat(_toConsumableArray$1(this.rgb), [this.alpha])).join(', ');
2269
+ return "".concat(this.alpha >= 1 ? 'rgb' : 'rgba', "(").concat(channels, ")");
2270
+ }
2271
+ }, {
2272
+ key: "getBrightness",
2273
+ value: function getBrightness() {
2274
+ return Math.round(this.rgb.reduce(function (a, b) {
2275
+ return a + b;
2276
+ }) / (255 * 3) * 100);
2277
+ }
2278
+ }, {
2279
+ key: "_setFromRGB",
2280
+ value: function _setFromRGB(_ref10) {
2281
+ var _ref11 = _slicedToArray(_ref10, 4),
2282
+ r = _ref11[0],
2283
+ g = _ref11[1],
2284
+ b = _ref11[2],
2285
+ a = _ref11[3];
2286
+
2287
+ var _ref12 = [[r, g, b], a];
2288
+ this.rgb = _ref12[0];
2289
+ this.alpha = _ref12[1];
2290
+ return this;
2291
+ }
2292
+ }, {
2293
+ key: "_setFromHSL",
2294
+ value: function _setFromHSL(_ref13) {
2295
+ var _ref14 = _slicedToArray(_ref13, 4),
2296
+ h = _ref14[0],
2297
+ s = _ref14[1],
2298
+ l = _ref14[2],
2299
+ a = _ref14[3];
2300
+
2301
+ var _ref15 = [hsl2rgb_1([h, s, l]).map(Math.round), a];
2302
+ this.rgb = _ref15[0];
2303
+ this.alpha = _ref15[1];
2304
+ return this;
2305
+ }
2306
+ }]);
2307
+
2308
+ return Values;
2309
+ }();
2310
+
2311
+ Values.VERSION = 'v2.1.1';
2312
+ var Values$1 = Values;
2313
+ var STEPS = [5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95];
2314
+
2315
+ var createColorScales = function createColorScales(base) {
2316
+ var colorValues = new Values$1(base);
2317
+ return _objectSpread2(_objectSpread2({}, STEPS.reduce(function (acc, step) {
2318
+ var _objectSpread2$1;
2319
+
2320
+ 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));
2321
+ }, {})), {}, {
2322
+ base: colorValues.hexString()
2323
+ });
2324
+ };
2325
+
2326
+ var BASE_COLORS = {
2327
+ antiFlashWhite: '#f1f2f3',
1612
2328
  blue: '#1dbeee',
1613
- blueDark30: '#1485a7',
1614
- blueDark75: '#07303c',
1615
- blueLight30: '#61d2f3',
1616
- blueLight75: '#c7effb',
1617
- blueLight90: '#e8f9fd',
1618
- dodgerBlue: '#4568fb',
1619
- dodgerBlueDark30: '#3049b0',
1620
- dodgerBlueLight30: '#7d95fc',
1621
- dodgerBlueLight75: '#d1d9fe',
1622
- dodgerBlueLight90: '#ecf0ff',
2329
+ blue1: '#5a68e2',
2330
+ nightBlue: '#353957',
2331
+ darkBlue: '#25006e',
2332
+ maasstrichtBlue: '#001f23',
2333
+ ultramarineBlue: '#4568fb',
2334
+ aliceBlue: '#ecf0ff',
2335
+ jordyBlue: '#92abfc',
2336
+ cornflowerBlue: '#5d80f0',
2337
+ paua: '#130066',
1623
2338
  green: '#01b39c',
1624
- greenDark15: '#019885',
1625
- greenDark30: '#017d6d',
1626
- greenDark75: '#002d27',
1627
- greenLight30: '#4dcaba',
1628
- greenLight75: '#c0ece6',
1629
- greenLight90: '#e6f7f5',
2339
+ emerald: '#5ace7d',
2340
+ pineGreen: '#017d6d',
2341
+ honeydew: '#f0fef4',
1630
2342
  grey: '#a3a6ac',
1631
- greyDark15: '#8b8d92',
1632
- greyDark30: '#727478',
1633
- greyDark45: '#5a5b5f',
1634
- greyDark60: '#414245',
1635
- greyDark75: '#292a2b',
1636
- greyLight45: '#ccced1',
1637
- greyLight60: '#dadbde',
1638
- greyLight75: '#e8e9ea',
1639
- greyLight85: '#f1f2f3',
1640
- greyLight90: '#f6f6f7',
1641
- greyLight95: '#fafbfb',
2343
+ currant: '#48000a',
2344
+ sonicSilver: '#737479',
1642
2345
  grotesqueGreen: '#6af293',
1643
- grotesqueGreenDark45: '#3a8551',
1644
- grotesqueGreenLight60: '#c3fad4',
1645
- grotesqueGreenLight75: '#dafce4',
1646
- grotesqueGreenLight90: '#f0fef4',
1647
- orange: '#ffa234',
1648
- orangeDark15: '#d98a2c',
1649
- orangeDark30: '#b37124',
1650
- orangeDark75: '#40290d',
1651
- orangeLight30: '#ffbe71',
1652
- orangeLight75: '#ffe8cc',
1653
- orangeLight90: '#fff6eb',
2346
+ mellowApricot: '#ffbe71',
2347
+ deepSaffron: '#ffa234',
1654
2348
  pink: '#fe56aa',
1655
- pinkDark15: '#cf4991',
1656
- pinkDark30: '#b23c77',
1657
- pinkDark45: '#8c2f5e',
1658
- pinkDark75: '#40162b',
1659
- pinkLight30: '#fe89c4',
1660
- pinkLight45: '#fea2d0',
1661
- pinkLight75: '#fcd5ea',
1662
- pinkLight90: '#ffeef7',
2349
+ hitPink: '#ffad79',
2350
+ apple: '#e3602a',
1663
2351
  purple: '#be83cf',
1664
- purpleDark15: '#a26fb0',
1665
- red: '#de350b',
1666
- redDark15: '#bd2d09',
1667
- redDark30: '#9b2508',
1668
- redDark75: '#380d03',
1669
- redLight15: '#e35330',
1670
- redLight30: '#e87254',
1671
- redLight60: '#f2ae9d',
1672
- redLight75: '#f7cdc2',
1673
- redLight90: '#fcebe7',
2352
+ scarletGum: '#401960',
2353
+ vodka: '#b5c3fd',
2354
+ peach: '#f8ac7d',
2355
+ pastelRed: '#f46363',
2356
+ vermilion: '#de350b',
2357
+ linen: '#fcebe7',
1674
2358
  smalt: '#003580',
1675
- smaltDark75: '#000d20',
1676
- smaltLight30: '#4d72a6',
1677
- smaltLight45: '#7390b9',
1678
- smaltLight75: '#bfcddf',
1679
- smaltLight90: '#e6ebf2',
1680
2359
  violet: '#7622d7',
1681
- violetDark15: '#641db7',
1682
- violetDark30: '#531897',
1683
- violetDark45: '#411376',
1684
- violetDark75: '#1e0936',
1685
- violetLight30: '#9f64e3',
1686
- violetLight60: '#c8a7ef',
1687
- violetLight75: '#ddc8f5',
1688
- violetLight90: '#f1e9fb',
1689
- white: '#ffffff',
2360
+ violet1: '#8505a2',
2361
+ mauve: '#c38cee',
1690
2362
  yellow: '#fadb14',
1691
- yellowDark15: '#d5ba11',
1692
- yellowDark75: '#3f3705',
1693
- yellowLight60: '#fdf1a1',
1694
- yellowLight90: '#fffbe8'
2363
+ seashell: '#ebf4ff',
2364
+ gold: '#ffd500'
1695
2365
  };
2366
+ var colorScales = Object.entries(BASE_COLORS).reduce(function (acc, _ref16) {
2367
+ var _ref17 = _slicedToArray(_ref16, 2),
2368
+ key = _ref17[0],
2369
+ value = _ref17[1];
2370
+
2371
+ return _objectSpread2(_objectSpread2({}, acc), {}, _defineProperty$2({}, key, createColorScales(value)));
2372
+ }, {});
2373
+ var blue$1 = colorScales.blue,
2374
+ ultramarineBlue$1 = colorScales.ultramarineBlue,
2375
+ green$1 = colorScales.green,
2376
+ grey$2 = colorScales.grey,
2377
+ grotesqueGreen = colorScales.grotesqueGreen,
2378
+ deepSaffron$2 = colorScales.deepSaffron,
2379
+ pink$1 = colorScales.pink,
2380
+ purple$1 = colorScales.purple,
2381
+ vermilion$2 = colorScales.vermilion,
2382
+ smalt = colorScales.smalt,
2383
+ violet$1 = colorScales.violet,
2384
+ yellow$1 = colorScales.yellow;
2385
+ var palette$6 = {
2386
+ black: '#000000',
2387
+ white: '#ffffff',
2388
+ blue: blue$1.base,
2389
+ blueDark30: blue$1.darken30,
2390
+ blueDark75: blue$1.darken75,
2391
+ blueLight30: blue$1.lighten30,
2392
+ blueLight75: blue$1.lighten75,
2393
+ blueLight90: blue$1.lighten90,
2394
+ dodgerBlue: ultramarineBlue$1.base,
2395
+ dodgerBlueDark30: ultramarineBlue$1.darken30,
2396
+ dodgerBlueLight30: ultramarineBlue$1.lighten30,
2397
+ dodgerBlueLight75: ultramarineBlue$1.lighten75,
2398
+ dodgerBlueLight90: ultramarineBlue$1.lighten90,
2399
+ green: green$1.base,
2400
+ greenDark15: green$1.darken15,
2401
+ greenDark30: green$1.darken30,
2402
+ greenDark75: green$1.darken75,
2403
+ greenLight30: green$1.lighten30,
2404
+ greenLight75: green$1.lighten75,
2405
+ greenLight90: green$1.lighten90,
2406
+ grey: grey$2.base,
2407
+ greyDark15: grey$2.darken15,
2408
+ greyDark30: grey$2.darken30,
2409
+ greyDark45: grey$2.darken45,
2410
+ greyDark60: grey$2.darken60,
2411
+ greyDark75: grey$2.darken75,
2412
+ greyLight45: grey$2.lighten45,
2413
+ greyLight60: grey$2.lighten60,
2414
+ greyLight75: grey$2.lighten75,
2415
+ greyLight85: grey$2.lighten85,
2416
+ greyLight90: grey$2.lighten90,
2417
+ greyLight95: grey$2.lighten95,
2418
+ grotesqueGreen: grotesqueGreen.base,
2419
+ grotesqueGreenDark45: grotesqueGreen.darken45,
2420
+ grotesqueGreenLight60: grotesqueGreen.lighten60,
2421
+ grotesqueGreenLight75: grotesqueGreen.lighten75,
2422
+ grotesqueGreenLight90: grotesqueGreen.lighten90,
2423
+ orange: deepSaffron$2.base,
2424
+ orangeDark15: deepSaffron$2.darken15,
2425
+ orangeDark30: deepSaffron$2.darken30,
2426
+ orangeDark75: deepSaffron$2.darken75,
2427
+ orangeLight30: deepSaffron$2.lighten30,
2428
+ orangeLight75: deepSaffron$2.lighten75,
2429
+ orangeLight90: deepSaffron$2.lighten90,
2430
+ pink: pink$1.base,
2431
+ pinkDark15: pink$1.darken15,
2432
+ pinkDark30: pink$1.darken30,
2433
+ pinkDark45: pink$1.darken45,
2434
+ pinkDark75: pink$1.darken75,
2435
+ pinkLight30: pink$1.lighten30,
2436
+ pinkLight45: pink$1.lighten45,
2437
+ pinkLight75: pink$1.lighten75,
2438
+ pinkLight90: pink$1.lighten90,
2439
+ purple: purple$1.base,
2440
+ purpleDark15: purple$1.darken15,
2441
+ red: vermilion$2.base,
2442
+ redDark15: vermilion$2.darken15,
2443
+ redDark30: vermilion$2.darken30,
2444
+ redDark75: vermilion$2.darken75,
2445
+ redLight15: vermilion$2.lighten15,
2446
+ redLight30: vermilion$2.lighten30,
2447
+ redLight60: vermilion$2.lighten60,
2448
+ redLight75: vermilion$2.lighten75,
2449
+ redLight90: vermilion$2.lighten90,
2450
+ smalt: smalt.base,
2451
+ smaltDark75: smalt.darken75,
2452
+ smaltLight30: smalt.lighten30,
2453
+ smaltLight45: smalt.lighten45,
2454
+ smaltLight75: smalt.lighten75,
2455
+ smaltLight90: smalt.lighten90,
2456
+ violet: violet$1.base,
2457
+ violetDark15: violet$1.darken15,
2458
+ violetDark30: violet$1.darken30,
2459
+ violetDark45: violet$1.darken45,
2460
+ violetDark75: violet$1.darken75,
2461
+ violetLight30: violet$1.lighten30,
2462
+ violetLight60: violet$1.lighten60,
2463
+ violetLight75: violet$1.lighten75,
2464
+ violetLight90: violet$1.lighten90,
2465
+ yellow: yellow$1.base,
2466
+ yellowDark15: yellow$1.darken15,
2467
+ yellowDark75: yellow$1.darken75,
2468
+ yellowLight60: yellow$1.lighten60,
2469
+ yellowLight90: yellow$1.lighten90
2470
+ };
2471
+ var maasstrichtBlue = colorScales.maasstrichtBlue,
2472
+ grey$1 = colorScales.grey,
2473
+ pastelRed$1 = colorScales.pastelRed,
2474
+ mellowApricot = colorScales.mellowApricot,
2475
+ emerald$1 = colorScales.emerald,
2476
+ vodka = colorScales.vodka,
2477
+ vermilion$1 = colorScales.vermilion,
2478
+ deepSaffron$1 = colorScales.deepSaffron,
2479
+ pineGreen = colorScales.pineGreen,
2480
+ ultramarineBlue = colorScales.ultramarineBlue,
2481
+ sonicSilver = colorScales.sonicSilver,
2482
+ linen$1 = colorScales.linen,
2483
+ seashell$1 = colorScales.seashell,
2484
+ honeydew$1 = colorScales.honeydew,
2485
+ aliceBlue = colorScales.aliceBlue,
2486
+ antiFlashWhite = colorScales.antiFlashWhite,
2487
+ apple$1 = colorScales.apple;
2488
+ var palette$5 = {
2489
+ black: '#000000',
2490
+ white: '#ffffff',
2491
+ greyLight95: grey$1.lighten95,
2492
+ greyLight90: grey$1.lighten90,
2493
+ greyLight75: grey$1.lighten75,
2494
+ greyLight45: grey$1.lighten45,
2495
+ greyLight30: grey$1.lighten30,
2496
+ grey: grey$1.base,
2497
+ maasstrichtBlueLight90: maasstrichtBlue.lighten90,
2498
+ maasstrichtBlueLight80: maasstrichtBlue.lighten80,
2499
+ maasstrichtBlueLight50: maasstrichtBlue.lighten50,
2500
+ maasstrichtBlueLight30: maasstrichtBlue.lighten30,
2501
+ maasstrichtBlue: maasstrichtBlue.base,
2502
+ pastelRed: pastelRed$1.base,
2503
+ mellowApricot: mellowApricot.base,
2504
+ emerald: emerald$1.base,
2505
+ vodka: vodka.base,
2506
+ vermilion: vermilion$1.base,
2507
+ deepSaffron: deepSaffron$1.base,
2508
+ pineGreen: pineGreen.base,
2509
+ ultramarineBlue: ultramarineBlue.base,
2510
+ sonicSilver: sonicSilver.base,
2511
+ linen: linen$1.base,
2512
+ seashell: seashell$1.base,
2513
+ honeydew: honeydew$1.base,
2514
+ aliceBlue: aliceBlue.base,
2515
+ antiFlashWhite: antiFlashWhite.base,
2516
+ apple: apple$1.base
2517
+ };
2518
+ var emerald = colorScales.emerald,
2519
+ blue1 = colorScales.blue1,
2520
+ nightBlue = colorScales.nightBlue,
2521
+ darkBlue = colorScales.darkBlue,
2522
+ grey$3 = colorScales.grey,
2523
+ deepSaffron = colorScales.deepSaffron,
2524
+ peach = colorScales.peach,
2525
+ vermilion = colorScales.vermilion,
2526
+ pastelRed = colorScales.pastelRed,
2527
+ mauve = colorScales.mauve;
2528
+
2529
+ _objectSpread2(_objectSpread2({}, palette$5), {}, {
2530
+ nightBlue: nightBlue.base,
2531
+ blueLight60: blue1.lighten60,
2532
+ blue: blue1.base,
2533
+ darkBlue: darkBlue.base,
2534
+ darkBlueDark15: darkBlue.darken15,
2535
+ green: emerald.base,
2536
+ greyDark45: grey$3.darken45,
2537
+ greyDark75: grey$3.darken75,
2538
+ greyLight30: grey$3.lighten30,
2539
+ greyLight45: grey$3.lighten45,
2540
+ greyLight90: grey$3.lighten90,
2541
+ orangeLight30: deepSaffron.lighten30,
2542
+ peach: peach.base,
2543
+ peachLight75: peach.lighten75,
2544
+ red: vermilion.base,
2545
+ pastelRed: pastelRed.base,
2546
+ mauve: mauve.base
2547
+ });
2548
+
2549
+ var apple = colorScales.apple,
2550
+ currant = colorScales.currant;
2551
+
2552
+ _objectSpread2(_objectSpread2({}, palette$5), {}, {
2553
+ apple: apple.base,
2554
+ currant: currant.base
2555
+ });
2556
+
2557
+ var scarletGum = colorScales.scarletGum,
2558
+ violet1 = colorScales.violet1;
2559
+
2560
+ _objectSpread2(_objectSpread2({}, palette$5), {}, {
2561
+ scarletGumLight30: scarletGum.lighten30,
2562
+ scarletGumLight50: scarletGum.lighten50,
2563
+ scarletGumLight80: scarletGum.lighten80,
2564
+ scarletGumLight90: scarletGum.lighten90,
2565
+ scarletGum: scarletGum.base,
2566
+ violetLight30: violet1.lighten30,
2567
+ violetLight50: violet1.lighten50,
2568
+ violetLight80: violet1.lighten80,
2569
+ violetLight90: violet1.lighten90,
2570
+ violet: violet1.base
2571
+ });
2572
+
2573
+ var jordyBlue = colorScales.jordyBlue,
2574
+ cornflowerBlue = colorScales.cornflowerBlue,
2575
+ paua = colorScales.paua;
2576
+
2577
+ _objectSpread2(_objectSpread2({}, palette$5), {}, {
2578
+ jordyBlueLight30: jordyBlue.lighten30,
2579
+ jordyBlueLight50: jordyBlue.lighten50,
2580
+ jordyBlueLight70: jordyBlue.lighten70,
2581
+ jordyBlueLight90: jordyBlue.lighten90,
2582
+ jordyBlue: jordyBlue.base,
2583
+ cornflowerBlue: cornflowerBlue.base,
2584
+ paua: paua.base
2585
+ });
2586
+
2587
+ var gold$1 = colorScales.gold;
2588
+
2589
+ _objectSpread2(_objectSpread2({}, palette$5), {}, {
2590
+ goldLight20: gold$1.lighten20,
2591
+ goldLight50: gold$1.lighten50,
2592
+ goldLight70: gold$1.lighten70,
2593
+ goldLight90: gold$1.lighten90,
2594
+ gold: gold$1.base
2595
+ });
1696
2596
 
1697
2597
  var systemPalette = {
1698
- primary: palette.violet,
1699
- primaryLight: palette.violetLight60,
1700
- primaryDark: palette.purpleDark15,
1701
- primaryBackground: palette.violetLight90,
1702
- secondary: palette.dodgerBlue,
1703
- secondaryLight: palette.dodgerBlueLight75,
1704
- info: palette.dodgerBlue,
1705
- infoMediumLight: palette.blue,
1706
- infoLight: palette.dodgerBlueLight75,
1707
- infoBackground: palette.dodgerBlueLight90,
1708
- success: palette.green,
1709
- successDark: palette.greenDark30,
1710
- successBackground: palette.grotesqueGreenLight90,
1711
- danger: palette.red,
1712
- dangerLight: palette.redLight60,
1713
- dangerBackground: palette.redLight90,
1714
- warning: palette.orange,
1715
- warningDark: palette.orangeDark15,
1716
- warningBackground: palette.orangeLight90,
1717
- platformBackground: palette.white,
1718
- backgroundLight: palette.greyLight95,
1719
- backgroundDark: palette.greyDark75,
1720
- text: palette.greyDark75,
1721
- disabledText: palette.greyDark15,
1722
- disabledLightText: palette.greyLight45,
1723
- invertedText: palette.white,
1724
- outline: palette.greyLight60,
1725
- archived: palette.greyLight45,
1726
- black: palette.black,
1727
- inactiveBackground: palette.greyDark30
2598
+ primary: palette$6.violet,
2599
+ primaryLight: palette$6.violetLight60,
2600
+ primaryDark: palette$6.purpleDark15,
2601
+ primaryBackground: palette$6.violetLight90,
2602
+ secondary: palette$6.dodgerBlue,
2603
+ secondaryLight: palette$6.dodgerBlueLight75,
2604
+ info: palette$6.dodgerBlue,
2605
+ infoMediumLight: palette$5.vodka,
2606
+ infoLight: palette$6.dodgerBlueLight75,
2607
+ infoBackground: palette$6.dodgerBlueLight90,
2608
+ success: palette$6.green,
2609
+ successLight: palette$5.emerald,
2610
+ successDark: palette$6.greenDark30,
2611
+ successBackground: palette$6.grotesqueGreenLight90,
2612
+ danger: palette$6.red,
2613
+ dangerMediumLight: palette$5.apple,
2614
+ dangerLight: palette$6.redLight60,
2615
+ dangerBackground: palette$6.redLight90,
2616
+ warning: palette$6.orange,
2617
+ warningLight: palette$5.mellowApricot,
2618
+ warningDark: palette$6.orangeDark15,
2619
+ warningBackground: palette$6.orangeLight90,
2620
+ platformBackground: palette$6.white,
2621
+ backgroundLight: palette$6.greyLight95,
2622
+ backgroundDark: palette$6.greyDark75,
2623
+ text: palette$6.greyDark75,
2624
+ disabledText: palette$6.greyDark15,
2625
+ disabledLightText: palette$6.greyLight45,
2626
+ invertedText: palette$6.white,
2627
+ outline: palette$6.greyLight60,
2628
+ archivedDark: palette$5.greyLight30,
2629
+ archived: palette$6.greyLight45,
2630
+ black: palette$6.black,
2631
+ inactiveBackground: palette$6.greyDark30,
2632
+ shadow: palette$6.greyLight60
1728
2633
  };
1729
2634
 
1730
2635
  var BASE_WIDTH = 390; // Based on iPhone 13's viewport size
@@ -1801,6 +2706,7 @@ var getSpace = function getSpace(baseSpace) {
1801
2706
  xxsmall: scale(baseSpace * 0.25),
1802
2707
  xsmall: scale(baseSpace * 0.5),
1803
2708
  small: scale(baseSpace),
2709
+ smallMedium: scale(baseSpace) * 1.5,
1804
2710
  medium: scale(baseSpace * 2),
1805
2711
  large: scale(baseSpace * 3),
1806
2712
  xlarge: scale(baseSpace * 4),
@@ -2038,6 +2944,8 @@ var getButtonTheme = function getButtonTheme(theme) {
2038
2944
  pressedPrimary: theme.colors.primaryLight,
2039
2945
  secondary: theme.colors.secondary,
2040
2946
  pressedSecondary: theme.colors.secondaryLight,
2947
+ danger: theme.colors.danger,
2948
+ pressedDanger: theme.colors.dangerLight,
2041
2949
  defaultText: theme.colors.text,
2042
2950
  disabledText: theme.colors.disabledLightText,
2043
2951
  disabledBorder: theme.colors.disabledLightText,
@@ -2058,10 +2966,17 @@ var getButtonTheme = function getButtonTheme(theme) {
2058
2966
 
2059
2967
  var getCardTheme = function getCardTheme(theme) {
2060
2968
  var colors = {
2061
- dataCardIndicator: theme.colors.primaryDark
2969
+ dataCardIndicator: theme.colors.primaryDark,
2970
+ indicator: {
2971
+ archived: theme.colors.archivedDark,
2972
+ info: theme.colors.infoMediumLight,
2973
+ success: theme.colors.successLight,
2974
+ warning: theme.colors.warningLight,
2975
+ danger: theme.colors.dangerMediumLight
2976
+ }
2062
2977
  };
2063
2978
  var radii = {
2064
- "default": 12
2979
+ "default": theme.radii.large
2065
2980
  };
2066
2981
  return {
2067
2982
  colors: colors,
@@ -2517,11 +3432,40 @@ var getToastTheme = function getToastTheme(theme) {
2517
3432
  };
2518
3433
  };
2519
3434
 
3435
+ var getToolbarTheme = function getToolbarTheme(theme) {
3436
+ var colors = {
3437
+ background: theme.colors.platformBackground,
3438
+ border: theme.colors.outline,
3439
+ primary: theme.colors.primary,
3440
+ info: theme.colors.info,
3441
+ success: theme.colors.success,
3442
+ danger: theme.colors.warning,
3443
+ error: theme.colors.danger,
3444
+ disabled: theme.colors.disabledText
3445
+ };
3446
+ var space = {
3447
+ verticalPadding: theme.space.small,
3448
+ horizontalPadding: theme.space.smallMedium
3449
+ };
3450
+ var borderWidths = {
3451
+ "default": theme.borderWidths.base
3452
+ };
3453
+ return {
3454
+ colors: colors,
3455
+ space: space,
3456
+ borderWidths: borderWidths
3457
+ };
3458
+ };
3459
+
2520
3460
  var getTypographyTheme = function getTypographyTheme(theme) {
2521
3461
  var colors = {
2522
3462
  body: theme.colors.text,
2523
3463
  subdued: theme.colors.disabledText,
2524
- primary: theme.colors.primary
3464
+ primary: theme.colors.primary,
3465
+ info: theme.colors.info,
3466
+ danger: theme.colors.danger,
3467
+ warning: theme.colors.warning,
3468
+ success: theme.colors.success
2525
3469
  };
2526
3470
  var fonts = {
2527
3471
  light: theme.fonts.light,
@@ -2548,6 +3492,53 @@ var getTypographyTheme = function getTypographyTheme(theme) {
2548
3492
  };
2549
3493
  };
2550
3494
 
3495
+ var getListTheme = function getListTheme(theme) {
3496
+ var colors = {
3497
+ checkedListItemContainerBackground: theme.colors.primaryBackground,
3498
+ listItemContainerBackground: theme.colors.platformBackground,
3499
+ leadingStatus: {
3500
+ danger: theme.colors.danger,
3501
+ info: theme.colors.infoLight,
3502
+ success: theme.colors.successDark,
3503
+ warning: theme.colors.warningLight,
3504
+ archived: theme.colors.archived
3505
+ }
3506
+ };
3507
+ var space = {
3508
+ listItemContainerPadding: theme.space.medium,
3509
+ leadingStatusMarginRight: theme.space.small,
3510
+ prefixContainerMarginRight: theme.space.small,
3511
+ suffixContainerMarginLeft: theme.space.small
3512
+ };
3513
+ var radii = {
3514
+ card: theme.radii.medium,
3515
+ cardShadow: theme.radii.base,
3516
+ leadingStatus: theme.radii.rounded
3517
+ };
3518
+ var offsets = {
3519
+ cardShadow: {
3520
+ width: 0,
3521
+ height: 2
3522
+ }
3523
+ };
3524
+ var widths = {
3525
+ leadingStatus: 8
3526
+ };
3527
+ var opacity = {
3528
+ disabled: 0.38,
3529
+ enabled: 1,
3530
+ cardShadow: 1
3531
+ };
3532
+ return {
3533
+ colors: colors,
3534
+ space: space,
3535
+ radii: radii,
3536
+ offsets: offsets,
3537
+ widths: widths,
3538
+ opacity: opacity
3539
+ };
3540
+ };
3541
+
2551
3542
  var getTheme = function getTheme() {
2552
3543
  var scale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : scale$1;
2553
3544
  var systemPallete = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : systemPalette;
@@ -2577,7 +3568,9 @@ var getTheme = function getTheme() {
2577
3568
  tag: getTagTheme(globalTheme),
2578
3569
  textInput: getTextInputTheme(globalTheme),
2579
3570
  toast: getToastTheme(globalTheme),
2580
- typography: getTypographyTheme(globalTheme)
3571
+ toolbar: getToolbarTheme(globalTheme),
3572
+ typography: getTypographyTheme(globalTheme),
3573
+ list: getListTheme(globalTheme)
2581
3574
  }
2582
3575
  });
2583
3576
  };
@@ -6469,7 +7462,7 @@ var getDisplayName = function getDisplayName(primitive) {
6469
7462
 
6470
7463
  var styled = createStyled(StyleSheet$1);
6471
7464
  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'];
6472
- var index$2 = components.reduce(function (acc, comp) {
7465
+ var index$5 = components.reduce(function (acc, comp) {
6473
7466
  return Object.defineProperty(acc, comp, {
6474
7467
  enumerable: true,
6475
7468
  configurable: false,
@@ -14408,7 +15401,7 @@ var COLOR_INTENTS = {
14408
15401
  warning: 'warning',
14409
15402
  'disabled-text': 'disabledText'
14410
15403
  };
14411
- var StyledHeroIcon = index$2(HeroIcon)(function (_ref) {
15404
+ var StyledHeroIcon = index$5(HeroIcon)(function (_ref) {
14412
15405
  var themeIntent = _ref.themeIntent,
14413
15406
  themeSize = _ref.themeSize,
14414
15407
  theme = _ref.theme;
@@ -14440,7 +15433,7 @@ var FONTWEIGHT_MAP = {
14440
15433
  regular: 'regular',
14441
15434
  'semi-bold': 'semiBold'
14442
15435
  };
14443
- var StyledText$3 = index$2(Text$1)(function (_ref) {
15436
+ var StyledText$3 = index$5(Text$1)(function (_ref) {
14444
15437
  var themeFontSize = _ref.themeFontSize,
14445
15438
  themeFontWeight = _ref.themeFontWeight,
14446
15439
  themeIntent = _ref.themeIntent,
@@ -14456,7 +15449,7 @@ var StyledText$3 = index$2(Text$1)(function (_ref) {
14456
15449
  });
14457
15450
  });
14458
15451
 
14459
- var _excluded$c = ["children", "fontSize", "fontWeight", "intent"];
15452
+ var _excluded$d = ["children", "fontSize", "fontWeight", "intent"];
14460
15453
 
14461
15454
  var Text = function Text(_ref) {
14462
15455
  var children = _ref.children,
@@ -14466,7 +15459,7 @@ var Text = function Text(_ref) {
14466
15459
  fontWeight = _ref$fontWeight === void 0 ? 'regular' : _ref$fontWeight,
14467
15460
  _ref$intent = _ref.intent,
14468
15461
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
14469
- nativeProps = _objectWithoutProperties$1(_ref, _excluded$c);
15462
+ nativeProps = _objectWithoutProperties$1(_ref, _excluded$d);
14470
15463
 
14471
15464
  return /*#__PURE__*/React.createElement(StyledText$3, _extends$3({}, nativeProps, {
14472
15465
  themeFontSize: fontSize,
@@ -14479,7 +15472,7 @@ var Typography = {
14479
15472
  Text: Text
14480
15473
  };
14481
15474
 
14482
- var Container$2 = index$2(View)(function (_ref) {
15475
+ var Container$2 = index$5(View)(function (_ref) {
14483
15476
  var theme = _ref.theme,
14484
15477
  _ref$themeVariant = _ref.themeVariant,
14485
15478
  themeVariant = _ref$themeVariant === void 0 ? 'default' : _ref$themeVariant,
@@ -14491,21 +15484,21 @@ var Container$2 = index$2(View)(function (_ref) {
14491
15484
  flexDirection: 'row'
14492
15485
  };
14493
15486
  });
14494
- var IconContainer$1 = index$2(View)(function (_ref2) {
15487
+ var IconContainer$1 = index$5(View)(function (_ref2) {
14495
15488
  var theme = _ref2.theme;
14496
15489
  return {
14497
15490
  alignItems: 'center',
14498
15491
  paddingLeft: theme.__hd__.alert.space.padding
14499
15492
  };
14500
15493
  });
14501
- var TextContainer$1 = index$2(View)(function (_ref3) {
15494
+ var TextContainer$1 = index$5(View)(function (_ref3) {
14502
15495
  var theme = _ref3.theme;
14503
15496
  return {
14504
15497
  paddingHorizontal: theme.__hd__.alert.space.padding,
14505
15498
  flex: 1
14506
15499
  };
14507
15500
  });
14508
- var ContentContainer$1 = index$2(View)(function (_ref4) {
15501
+ var ContentContainer$1 = index$5(View)(function (_ref4) {
14509
15502
  var theme = _ref4.theme,
14510
15503
  showDivider = _ref4.showDivider;
14511
15504
  return {
@@ -14516,7 +15509,7 @@ var ContentContainer$1 = index$2(View)(function (_ref4) {
14516
15509
  flexDirection: 'row'
14517
15510
  };
14518
15511
  });
14519
- var CTAWrapper$1 = index$2(TouchableOpacity)(function (_ref5) {
15512
+ var CTAWrapper$1 = index$5(TouchableOpacity)(function (_ref5) {
14520
15513
  var theme = _ref5.theme;
14521
15514
  return {
14522
15515
  paddingHorizontal: theme.__hd__.alert.space.padding,
@@ -14574,7 +15567,7 @@ var Alert = function Alert(_ref) {
14574
15567
  })) : null);
14575
15568
  };
14576
15569
 
14577
- var StyledPressable = index$2(TouchableOpacity)(function (_ref) {
15570
+ var StyledPressable = index$5(TouchableOpacity)(function (_ref) {
14578
15571
  var themeSize = _ref.themeSize,
14579
15572
  themeIntent = _ref.themeIntent,
14580
15573
  theme = _ref.theme;
@@ -14587,7 +15580,7 @@ var StyledPressable = index$2(TouchableOpacity)(function (_ref) {
14587
15580
  overflow: 'hidden'
14588
15581
  };
14589
15582
  });
14590
- var StyledView$3 = index$2(View)(function (_ref2) {
15583
+ var StyledView$3 = index$5(View)(function (_ref2) {
14591
15584
  var themeSize = _ref2.themeSize,
14592
15585
  themeIntent = _ref2.themeIntent,
14593
15586
  theme = _ref2.theme;
@@ -14600,7 +15593,7 @@ var StyledView$3 = index$2(View)(function (_ref2) {
14600
15593
  overflow: 'hidden'
14601
15594
  };
14602
15595
  });
14603
- var StyledTextWrapper = index$2(View)(function () {
15596
+ var StyledTextWrapper = index$5(View)(function () {
14604
15597
  return {
14605
15598
  alignItems: 'center',
14606
15599
  justifyContent: 'center',
@@ -14609,7 +15602,7 @@ var StyledTextWrapper = index$2(View)(function () {
14609
15602
  height: '100%'
14610
15603
  };
14611
15604
  });
14612
- var StyledText$2 = index$2(Text$1)(function (_ref3) {
15605
+ var StyledText$2 = index$5(Text$1)(function (_ref3) {
14613
15606
  var themeSize = _ref3.themeSize,
14614
15607
  themeIntent = _ref3.themeIntent,
14615
15608
  theme = _ref3.theme;
@@ -14619,7 +15612,7 @@ var StyledText$2 = index$2(Text$1)(function (_ref3) {
14619
15612
  overflow: 'hidden'
14620
15613
  };
14621
15614
  });
14622
- var StyledImage = index$2(Image)(function (_ref4) {
15615
+ var StyledImage = index$5(Image)(function (_ref4) {
14623
15616
  var themeSize = _ref4.themeSize,
14624
15617
  theme = _ref4.theme;
14625
15618
  return {
@@ -14655,7 +15648,7 @@ var Avatar = function Avatar(_ref) {
14655
15648
  })) : null;
14656
15649
  };
14657
15650
 
14658
- var StyledView$2 = index$2(Animated.View)(function (_ref) {
15651
+ var StyledView$2 = index$5(Animated.View)(function (_ref) {
14659
15652
  var themeIntent = _ref.themeIntent,
14660
15653
  themePadding = _ref.themePadding,
14661
15654
  theme = _ref.theme;
@@ -14669,7 +15662,7 @@ var StyledView$2 = index$2(Animated.View)(function (_ref) {
14669
15662
  paddingHorizontal: themePadding === 'wideContent' ? theme.__hd__.badge.space.horizontalPadding : undefined
14670
15663
  };
14671
15664
  });
14672
- var StyledText$1 = index$2(Text$1)(function (_ref2) {
15665
+ var StyledText$1 = index$5(Text$1)(function (_ref2) {
14673
15666
  var theme = _ref2.theme;
14674
15667
  return {
14675
15668
  fontFamily: theme.__hd__.badge.fonts["default"],
@@ -14680,7 +15673,7 @@ var StyledText$1 = index$2(Text$1)(function (_ref2) {
14680
15673
  textAlign: 'center'
14681
15674
  };
14682
15675
  });
14683
- var StyledStatus = index$2(Animated.View)(function (_ref3) {
15676
+ var StyledStatus = index$5(Animated.View)(function (_ref3) {
14684
15677
  var themeIntent = _ref3.themeIntent,
14685
15678
  theme = _ref3.theme;
14686
15679
  return {
@@ -14694,7 +15687,7 @@ var StyledStatus = index$2(Animated.View)(function (_ref3) {
14694
15687
  };
14695
15688
  });
14696
15689
 
14697
- var _excluded$b = ["children", "visible", "intent", "style", "testID"];
15690
+ var _excluded$c = ["children", "visible", "intent", "style", "testID"];
14698
15691
 
14699
15692
  var Status = function Status(_ref) {
14700
15693
  var children = _ref.children,
@@ -14704,7 +15697,7 @@ var Status = function Status(_ref) {
14704
15697
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
14705
15698
  style = _ref.style,
14706
15699
  testID = _ref.testID,
14707
- nativeProps = _objectWithoutProperties$1(_ref, _excluded$b);
15700
+ nativeProps = _objectWithoutProperties$1(_ref, _excluded$c);
14708
15701
 
14709
15702
  var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
14710
15703
  opacity = _React$useRef.current;
@@ -14740,7 +15733,7 @@ var Status = function Status(_ref) {
14740
15733
  }));
14741
15734
  };
14742
15735
 
14743
- var _excluded$a = ["content", "visible", "max", "intent", "style", "testID"];
15736
+ var _excluded$b = ["content", "visible", "max", "intent", "style", "testID"];
14744
15737
  var DEFAULT_MAX_NUMBER = 99;
14745
15738
 
14746
15739
  var getPaddingState = function getPaddingState(content) {
@@ -14757,7 +15750,7 @@ var Badge = function Badge(_ref) {
14757
15750
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
14758
15751
  style = _ref.style,
14759
15752
  testID = _ref.testID,
14760
- nativeProps = _objectWithoutProperties$1(_ref, _excluded$a);
15753
+ nativeProps = _objectWithoutProperties$1(_ref, _excluded$b);
14761
15754
 
14762
15755
  var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
14763
15756
  opacity = _React$useRef.current;
@@ -14803,21 +15796,21 @@ var isHeroIcon = function isHeroIcon(x) {
14803
15796
  return IconList.includes(x);
14804
15797
  };
14805
15798
 
14806
- var BottomNavigationTab = index$2(View)(function (_ref) {
15799
+ var BottomNavigationTab = index$5(View)(function (_ref) {
14807
15800
  var themeVisibility = _ref.themeVisibility;
14808
15801
  return {
14809
15802
  flex: 1,
14810
15803
  display: themeVisibility === false ? 'none' : 'flex'
14811
15804
  };
14812
15805
  });
14813
- var BottomNavigationContainer = index$2(View)({
15806
+ var BottomNavigationContainer = index$5(View)({
14814
15807
  flex: 1,
14815
15808
  overflow: 'hidden'
14816
15809
  });
14817
- var ContentWrapper$2 = index$2(View)({
15810
+ var ContentWrapper$2 = index$5(View)({
14818
15811
  flex: 1
14819
15812
  });
14820
- var BottomBarWrapper = index$2(View)(function (_ref2) {
15813
+ var BottomBarWrapper = index$5(View)(function (_ref2) {
14821
15814
  var themeInsets = _ref2.themeInsets,
14822
15815
  theme = _ref2.theme;
14823
15816
  return {
@@ -14833,17 +15826,17 @@ var BottomBarWrapper = index$2(View)(function (_ref2) {
14833
15826
  elevation: theme.__hd__.bottomNavigation.shadows.elevation
14834
15827
  };
14835
15828
  });
14836
- var BottomBar = index$2(View)({
15829
+ var BottomBar = index$5(View)({
14837
15830
  flex: 1,
14838
15831
  flexDirection: 'row',
14839
15832
  overflow: 'hidden',
14840
15833
  alignItems: 'center'
14841
15834
  });
14842
- var BottomBarItem = index$2(View)({
15835
+ var BottomBarItem = index$5(View)({
14843
15836
  flex: 1,
14844
15837
  alignItems: 'center'
14845
15838
  });
14846
- var StyledBottomBarText = index$2(Typography.Text)(function (_ref3) {
15839
+ var StyledBottomBarText = index$5(Typography.Text)(function (_ref3) {
14847
15840
  var theme = _ref3.theme;
14848
15841
  return {
14849
15842
  marginTop: theme.__hd__.bottomNavigation.space.titleMarginTop
@@ -14853,7 +15846,7 @@ var StyledBottomBarText = index$2(Typography.Text)(function (_ref3) {
14853
15846
  var isIOS = Platform.OS === 'ios';
14854
15847
  Platform.OS === 'android';
14855
15848
 
14856
- var _excluded$9 = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
15849
+ var _excluded$a = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
14857
15850
 
14858
15851
  var getInactiveIcon = function getInactiveIcon(icon) {
14859
15852
  var inactiveIcon = "".concat(icon, "-outlined");
@@ -14866,7 +15859,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
14866
15859
  renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
14867
15860
  selectedTabKey = _ref.selectedTabKey,
14868
15861
  tabs = _ref.tabs,
14869
- nativeProps = _objectWithoutProperties$1(_ref, _excluded$9);
15862
+ nativeProps = _objectWithoutProperties$1(_ref, _excluded$a);
14870
15863
 
14871
15864
  var insets = useSafeAreaInsets();
14872
15865
  /**
@@ -14940,7 +15933,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
14940
15933
  }))));
14941
15934
  };
14942
15935
 
14943
- var StyledDivider = index$2(View)(function (_ref) {
15936
+ var StyledDivider = index$5(View)(function (_ref) {
14944
15937
  var themeMarginHorizontal = _ref.themeMarginHorizontal,
14945
15938
  themeMarginVertical = _ref.themeMarginVertical,
14946
15939
  theme = _ref.theme;
@@ -14957,14 +15950,14 @@ var StyledDivider = index$2(View)(function (_ref) {
14957
15950
  }, horizontalMargin), verticalMargin);
14958
15951
  });
14959
15952
 
14960
- var _excluded$8 = ["marginHorizontal", "marginVertical", "style", "testID"];
15953
+ var _excluded$9 = ["marginHorizontal", "marginVertical", "style", "testID"];
14961
15954
 
14962
15955
  var Divider = function Divider(_ref) {
14963
15956
  var marginHorizontal = _ref.marginHorizontal,
14964
15957
  marginVertical = _ref.marginVertical,
14965
15958
  style = _ref.style,
14966
15959
  testID = _ref.testID,
14967
- nativeProps = _objectWithoutProperties$1(_ref, _excluded$8);
15960
+ nativeProps = _objectWithoutProperties$1(_ref, _excluded$9);
14968
15961
 
14969
15962
  return /*#__PURE__*/React.createElement(StyledDivider, _extends$3({}, nativeProps, {
14970
15963
  themeMarginHorizontal: marginHorizontal,
@@ -14975,10 +15968,10 @@ var Divider = function Divider(_ref) {
14975
15968
  };
14976
15969
 
14977
15970
  var AnimatedPressable$1 = Animated.createAnimatedComponent(Pressable);
14978
- var StyledWrapper$5 = index$2(View)(_objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
15971
+ var StyledWrapper$5 = index$5(View)(_objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
14979
15972
  flexDirection: 'column-reverse'
14980
15973
  }));
14981
- var StyledBottomSheet = index$2(Animated.View)(function (_ref) {
15974
+ var StyledBottomSheet = index$5(Animated.View)(function (_ref) {
14982
15975
  var theme = _ref.theme;
14983
15976
  return {
14984
15977
  borderTopLeftRadius: theme.__hd__.bottomSheet.radii["default"],
@@ -14993,21 +15986,21 @@ var StyledBottomSheet = index$2(Animated.View)(function (_ref) {
14993
15986
  maxHeight: '94%'
14994
15987
  };
14995
15988
  });
14996
- var StyledBackdrop$2 = index$2(AnimatedPressable$1)(function (_ref2) {
15989
+ var StyledBackdrop$2 = index$5(AnimatedPressable$1)(function (_ref2) {
14997
15990
  var theme = _ref2.theme;
14998
15991
  return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
14999
15992
  backgroundColor: theme.__hd__.bottomSheet.colors.backdrop,
15000
15993
  opacity: 0.48
15001
15994
  });
15002
15995
  });
15003
- var StyledHeaderWrapper = index$2(View)(function (_ref3) {
15996
+ var StyledHeaderWrapper = index$5(View)(function (_ref3) {
15004
15997
  var theme = _ref3.theme;
15005
15998
  return {
15006
15999
  minHeight: theme.__hd__.bottomSheet.sizes.sectionHeight,
15007
16000
  flexDirection: 'row'
15008
16001
  };
15009
16002
  });
15010
- var StyledHeader = index$2(View)(function (_ref4) {
16003
+ var StyledHeader = index$5(View)(function (_ref4) {
15011
16004
  var theme = _ref4.theme,
15012
16005
  adjacentIcon = _ref4.adjacentIcon;
15013
16006
  return {
@@ -15018,7 +16011,7 @@ var StyledHeader = index$2(View)(function (_ref4) {
15018
16011
  justifyContent: 'center'
15019
16012
  };
15020
16013
  });
15021
- var StyledFooter = index$2(View)(function (_ref5) {
16014
+ var StyledFooter = index$5(View)(function (_ref5) {
15022
16015
  var theme = _ref5.theme;
15023
16016
  return {
15024
16017
  paddingHorizontal: theme.__hd__.bottomSheet.space.horizontalPadding,
@@ -15029,7 +16022,7 @@ var StyledFooter = index$2(View)(function (_ref5) {
15029
16022
  flexDirection: 'row'
15030
16023
  };
15031
16024
  });
15032
- var StyledIconWrapper$1 = index$2(View)(function (_ref6) {
16025
+ var StyledIconWrapper$1 = index$5(View)(function (_ref6) {
15033
16026
  var theme = _ref6.theme;
15034
16027
  return {
15035
16028
  alignItems: 'center',
@@ -15050,7 +16043,7 @@ var genLoadingIndicatorStyles = function genLoadingIndicatorStyles(theme, intent
15050
16043
  };
15051
16044
  };
15052
16045
 
15053
- var StyledLoadingIndicatorWrapper = index$2(View)(function (_ref) {
16046
+ var StyledLoadingIndicatorWrapper = index$5(View)(function (_ref) {
15054
16047
  var theme = _ref.theme;
15055
16048
  return {
15056
16049
  flexDirection: 'row',
@@ -15059,7 +16052,7 @@ var StyledLoadingIndicatorWrapper = index$2(View)(function (_ref) {
15059
16052
  paddingVertical: theme.space.xxsmall
15060
16053
  };
15061
16054
  });
15062
- var StyledLoadingDot = index$2(View)(function (_ref2) {
16055
+ var StyledLoadingDot = index$5(View)(function (_ref2) {
15063
16056
  var _ref2$size = _ref2.size,
15064
16057
  size = _ref2$size === void 0 ? 12 : _ref2$size,
15065
16058
  themeVariant = _ref2.themeVariant,
@@ -15070,6 +16063,7 @@ var StyledLoadingDot = index$2(View)(function (_ref2) {
15070
16063
  case 'basic-transparent':
15071
16064
  case 'filled-primary':
15072
16065
  case 'filled-secondary':
16066
+ case 'filled-danger':
15073
16067
  return {
15074
16068
  backgroundColor: theme.__hd__.button.colors.invertedText
15075
16069
  };
@@ -15079,6 +16073,9 @@ var StyledLoadingDot = index$2(View)(function (_ref2) {
15079
16073
 
15080
16074
  case 'outlined-secondary':
15081
16075
  return genLoadingIndicatorStyles(theme, 'secondary');
16076
+
16077
+ case 'outlined-danger':
16078
+ return genLoadingIndicatorStyles(theme, 'danger');
15082
16079
  }
15083
16080
  };
15084
16081
 
@@ -15092,7 +16089,7 @@ var StyledLoadingDot = index$2(View)(function (_ref2) {
15092
16089
  }, themeStyling());
15093
16090
  });
15094
16091
 
15095
- var _excluded$7 = ["count", "size", "testID", "themeVariant"];
16092
+ var _excluded$8 = ["count", "size", "testID", "themeVariant"];
15096
16093
  var AnimatedLoadingIndicatorWrapper = Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
15097
16094
  var AnimatedLoadingDot = Animated.createAnimatedComponent(StyledLoadingDot);
15098
16095
 
@@ -15126,7 +16123,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
15126
16123
  size = _ref2$size === void 0 ? 12 : _ref2$size,
15127
16124
  testID = _ref2.testID,
15128
16125
  themeVariant = _ref2.themeVariant,
15129
- nativeProps = _objectWithoutProperties$1(_ref2, _excluded$7);
16126
+ nativeProps = _objectWithoutProperties$1(_ref2, _excluded$8);
15130
16127
 
15131
16128
  var progressAnimation = useRef(new Animated.Value(0));
15132
16129
  useEffect(function () {
@@ -15163,7 +16160,8 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
15163
16160
 
15164
16161
  var PRESSED_COLORS = {
15165
16162
  primary: 'pressedPrimary',
15166
- secondary: 'pressedSecondary'
16163
+ secondary: 'pressedSecondary',
16164
+ danger: 'pressedDanger'
15167
16165
  };
15168
16166
 
15169
16167
  var genBasicTransparentContainerStyles = function genBasicTransparentContainerStyles(theme, pressed, disabled) {
@@ -15277,7 +16275,7 @@ var genOutlineTextStyles = function genOutlineTextStyles(theme, intent, pressed,
15277
16275
  }, textColorStyling());
15278
16276
  };
15279
16277
 
15280
- var StyledButtonContainer = index$2(View)(function (_ref) {
16278
+ var StyledButtonContainer = index$5(View)(function (_ref) {
15281
16279
  var _ref$disabled = _ref.disabled,
15282
16280
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
15283
16281
  _ref$pressed = _ref.pressed,
@@ -15295,14 +16293,20 @@ var StyledButtonContainer = index$2(View)(function (_ref) {
15295
16293
  case 'filled-secondary':
15296
16294
  return genFilledContainerStyles(theme, 'secondary', pressed, disabled);
15297
16295
 
16296
+ case 'filled-danger':
16297
+ return genFilledContainerStyles(theme, 'danger', pressed, disabled);
16298
+
15298
16299
  case 'outlined-primary':
15299
16300
  return genOutlineContainerStyles(theme, 'primary', pressed, disabled);
15300
16301
 
15301
16302
  case 'outlined-secondary':
15302
16303
  return genOutlineContainerStyles(theme, 'secondary', pressed, disabled);
16304
+
16305
+ case 'outlined-danger':
16306
+ return genOutlineContainerStyles(theme, 'danger', pressed, disabled);
15303
16307
  }
15304
16308
  });
15305
- var StyledButtonText = index$2(Typography.Text)(function (_ref2) {
16309
+ var StyledButtonText = index$5(Typography.Text)(function (_ref2) {
15306
16310
  var disabled = _ref2.disabled,
15307
16311
  pressed = _ref2.pressed,
15308
16312
  themeVariant = _ref2.themeVariant,
@@ -15319,6 +16323,7 @@ var StyledButtonText = index$2(Typography.Text)(function (_ref2) {
15319
16323
 
15320
16324
  case 'filled-primary':
15321
16325
  case 'filled-secondary':
16326
+ case 'filled-danger':
15322
16327
  return {
15323
16328
  fontSize: theme.__hd__.button.fontSize["default"],
15324
16329
  lineHeight: theme.__hd__.button.lineHeight["default"],
@@ -15330,6 +16335,9 @@ var StyledButtonText = index$2(Typography.Text)(function (_ref2) {
15330
16335
 
15331
16336
  case 'outlined-secondary':
15332
16337
  return genOutlineTextStyles(theme, 'secondary', pressed, disabled);
16338
+
16339
+ case 'outlined-danger':
16340
+ return genOutlineTextStyles(theme, 'danger', pressed, disabled);
15333
16341
  }
15334
16342
  };
15335
16343
 
@@ -15339,7 +16347,7 @@ var StyledButtonText = index$2(Typography.Text)(function (_ref2) {
15339
16347
  fontFamily: theme.__hd__.button.fonts["default"]
15340
16348
  }, themeStyling());
15341
16349
  });
15342
- var StyledButtonIconWrapper = index$2(View)(function (_ref3) {
16350
+ var StyledButtonIconWrapper = index$5(View)(function (_ref3) {
15343
16351
  var themePosition = _ref3.themePosition,
15344
16352
  theme = _ref3.theme;
15345
16353
 
@@ -15355,7 +16363,7 @@ var StyledButtonIconWrapper = index$2(View)(function (_ref3) {
15355
16363
  };
15356
16364
  }
15357
16365
  });
15358
- var StyledButtonIcon = index$2(Icon)(function (_ref4) {
16366
+ var StyledButtonIcon = index$5(Icon)(function (_ref4) {
15359
16367
  var disabled = _ref4.disabled,
15360
16368
  pressed = _ref4.pressed,
15361
16369
  themeVariant = _ref4.themeVariant,
@@ -15370,6 +16378,7 @@ var StyledButtonIcon = index$2(Icon)(function (_ref4) {
15370
16378
 
15371
16379
  case 'filled-primary':
15372
16380
  case 'filled-secondary':
16381
+ case 'filled-danger':
15373
16382
  return {
15374
16383
  color: theme.__hd__.button.colors.invertedText
15375
16384
  };
@@ -15379,6 +16388,9 @@ var StyledButtonIcon = index$2(Icon)(function (_ref4) {
15379
16388
 
15380
16389
  case 'outlined-secondary':
15381
16390
  return genOutlineTextStyles(theme, 'secondary', pressed, disabled);
16391
+
16392
+ case 'outlined-danger':
16393
+ return genOutlineTextStyles(theme, 'danger', pressed, disabled);
15382
16394
  }
15383
16395
  };
15384
16396
 
@@ -15389,11 +16401,13 @@ var StyledButtonIcon = index$2(Icon)(function (_ref4) {
15389
16401
 
15390
16402
  var FILLED_VARIANTS = {
15391
16403
  primary: 'filled-primary',
15392
- secondary: 'filled-secondary'
16404
+ secondary: 'filled-secondary',
16405
+ danger: 'filled-danger'
15393
16406
  };
15394
16407
  var OUTLINED_VARIANTS = {
15395
16408
  primary: 'outlined-primary',
15396
- secondary: 'outlined-secondary'
16409
+ secondary: 'outlined-secondary',
16410
+ danger: 'outlined-danger'
15397
16411
  };
15398
16412
  var getThemeVariant = function getThemeVariant(variant, intent) {
15399
16413
  switch (variant) {
@@ -15621,27 +16635,60 @@ var BottomSheet = function BottomSheet(_ref) {
15621
16635
  }, footer) : null)));
15622
16636
  };
15623
16637
 
15624
- var StyledCard = index$2(View)(function (_ref) {
15625
- var themeVariant = _ref.themeVariant,
15626
- theme = _ref.theme;
15627
- var sharedStyles = {
16638
+ var StyledDataCard = index$5(View)(function (_ref) {
16639
+ var theme = _ref.theme;
16640
+ return {
15628
16641
  borderRadius: theme.__hd__.card.radii["default"],
15629
- overflow: 'hidden'
15630
- };
15631
- var dataStyles = {
16642
+ overflow: 'hidden',
15632
16643
  flex: 1,
15633
16644
  flexDirection: 'row'
15634
16645
  };
15635
-
15636
- switch (themeVariant) {
15637
- case 'basic':
16646
+ });
16647
+ var Indicator = index$5(View)(function (_ref2) {
16648
+ var theme = _ref2.theme,
16649
+ themeIntent = _ref2.themeIntent;
16650
+ return {
16651
+ backgroundColor: theme.__hd__.card.colors.indicator[themeIntent],
16652
+ width: scale(16),
16653
+ height: '100%'
16654
+ };
16655
+ });
16656
+
16657
+ var _excluded$7 = ["intent", "children"];
16658
+
16659
+ var DataCard = function DataCard(_ref) {
16660
+ var _ref$intent = _ref.intent,
16661
+ intent = _ref$intent === void 0 ? 'info' : _ref$intent,
16662
+ children = _ref.children,
16663
+ nativeProps = _objectWithoutProperties$1(_ref, _excluded$7);
16664
+
16665
+ return /*#__PURE__*/React.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React.createElement(Indicator, {
16666
+ themeIntent: intent,
16667
+ testID: "data-card-indicator"
16668
+ }), children);
16669
+ };
16670
+
16671
+ var StyledCard = index$5(View)(function (_ref) {
16672
+ var themeVariant = _ref.themeVariant,
16673
+ theme = _ref.theme;
16674
+ var sharedStyles = {
16675
+ borderRadius: theme.__hd__.card.radii["default"],
16676
+ overflow: 'hidden'
16677
+ };
16678
+ var dataStyles = {
16679
+ flex: 1,
16680
+ flexDirection: 'row'
16681
+ };
16682
+
16683
+ switch (themeVariant) {
16684
+ case 'basic':
15638
16685
  return sharedStyles;
15639
16686
 
15640
16687
  case 'data':
15641
16688
  return _objectSpread2(_objectSpread2({}, sharedStyles), dataStyles);
15642
16689
  }
15643
16690
  });
15644
- var LeftDataCard = index$2(View)(function (_ref2) {
16691
+ var LeftDataCard = index$5(View)(function (_ref2) {
15645
16692
  var theme = _ref2.theme;
15646
16693
  return {
15647
16694
  backgroundColor: theme.__hd__.card.colors.dataCardIndicator,
@@ -15665,7 +16712,11 @@ var Card = function Card(_ref) {
15665
16712
  }), children);
15666
16713
  };
15667
16714
 
15668
- var StyledWrapper$4 = index$2(Animated.View)(function () {
16715
+ var index$4 = Object.assign(Card, {
16716
+ Data: DataCard
16717
+ });
16718
+
16719
+ var StyledWrapper$4 = index$5(Animated.View)(function () {
15669
16720
  return {
15670
16721
  margin: 0,
15671
16722
  padding: 0,
@@ -15678,12 +16729,12 @@ var StyledWrapper$4 = index$2(Animated.View)(function () {
15678
16729
  * to use with Animated.timing
15679
16730
  */
15680
16731
 
15681
- var StyledHiddenWrapper = index$2(View)(function () {
16732
+ var StyledHiddenWrapper = index$5(View)(function () {
15682
16733
  return {
15683
16734
  height: Dimensions.get('window').height
15684
16735
  };
15685
16736
  });
15686
- var StyledChildWrapper = index$2(View)(function () {
16737
+ var StyledChildWrapper = index$5(View)(function () {
15687
16738
  return {
15688
16739
  margin: 0,
15689
16740
  padding: 0
@@ -15737,7 +16788,7 @@ var Collapse = function Collapse(_ref) {
15737
16788
  }, children)));
15738
16789
  };
15739
16790
 
15740
- var StyledWrapper$3 = index$2(TouchableOpacity)(function (_ref) {
16791
+ var StyledWrapper$3 = index$5(TouchableOpacity)(function (_ref) {
15741
16792
  var theme = _ref.theme,
15742
16793
  disabled = _ref.disabled;
15743
16794
  return {
@@ -15777,14 +16828,14 @@ var CheckBox = function CheckBox(_ref) {
15777
16828
  }));
15778
16829
  };
15779
16830
 
15780
- var Wrapper$1 = index$2(View)(function () {
16831
+ var Wrapper$1 = index$5(View)(function () {
15781
16832
  return {
15782
16833
  flex: 1,
15783
16834
  flexDirection: 'row',
15784
16835
  justifyContent: 'space-between'
15785
16836
  };
15786
16837
  });
15787
- var Value = index$2(Typography.Text)(function (_ref) {
16838
+ var Value = index$5(Typography.Text)(function (_ref) {
15788
16839
  var theme = _ref.theme;
15789
16840
  return {
15790
16841
  paddingHorizontal: theme.__hd__.contentNavigator.space.valueHorizontalPadding
@@ -15820,7 +16871,7 @@ function ContentNavigator(_ref) {
15820
16871
  }
15821
16872
 
15822
16873
  var AnimatedPressable = Animated.createAnimatedComponent(Pressable);
15823
- var StyledContainer$1 = index$2(View)(function (_ref) {
16874
+ var StyledContainer$1 = index$5(View)(function (_ref) {
15824
16875
  var theme = _ref.theme,
15825
16876
  enableShadow = _ref.enableShadow;
15826
16877
  return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
@@ -15833,13 +16884,13 @@ var StyledContainer$1 = index$2(View)(function (_ref) {
15833
16884
  elevation: 9999
15834
16885
  });
15835
16886
  });
15836
- var StyledBackdrop$1 = index$2(AnimatedPressable)(function (_ref2) {
16887
+ var StyledBackdrop$1 = index$5(AnimatedPressable)(function (_ref2) {
15837
16888
  var theme = _ref2.theme;
15838
16889
  return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
15839
16890
  backgroundColor: theme.__hd__.drawer.colors.backdrop
15840
16891
  });
15841
16892
  });
15842
- var StyledDrawerContainer = index$2(Animated.View)(function (_ref3) {
16893
+ var StyledDrawerContainer = index$5(Animated.View)(function (_ref3) {
15843
16894
  var theme = _ref3.theme,
15844
16895
  enableShadow = _ref3.enableShadow;
15845
16896
  return {
@@ -15909,7 +16960,7 @@ var Drawer = function Drawer(_ref) {
15909
16960
  }, children));
15910
16961
  };
15911
16962
 
15912
- var StyledFABContainer = index$2(TouchableHighlight)(function (_ref) {
16963
+ var StyledFABContainer = index$5(TouchableHighlight)(function (_ref) {
15913
16964
  var theme = _ref.theme;
15914
16965
  return {
15915
16966
  backgroundColor: theme.__hd__.fab.colors.buttonBackground,
@@ -15923,7 +16974,7 @@ var StyledFABContainer = index$2(TouchableHighlight)(function (_ref) {
15923
16974
  flexDirection: 'row'
15924
16975
  };
15925
16976
  });
15926
- var StyledFABIcon = index$2(Icon)(function (_ref2) {
16977
+ var StyledFABIcon = index$5(Icon)(function (_ref2) {
15927
16978
  var theme = _ref2.theme;
15928
16979
  return {
15929
16980
  color: theme.__hd__.fab.colors.icon,
@@ -15932,7 +16983,7 @@ var StyledFABIcon = index$2(Icon)(function (_ref2) {
15932
16983
  textAlign: 'center'
15933
16984
  };
15934
16985
  });
15935
- var StyledFABText = index$2(Text$1)(function (_ref3) {
16986
+ var StyledFABText = index$5(Text$1)(function (_ref3) {
15936
16987
  var theme = _ref3.theme;
15937
16988
  return {
15938
16989
  fontFamily: theme.__hd__.fab.fonts.title,
@@ -16029,7 +17080,7 @@ var FAB = function FAB(_ref3) {
16029
17080
  }));
16030
17081
  };
16031
17082
 
16032
- var StyledActionItem = index$2(TouchableOpacity)(function (_ref) {
17083
+ var StyledActionItem = index$5(TouchableOpacity)(function (_ref) {
16033
17084
  var theme = _ref.theme;
16034
17085
  return {
16035
17086
  paddingLeft: theme.__hd__.fab.space.actionItemPaddingLeft,
@@ -16046,7 +17097,7 @@ var StyledActionItem = index$2(TouchableOpacity)(function (_ref) {
16046
17097
  overflow: 'hidden'
16047
17098
  };
16048
17099
  });
16049
- var StyledActionItemText = index$2(Typography.Text)(function (_ref2) {
17100
+ var StyledActionItemText = index$5(Typography.Text)(function (_ref2) {
16050
17101
  var theme = _ref2.theme;
16051
17102
  return {
16052
17103
  paddingLeft: theme.__hd__.fab.space.actionItemTextPaddingLeft,
@@ -16071,7 +17122,7 @@ var ActionItem = function ActionItem(_ref) {
16071
17122
  }), /*#__PURE__*/React.createElement(StyledActionItemText, null, title));
16072
17123
  };
16073
17124
 
16074
- var StyledContainer = index$2(View)({
17125
+ var StyledContainer = index$5(View)({
16075
17126
  position: 'absolute',
16076
17127
  left: 0,
16077
17128
  right: 0,
@@ -16080,12 +17131,12 @@ var StyledContainer = index$2(View)({
16080
17131
  alignItems: 'flex-end',
16081
17132
  justifyContent: 'flex-end'
16082
17133
  });
16083
- var StyledActionGroupContainer = index$2(Animated.View)({
17134
+ var StyledActionGroupContainer = index$5(Animated.View)({
16084
17135
  alignItems: 'flex-end',
16085
17136
  justifyContent: 'flex-end',
16086
17137
  width: '70%'
16087
17138
  });
16088
- var StyledFAB = index$2(FAB)(function (_ref) {
17139
+ var StyledFAB = index$5(FAB)(function (_ref) {
16089
17140
  var theme = _ref.theme;
16090
17141
  return {
16091
17142
  marginRight: theme.__hd__.fab.space.buttonMarginRight,
@@ -16093,7 +17144,7 @@ var StyledFAB = index$2(FAB)(function (_ref) {
16093
17144
  alignSelf: 'flex-end'
16094
17145
  };
16095
17146
  });
16096
- var StyledBackdrop = index$2(Animated.View)(function (_ref2) {
17147
+ var StyledBackdrop = index$5(Animated.View)(function (_ref2) {
16097
17148
  var theme = _ref2.theme;
16098
17149
  return {
16099
17150
  position: 'absolute',
@@ -16104,7 +17155,7 @@ var StyledBackdrop = index$2(Animated.View)(function (_ref2) {
16104
17155
  backgroundColor: theme.__hd__.fab.colors.backdropBackground
16105
17156
  };
16106
17157
  });
16107
- var StyledHeaderText = index$2(Typography.Text)(function (_ref3) {
17158
+ var StyledHeaderText = index$5(Typography.Text)(function (_ref3) {
16108
17159
  var theme = _ref3.theme;
16109
17160
  return {
16110
17161
  fontSize: theme.__hd__.fab.fontSizes.header,
@@ -16183,11 +17234,200 @@ var ActionGroup = function ActionGroup(_ref2) {
16183
17234
  }));
16184
17235
  };
16185
17236
 
16186
- var index$1 = Object.assign(FAB, {
17237
+ var index$3 = Object.assign(FAB, {
16187
17238
  ActionGroup: ActionGroup
16188
17239
  });
16189
17240
 
16190
- var HalfCircleWrapper = index$2(View)(function (_ref) {
17241
+ var StyledListItemContainer$1 = index$5(TouchableOpacity)(function (_ref) {
17242
+ var theme = _ref.theme,
17243
+ _ref$themeSelected = _ref.themeSelected,
17244
+ themeSelected = _ref$themeSelected === void 0 ? false : _ref$themeSelected,
17245
+ _ref$themeVariant = _ref.themeVariant,
17246
+ themeVariant = _ref$themeVariant === void 0 ? 'basic' : _ref$themeVariant;
17247
+ var sharedStyles = {
17248
+ flexDirection: 'row',
17249
+ backgroundColor: themeSelected ? theme.__hd__.list.colors.checkedListItemContainerBackground : theme.__hd__.list.colors.listItemContainerBackground,
17250
+ padding: theme.__hd__.list.space.listItemContainerPadding
17251
+ };
17252
+
17253
+ switch (themeVariant) {
17254
+ case 'basic':
17255
+ return sharedStyles;
17256
+
17257
+ case 'card':
17258
+ return _objectSpread2(_objectSpread2({}, sharedStyles), {}, {
17259
+ alignItems: 'center',
17260
+ borderRadius: theme.__hd__.list.radii.card,
17261
+ shadowColor: theme.colors.shadow,
17262
+ shadowRadius: theme.__hd__.list.radii.cardShadow,
17263
+ shadowOffset: theme.__hd__.list.offsets.cardShadow,
17264
+ shadowOpacity: theme.__hd__.list.opacity.cardShadow
17265
+ });
17266
+
17267
+ default:
17268
+ return sharedStyles;
17269
+ }
17270
+ });
17271
+ var StyledContentContainer = index$5(View)(function () {
17272
+ return {
17273
+ flexDirection: 'column',
17274
+ flex: 1,
17275
+ flexGrow: 2
17276
+ };
17277
+ });
17278
+ var StyledChildrenContainer = index$5(View)(function () {
17279
+ return {
17280
+ flexDirection: 'column',
17281
+ justifyContent: 'flex-start',
17282
+ alignItems: 'flex-start'
17283
+ };
17284
+ });
17285
+ var StyledLeadingStatus = index$5(View)(function (_ref2) {
17286
+ var theme = _ref2.theme,
17287
+ themeLeadingStatusIntent = _ref2.themeLeadingStatusIntent;
17288
+ return {
17289
+ width: theme.__hd__.list.widths.leadingStatus,
17290
+ marginRight: theme.__hd__.list.space.leadingStatusMarginRight,
17291
+ borderRadius: theme.__hd__.list.radii.leadingStatus,
17292
+ backgroundColor: theme.__hd__.list.colors.leadingStatus[themeLeadingStatusIntent]
17293
+ };
17294
+ });
17295
+ var StyledPrefixContainer$1 = index$5(View)(function (_ref3) {
17296
+ var theme = _ref3.theme;
17297
+ return {
17298
+ marginRight: theme.__hd__.list.space.prefixContainerMarginRight
17299
+ };
17300
+ });
17301
+ var StyledSuffixContainer$1 = index$5(View)(function (_ref4) {
17302
+ var theme = _ref4.theme;
17303
+ return {
17304
+ marginLeft: theme.__hd__.list.space.suffixContainerMarginLeft
17305
+ };
17306
+ });
17307
+ var StyledTitleContainer$1 = index$5(View)(function () {
17308
+ return {
17309
+ flex: 1
17310
+ };
17311
+ });
17312
+
17313
+ var ListItem = function ListItem(_ref) {
17314
+ var prefix = _ref.prefix,
17315
+ suffix = _ref.suffix,
17316
+ title = _ref.title,
17317
+ subtitle = _ref.subtitle,
17318
+ style = _ref.style,
17319
+ testID = _ref.testID,
17320
+ _ref$selected = _ref.selected,
17321
+ selected = _ref$selected === void 0 ? false : _ref$selected,
17322
+ children = _ref.children,
17323
+ leadingStatus = _ref.leadingStatus,
17324
+ _ref$variant = _ref.variant,
17325
+ variant = _ref$variant === void 0 ? 'full-width' : _ref$variant,
17326
+ onPress = _ref.onPress,
17327
+ _ref$disabled = _ref.disabled,
17328
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled;
17329
+ return /*#__PURE__*/React.createElement(StyledListItemContainer$1, {
17330
+ style: style,
17331
+ testID: testID,
17332
+ themeSelected: selected,
17333
+ themeVariant: variant,
17334
+ onPress: onPress,
17335
+ disabled: disabled
17336
+ }, leadingStatus && /*#__PURE__*/React.createElement(StyledLeadingStatus, {
17337
+ themeLeadingStatusIntent: leadingStatus,
17338
+ testID: "leadingStatus"
17339
+ }), /*#__PURE__*/React.createElement(StyledContentContainer, null, /*#__PURE__*/React.createElement(View, {
17340
+ style: {
17341
+ flexDirection: 'row',
17342
+ alignItems: 'center'
17343
+ }
17344
+ }, prefix && /*#__PURE__*/React.createElement(StyledPrefixContainer$1, null, typeof prefix === 'string' ? /*#__PURE__*/React.createElement(Icon, {
17345
+ icon: prefix
17346
+ }) : prefix), /*#__PURE__*/React.createElement(StyledTitleContainer$1, null, /*#__PURE__*/React.createElement(Typography.Text, {
17347
+ intent: "body",
17348
+ fontSize: "large",
17349
+ fontWeight: "semi-bold"
17350
+ }, title), subtitle && /*#__PURE__*/React.createElement(Typography.Text, {
17351
+ intent: "subdued",
17352
+ fontSize: "small"
17353
+ }, subtitle)), suffix && /*#__PURE__*/React.createElement(StyledSuffixContainer$1, null, typeof suffix === 'string' ? /*#__PURE__*/React.createElement(Icon, {
17354
+ icon: suffix,
17355
+ intent: disabled ? 'disabled-text' : 'primary',
17356
+ size: "small"
17357
+ }) : suffix)), children && /*#__PURE__*/React.createElement(StyledChildrenContainer, null, children)));
17358
+ };
17359
+
17360
+ var StyledPrefixContainer = index$5(View)(function (_ref) {
17361
+ var theme = _ref.theme;
17362
+ return {
17363
+ marginRight: theme.__hd__.list.space.prefixContainerMarginRight
17364
+ };
17365
+ });
17366
+ var StyledSuffixContainer = index$5(View)(function (_ref2) {
17367
+ var theme = _ref2.theme;
17368
+ return {
17369
+ marginLeft: theme.__hd__.list.space.suffixContainerMarginLeft
17370
+ };
17371
+ });
17372
+ var StyledTitleContainer = index$5(View)(function () {
17373
+ return {
17374
+ flex: 1
17375
+ };
17376
+ });
17377
+ var StyledListItemContainer = index$5(TouchableOpacity)(function (_ref3) {
17378
+ var theme = _ref3.theme,
17379
+ themeSelected = _ref3.themeSelected,
17380
+ themeDisabled = _ref3.themeDisabled;
17381
+ return {
17382
+ alignItems: 'center',
17383
+ flex: 1,
17384
+ flexDirection: 'row',
17385
+ backgroundColor: themeSelected ? theme.__hd__.select.colors.checkedOption : theme.__hd__.select.colors.option,
17386
+ padding: theme.__hd__.list.space.listItemContainerPadding,
17387
+ opacity: themeDisabled ? theme.__hd__.list.opacity.disabled : theme.__hd__.list.opacity.enabled
17388
+ };
17389
+ });
17390
+
17391
+ var BasicListItem = function BasicListItem(_ref) {
17392
+ var prefix = _ref.prefix,
17393
+ suffix = _ref.suffix,
17394
+ title = _ref.title,
17395
+ subtitle = _ref.subtitle,
17396
+ style = _ref.style,
17397
+ testID = _ref.testID,
17398
+ _ref$selected = _ref.selected,
17399
+ selected = _ref$selected === void 0 ? false : _ref$selected,
17400
+ _ref$disabled = _ref.disabled,
17401
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
17402
+ onPress = _ref.onPress;
17403
+ return /*#__PURE__*/React.createElement(StyledListItemContainer, {
17404
+ style: style,
17405
+ testID: testID,
17406
+ themeSelected: selected,
17407
+ themeDisabled: disabled,
17408
+ onPress: onPress,
17409
+ disabled: disabled
17410
+ }, prefix && /*#__PURE__*/React.createElement(StyledPrefixContainer, null, typeof prefix === 'string' ? /*#__PURE__*/React.createElement(Icon, {
17411
+ icon: prefix
17412
+ }) : prefix), /*#__PURE__*/React.createElement(StyledTitleContainer, null, /*#__PURE__*/React.createElement(Typography.Text, {
17413
+ intent: "body",
17414
+ fontSize: "large"
17415
+ }, title), subtitle && /*#__PURE__*/React.createElement(Typography.Text, {
17416
+ intent: "subdued",
17417
+ fontSize: "small"
17418
+ }, subtitle)), suffix && /*#__PURE__*/React.createElement(StyledSuffixContainer, null, typeof suffix === 'string' ? /*#__PURE__*/React.createElement(Icon, {
17419
+ icon: suffix,
17420
+ intent: "text",
17421
+ size: "small"
17422
+ }) : suffix));
17423
+ };
17424
+
17425
+ var List = {
17426
+ Item: ListItem,
17427
+ BasicItem: BasicListItem
17428
+ };
17429
+
17430
+ var HalfCircleWrapper = index$5(View)(function (_ref) {
16191
17431
  var theme = _ref.theme;
16192
17432
  return {
16193
17433
  width: theme.__hd__.progress.sizes.radius,
@@ -16195,7 +17435,7 @@ var HalfCircleWrapper = index$2(View)(function (_ref) {
16195
17435
  overflow: 'hidden'
16196
17436
  };
16197
17437
  });
16198
- var HalfCircleInnerFG = index$2(View)(function (_ref2) {
17438
+ var HalfCircleInnerFG = index$5(View)(function (_ref2) {
16199
17439
  var theme = _ref2.theme,
16200
17440
  themeIntent = _ref2.themeIntent;
16201
17441
  return {
@@ -16205,7 +17445,7 @@ var HalfCircleInnerFG = index$2(View)(function (_ref2) {
16205
17445
  borderRadius: theme.__hd__.progress.radii["default"]
16206
17446
  };
16207
17447
  });
16208
- var HalfCircleInnerBG = index$2(View)(function (_ref3) {
17448
+ var HalfCircleInnerBG = index$5(View)(function (_ref3) {
16209
17449
  var theme = _ref3.theme;
16210
17450
  return {
16211
17451
  width: theme.__hd__.progress.sizes.radius * 2,
@@ -16214,7 +17454,7 @@ var HalfCircleInnerBG = index$2(View)(function (_ref3) {
16214
17454
  borderRadius: theme.__hd__.progress.radii["default"]
16215
17455
  };
16216
17456
  });
16217
- var DonutCircle = index$2(View)(function (_ref4) {
17457
+ var DonutCircle = index$5(View)(function (_ref4) {
16218
17458
  var theme = _ref4.theme;
16219
17459
  return {
16220
17460
  position: 'absolute',
@@ -16229,7 +17469,7 @@ var DonutCircle = index$2(View)(function (_ref4) {
16229
17469
  justifyContent: 'center'
16230
17470
  };
16231
17471
  });
16232
- var StrokeEnd = index$2(View)(function (_ref5) {
17472
+ var StrokeEnd = index$5(View)(function (_ref5) {
16233
17473
  var theme = _ref5.theme,
16234
17474
  themeIntent = _ref5.themeIntent;
16235
17475
  return {
@@ -16360,7 +17600,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
16360
17600
  }, "".concat(value, "%")))));
16361
17601
  };
16362
17602
 
16363
- var StyledWrapper$2 = index$2(View)(function (_ref) {
17603
+ var StyledWrapper$2 = index$5(View)(function (_ref) {
16364
17604
  var theme = _ref.theme;
16365
17605
  return {
16366
17606
  height: theme.__hd__.progress.sizes.barHeight,
@@ -16369,7 +17609,7 @@ var StyledWrapper$2 = index$2(View)(function (_ref) {
16369
17609
  overflow: 'hidden'
16370
17610
  };
16371
17611
  });
16372
- var StyledInner = index$2(Animated.View)(function (_ref2) {
17612
+ var StyledInner = index$5(Animated.View)(function (_ref2) {
16373
17613
  var theme = _ref2.theme,
16374
17614
  themeIntent = _ref2.themeIntent;
16375
17615
  return {
@@ -16439,13 +17679,13 @@ var Progress = {
16439
17679
  Bar: ProgressBar
16440
17680
  };
16441
17681
 
16442
- var StyledView$1 = index$2(View)();
16443
- var StyledSpinnerContainer = index$2(View)({
17682
+ var StyledView$1 = index$5(View)();
17683
+ var StyledSpinnerContainer = index$5(View)({
16444
17684
  height: '100%',
16445
17685
  justifyContent: 'center',
16446
17686
  alignItems: 'center'
16447
17687
  });
16448
- var StyledSpinnerRow = index$2(View)(function (_ref) {
17688
+ var StyledSpinnerRow = index$5(View)(function (_ref) {
16449
17689
  var themePosition = _ref.themePosition,
16450
17690
  theme = _ref.theme;
16451
17691
  return {
@@ -16453,7 +17693,7 @@ var StyledSpinnerRow = index$2(View)(function (_ref) {
16453
17693
  marginBottom: themePosition === 'top' ? theme.__hd__.spinner.space.spinnerDotPadding : 0
16454
17694
  };
16455
17695
  });
16456
- var StyledSpinnerDot = index$2(View)(function (_ref2) {
17696
+ var StyledSpinnerDot = index$5(View)(function (_ref2) {
16457
17697
  var themePosition = _ref2.themePosition,
16458
17698
  theme = _ref2.theme;
16459
17699
 
@@ -16544,7 +17784,7 @@ var Spinner = function Spinner(_ref) {
16544
17784
  }, /*#__PURE__*/React.createElement(AnimatedSpinner, null)));
16545
17785
  };
16546
17786
 
16547
- var Wrapper = index$2(TouchableOpacity)(function (_ref) {
17787
+ var Wrapper = index$5(TouchableOpacity)(function (_ref) {
16548
17788
  var theme = _ref.theme,
16549
17789
  themeChecked = _ref.themeChecked;
16550
17790
  return {
@@ -16556,7 +17796,7 @@ var Wrapper = index$2(TouchableOpacity)(function (_ref) {
16556
17796
  backgroundColor: themeChecked ? theme.__hd__.radio.colors.checkedWrapper : theme.__hd__.radio.colors.wrapper
16557
17797
  };
16558
17798
  });
16559
- var Circle = index$2(View)(function (_ref2) {
17799
+ var Circle = index$5(View)(function (_ref2) {
16560
17800
  var theme = _ref2.theme,
16561
17801
  themeChecked = _ref2.themeChecked;
16562
17802
  return {
@@ -16569,7 +17809,7 @@ var Circle = index$2(View)(function (_ref2) {
16569
17809
  justifyContent: 'center'
16570
17810
  };
16571
17811
  });
16572
- var InnerCircle = index$2(View)(function (_ref3) {
17812
+ var InnerCircle = index$5(View)(function (_ref3) {
16573
17813
  var theme = _ref3.theme;
16574
17814
  return {
16575
17815
  height: theme.__hd__.radio.sizes.innerCircle,
@@ -16578,7 +17818,7 @@ var InnerCircle = index$2(View)(function (_ref3) {
16578
17818
  backgroundColor: theme.__hd__.radio.colors.checkedCircle
16579
17819
  };
16580
17820
  });
16581
- var Spacer$1 = index$2(View)(function (_ref4) {
17821
+ var Spacer$1 = index$5(View)(function (_ref4) {
16582
17822
  var theme = _ref4.theme;
16583
17823
  return {
16584
17824
  marginTop: theme.__hd__.radio.space.groupTopMargin
@@ -16651,7 +17891,7 @@ var CompoundRadio = {
16651
17891
  Group: RadioGroup
16652
17892
  };
16653
17893
 
16654
- var StyledHeading = index$2(View)(function (_ref) {
17894
+ var StyledHeading = index$5(View)(function (_ref) {
16655
17895
  var theme = _ref.theme;
16656
17896
  return {
16657
17897
  paddingVertical: theme.__hd__.sectionHeading.space.headingVerticalPadding,
@@ -16664,13 +17904,13 @@ var StyledHeading = index$2(View)(function (_ref) {
16664
17904
  justifyContent: 'space-between'
16665
17905
  };
16666
17906
  });
16667
- var StyledIconWrapper = index$2(View)(function (_ref2) {
17907
+ var StyledIconWrapper = index$5(View)(function (_ref2) {
16668
17908
  var theme = _ref2.theme;
16669
17909
  return {
16670
17910
  marginRight: theme.__hd__.sectionHeading.space.iconMarginRight
16671
17911
  };
16672
17912
  });
16673
- var StyledWrapper$1 = index$2(View)(function () {
17913
+ var StyledWrapper$1 = index$5(View)(function () {
16674
17914
  return {
16675
17915
  display: 'flex',
16676
17916
  flexDirection: 'row'
@@ -16715,7 +17955,106 @@ var SectionHeading = function SectionHeading(_ref) {
16715
17955
  }, text)), rightChildren);
16716
17956
  };
16717
17957
 
16718
- var Container$1 = index$2(View)(function (_ref) {
17958
+ var OptionWrapper = index$5(TouchableOpacity)(function (_ref) {
17959
+ var theme = _ref.theme,
17960
+ themeSelected = _ref.themeSelected;
17961
+ return {
17962
+ flexDirection: 'row',
17963
+ justifyContent: 'space-between',
17964
+ alignItems: 'center',
17965
+ borderRadius: theme.__hd__.select.radii.option,
17966
+ padding: theme.__hd__.select.space.optionPadding,
17967
+ backgroundColor: themeSelected ? theme.__hd__.select.colors.checkedOption : theme.__hd__.select.colors.option
17968
+ };
17969
+ });
17970
+ var OptionListWrapper = index$5(View)(function (_ref2) {
17971
+ var theme = _ref2.theme;
17972
+ return {
17973
+ padding: theme.__hd__.select.space.optionListPadding
17974
+ };
17975
+ });
17976
+ var Spacer = index$5(View)(function (_ref3) {
17977
+ var theme = _ref3.theme;
17978
+ return {
17979
+ marginTop: theme.__hd__.select.space.optionListSpacing
17980
+ };
17981
+ });
17982
+ var FooterText = index$5(Typography.Text)(function (_ref4) {
17983
+ var theme = _ref4.theme;
17984
+ return {
17985
+ color: theme.__hd__.select.colors.footerText
17986
+ };
17987
+ });
17988
+
17989
+ var Footer = function Footer(_ref) {
17990
+ var label = _ref.label,
17991
+ onPress = _ref.onPress;
17992
+ return /*#__PURE__*/React.createElement(TouchableOpacity, {
17993
+ onPress: onPress
17994
+ }, /*#__PURE__*/React.createElement(FooterText, {
17995
+ fontSize: "large",
17996
+ fontWeight: "semi-bold"
17997
+ }, label));
17998
+ };
17999
+
18000
+ var getKey = function getKey(option, index, keyExtractor) {
18001
+ var key = '';
18002
+
18003
+ if (keyExtractor !== undefined) {
18004
+ key = keyExtractor(option, index);
18005
+ } else if (option.key !== undefined) {
18006
+ key = option.key;
18007
+ } else {
18008
+ key = index;
18009
+ }
18010
+
18011
+ return key;
18012
+ };
18013
+
18014
+ var Option$1 = function Option(_ref) {
18015
+ var text = _ref.text,
18016
+ selected = _ref.selected,
18017
+ onPress = _ref.onPress;
18018
+ return /*#__PURE__*/React.createElement(OptionWrapper, {
18019
+ themeSelected: selected,
18020
+ onPress: onPress
18021
+ }, /*#__PURE__*/React.createElement(View, {
18022
+ style: {
18023
+ flex: 1
18024
+ }
18025
+ }, /*#__PURE__*/React.createElement(Typography.Text, {
18026
+ fontSize: "large"
18027
+ }, text)), selected && /*#__PURE__*/React.createElement(Icon, {
18028
+ icon: "checkmark",
18029
+ size: "small"
18030
+ }));
18031
+ };
18032
+
18033
+ var OptionList$1 = function OptionList(_ref) {
18034
+ var value = _ref.value,
18035
+ options = _ref.options,
18036
+ _onPress = _ref.onPress,
18037
+ keyExtractor = _ref.keyExtractor;
18038
+ return /*#__PURE__*/React.createElement(OptionListWrapper, null, options.map(function (opt, index) {
18039
+ return /*#__PURE__*/React.createElement(React.Fragment, {
18040
+ key: getKey(opt, index, keyExtractor)
18041
+ }, index !== 0 && /*#__PURE__*/React.createElement(Spacer, null), /*#__PURE__*/React.createElement(Option$1, {
18042
+ text: opt.text,
18043
+ selected: value.includes(opt.value),
18044
+ onPress: function onPress() {
18045
+ if (value.includes(opt.value)) {
18046
+ _onPress(value.filter(function (val) {
18047
+ return val !== opt.value;
18048
+ }));
18049
+ } else {
18050
+ _onPress([].concat(_toConsumableArray$1(value), [opt.value]));
18051
+ }
18052
+ }
18053
+ }));
18054
+ }));
18055
+ };
18056
+
18057
+ var Container$1 = index$5(View)(function (_ref) {
16719
18058
  var theme = _ref.theme;
16720
18059
  return {
16721
18060
  position: 'relative',
@@ -16727,7 +18066,7 @@ var Container$1 = index$2(View)(function (_ref) {
16727
18066
  alignItems: 'center'
16728
18067
  };
16729
18068
  });
16730
- var Label = index$2(Typography.Text)(function (_ref2) {
18069
+ var Label = index$5(Typography.Text)(function (_ref2) {
16731
18070
  var theme = _ref2.theme;
16732
18071
  return {
16733
18072
  position: 'absolute',
@@ -16738,7 +18077,7 @@ var Label = index$2(Typography.Text)(function (_ref2) {
16738
18077
  paddingHorizontal: theme.__hd__.textInput.space.labelHorizontalPadding
16739
18078
  };
16740
18079
  });
16741
- var StyledTextInput = index$2(TextInput$1)(function (_ref3) {
18080
+ var StyledTextInput = index$5(TextInput$1)(function (_ref3) {
16742
18081
  var theme = _ref3.theme;
16743
18082
  return {
16744
18083
  flex: 1,
@@ -16782,49 +18121,75 @@ var TextInput = function TextInput(_ref) {
16782
18121
  }));
16783
18122
  };
16784
18123
 
16785
- var OptionWrapper = index$2(TouchableOpacity)(function (_ref) {
16786
- var theme = _ref.theme,
16787
- themeSelected = _ref.themeSelected;
16788
- return {
16789
- flexDirection: 'row',
16790
- justifyContent: 'space-between',
16791
- alignItems: 'center',
16792
- borderRadius: theme.__hd__.select.radii.option,
16793
- padding: theme.__hd__.select.space.optionPadding,
16794
- backgroundColor: themeSelected ? theme.__hd__.select.colors.checkedOption : theme.__hd__.select.colors.option
16795
- };
16796
- });
16797
- var OptionListWrapper = index$2(View)(function (_ref2) {
16798
- var theme = _ref2.theme;
16799
- return {
16800
- padding: theme.__hd__.select.space.optionListPadding
16801
- };
16802
- });
16803
- var Spacer = index$2(View)(function (_ref3) {
16804
- var theme = _ref3.theme;
16805
- return {
16806
- marginTop: theme.__hd__.select.space.optionListSpacing
16807
- };
16808
- });
16809
- var FooterText = index$2(Typography.Text)(function (_ref4) {
16810
- var theme = _ref4.theme;
16811
- return {
16812
- color: theme.__hd__.select.colors.footerText
16813
- };
16814
- });
18124
+ function MultiSelect(_ref) {
18125
+ var options = _ref.options,
18126
+ value = _ref.value,
18127
+ testID = _ref.testID,
18128
+ style = _ref.style,
18129
+ label = _ref.label,
18130
+ footerLabel = _ref.footerLabel,
18131
+ onConfirm = _ref.onConfirm;
18132
+ var theme = useTheme$1();
16815
18133
 
16816
- function Footer(_ref) {
16817
- var label = _ref.label,
16818
- onPress = _ref.onPress;
18134
+ var _useState = useState(false),
18135
+ _useState2 = _slicedToArray(_useState, 2),
18136
+ open = _useState2[0],
18137
+ setOpen = _useState2[1];
18138
+
18139
+ var _useState3 = useState(value),
18140
+ _useState4 = _slicedToArray(_useState3, 2),
18141
+ selectingValue = _useState4[0],
18142
+ setSelectingValue = _useState4[1];
18143
+
18144
+ var displayedValue = options.filter(function (opt) {
18145
+ return value.includes(opt.value);
18146
+ }).map(function (opt) {
18147
+ return opt.text;
18148
+ }).join(', ');
16819
18149
  return /*#__PURE__*/React.createElement(TouchableOpacity, {
16820
- onPress: onPress
16821
- }, /*#__PURE__*/React.createElement(FooterText, {
16822
- fontSize: "large",
16823
- fontWeight: "semi-bold"
16824
- }, label));
18150
+ onPress: function onPress() {
18151
+ return setOpen(true);
18152
+ }
18153
+ }, /*#__PURE__*/React.createElement(TextInput, {
18154
+ label: label,
18155
+ value: displayedValue,
18156
+ onPressIn: function onPressIn() {
18157
+ return setOpen(true);
18158
+ },
18159
+ editable: false // when input is not editable on Android, the text color is gray
18160
+ // hence, adding this to make the text color the same as iOS
18161
+ ,
18162
+ textStyle: {
18163
+ color: theme.colors.text
18164
+ },
18165
+ suffix: "arrow-down",
18166
+ multiline: true,
18167
+ style: style,
18168
+ testID: testID
18169
+ }), /*#__PURE__*/React.createElement(BottomSheet, {
18170
+ open: open,
18171
+ onRequestClose: function onRequestClose() {
18172
+ return setOpen(false);
18173
+ },
18174
+ onDismiss: function onDismiss() {
18175
+ return setSelectingValue(value);
18176
+ },
18177
+ header: label,
18178
+ footer: /*#__PURE__*/React.createElement(Footer, {
18179
+ label: footerLabel,
18180
+ onPress: function onPress() {
18181
+ setOpen(false);
18182
+ onConfirm(selectingValue);
18183
+ }
18184
+ })
18185
+ }, /*#__PURE__*/React.createElement(OptionList$1, {
18186
+ options: options,
18187
+ value: selectingValue,
18188
+ onPress: setSelectingValue
18189
+ })));
16825
18190
  }
16826
18191
 
16827
- function Option(_ref) {
18192
+ var Option = function Option(_ref) {
16828
18193
  var text = _ref.text,
16829
18194
  selected = _ref.selected,
16830
18195
  onPress = _ref.onPress;
@@ -16837,58 +18202,40 @@ function Option(_ref) {
16837
18202
  }
16838
18203
  }, /*#__PURE__*/React.createElement(Typography.Text, {
16839
18204
  fontSize: "large"
16840
- }, text)), selected && /*#__PURE__*/React.createElement(Icon, {
16841
- icon: "checkmark",
16842
- size: "small"
16843
- }));
16844
- }
16845
-
16846
- function getKey(option, index, keyExtractor) {
16847
- var key = '';
16848
-
16849
- if (keyExtractor !== undefined) {
16850
- key = keyExtractor(option, index);
16851
- } else if (option.key !== undefined) {
16852
- key = option.key;
16853
- } else {
16854
- key = index;
16855
- }
16856
-
16857
- return key;
16858
- }
18205
+ }, text)));
18206
+ };
16859
18207
 
16860
- function OptionList(_ref2) {
16861
- var value = _ref2.value,
16862
- options = _ref2.options,
16863
- _onPress = _ref2.onPress,
16864
- keyExtractor = _ref2.keyExtractor;
18208
+ var OptionList = function OptionList(_ref) {
18209
+ var value = _ref.value,
18210
+ options = _ref.options,
18211
+ _onPress = _ref.onPress,
18212
+ keyExtractor = _ref.keyExtractor;
16865
18213
  return /*#__PURE__*/React.createElement(OptionListWrapper, null, options.map(function (opt, index) {
16866
18214
  return /*#__PURE__*/React.createElement(React.Fragment, {
16867
18215
  key: getKey(opt, index, keyExtractor)
16868
18216
  }, index !== 0 && /*#__PURE__*/React.createElement(Spacer, null), /*#__PURE__*/React.createElement(Option, {
16869
18217
  text: opt.text,
16870
- selected: value.includes(opt.value),
18218
+ selected: value === opt.value,
16871
18219
  onPress: function onPress() {
16872
- if (value.includes(opt.value)) {
16873
- _onPress(value.filter(function (val) {
16874
- return val !== opt.value;
16875
- }));
18220
+ if (value === opt.value) {
18221
+ _onPress(null);
16876
18222
  } else {
16877
- _onPress([].concat(_toConsumableArray$1(value), [opt.value]));
18223
+ _onPress(opt.value);
16878
18224
  }
16879
18225
  }
16880
18226
  }));
16881
18227
  }));
16882
- }
18228
+ };
18229
+
18230
+ var SingleSelect = function SingleSelect(_ref) {
18231
+ var _options$find;
16883
18232
 
16884
- function MultiSelect(_ref) {
16885
18233
  var options = _ref.options,
16886
18234
  value = _ref.value,
16887
18235
  testID = _ref.testID,
16888
18236
  style = _ref.style,
16889
18237
  label = _ref.label,
16890
- footerLabel = _ref.footerLabel,
16891
- _onPress = _ref.onPress;
18238
+ onConfirm = _ref.onConfirm;
16892
18239
  var theme = useTheme$1();
16893
18240
 
16894
18241
  var _useState = useState(false),
@@ -16901,11 +18248,9 @@ function MultiSelect(_ref) {
16901
18248
  selectingValue = _useState4[0],
16902
18249
  setSelectingValue = _useState4[1];
16903
18250
 
16904
- var displayedValue = options.filter(function (opt) {
16905
- return value.includes(opt.value);
16906
- }).map(function (opt) {
16907
- return opt.text;
16908
- }).join(', ');
18251
+ var displayedValue = (_options$find = options.find(function (opt) {
18252
+ return value === opt.value;
18253
+ })) === null || _options$find === void 0 ? void 0 : _options$find.text;
16909
18254
  return /*#__PURE__*/React.createElement(TouchableOpacity, {
16910
18255
  onPress: function onPress() {
16911
18256
  return setOpen(true);
@@ -16934,27 +18279,22 @@ function MultiSelect(_ref) {
16934
18279
  onDismiss: function onDismiss() {
16935
18280
  return setSelectingValue(value);
16936
18281
  },
16937
- header: label,
16938
- footer: /*#__PURE__*/React.createElement(Footer, {
16939
- label: footerLabel,
16940
- onPress: function onPress() {
16941
- setOpen(false);
16942
-
16943
- _onPress(selectingValue);
16944
- }
16945
- })
18282
+ header: label
16946
18283
  }, /*#__PURE__*/React.createElement(OptionList, {
16947
18284
  options: options,
16948
18285
  value: selectingValue,
16949
- onPress: setSelectingValue
18286
+ onPress: function onPress(selectedValue) {
18287
+ setOpen(false);
18288
+ onConfirm(selectedValue);
18289
+ }
16950
18290
  })));
16951
- }
18291
+ };
16952
18292
 
16953
- var CompoundSelect = {
18293
+ var index$2 = Object.assign(SingleSelect, {
16954
18294
  Multi: MultiSelect
16955
- };
18295
+ });
16956
18296
 
16957
- var StyledWrapper = index$2(View)(function (_ref) {
18297
+ var StyledWrapper = index$5(View)(function (_ref) {
16958
18298
  var theme = _ref.theme,
16959
18299
  themeChecked = _ref.themeChecked,
16960
18300
  themeSize = _ref.themeSize;
@@ -16966,7 +18306,7 @@ var StyledWrapper = index$2(View)(function (_ref) {
16966
18306
  backgroundColor: themeChecked ? theme.__hd__["switch"].colors.active : theme.__hd__["switch"].colors.inactive
16967
18307
  };
16968
18308
  });
16969
- var StyledDisabledWrapper = index$2(View)(function (_ref2) {
18309
+ var StyledDisabledWrapper = index$5(View)(function (_ref2) {
16970
18310
  var theme = _ref2.theme,
16971
18311
  themeSize = _ref2.themeSize;
16972
18312
  return {
@@ -16979,7 +18319,7 @@ var StyledDisabledWrapper = index$2(View)(function (_ref2) {
16979
18319
  opacity: 0.8
16980
18320
  };
16981
18321
  });
16982
- var StyledThumbWrapper = index$2(View)(function (_ref3) {
18322
+ var StyledThumbWrapper = index$5(View)(function (_ref3) {
16983
18323
  var theme = _ref3.theme,
16984
18324
  themeSize = _ref3.themeSize;
16985
18325
  return {
@@ -16990,7 +18330,7 @@ var StyledThumbWrapper = index$2(View)(function (_ref3) {
16990
18330
  justifyContent: 'center'
16991
18331
  };
16992
18332
  });
16993
- var StyledKnot = index$2(Animated.View)(function (_ref4) {
18333
+ var StyledKnot = index$5(Animated.View)(function (_ref4) {
16994
18334
  var theme = _ref4.theme,
16995
18335
  themeSize = _ref4.themeSize;
16996
18336
  return {
@@ -17247,11 +18587,11 @@ var PagerView = /*#__PURE__*/function (_React$Component) {
17247
18587
  }(React.Component);
17248
18588
 
17249
18589
  var AnimatedPagerView = Animated.createAnimatedComponent(PagerView);
17250
- var TabContainer$1 = index$2(View)({
18590
+ var TabContainer$1 = index$5(View)({
17251
18591
  flex: 1,
17252
18592
  overflow: 'hidden'
17253
18593
  });
17254
- var HeaderTabWrapper$1 = index$2(View)(function (_ref) {
18594
+ var HeaderTabWrapper$1 = index$5(View)(function (_ref) {
17255
18595
  var theme = _ref.theme,
17256
18596
  themeInsets = _ref.themeInsets;
17257
18597
  return {
@@ -17260,10 +18600,10 @@ var HeaderTabWrapper$1 = index$2(View)(function (_ref) {
17260
18600
  borderBottomWidth: theme.__hd__.tabs.borderWidths.headerBottom
17261
18601
  };
17262
18602
  });
17263
- var HeaderTab = index$2(View)({
18603
+ var HeaderTab = index$5(View)({
17264
18604
  flexDirection: 'row'
17265
18605
  });
17266
- var HeaderTabItem$1 = index$2(View)(function (_ref2) {
18606
+ var HeaderTabItem$1 = index$5(View)(function (_ref2) {
17267
18607
  var theme = _ref2.theme;
17268
18608
  return {
17269
18609
  flex: 1,
@@ -17271,13 +18611,13 @@ var HeaderTabItem$1 = index$2(View)(function (_ref2) {
17271
18611
  paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
17272
18612
  };
17273
18613
  });
17274
- var ContentWrapper$1 = index$2(AnimatedPagerView)({
18614
+ var ContentWrapper$1 = index$5(AnimatedPagerView)({
17275
18615
  flex: 1
17276
18616
  });
17277
- var TabScreen$1 = index$2(View)({
18617
+ var TabScreen$1 = index$5(View)({
17278
18618
  flex: 1
17279
18619
  });
17280
- var StyledIndicator = index$2(Animated.View)(function (_ref3) {
18620
+ var StyledIndicator = index$5(Animated.View)(function (_ref3) {
17281
18621
  var theme = _ref3.theme,
17282
18622
  themeWidth = _ref3.themeWidth;
17283
18623
  return {
@@ -17310,17 +18650,17 @@ var ActiveTabIndicator = function ActiveTabIndicator(_ref) {
17310
18650
  });
17311
18651
  };
17312
18652
 
17313
- var TabScreen = index$2(View)({
18653
+ var TabScreen = index$5(View)({
17314
18654
  flex: 1
17315
18655
  });
17316
- var TabContainer = index$2(View)({
18656
+ var TabContainer = index$5(View)({
17317
18657
  flex: 1,
17318
18658
  overflow: 'hidden'
17319
18659
  });
17320
- var ContentWrapper = index$2(PagerView)({
18660
+ var ContentWrapper = index$5(PagerView)({
17321
18661
  flex: 1
17322
18662
  });
17323
- var HeaderTabWrapper = index$2(View)(function (_ref) {
18663
+ var HeaderTabWrapper = index$5(View)(function (_ref) {
17324
18664
  var theme = _ref.theme,
17325
18665
  themeInsets = _ref.themeInsets;
17326
18666
  return {
@@ -17329,21 +18669,21 @@ var HeaderTabWrapper = index$2(View)(function (_ref) {
17329
18669
  borderBottomWidth: theme.__hd__.tabs.borderWidths.headerBottom
17330
18670
  };
17331
18671
  });
17332
- var HeaderTabItem = index$2(Animated.View)(function (_ref2) {
18672
+ var HeaderTabItem = index$5(Animated.View)(function (_ref2) {
17333
18673
  var theme = _ref2.theme;
17334
18674
  return {
17335
18675
  paddingHorizontal: theme.__hd__.tabs.space.itemHorizontalPadding,
17336
18676
  paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
17337
18677
  };
17338
18678
  });
17339
- var HeaderTabItemOutlineWrapper = index$2(View)(function (_ref3) {
18679
+ var HeaderTabItemOutlineWrapper = index$5(View)(function (_ref3) {
17340
18680
  var theme = _ref3.theme;
17341
18681
  return _objectSpread2({
17342
18682
  paddingHorizontal: theme.__hd__.tabs.space.itemHorizontalPadding,
17343
18683
  paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
17344
18684
  }, StyleSheet$1.absoluteFillObject);
17345
18685
  });
17346
- var HeaderTabItemOutline = index$2(Animated.View)(function (_ref4) {
18686
+ var HeaderTabItemOutline = index$5(Animated.View)(function (_ref4) {
17347
18687
  var theme = _ref4.theme,
17348
18688
  themeActive = _ref4.themeActive;
17349
18689
  return {
@@ -17351,7 +18691,7 @@ var HeaderTabItemOutline = index$2(Animated.View)(function (_ref4) {
17351
18691
  backgroundColor: themeActive ? theme.__hd__.tabs.colors.activeBackground : undefined
17352
18692
  };
17353
18693
  });
17354
- var HeaderTabItemWrapper = index$2(View)(function (_ref5) {
18694
+ var HeaderTabItemWrapper = index$5(View)(function (_ref5) {
17355
18695
  var theme = _ref5.theme;
17356
18696
  return {
17357
18697
  paddingHorizontal: theme.__hd__.tabs.space.outlineHorizontalPadding,
@@ -17662,7 +19002,7 @@ var Tabs = function Tabs(_ref2) {
17662
19002
  })));
17663
19003
  };
17664
19004
 
17665
- var index = Object.assign(Tabs, {
19005
+ var index$1 = Object.assign(Tabs, {
17666
19006
  Scroll: ScrollableTab
17667
19007
  });
17668
19008
 
@@ -17672,7 +19012,7 @@ var BACKGROUND_INTENTS = {
17672
19012
  danger: 'dangerBackground',
17673
19013
  info: 'infoBackground'
17674
19014
  };
17675
- var StyledView = index$2(View)(function (_ref) {
19015
+ var StyledView = index$5(View)(function (_ref) {
17676
19016
  var themeIntent = _ref.themeIntent,
17677
19017
  theme = _ref.theme;
17678
19018
  return {
@@ -17684,7 +19024,7 @@ var StyledView = index$2(View)(function (_ref) {
17684
19024
  backgroundColor: theme.__hd__.tag.colors[BACKGROUND_INTENTS[themeIntent]]
17685
19025
  };
17686
19026
  });
17687
- var StyledText = index$2(Text$1)(function (_ref2) {
19027
+ var StyledText = index$5(Text$1)(function (_ref2) {
17688
19028
  var themeIntent = _ref2.themeIntent,
17689
19029
  theme = _ref2.theme;
17690
19030
  return {
@@ -17716,7 +19056,7 @@ var Tag = function Tag(_ref) {
17716
19056
  }, content));
17717
19057
  };
17718
19058
 
17719
- var ToastContainerWrapper = index$2(View)(function (_ref) {
19059
+ var ToastContainerWrapper = index$5(View)(function (_ref) {
17720
19060
  var theme = _ref.theme,
17721
19061
  position = _ref.position;
17722
19062
  return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
@@ -17726,7 +19066,7 @@ var ToastContainerWrapper = index$2(View)(function (_ref) {
17726
19066
  elevation: 9999
17727
19067
  });
17728
19068
  });
17729
- var Container = index$2(Animated.View)(function (_ref2) {
19069
+ var Container = index$5(Animated.View)(function (_ref2) {
17730
19070
  var theme = _ref2.theme,
17731
19071
  themeVariant = _ref2.themeVariant,
17732
19072
  themeIntent = _ref2.themeIntent;
@@ -17737,21 +19077,21 @@ var Container = index$2(Animated.View)(function (_ref2) {
17737
19077
  flexDirection: 'row'
17738
19078
  };
17739
19079
  });
17740
- var IconContainer = index$2(View)(function (_ref3) {
19080
+ var IconContainer = index$5(View)(function (_ref3) {
17741
19081
  var theme = _ref3.theme;
17742
19082
  return {
17743
19083
  alignItems: 'center',
17744
19084
  paddingLeft: theme.__hd__.toast.space.mediumPadding
17745
19085
  };
17746
19086
  });
17747
- var TextContainer = index$2(View)(function (_ref4) {
19087
+ var TextContainer = index$5(View)(function (_ref4) {
17748
19088
  var theme = _ref4.theme;
17749
19089
  return {
17750
19090
  paddingHorizontal: theme.__hd__.toast.space.mediumPadding,
17751
19091
  flex: 1
17752
19092
  };
17753
19093
  });
17754
- var ContentContainer = index$2(View)(function (_ref5) {
19094
+ var ContentContainer = index$5(View)(function (_ref5) {
17755
19095
  var theme = _ref5.theme,
17756
19096
  showDivider = _ref5.showDivider;
17757
19097
  return {
@@ -17762,7 +19102,7 @@ var ContentContainer = index$2(View)(function (_ref5) {
17762
19102
  flexDirection: 'row'
17763
19103
  };
17764
19104
  });
17765
- var CTAWrapper = index$2(TouchableOpacity)(function (_ref6) {
19105
+ var CTAWrapper = index$5(TouchableOpacity)(function (_ref6) {
17766
19106
  var theme = _ref6.theme;
17767
19107
  return {
17768
19108
  paddingHorizontal: theme.__hd__.alert.space.padding,
@@ -18003,4 +19343,102 @@ var Toast = {
18003
19343
  useToast: useToast
18004
19344
  };
18005
19345
 
18006
- export { Alert, Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet, CompoundButton as Button, Card, CheckBox as Checkbox, Collapse, ContentNavigator, Divider, Drawer, index$1 as FAB, Icon, Progress, CompoundRadio as Radio, SectionHeading, CompoundSelect as Select, Spinner, Switch, index as Tabs, Tag, TextInput, ThemeProvider, Toast, Typography, getTheme, scale, theme, useTheme };
19346
+ var ToolbarWrapper = index$5(View)(function (_ref) {
19347
+ var theme = _ref.theme;
19348
+ return {
19349
+ position: 'absolute',
19350
+ bottom: 0,
19351
+ left: 0,
19352
+ right: 0,
19353
+ zIndex: 9999,
19354
+ elevation: 9999,
19355
+ width: '100%',
19356
+ paddingVertical: theme.__hd__.toolbar.space.verticalPadding,
19357
+ paddingHorizontal: theme.__hd__.toolbar.space.horizontalPadding,
19358
+ borderTopWidth: theme.__hd__.toolbar.borderWidths["default"],
19359
+ borderColor: theme.__hd__.toolbar.colors.border,
19360
+ flexDirection: 'row',
19361
+ alignItems: 'center',
19362
+ backgroundColor: theme.__hd__.toolbar.colors.background
19363
+ };
19364
+ });
19365
+ var alignment = {
19366
+ left: 'flex-start',
19367
+ center: 'center',
19368
+ right: 'flex-end'
19369
+ };
19370
+ var ToolbarGroupWrapper = index$5(View)(function (_ref2) {
19371
+ var align = _ref2.align;
19372
+ return {
19373
+ flex: 1,
19374
+ flexDirection: 'row',
19375
+ justifyContent: alignment[align],
19376
+ alignItems: 'center'
19377
+ };
19378
+ });
19379
+ var ToolbarItemWrapper = index$5(TouchableOpacity)(function (_ref3) {
19380
+ var theme = _ref3.theme;
19381
+ return {
19382
+ paddingVertical: theme.__hd__.toolbar.space.verticalPadding,
19383
+ paddingHorizontal: theme.__hd__.toolbar.space.horizontalPadding,
19384
+ alignItems: 'center'
19385
+ };
19386
+ });
19387
+
19388
+ var ToolbarItem = function ToolbarItem(_ref) {
19389
+ var icon = _ref.icon,
19390
+ label = _ref.label,
19391
+ onPress = _ref.onPress,
19392
+ _ref$intent = _ref.intent,
19393
+ intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
19394
+ _ref$disabled = _ref.disabled,
19395
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled;
19396
+ return /*#__PURE__*/React.createElement(ToolbarItemWrapper, {
19397
+ onPress: onPress,
19398
+ disabled: disabled
19399
+ }, icon ? /*#__PURE__*/React.createElement(Icon, {
19400
+ icon: icon,
19401
+ size: label ? 'medium' : 'large',
19402
+ intent: disabled ? 'disabled-text' : intent,
19403
+ testID: "toolbar-item-icon-".concat(icon)
19404
+ }) : null, label ? /*#__PURE__*/React.createElement(Typography.Text, {
19405
+ fontSize: icon ? 'small' : 'large',
19406
+ fontWeight: "semi-bold",
19407
+ intent: disabled ? 'subdued' : intent
19408
+ }, label) : null);
19409
+ };
19410
+
19411
+ var ToolbarGroup = function ToolbarGroup(_ref) {
19412
+ var _ref$align = _ref.align,
19413
+ align = _ref$align === void 0 ? 'right' : _ref$align,
19414
+ _ref$items = _ref.items,
19415
+ items = _ref$items === void 0 ? [] : _ref$items;
19416
+ return /*#__PURE__*/React.createElement(ToolbarGroupWrapper, {
19417
+ align: align
19418
+ }, items.map(function (_ref2) {
19419
+ var label = _ref2.label,
19420
+ icon = _ref2.icon,
19421
+ onPress = _ref2.onPress,
19422
+ disabled = _ref2.disabled,
19423
+ intent = _ref2.intent;
19424
+ return /*#__PURE__*/React.createElement(ToolbarItem, {
19425
+ key: "".concat(label, "-").concat(icon),
19426
+ label: label,
19427
+ icon: icon,
19428
+ intent: intent,
19429
+ onPress: onPress,
19430
+ disabled: disabled
19431
+ });
19432
+ }));
19433
+ };
19434
+
19435
+ var Toolbar = function Toolbar(_ref) {
19436
+ var children = _ref.children;
19437
+ return /*#__PURE__*/React.createElement(ToolbarWrapper, null, children);
19438
+ };
19439
+
19440
+ var index = Object.assign(Toolbar, {
19441
+ Group: ToolbarGroup
19442
+ });
19443
+
19444
+ export { Alert, Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet, CompoundButton as Button, index$4 as Card, CheckBox as Checkbox, Collapse, ContentNavigator, Divider, Drawer, index$3 as FAB, Icon, List, Progress, CompoundRadio as Radio, SectionHeading, index$2 as Select, Spinner, Switch, index$1 as Tabs, Tag, TextInput, ThemeProvider, Toast, index as Toolbar, Typography, getTheme, scale, theme, useTheme };