@hero-design/rn 7.18.1 → 7.20.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 (399) hide show
  1. package/.eslintrc.json +6 -1
  2. package/.turbo/turbo-build.log +2 -2
  3. package/es/index.js +726 -336
  4. package/lib/index.js +727 -336
  5. package/package.json +4 -4
  6. package/src/components/Accordion/AccordionItem.tsx +5 -4
  7. package/src/components/Accordion/__tests__/index.spec.tsx +2 -1
  8. package/src/components/Accordion/index.tsx +3 -2
  9. package/src/components/Alert/StyledAlert.tsx +8 -7
  10. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +140 -19
  11. package/src/components/Alert/__tests__/index.spec.tsx +21 -0
  12. package/src/components/Alert/index.tsx +18 -9
  13. package/src/components/Avatar/StyledAvatar.tsx +2 -1
  14. package/src/components/Avatar/index.tsx +4 -3
  15. package/src/components/Badge/Status.tsx +4 -2
  16. package/src/components/Badge/index.tsx +2 -1
  17. package/src/components/BottomNavigation/__tests__/index.spec.tsx +4 -2
  18. package/src/components/BottomNavigation/index.tsx +6 -8
  19. package/src/components/BottomSheet/Footer.tsx +2 -1
  20. package/src/components/BottomSheet/Header.tsx +2 -1
  21. package/src/components/BottomSheet/StyledBottomSheet.tsx +2 -2
  22. package/src/components/BottomSheet/index.tsx +4 -8
  23. package/src/components/Box/StyledBox.tsx +54 -0
  24. package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +605 -0
  25. package/src/components/Box/__tests__/helpers.spec.ts +14 -0
  26. package/src/components/Box/__tests__/index.spec.tsx +155 -0
  27. package/src/components/Box/config.ts +201 -0
  28. package/src/components/Box/helpers.ts +10 -0
  29. package/src/components/Box/index.tsx +13 -0
  30. package/src/components/Box/types.ts +38 -0
  31. package/src/components/Button/Button.tsx +5 -6
  32. package/src/components/Button/IconButton.tsx +4 -7
  33. package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +5 -3
  34. package/src/components/Button/LoadingIndicator/index.tsx +2 -8
  35. package/src/components/Button/StyledButton.tsx +4 -5
  36. package/src/components/Button/UtilityButton/index.tsx +5 -4
  37. package/src/components/Button/index.tsx +3 -2
  38. package/src/components/Calendar/StyledCalendar.tsx +2 -1
  39. package/src/components/Calendar/__tests__/index.spec.tsx +13 -17
  40. package/src/components/Card/DataCard/StyledDataCard.tsx +8 -2
  41. package/src/components/Card/DataCard/__tests__/StyledDataCard.spec.tsx +1 -0
  42. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +16 -0
  43. package/src/components/Card/DataCard/index.tsx +4 -3
  44. package/src/components/Card/StyledCard.tsx +12 -19
  45. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +147 -0
  46. package/src/components/Card/__tests__/index.spec.tsx +18 -0
  47. package/src/components/Card/index.tsx +9 -3
  48. package/src/components/Checkbox/StyledCheckbox.tsx +44 -14
  49. package/src/components/Checkbox/__tests__/StyledCheckbox.spec.tsx +28 -3
  50. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +95 -9
  51. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +337 -23
  52. package/src/components/Checkbox/__tests__/index.spec.tsx +38 -7
  53. package/src/components/Checkbox/index.tsx +35 -18
  54. package/src/components/Collapse/index.tsx +4 -8
  55. package/src/components/ContentNavigator/index.tsx +1 -1
  56. package/src/components/DatePicker/DatePickerAndroid.tsx +1 -1
  57. package/src/components/DatePicker/DatePickerIOS.tsx +1 -1
  58. package/src/components/DatePicker/StyledDatePicker.tsx +2 -1
  59. package/src/components/DatePicker/__tests__/DatePickerIOS.spec.tsx +1 -2
  60. package/src/components/DatePicker/index.tsx +1 -1
  61. package/src/components/DatePicker/types.ts +1 -1
  62. package/src/components/Divider/index.tsx +1 -1
  63. package/src/components/Drawer/DragableDrawer/helpers.ts +3 -4
  64. package/src/components/Drawer/DragableDrawer/index.tsx +3 -2
  65. package/src/components/Drawer/StyledDrawer.tsx +3 -2
  66. package/src/components/Drawer/index.tsx +2 -1
  67. package/src/components/Empty/index.tsx +1 -2
  68. package/src/components/FAB/ActionGroup/ActionItem.tsx +3 -2
  69. package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +4 -3
  70. package/src/components/FAB/ActionGroup/StyledActionItem.tsx +4 -2
  71. package/src/components/FAB/ActionGroup/index.tsx +11 -11
  72. package/src/components/FAB/AnimatedFABIcon.tsx +1 -1
  73. package/src/components/FAB/FAB.tsx +2 -2
  74. package/src/components/FAB/StyledFAB.tsx +4 -7
  75. package/src/components/Icon/AnimatedIcon.tsx +2 -1
  76. package/src/components/Icon/index.tsx +1 -1
  77. package/src/components/List/BasicListItem.tsx +3 -3
  78. package/src/components/List/ListItem.tsx +6 -3
  79. package/src/components/List/StyledListItem.tsx +2 -1
  80. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +13 -27
  81. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +2 -0
  82. package/src/components/PinInput/PinCell.tsx +1 -1
  83. package/src/components/PinInput/index.tsx +3 -7
  84. package/src/components/Progress/ProgressBar.tsx +2 -1
  85. package/src/components/Progress/ProgressCircle.tsx +3 -9
  86. package/src/components/Progress/StyledProgressBar.tsx +3 -3
  87. package/src/components/Progress/StyledProgressCircle.tsx +3 -3
  88. package/src/components/Radio/Radio.tsx +20 -14
  89. package/src/components/Radio/RadioGroup.tsx +5 -3
  90. package/src/components/Radio/StyledRadio.tsx +12 -29
  91. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +84 -50
  92. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +124 -73
  93. package/src/components/RichTextEditor/EditorToolbar.tsx +4 -8
  94. package/src/components/RichTextEditor/RichTextEditor.tsx +5 -14
  95. package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +2 -6
  96. package/src/components/RichTextEditor/__tests__/MentionList.spec.tsx +2 -6
  97. package/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx +8 -15
  98. package/src/components/RichTextEditor/index.tsx +6 -6
  99. package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +1 -1
  100. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  101. package/src/components/SectionHeading/index.tsx +5 -4
  102. package/src/components/Select/MultiSelect/Option.tsx +2 -1
  103. package/src/components/Select/MultiSelect/OptionList.tsx +3 -3
  104. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +22 -20
  105. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +609 -589
  106. package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +1 -1
  107. package/src/components/Select/MultiSelect/index.tsx +20 -16
  108. package/src/components/Select/SingleSelect/Option.tsx +2 -1
  109. package/src/components/Select/SingleSelect/OptionList.tsx +3 -3
  110. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +22 -20
  111. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +606 -586
  112. package/src/components/Select/SingleSelect/__tests__/index.spec.tsx +1 -1
  113. package/src/components/Select/SingleSelect/index.tsx +20 -16
  114. package/src/components/Select/StyledOptionList.tsx +11 -9
  115. package/src/components/Select/helpers.tsx +1 -1
  116. package/src/components/Select/index.tsx +6 -4
  117. package/src/components/Select/types.ts +3 -3
  118. package/src/components/Spinner/AnimatedSpinner.tsx +7 -7
  119. package/src/components/Spinner/StyledSpinner.tsx +26 -20
  120. package/src/components/Spinner/__tests__/AnimatedSpinner.spec.tsx +1 -1
  121. package/src/components/Spinner/__tests__/StyledSpinner.spec.tsx +32 -16
  122. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +14 -12
  123. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +273 -31
  124. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +14 -12
  125. package/src/components/Spinner/index.tsx +13 -5
  126. package/src/components/Switch/StyledSwitch.tsx +10 -26
  127. package/src/components/Switch/__tests__/StyledSwitch.spec.tsx +25 -0
  128. package/src/components/Switch/__tests__/__snapshots__/{StyledHeading.spec.tsx.snap → StyledSwitch.spec.tsx.snap} +45 -18
  129. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +26 -52
  130. package/src/components/Switch/index.tsx +23 -20
  131. package/src/components/Tabs/ScrollableTabs.tsx +10 -5
  132. package/src/components/Tabs/StyledScrollableTabs.tsx +6 -5
  133. package/src/components/Tabs/StyledTabs.tsx +6 -0
  134. package/src/components/Tabs/TabWithBadge.tsx +68 -0
  135. package/src/components/Tabs/__tests__/ScrollableTabs.spec.tsx +17 -2
  136. package/src/components/Tabs/__tests__/TabWithBadge.spec.tsx +48 -0
  137. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +205 -43
  138. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +165 -0
  139. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +135 -34
  140. package/src/components/Tabs/__tests__/index.spec.tsx +16 -2
  141. package/src/components/Tabs/index.tsx +17 -16
  142. package/src/components/Tag/StyledTag.tsx +1 -11
  143. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +4 -4
  144. package/src/components/Tag/index.tsx +3 -3
  145. package/src/components/TextInput/__tests__/index.spec.tsx +10 -14
  146. package/src/components/TextInput/index.tsx +5 -5
  147. package/src/components/TimePicker/StyledTimePicker.tsx +2 -1
  148. package/src/components/TimePicker/TimePickerAndroid.tsx +1 -1
  149. package/src/components/TimePicker/TimePickerIOS.tsx +1 -1
  150. package/src/components/TimePicker/__tests__/TimePickerIOS.spec.tsx +1 -2
  151. package/src/components/TimePicker/index.tsx +1 -1
  152. package/src/components/TimePicker/types.ts +1 -1
  153. package/src/components/Toast/StyledToast.tsx +16 -15
  154. package/src/components/Toast/Toast.tsx +36 -10
  155. package/src/components/Toast/ToastContainer.tsx +2 -2
  156. package/src/components/Toast/ToastContext.ts +1 -1
  157. package/src/components/Toast/ToastProvider.tsx +20 -19
  158. package/src/components/Toast/__tests__/Toast.spec.tsx +17 -0
  159. package/src/components/Toast/__tests__/ToastContainer.spec.tsx +1 -1
  160. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +299 -19
  161. package/src/components/Toast/types.ts +18 -4
  162. package/src/components/Toolbar/StyledToolbar.tsx +2 -1
  163. package/src/components/Toolbar/ToolbarGroup.tsx +2 -1
  164. package/src/components/Toolbar/ToolbarItem.tsx +2 -1
  165. package/src/components/Toolbar/index.tsx +2 -1
  166. package/src/components/Typography/Text/StyledText.tsx +7 -1
  167. package/src/components/Typography/Text/__tests__/StyledText.spec.tsx +1 -0
  168. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +22 -0
  169. package/src/components/Typography/Text/index.tsx +10 -3
  170. package/src/index.ts +2 -0
  171. package/src/testHelpers/renderWithTheme.tsx +2 -1
  172. package/src/theme/ThemeProvider.ts +1 -1
  173. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +100 -49
  174. package/src/theme/components/.eslintrc.json +10 -0
  175. package/src/theme/components/accordion.ts +1 -1
  176. package/src/theme/components/alert.ts +6 -2
  177. package/src/theme/components/avatar.ts +3 -1
  178. package/src/theme/components/badge.ts +1 -1
  179. package/src/theme/components/bottomNavigation.ts +1 -1
  180. package/src/theme/components/bottomSheet.ts +1 -1
  181. package/src/theme/components/button.ts +1 -1
  182. package/src/theme/components/calendar.ts +1 -1
  183. package/src/theme/components/card.ts +7 -8
  184. package/src/theme/components/checkbox.ts +12 -8
  185. package/src/theme/components/contentNavigator.ts +1 -1
  186. package/src/theme/components/divider.ts +1 -1
  187. package/src/theme/components/drawer.ts +1 -1
  188. package/src/theme/components/empty.ts +1 -1
  189. package/src/theme/components/fab.ts +1 -1
  190. package/src/theme/components/icon.ts +1 -1
  191. package/src/theme/components/list.ts +5 -4
  192. package/src/theme/components/pinInput.ts +1 -1
  193. package/src/theme/components/progress.ts +1 -1
  194. package/src/theme/components/radio.ts +3 -11
  195. package/src/theme/components/richTextEditor.ts +1 -1
  196. package/src/theme/components/sectionHeading.ts +2 -2
  197. package/src/theme/components/select.ts +1 -1
  198. package/src/theme/components/spinner.ts +20 -8
  199. package/src/theme/components/switch.ts +7 -8
  200. package/src/theme/components/tabs.ts +4 -3
  201. package/src/theme/components/tag.ts +14 -14
  202. package/src/theme/components/textInput.ts +1 -1
  203. package/src/theme/components/toast.ts +18 -4
  204. package/src/theme/components/toolbar.ts +1 -1
  205. package/src/theme/components/typography.ts +3 -1
  206. package/src/theme/getTheme.ts +4 -11
  207. package/src/theme/global/borders.ts +2 -1
  208. package/src/theme/global/colors/swag.ts +25 -3
  209. package/src/theme/global/colors/types.ts +23 -0
  210. package/src/theme/global/colors/work.ts +6 -2
  211. package/src/theme/global/index.ts +6 -11
  212. package/src/theme/global/scale.ts +2 -1
  213. package/src/theme/global/space.ts +2 -1
  214. package/src/theme/global/typography.ts +2 -8
  215. package/src/theme/index.ts +5 -2
  216. package/src/types.ts +9 -10
  217. package/testUtils/setup.tsx +2 -0
  218. package/tsconfig.json +5 -21
  219. package/types/components/Accordion/AccordionItem.d.ts +3 -3
  220. package/types/components/Accordion/StyledAccordion.d.ts +14 -14
  221. package/types/components/Accordion/index.d.ts +3 -2
  222. package/types/components/Alert/StyledAlert.d.ts +18 -17
  223. package/types/components/Alert/index.d.ts +4 -4
  224. package/types/components/Avatar/StyledAvatar.d.ts +16 -16
  225. package/types/components/Avatar/index.d.ts +3 -3
  226. package/types/components/Badge/Status.d.ts +2 -2
  227. package/types/components/Badge/StyledBadge.d.ts +7 -7
  228. package/types/components/Badge/index.d.ts +2 -1
  229. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +21 -21
  230. package/types/components/BottomNavigation/index.d.ts +3 -3
  231. package/types/components/BottomSheet/Footer.d.ts +1 -1
  232. package/types/components/BottomSheet/Header.d.ts +2 -2
  233. package/types/components/BottomSheet/StyledBottomSheet.d.ts +21 -20
  234. package/types/components/BottomSheet/index.d.ts +2 -2
  235. package/types/components/Box/StyledBox.d.ts +15 -0
  236. package/types/components/{Radio/__tests__/StyledRadio.spec.d.ts → Box/__tests__/helpers.spec.d.ts} +0 -0
  237. package/types/components/{Switch/__tests__/StyledHeading.spec.d.ts → Box/__tests__/index.spec.d.ts} +0 -0
  238. package/types/components/Box/config.d.ts +170 -0
  239. package/types/components/Box/helpers.d.ts +1 -0
  240. package/types/components/Box/index.d.ts +5 -0
  241. package/types/components/Box/types.d.ts +31 -0
  242. package/types/components/Button/Button.d.ts +4 -4
  243. package/types/components/Button/IconButton.d.ts +2 -2
  244. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +10 -9
  245. package/types/components/Button/LoadingIndicator/index.d.ts +1 -1
  246. package/types/components/Button/StyledButton.d.ts +19 -18
  247. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +8 -8
  248. package/types/components/Button/UtilityButton/index.d.ts +3 -3
  249. package/types/components/Button/index.d.ts +2 -2
  250. package/types/components/Calendar/StyledCalendar.d.ts +27 -26
  251. package/types/components/Calendar/helpers.d.ts +2 -2
  252. package/types/components/Card/DataCard/StyledDataCard.d.ts +7 -7
  253. package/types/components/Card/DataCard/index.d.ts +3 -3
  254. package/types/components/Card/StyledCard.d.ts +7 -6
  255. package/types/components/Card/index.d.ts +7 -3
  256. package/types/components/Checkbox/StyledCheckbox.d.ts +24 -6
  257. package/types/components/Checkbox/index.d.ts +11 -3
  258. package/types/components/Collapse/StyledCollapse.d.ts +8 -8
  259. package/types/components/Collapse/index.d.ts +2 -2
  260. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +5 -5
  261. package/types/components/ContentNavigator/index.d.ts +1 -1
  262. package/types/components/DatePicker/DatePickerAndroid.d.ts +1 -1
  263. package/types/components/DatePicker/DatePickerIOS.d.ts +1 -1
  264. package/types/components/DatePicker/StyledDatePicker.d.ts +5 -4
  265. package/types/components/DatePicker/index.d.ts +1 -1
  266. package/types/components/DatePicker/types.d.ts +1 -1
  267. package/types/components/Divider/StyledDivider.d.ts +5 -5
  268. package/types/components/Divider/index.d.ts +1 -1
  269. package/types/components/Drawer/DragableDrawer/index.d.ts +1 -1
  270. package/types/components/Drawer/StyledDrawer.d.ts +21 -20
  271. package/types/components/Drawer/index.d.ts +1 -1
  272. package/types/components/Empty/StyledEmpty.d.ts +12 -12
  273. package/types/components/Empty/index.d.ts +1 -1
  274. package/types/components/FAB/ActionGroup/ActionItem.d.ts +2 -2
  275. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +14 -13
  276. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +10 -9
  277. package/types/components/FAB/ActionGroup/index.d.ts +3 -3
  278. package/types/components/FAB/AnimatedFABIcon.d.ts +1 -1
  279. package/types/components/FAB/FAB.d.ts +2 -2
  280. package/types/components/FAB/StyledFAB.d.ts +11 -10
  281. package/types/components/Icon/AnimatedIcon.d.ts +1 -1
  282. package/types/components/Icon/HeroIcon/index.d.ts +3 -3
  283. package/types/components/Icon/index.d.ts +1 -1
  284. package/types/components/List/BasicListItem.d.ts +2 -2
  285. package/types/components/List/ListItem.d.ts +4 -3
  286. package/types/components/List/StyledBasicListItem.d.ts +14 -14
  287. package/types/components/List/StyledListItem.d.ts +23 -23
  288. package/types/components/PinInput/PinCell.d.ts +1 -1
  289. package/types/components/PinInput/StyledPinInput.d.ts +30 -30
  290. package/types/components/PinInput/index.d.ts +2 -2
  291. package/types/components/Progress/ProgressBar.d.ts +1 -1
  292. package/types/components/Progress/ProgressCircle.d.ts +1 -1
  293. package/types/components/Progress/StyledProgressBar.d.ts +8 -7
  294. package/types/components/Progress/StyledProgressCircle.d.ts +21 -20
  295. package/types/components/Radio/Radio.d.ts +2 -2
  296. package/types/components/Radio/RadioGroup.d.ts +3 -3
  297. package/types/components/Radio/StyledRadio.d.ts +11 -21
  298. package/types/components/RichTextEditor/EditorToolbar.d.ts +1 -1
  299. package/types/components/RichTextEditor/MentionList.d.ts +1 -1
  300. package/types/components/RichTextEditor/RichTextEditor.d.ts +3 -2
  301. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +6 -6
  302. package/types/components/RichTextEditor/StyledToolbar.d.ts +9 -9
  303. package/types/components/RichTextEditor/index.d.ts +5 -4
  304. package/types/components/SectionHeading/StyledHeading.d.ts +9 -9
  305. package/types/components/SectionHeading/index.d.ts +3 -3
  306. package/types/components/Select/MultiSelect/Option.d.ts +2 -2
  307. package/types/components/Select/MultiSelect/OptionList.d.ts +2 -2
  308. package/types/components/Select/MultiSelect/index.d.ts +1 -1
  309. package/types/components/Select/SingleSelect/Option.d.ts +2 -2
  310. package/types/components/Select/SingleSelect/OptionList.d.ts +2 -2
  311. package/types/components/Select/SingleSelect/index.d.ts +1 -1
  312. package/types/components/Select/StyledOptionList.d.ts +4 -4
  313. package/types/components/Select/StyledSelect.d.ts +11 -11
  314. package/types/components/Select/helpers.d.ts +2 -2
  315. package/types/components/Select/index.d.ts +4 -3
  316. package/types/components/Select/types.d.ts +3 -3
  317. package/types/components/Spinner/AnimatedSpinner.d.ts +3 -1
  318. package/types/components/Spinner/StyledSpinner.d.ts +16 -13
  319. package/types/components/Spinner/index.d.ts +7 -3
  320. package/types/components/Switch/StyledSwitch.d.ts +8 -23
  321. package/types/components/Switch/__tests__/StyledSwitch.spec.d.ts +1 -0
  322. package/types/components/Switch/index.d.ts +3 -2
  323. package/types/components/Tabs/ScrollableTabs.d.ts +1 -1
  324. package/types/components/Tabs/StyledScrollableTabs.d.ts +24 -22
  325. package/types/components/Tabs/StyledTabs.d.ts +26 -20
  326. package/types/components/Tabs/TabWithBadge.d.ts +17 -0
  327. package/types/components/Tabs/__tests__/TabWithBadge.spec.d.ts +1 -0
  328. package/types/components/Tabs/index.d.ts +4 -2
  329. package/types/components/Tag/StyledTag.d.ts +6 -6
  330. package/types/components/Tag/index.d.ts +2 -2
  331. package/types/components/TextInput/StyledTextInput.d.ts +44 -44
  332. package/types/components/TextInput/index.d.ts +8 -8
  333. package/types/components/TimePicker/StyledTimePicker.d.ts +5 -4
  334. package/types/components/TimePicker/TimePickerAndroid.d.ts +1 -1
  335. package/types/components/TimePicker/TimePickerIOS.d.ts +1 -1
  336. package/types/components/TimePicker/index.d.ts +1 -1
  337. package/types/components/TimePicker/types.d.ts +1 -1
  338. package/types/components/Toast/StyledToast.d.ts +21 -19
  339. package/types/components/Toast/Toast.d.ts +1 -1
  340. package/types/components/Toast/ToastContainer.d.ts +2 -2
  341. package/types/components/Toast/ToastContext.d.ts +1 -1
  342. package/types/components/Toast/ToastProvider.d.ts +2 -2
  343. package/types/components/Toast/types.d.ts +5 -4
  344. package/types/components/Toolbar/StyledToolbar.d.ts +11 -10
  345. package/types/components/Toolbar/ToolbarGroup.d.ts +1 -1
  346. package/types/components/Toolbar/ToolbarItem.d.ts +1 -1
  347. package/types/components/Toolbar/index.d.ts +1 -1
  348. package/types/components/Typography/Text/StyledText.d.ts +4 -4
  349. package/types/components/Typography/Text/index.d.ts +3 -3
  350. package/types/index.d.ts +2 -1
  351. package/types/testHelpers/renderWithTheme.d.ts +2 -2
  352. package/types/theme/ThemeProvider.d.ts +1 -1
  353. package/types/theme/ThemeSwitcher.d.ts +1 -1
  354. package/types/theme/components/accordion.d.ts +1 -1
  355. package/types/theme/components/alert.d.ts +6 -2
  356. package/types/theme/components/avatar.d.ts +3 -1
  357. package/types/theme/components/badge.d.ts +1 -1
  358. package/types/theme/components/bottomNavigation.d.ts +1 -1
  359. package/types/theme/components/bottomSheet.d.ts +1 -1
  360. package/types/theme/components/button.d.ts +1 -1
  361. package/types/theme/components/calendar.d.ts +1 -1
  362. package/types/theme/components/card.d.ts +7 -8
  363. package/types/theme/components/checkbox.d.ts +10 -7
  364. package/types/theme/components/contentNavigator.d.ts +1 -1
  365. package/types/theme/components/divider.d.ts +1 -1
  366. package/types/theme/components/drawer.d.ts +1 -1
  367. package/types/theme/components/empty.d.ts +1 -1
  368. package/types/theme/components/fab.d.ts +1 -1
  369. package/types/theme/components/icon.d.ts +1 -1
  370. package/types/theme/components/list.d.ts +8 -7
  371. package/types/theme/components/pinInput.d.ts +1 -1
  372. package/types/theme/components/progress.d.ts +1 -1
  373. package/types/theme/components/radio.d.ts +1 -8
  374. package/types/theme/components/richTextEditor.d.ts +1 -1
  375. package/types/theme/components/sectionHeading.d.ts +1 -1
  376. package/types/theme/components/select.d.ts +1 -1
  377. package/types/theme/components/spinner.d.ts +18 -6
  378. package/types/theme/components/switch.d.ts +7 -6
  379. package/types/theme/components/tabs.d.ts +2 -1
  380. package/types/theme/components/tag.d.ts +3 -3
  381. package/types/theme/components/textInput.d.ts +1 -1
  382. package/types/theme/components/toast.d.ts +19 -3
  383. package/types/theme/components/toolbar.d.ts +1 -1
  384. package/types/theme/components/typography.d.ts +3 -1
  385. package/types/theme/getTheme.d.ts +2 -2
  386. package/types/theme/global/borders.d.ts +2 -1
  387. package/types/theme/global/colors/swag.d.ts +1 -1
  388. package/types/theme/global/colors/types.d.ts +17 -0
  389. package/types/theme/global/colors/work.d.ts +1 -1
  390. package/types/theme/global/index.d.ts +22 -3
  391. package/types/theme/global/scale.d.ts +2 -1
  392. package/types/theme/global/space.d.ts +2 -1
  393. package/types/theme/global/typography.d.ts +2 -1
  394. package/types/theme/index.d.ts +4 -2
  395. package/types/types.d.ts +9 -8
  396. package/types/utils/hooks.d.ts +1 -1
  397. package/src/components/Radio/__tests__/StyledRadio.spec.tsx +0 -43
  398. package/src/components/Radio/__tests__/__snapshots__/StyledRadio.spec.tsx.snap +0 -124
  399. package/src/components/Switch/__tests__/StyledHeading.spec.tsx +0 -42
package/lib/index.js CHANGED
@@ -1018,11 +1018,11 @@ var STEPS = [5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85,
1018
1018
 
1019
1019
  var createColorScales = function createColorScales(base) {
1020
1020
  var colorValues = new Values$1(base);
1021
- return _objectSpread2(_objectSpread2({}, STEPS.reduce(function (acc, step) {
1022
- var _objectSpread2$1;
1021
+ return Object.assign(Object.assign({}, STEPS.reduce(function (acc, step) {
1022
+ var _Object$assign;
1023
1023
 
1024
- return _objectSpread2(_objectSpread2({}, acc), {}, (_objectSpread2$1 = {}, _defineProperty(_objectSpread2$1, "lighten".concat(step), colorValues.tint(step).hexString()), _defineProperty(_objectSpread2$1, "darken".concat(step), colorValues.shade(step).hexString()), _objectSpread2$1));
1025
- }, {})), {}, {
1024
+ return Object.assign(Object.assign({}, acc), (_Object$assign = {}, _defineProperty(_Object$assign, "lighten".concat(step), colorValues.tint(step).hexString()), _defineProperty(_Object$assign, "darken".concat(step), colorValues.shade(step).hexString()), _Object$assign));
1025
+ }, {})), {
1026
1026
  base: colorValues.hexString()
1027
1027
  });
1028
1028
  };
@@ -1064,7 +1064,7 @@ var BASE_COLORS = {
1064
1064
  violet1: '#8505a2',
1065
1065
  mauve: '#c38cee',
1066
1066
  yellow: '#fadb14',
1067
- seashell: '#ebf4ff',
1067
+ seashell: '#fff6eb',
1068
1068
  gold: '#ffd500'
1069
1069
  };
1070
1070
  var colorScales = Object.entries(BASE_COLORS).reduce(function (acc, _ref16) {
@@ -1072,7 +1072,7 @@ var colorScales = Object.entries(BASE_COLORS).reduce(function (acc, _ref16) {
1072
1072
  key = _ref17[0],
1073
1073
  value = _ref17[1];
1074
1074
 
1075
- return _objectSpread2(_objectSpread2({}, acc), {}, _defineProperty({}, key, createColorScales(value)));
1075
+ return Object.assign(Object.assign({}, acc), _defineProperty({}, key, createColorScales(value)));
1076
1076
  }, {});
1077
1077
  var blue$1 = colorScales.blue,
1078
1078
  ultramarineBlue$1 = colorScales.ultramarineBlue,
@@ -1228,9 +1228,8 @@ var emerald = colorScales.emerald,
1228
1228
  peach = colorScales.peach,
1229
1229
  vermilion = colorScales.vermilion,
1230
1230
  pastelRed = colorScales.pastelRed,
1231
- mauve = colorScales.mauve;
1232
-
1233
- _objectSpread2(_objectSpread2({}, palette$5), {}, {
1231
+ mauve$1 = colorScales.mauve;
1232
+ Object.assign(Object.assign({}, palette$5), {
1234
1233
  nightBlue: nightBlue.base,
1235
1234
  blueLight60: blue1.lighten60,
1236
1235
  blue: blue1.base,
@@ -1247,21 +1246,18 @@ _objectSpread2(_objectSpread2({}, palette$5), {}, {
1247
1246
  peachLight75: peach.lighten75,
1248
1247
  red: vermilion.base,
1249
1248
  pastelRed: pastelRed.base,
1250
- mauve: mauve.base
1249
+ mauve: mauve$1.base
1251
1250
  });
1252
-
1253
1251
  var apple = colorScales.apple,
1254
1252
  currant = colorScales.currant;
1255
-
1256
- _objectSpread2(_objectSpread2({}, palette$5), {}, {
1253
+ Object.assign(Object.assign({}, palette$5), {
1257
1254
  apple: apple.base,
1258
1255
  currant: currant.base
1259
1256
  });
1260
-
1261
1257
  var scarletGum = colorScales.scarletGum,
1262
- violet1 = colorScales.violet1;
1263
-
1264
- var palette$2 = _objectSpread2(_objectSpread2({}, palette$5), {}, {
1258
+ violet1 = colorScales.violet1,
1259
+ mauve = colorScales.mauve;
1260
+ var palette$2 = Object.assign(Object.assign({}, palette$5), {
1265
1261
  scarletGumLight30: scarletGum.lighten30,
1266
1262
  scarletGumLight50: scarletGum.lighten50,
1267
1263
  scarletGumLight80: scarletGum.lighten80,
@@ -1271,14 +1267,13 @@ var palette$2 = _objectSpread2(_objectSpread2({}, palette$5), {}, {
1271
1267
  violetLight50: violet1.lighten50,
1272
1268
  violetLight80: violet1.lighten80,
1273
1269
  violetLight90: violet1.lighten90,
1274
- violet: violet1.base
1270
+ violet: violet1.base,
1271
+ mauve: mauve.base
1275
1272
  });
1276
-
1277
1273
  var jordyBlue = colorScales.jordyBlue,
1278
1274
  cornflowerBlue = colorScales.cornflowerBlue,
1279
1275
  paua = colorScales.paua;
1280
-
1281
- _objectSpread2(_objectSpread2({}, palette$5), {}, {
1276
+ Object.assign(Object.assign({}, palette$5), {
1282
1277
  jordyBlueLight30: jordyBlue.lighten30,
1283
1278
  jordyBlueLight50: jordyBlue.lighten50,
1284
1279
  jordyBlueLight70: jordyBlue.lighten70,
@@ -1287,10 +1282,8 @@ _objectSpread2(_objectSpread2({}, palette$5), {}, {
1287
1282
  cornflowerBlue: cornflowerBlue.base,
1288
1283
  paua: paua.base
1289
1284
  });
1290
-
1291
1285
  var gold$1 = colorScales.gold;
1292
-
1293
- var palette = _objectSpread2(_objectSpread2({}, palette$5), {}, {
1286
+ var palette = Object.assign(Object.assign({}, palette$5), {
1294
1287
  goldLight20: gold$1.lighten20,
1295
1288
  goldLight50: gold$1.lighten50,
1296
1289
  goldLight70: gold$1.lighten70,
@@ -1341,15 +1334,35 @@ var swagSystemPalette = {
1341
1334
  archivedBackground: palette$5.greyLight90,
1342
1335
  black: palette$5.black,
1343
1336
  inactiveBackground: palette$5.maasstrichtBlueLight50,
1344
- shadow: palette$5.greyLight45 // waiting for new color
1345
-
1337
+ shadow: palette$5.greyLight45,
1338
+ __alpha__globalPrimary: palette$5.maasstrichtBlue,
1339
+ __alpha__globalSecondary1: palette$5.maasstrichtBlueLight30,
1340
+ __alpha__globalNeutral3: palette$5.greyLight90,
1341
+ __alpha__globalLabel1: palette$5.vermilion,
1342
+ __alpha__globalLabel2: palette$5.deepSaffron,
1343
+ __alpha__globalLabel3: palette$5.pineGreen,
1344
+ __alpha__globalLabel4: palette$5.ultramarineBlue,
1345
+ __alpha__globalLabel5: palette$5.sonicSilver,
1346
+ __alpha__globalLabel6: palette$5.linen,
1347
+ __alpha__globalLabel7: palette$5.seashell,
1348
+ __alpha__globalLabel8: palette$5.honeydew,
1349
+ __alpha__globalLabel9: palette$5.aliceBlue,
1350
+ __alpha__primary2: palette$2.mauve,
1351
+ __alpha__secondary1: palette$2.scarletGumLight30,
1352
+ __alpha__secondary2: palette$2.scarletGumLight50,
1353
+ __alpha__secondary3: palette$2.scarletGumLight80,
1354
+ __alpha__secondary4: palette$2.scarletGumLight90
1346
1355
  };
1347
1356
 
1348
1357
  var workSystemPalette = _objectSpread2(_objectSpread2({}, swagSystemPalette), {}, {
1349
1358
  primary: palette.gold,
1350
1359
  primaryLight: palette.goldLight50,
1351
1360
  primaryDark: palette.goldLight20,
1352
- primaryBackground: palette.goldLight90
1361
+ primaryBackground: palette.goldLight90,
1362
+ __alpha__secondary1: palette.goldLight20,
1363
+ __alpha__secondary2: palette.goldLight50,
1364
+ __alpha__secondary3: palette.goldLight70,
1365
+ __alpha__secondary4: palette.goldLight90
1353
1366
  });
1354
1367
 
1355
1368
  var BASE_WIDTH = 390; // Based on iPhone 13's viewport size
@@ -1501,13 +1514,17 @@ var getAlertTheme = function getAlertTheme(theme) {
1501
1514
  warning: theme.colors.warning,
1502
1515
  error: theme.colors.dangerLight,
1503
1516
  info: theme.colors.infoLight,
1517
+ notification: theme.colors.platformBackground,
1504
1518
  divider: theme.colors.outline
1505
1519
  };
1506
1520
  var sizes = {
1507
1521
  height: scale(48)
1508
1522
  };
1509
1523
  var space = {
1510
- padding: theme.space.medium
1524
+ contentPaddingHorizontal: theme.space.smallMedium,
1525
+ textPaddingHorizontal: theme.space.smallMedium,
1526
+ iconLeftPadding: theme.space.smallMedium,
1527
+ ctaPadding: theme.space.smallMedium
1511
1528
  };
1512
1529
  var radii = {
1513
1530
  "default": theme.radii.xlarge
@@ -1539,7 +1556,8 @@ var getAvatarTheme = function getAvatarTheme(theme) {
1539
1556
  xlarge: theme.space.xxxxlarge,
1540
1557
  xxlarge: theme.space.xlarge * 2,
1541
1558
  xxxlarge: theme.space.xxlarge * 2,
1542
- xxxxlarge: theme.space.xxxlarge * 2
1559
+ xxxxlarge: theme.space.xxxlarge * 2,
1560
+ xxxxxlarge: theme.space.small * 17
1543
1561
  };
1544
1562
  var fontSizes = {
1545
1563
  small: theme.fontSizes.large,
@@ -1548,7 +1566,8 @@ var getAvatarTheme = function getAvatarTheme(theme) {
1548
1566
  xlarge: theme.fontSizes.xxxlarge,
1549
1567
  xxlarge: theme.space.medium * 2,
1550
1568
  xxxlarge: theme.space.large * 1.5,
1551
- xxxxlarge: theme.space.xlarge * 1.5
1569
+ xxxxlarge: theme.space.xlarge * 1.5,
1570
+ xxxxxlarge: theme.space.xxlarge * 1.5
1552
1571
  };
1553
1572
  var radii = {
1554
1573
  rounded: theme.radii.rounded
@@ -1766,13 +1785,12 @@ var getCalendarTheme = function getCalendarTheme(theme) {
1766
1785
  var getCardTheme = function getCardTheme(theme) {
1767
1786
  var colors = {
1768
1787
  dataCardIndicator: theme.colors.primary,
1769
- indicator: {
1770
- archived: theme.colors.archivedLight,
1771
- info: theme.colors.infoLight,
1772
- success: theme.colors.success,
1773
- warning: theme.colors.warning,
1774
- danger: theme.colors.dangerMediumLight
1775
- }
1788
+ primary: theme.colors.__alpha__primary2,
1789
+ info: theme.colors.infoLight,
1790
+ success: theme.colors.success,
1791
+ warning: theme.colors.warning,
1792
+ danger: theme.colors.dangerMediumLight,
1793
+ archived: theme.colors.archivedLight
1776
1794
  };
1777
1795
  var sizes = {
1778
1796
  indicatorWidth: theme.space.medium
@@ -1789,23 +1807,26 @@ var getCardTheme = function getCardTheme(theme) {
1789
1807
 
1790
1808
  var getCheckboxTheme = function getCheckboxTheme(theme) {
1791
1809
  var colors = {
1792
- borderColor: theme.colors.primary,
1793
- text: theme.colors.invertedText,
1794
- disabled: theme.colors.inactiveBackground
1810
+ "default": theme.colors.globalPrimary,
1811
+ disabledBorder: theme.colors.globalPrimaryLight
1795
1812
  };
1796
1813
  var space = {
1797
1814
  // to remove the empty space above the check icon
1798
1815
  // and also to center the check mark
1799
- iconTop: -theme.space.xsmall
1816
+ iconTop: -scale(3),
1817
+ wrapperPadding: theme.space.medium,
1818
+ iconDescriptionPadding: theme.space.smallMedium
1800
1819
  };
1801
1820
  var sizes = {
1802
- base: theme.space.large
1821
+ icon: scale(20)
1803
1822
  };
1804
1823
  var radii = {
1805
- base: theme.radii.base
1824
+ wrapper: theme.radii.medium,
1825
+ icon: theme.radii.base
1806
1826
  };
1807
1827
  var borderWidths = {
1808
- "default": theme.borderWidths.medium
1828
+ wrapper: theme.borderWidths.base,
1829
+ icon: theme.borderWidths.medium
1809
1830
  };
1810
1831
  return {
1811
1832
  colors: colors,
@@ -2035,11 +2056,12 @@ var getListTheme = function getListTheme(theme) {
2035
2056
  cardShadow: theme.radii.base,
2036
2057
  leadingStatus: theme.radii.rounded
2037
2058
  };
2038
- var offsets = {
2039
- cardShadow: {
2059
+ var shadows = {
2060
+ cardOffset: {
2040
2061
  width: 0,
2041
2062
  height: 2
2042
- }
2063
+ },
2064
+ cardElevation: 10
2043
2065
  };
2044
2066
  var widths = {
2045
2067
  leadingStatus: 8
@@ -2053,9 +2075,9 @@ var getListTheme = function getListTheme(theme) {
2053
2075
  colors: colors,
2054
2076
  space: space,
2055
2077
  radii: radii,
2056
- offsets: offsets,
2057
2078
  widths: widths,
2058
- opacity: opacity
2079
+ opacity: opacity,
2080
+ shadows: shadows
2059
2081
  };
2060
2082
  };
2061
2083
 
@@ -2128,13 +2150,9 @@ var getProgressTheme = function getProgressTheme(theme) {
2128
2150
 
2129
2151
  var getRadioTheme = function getRadioTheme(theme) {
2130
2152
  var colors = {
2131
- circle: theme.colors.black,
2132
- checkedCircle: theme.colors.primary,
2133
- wrapper: theme.colors.platformBackground,
2134
- checkedWrapper: theme.colors.primaryBackground
2153
+ circle: theme.colors.globalPrimary
2135
2154
  };
2136
2155
  var space = {
2137
- wrapperPadding: theme.space.medium,
2138
2156
  circleLeftMargin: theme.space.small,
2139
2157
  groupTopMargin: theme.space.xsmall
2140
2158
  };
@@ -2145,15 +2163,11 @@ var getRadioTheme = function getRadioTheme(theme) {
2145
2163
  var borderWidths = {
2146
2164
  circle: theme.borderWidths.medium
2147
2165
  };
2148
- var radii = {
2149
- wrapper: theme.radii.base
2150
- };
2151
2166
  return {
2152
2167
  sizes: sizes,
2153
2168
  borderWidths: borderWidths,
2154
2169
  space: space,
2155
- colors: colors,
2156
- radii: radii
2170
+ colors: colors
2157
2171
  };
2158
2172
  };
2159
2173
 
@@ -2191,7 +2205,7 @@ var getRichTextEditorTheme = function getRichTextEditorTheme(theme) {
2191
2205
 
2192
2206
  var getSectionHeadingTheme = function getSectionHeadingTheme(theme) {
2193
2207
  var colors = {
2194
- background: theme.colors.outline
2208
+ background: theme.colors.__alpha__globalNeutral3
2195
2209
  };
2196
2210
  var space = {
2197
2211
  headingVerticalPadding: theme.space.small,
@@ -2229,19 +2243,31 @@ var getSelectTheme = function getSelectTheme(theme) {
2229
2243
  };
2230
2244
 
2231
2245
  var getSpinnerTheme = function getSpinnerTheme(theme) {
2232
- var color = {
2233
- "default": theme.colors.primary
2246
+ var colors = {
2247
+ dot1: theme.colors.__alpha__secondary1,
2248
+ dot2: theme.colors.__alpha__secondary2,
2249
+ dot3: theme.colors.__alpha__secondary3,
2250
+ dot4: theme.colors.__alpha__secondary4
2234
2251
  };
2235
2252
  var space = {
2236
- spinnerDot: theme.space.medium,
2237
- spinnerDotPadding: theme.space.small,
2238
- spinnerTextPaddingTop: theme.space.small
2253
+ spinnerDot: {
2254
+ small: theme.space.small,
2255
+ medium: theme.space.medium
2256
+ },
2257
+ spinnerDotPadding: {
2258
+ small: theme.space.xsmall,
2259
+ medium: theme.space.small
2260
+ },
2261
+ spinnerTextPaddingTop: {
2262
+ small: theme.space.xsmall,
2263
+ medium: theme.space.small
2264
+ }
2239
2265
  };
2240
2266
  var radii = {
2241
- "default": theme.radii.medium
2267
+ "default": theme.radii.rounded
2242
2268
  };
2243
2269
  return {
2244
- color: color,
2270
+ colors: colors,
2245
2271
  space: space,
2246
2272
  radii: radii
2247
2273
  };
@@ -2249,9 +2275,13 @@ var getSpinnerTheme = function getSpinnerTheme(theme) {
2249
2275
 
2250
2276
  var getSwitchTheme = function getSwitchTheme(theme) {
2251
2277
  var colors = {
2252
- thumb: theme.colors.platformBackground,
2253
- active: theme.colors.primary,
2254
- inactive: theme.colors.inactiveBackground
2278
+ backgroundColors: {
2279
+ checked: theme.colors.primary,
2280
+ unchecked: theme.colors.globalPrimaryLight,
2281
+ 'disabled-checked': theme.colors.primaryLight,
2282
+ 'disabled-unchecked': theme.colors.archived
2283
+ },
2284
+ thumb: theme.colors.platformBackground
2255
2285
  };
2256
2286
  var thumbSizes = {
2257
2287
  small: theme.space.medium,
@@ -2273,25 +2303,21 @@ var getSwitchTheme = function getSwitchTheme(theme) {
2273
2303
  var radii = {
2274
2304
  rounded: theme.radii.rounded
2275
2305
  };
2276
- var borderWidths = {
2277
- "default": theme.borderWidths.base
2278
- };
2279
2306
  return {
2280
2307
  colors: colors,
2281
2308
  thumbSizes: thumbSizes,
2282
2309
  widths: widths,
2283
2310
  heights: heights,
2284
2311
  spaces: spaces,
2285
- radii: radii,
2286
- borderWidths: borderWidths
2312
+ radii: radii
2287
2313
  };
2288
2314
  };
2289
2315
 
2290
2316
  var getTabsTheme = function getTabsTheme(theme) {
2291
2317
  var colors = {
2292
- active: theme.colors.primary,
2318
+ active: theme.colors.text,
2293
2319
  inactive: theme.colors.text,
2294
- activeBackground: theme.colors.primaryBackground,
2320
+ activeBackground: theme.colors.__alpha__secondary4,
2295
2321
  headerBottom: theme.colors.outline,
2296
2322
  text: theme.colors.text
2297
2323
  };
@@ -2299,6 +2325,7 @@ var getTabsTheme = function getTabsTheme(theme) {
2299
2325
  flatListHorizontalPadding: theme.space.small,
2300
2326
  itemHorizontalPadding: theme.space.small,
2301
2327
  itemVerticalPadding: theme.space.small,
2328
+ itemMargin: theme.space.smallMedium,
2302
2329
  outlineHorizontalPadding: theme.space.small,
2303
2330
  outlineVerticalPadding: theme.space.xsmall
2304
2331
  };
@@ -2325,20 +2352,20 @@ var getTagTheme = function getTagTheme(theme) {
2325
2352
  "default": theme.borderWidths.base
2326
2353
  };
2327
2354
  var colors = {
2328
- "default": theme.colors.text,
2355
+ "default": theme.colors.__alpha__globalPrimary,
2329
2356
  defaultBackground: undefined,
2330
- primary: theme.colors.primary,
2331
- primaryBackground: theme.colors.primaryBackground,
2332
- info: theme.colors.info,
2333
- infoBackground: theme.colors.infoBackground,
2334
- success: theme.colors.successDark,
2335
- successBackground: theme.colors.successBackground,
2336
- warning: theme.colors.warningDark,
2337
- warningBackground: theme.colors.warningBackground,
2338
- danger: theme.colors.danger,
2339
- dangerBackground: theme.colors.dangerBackground,
2340
- archived: theme.colors.archivedDark,
2341
- archivedBackground: theme.colors.archivedBackground
2357
+ primary: theme.colors.__alpha__globalPrimary,
2358
+ primaryBackground: undefined,
2359
+ info: theme.colors.__alpha__globalLabel4,
2360
+ infoBackground: theme.colors.__alpha__globalLabel9,
2361
+ success: theme.colors.__alpha__globalLabel3,
2362
+ successBackground: theme.colors.__alpha__globalLabel8,
2363
+ warning: theme.colors.__alpha__globalLabel2,
2364
+ warningBackground: theme.colors.__alpha__globalLabel7,
2365
+ danger: theme.colors.__alpha__globalLabel1,
2366
+ dangerBackground: theme.colors.__alpha__globalLabel6,
2367
+ archived: theme.colors.__alpha__globalLabel5,
2368
+ archivedBackground: theme.colors.__alpha__globalNeutral3
2342
2369
  };
2343
2370
  var fonts = {
2344
2371
  "default": theme.fonts.semiBold
@@ -2467,14 +2494,21 @@ var getToastTheme = function getToastTheme(theme) {
2467
2494
  warning: theme.colors.warning,
2468
2495
  error: theme.colors.dangerLight,
2469
2496
  info: theme.colors.infoLight,
2470
- divider: theme.colors.outline
2497
+ notification: theme.colors.platformBackground,
2498
+ snackbar: theme.colors.backgroundDark,
2499
+ divider: theme.colors.outline,
2500
+ shadow: theme.colors.backgroundDark
2471
2501
  };
2472
2502
  var sizes = {
2473
2503
  height: scale(48)
2474
2504
  };
2475
2505
  var space = {
2476
- mediumPadding: theme.space.medium,
2477
- largePadding: theme.space.large
2506
+ wrapperVerticalPadding: theme.space.large,
2507
+ wrapperHorizontalPadding: theme.space.medium,
2508
+ contentVerticalPadding: theme.space.smallMedium,
2509
+ textHorizontalPadding: theme.space.smallMedium,
2510
+ iconLeftPadding: theme.space.smallMedium,
2511
+ ctaPadding: theme.space.smallMedium
2478
2512
  };
2479
2513
  var radii = {
2480
2514
  "default": theme.radii.xlarge
@@ -2482,12 +2516,22 @@ var getToastTheme = function getToastTheme(theme) {
2482
2516
  var borderWidths = {
2483
2517
  base: theme.borderWidths.base
2484
2518
  };
2519
+ var shadows = {
2520
+ offset: {
2521
+ width: 0,
2522
+ height: 2
2523
+ },
2524
+ opacity: 0.12,
2525
+ radius: 4,
2526
+ elevation: 4
2527
+ };
2485
2528
  return {
2486
2529
  colors: colors,
2487
2530
  radii: radii,
2488
2531
  sizes: sizes,
2489
2532
  space: space,
2490
- borderWidths: borderWidths
2533
+ borderWidths: borderWidths,
2534
+ shadows: shadows
2491
2535
  };
2492
2536
  };
2493
2537
 
@@ -2537,6 +2581,7 @@ var getTypographyTheme = function getTypographyTheme(theme) {
2537
2581
  medium: theme.fontSizes.medium,
2538
2582
  large: theme.fontSizes.large,
2539
2583
  xlarge: theme.fontSizes.xlarge,
2584
+ xxxlarge: theme.fontSizes.xxxlarge,
2540
2585
  xxxxxlarge: theme.fontSizes.xxxxxlarge
2541
2586
  };
2542
2587
  var lineHeights = {
@@ -2544,6 +2589,7 @@ var getTypographyTheme = function getTypographyTheme(theme) {
2544
2589
  medium: theme.lineHeights.medium,
2545
2590
  large: theme.lineHeights.large,
2546
2591
  xlarge: theme.lineHeights.xlarge,
2592
+ xxxlarge: theme.lineHeights.xxxlarge,
2547
2593
  xxxxxlarge: theme.lineHeights.xxxxxlarge
2548
2594
  };
2549
2595
  return {
@@ -5959,7 +6005,7 @@ var StyledText$3 = index$7(reactNative.Text)(function (_ref) {
5959
6005
  });
5960
6006
  });
5961
6007
 
5962
- var _excluded$f = ["children", "fontSize", "fontWeight", "intent"];
6008
+ var _excluded$h = ["children", "fontSize", "fontWeight", "intent"];
5963
6009
 
5964
6010
  var Text = function Text(_ref) {
5965
6011
  var children = _ref.children,
@@ -5969,7 +6015,7 @@ var Text = function Text(_ref) {
5969
6015
  fontWeight = _ref$fontWeight === void 0 ? 'regular' : _ref$fontWeight,
5970
6016
  _ref$intent = _ref.intent,
5971
6017
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
5972
- nativeProps = _objectWithoutProperties(_ref, _excluded$f);
6018
+ nativeProps = _objectWithoutProperties(_ref, _excluded$h);
5973
6019
 
5974
6020
  return /*#__PURE__*/React__default["default"].createElement(StyledText$3, _extends$1({}, nativeProps, {
5975
6021
  themeFontSize: fontSize,
@@ -14514,11 +14560,11 @@ var StyledHeroIcon = index$7(HeroIcon)(function (_ref) {
14514
14560
  };
14515
14561
  });
14516
14562
 
14517
- var _excluded$e = ["style"];
14563
+ var _excluded$g = ["style"];
14518
14564
 
14519
14565
  var AnimatedIcon = function AnimatedIcon(_ref) {
14520
14566
  var style = _ref.style,
14521
- otherProps = _objectWithoutProperties(_ref, _excluded$e);
14567
+ otherProps = _objectWithoutProperties(_ref, _excluded$g);
14522
14568
 
14523
14569
  var rotateAnimation = React.useRef(new reactNative.Animated.Value(0));
14524
14570
  React.useEffect(function () {
@@ -14591,7 +14637,7 @@ var AccordionItem = function AccordionItem(_ref) {
14591
14637
  fontSize: "large",
14592
14638
  fontWeight: "semi-bold"
14593
14639
  }, header) : header, /*#__PURE__*/React__default["default"].createElement(Icon, {
14594
- icon: "arrow-".concat(open ? 'up' : 'down'),
14640
+ icon: open ? 'arrow-up' : 'arrow-down',
14595
14641
  intent: "primary",
14596
14642
  size: "small"
14597
14643
  })), /*#__PURE__*/React__default["default"].createElement(StyledCollapse, {
@@ -14608,7 +14654,7 @@ function usePropsOrInternalState(initialState, state, setState) {
14608
14654
  return [state || internalState, setState || setInternalState];
14609
14655
  }
14610
14656
 
14611
- var _excluded$d = ["key"];
14657
+ var _excluded$f = ["key"];
14612
14658
 
14613
14659
  var Accordion = function Accordion(_ref) {
14614
14660
  var items = _ref.items,
@@ -14632,7 +14678,7 @@ var Accordion = function Accordion(_ref) {
14632
14678
  testID: testID
14633
14679
  }, items.map(function (_ref2, index) {
14634
14680
  var key = _ref2.key,
14635
- props = _objectWithoutProperties(_ref2, _excluded$d);
14681
+ props = _objectWithoutProperties(_ref2, _excluded$f);
14636
14682
 
14637
14683
  var open = _activeItemKey === key;
14638
14684
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
@@ -14665,13 +14711,13 @@ var IconContainer$1 = index$7(reactNative.View)(function (_ref2) {
14665
14711
  var theme = _ref2.theme;
14666
14712
  return {
14667
14713
  alignItems: 'center',
14668
- paddingLeft: theme.__hd__.alert.space.padding
14714
+ paddingLeft: theme.__hd__.alert.space.iconLeftPadding
14669
14715
  };
14670
14716
  });
14671
14717
  var TextContainer$1 = index$7(reactNative.View)(function (_ref3) {
14672
14718
  var theme = _ref3.theme;
14673
14719
  return {
14674
- paddingHorizontal: theme.__hd__.alert.space.padding,
14720
+ paddingHorizontal: theme.__hd__.alert.space.textPaddingHorizontal,
14675
14721
  flex: 1
14676
14722
  };
14677
14723
  });
@@ -14679,7 +14725,7 @@ var ContentContainer$1 = index$7(reactNative.View)(function (_ref4) {
14679
14725
  var theme = _ref4.theme,
14680
14726
  showDivider = _ref4.showDivider;
14681
14727
  return {
14682
- paddingVertical: theme.__hd__.alert.space.padding,
14728
+ paddingVertical: theme.__hd__.alert.space.contentPaddingHorizontal,
14683
14729
  flex: 1,
14684
14730
  borderRightWidth: showDivider ? theme.__hd__.alert.borderWidths.base : 0,
14685
14731
  borderColor: theme.__hd__.alert.colors.divider,
@@ -14689,7 +14735,7 @@ var ContentContainer$1 = index$7(reactNative.View)(function (_ref4) {
14689
14735
  var CTAWrapper$1 = index$7(reactNative.TouchableOpacity)(function (_ref5) {
14690
14736
  var theme = _ref5.theme;
14691
14737
  return {
14692
- paddingHorizontal: theme.__hd__.alert.space.padding,
14738
+ paddingHorizontal: theme.__hd__.alert.space.ctaPadding,
14693
14739
  justifyContent: 'center'
14694
14740
  };
14695
14741
  });
@@ -14707,20 +14753,33 @@ var getIntentIcon$1 = function getIntentIcon(intent) {
14707
14753
 
14708
14754
  case 'error':
14709
14755
  return 'circle-warning';
14756
+
14757
+ default:
14758
+ return undefined;
14710
14759
  }
14711
14760
  };
14712
14761
 
14713
- var Alert = function Alert(_ref) {
14714
- var content = _ref.content,
14715
- icon = _ref.icon,
14716
- title = _ref.title,
14717
- _ref$intent = _ref.intent,
14718
- intent = _ref$intent === void 0 ? 'info' : _ref$intent,
14719
- onClose = _ref.onClose,
14720
- _ref$variant = _ref.variant,
14721
- variant = _ref$variant === void 0 ? 'default' : _ref$variant,
14722
- style = _ref.style,
14723
- testID = _ref.testID;
14762
+ var AlertIcon = function AlertIcon(_ref) {
14763
+ var icon = _ref.icon;
14764
+ return icon ? /*#__PURE__*/React__default["default"].createElement(IconContainer$1, {
14765
+ testID: "alert-left-icon"
14766
+ }, /*#__PURE__*/React__default["default"].createElement(Icon, {
14767
+ icon: icon,
14768
+ size: "small"
14769
+ })) : null;
14770
+ };
14771
+
14772
+ var Alert = function Alert(_ref2) {
14773
+ var content = _ref2.content,
14774
+ icon = _ref2.icon,
14775
+ title = _ref2.title,
14776
+ _ref2$intent = _ref2.intent,
14777
+ intent = _ref2$intent === void 0 ? 'info' : _ref2$intent,
14778
+ onClose = _ref2.onClose,
14779
+ _ref2$variant = _ref2.variant,
14780
+ variant = _ref2$variant === void 0 ? 'default' : _ref2$variant,
14781
+ style = _ref2.style,
14782
+ testID = _ref2.testID;
14724
14783
  return /*#__PURE__*/React__default["default"].createElement(Container$1, {
14725
14784
  themeVariant: variant,
14726
14785
  themeIntent: intent,
@@ -14728,12 +14787,9 @@ var Alert = function Alert(_ref) {
14728
14787
  testID: testID
14729
14788
  }, /*#__PURE__*/React__default["default"].createElement(ContentContainer$1, {
14730
14789
  showDivider: !!onClose
14731
- }, icon !== null ? /*#__PURE__*/React__default["default"].createElement(IconContainer$1, {
14732
- testID: "alert-left-icon"
14733
- }, /*#__PURE__*/React__default["default"].createElement(Icon, {
14734
- icon: icon || getIntentIcon$1(intent),
14735
- size: "small"
14736
- })) : null, /*#__PURE__*/React__default["default"].createElement(TextContainer$1, null, typeof title === 'string' ? /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
14790
+ }, icon !== null ? /*#__PURE__*/React__default["default"].createElement(AlertIcon, {
14791
+ icon: icon || getIntentIcon$1(intent)
14792
+ }) : null, /*#__PURE__*/React__default["default"].createElement(TextContainer$1, null, typeof title === 'string' ? /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
14737
14793
  fontWeight: "semi-bold"
14738
14794
  }, title) : title, typeof content === 'string' ? /*#__PURE__*/React__default["default"].createElement(Typography.Text, null, content) : content)), onClose ? /*#__PURE__*/React__default["default"].createElement(CTAWrapper$1, {
14739
14795
  onPress: onClose,
@@ -14864,7 +14920,7 @@ var StyledStatus = index$7(reactNative.Animated.View)(function (_ref3) {
14864
14920
  };
14865
14921
  });
14866
14922
 
14867
- var _excluded$c = ["children", "visible", "intent", "style", "testID"];
14923
+ var _excluded$e = ["children", "visible", "intent", "style", "testID"];
14868
14924
 
14869
14925
  var Status = function Status(_ref) {
14870
14926
  var children = _ref.children,
@@ -14874,7 +14930,7 @@ var Status = function Status(_ref) {
14874
14930
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
14875
14931
  style = _ref.style,
14876
14932
  testID = _ref.testID,
14877
- nativeProps = _objectWithoutProperties(_ref, _excluded$c);
14933
+ nativeProps = _objectWithoutProperties(_ref, _excluded$e);
14878
14934
 
14879
14935
  var _React$useRef = React__default["default"].useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
14880
14936
  opacity = _React$useRef.current;
@@ -14910,7 +14966,7 @@ var Status = function Status(_ref) {
14910
14966
  }));
14911
14967
  };
14912
14968
 
14913
- var _excluded$b = ["content", "visible", "max", "intent", "style", "testID"];
14969
+ var _excluded$d = ["content", "visible", "max", "intent", "style", "testID"];
14914
14970
  var DEFAULT_MAX_NUMBER = 99;
14915
14971
 
14916
14972
  var getPaddingState = function getPaddingState(content) {
@@ -14927,7 +14983,7 @@ var Badge = function Badge(_ref) {
14927
14983
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
14928
14984
  style = _ref.style,
14929
14985
  testID = _ref.testID,
14930
- nativeProps = _objectWithoutProperties(_ref, _excluded$b);
14986
+ nativeProps = _objectWithoutProperties(_ref, _excluded$d);
14931
14987
 
14932
14988
  var _React$useRef = React__default["default"].useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
14933
14989
  opacity = _React$useRef.current;
@@ -15023,7 +15079,7 @@ var StyledBottomBarText = index$7(Typography.Text)(function (_ref3) {
15023
15079
  var isIOS = reactNative.Platform.OS === 'ios';
15024
15080
  var isAndroid = reactNative.Platform.OS === 'android';
15025
15081
 
15026
- var _excluded$a = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
15082
+ var _excluded$c = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
15027
15083
 
15028
15084
  var getInactiveIcon = function getInactiveIcon(icon) {
15029
15085
  var inactiveIcon = "".concat(icon, "-outlined");
@@ -15036,7 +15092,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
15036
15092
  renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
15037
15093
  selectedTabKey = _ref.selectedTabKey,
15038
15094
  tabs = _ref.tabs,
15039
- nativeProps = _objectWithoutProperties(_ref, _excluded$a);
15095
+ nativeProps = _objectWithoutProperties(_ref, _excluded$c);
15040
15096
 
15041
15097
  var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
15042
15098
  /**
@@ -15127,14 +15183,14 @@ var StyledDivider = index$7(reactNative.View)(function (_ref) {
15127
15183
  }, horizontalMargin), verticalMargin);
15128
15184
  });
15129
15185
 
15130
- var _excluded$9 = ["marginHorizontal", "marginVertical", "style", "testID"];
15186
+ var _excluded$b = ["marginHorizontal", "marginVertical", "style", "testID"];
15131
15187
 
15132
15188
  var Divider = function Divider(_ref) {
15133
15189
  var marginHorizontal = _ref.marginHorizontal,
15134
15190
  marginVertical = _ref.marginVertical,
15135
15191
  style = _ref.style,
15136
15192
  testID = _ref.testID,
15137
- nativeProps = _objectWithoutProperties(_ref, _excluded$9);
15193
+ nativeProps = _objectWithoutProperties(_ref, _excluded$b);
15138
15194
 
15139
15195
  return /*#__PURE__*/React__default["default"].createElement(StyledDivider, _extends$1({}, nativeProps, {
15140
15196
  themeMarginHorizontal: marginHorizontal,
@@ -15266,7 +15322,7 @@ var StyledLoadingDot = index$7(reactNative.View)(function (_ref2) {
15266
15322
  }, themeStyling());
15267
15323
  });
15268
15324
 
15269
- var _excluded$8 = ["count", "size", "testID", "themeVariant"];
15325
+ var _excluded$a = ["count", "size", "testID", "themeVariant"];
15270
15326
  var AnimatedLoadingIndicatorWrapper = reactNative.Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
15271
15327
  var AnimatedLoadingDot = reactNative.Animated.createAnimatedComponent(StyledLoadingDot);
15272
15328
 
@@ -15300,7 +15356,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
15300
15356
  size = _ref2$size === void 0 ? 12 : _ref2$size,
15301
15357
  testID = _ref2.testID,
15302
15358
  themeVariant = _ref2.themeVariant,
15303
- nativeProps = _objectWithoutProperties(_ref2, _excluded$8);
15359
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$a);
15304
15360
 
15305
15361
  var progressAnimation = React.useRef(new reactNative.Animated.Value(0));
15306
15362
  React.useEffect(function () {
@@ -15941,6 +15997,245 @@ var BottomSheet = function BottomSheet(_ref) {
15941
15997
  }, footer) : null)));
15942
15998
  };
15943
15999
 
16000
+ var colors = {
16001
+ backgroundColor: {
16002
+ property: 'backgroundColor',
16003
+ scale: 'colors'
16004
+ },
16005
+ bgColor: {
16006
+ property: 'backgroundColor',
16007
+ scale: 'colors'
16008
+ },
16009
+ borderColor: {
16010
+ property: 'borderColor',
16011
+ scale: 'colors'
16012
+ },
16013
+ borderTopColor: {
16014
+ property: 'borderTopColor',
16015
+ scale: 'colors'
16016
+ },
16017
+ borderBottomColor: {
16018
+ property: 'borderBottomColor',
16019
+ scale: 'colors'
16020
+ },
16021
+ borderStartColor: {
16022
+ property: 'borderStartColor',
16023
+ scale: 'colors'
16024
+ },
16025
+ borderEndColor: {
16026
+ property: 'borderEndColor',
16027
+ scale: 'colors'
16028
+ },
16029
+ borderLeftColor: {
16030
+ property: 'borderLeftColor',
16031
+ scale: 'colors'
16032
+ },
16033
+ borderRightColor: {
16034
+ property: 'borderRightColor',
16035
+ scale: 'colors'
16036
+ }
16037
+ };
16038
+ var space = {
16039
+ margin: {
16040
+ property: 'margin',
16041
+ scale: 'space'
16042
+ },
16043
+ marginBottom: {
16044
+ property: 'marginBottom',
16045
+ scale: 'space'
16046
+ },
16047
+ marginEnd: {
16048
+ property: 'marginEnd',
16049
+ scale: 'space'
16050
+ },
16051
+ marginHorizontal: {
16052
+ property: 'marginHorizontal',
16053
+ scale: 'space'
16054
+ },
16055
+ marginLeft: {
16056
+ property: 'marginLeft',
16057
+ scale: 'space'
16058
+ },
16059
+ marginRight: {
16060
+ property: 'marginRight',
16061
+ scale: 'space'
16062
+ },
16063
+ marginStart: {
16064
+ property: 'marginStart',
16065
+ scale: 'space'
16066
+ },
16067
+ marginTop: {
16068
+ property: 'marginTop',
16069
+ scale: 'space'
16070
+ },
16071
+ marginVertical: {
16072
+ property: 'marginVertical',
16073
+ scale: 'space'
16074
+ },
16075
+ padding: {
16076
+ property: 'padding',
16077
+ scale: 'space'
16078
+ },
16079
+ paddingBottom: {
16080
+ property: 'paddingBottom',
16081
+ scale: 'space'
16082
+ },
16083
+ paddingEnd: {
16084
+ property: 'paddingEnd',
16085
+ scale: 'space'
16086
+ },
16087
+ paddingHorizontal: {
16088
+ property: 'paddingHorizontal',
16089
+ scale: 'space'
16090
+ },
16091
+ paddingLeft: {
16092
+ property: 'paddingLeft',
16093
+ scale: 'space'
16094
+ },
16095
+ paddingRight: {
16096
+ property: 'paddingRight',
16097
+ scale: 'space'
16098
+ },
16099
+ paddingStart: {
16100
+ property: 'paddingStart',
16101
+ scale: 'space'
16102
+ },
16103
+ paddingTop: {
16104
+ property: 'paddingTop',
16105
+ scale: 'space'
16106
+ },
16107
+ paddingVertical: {
16108
+ property: 'paddingVertical',
16109
+ scale: 'space'
16110
+ }
16111
+ };
16112
+ var radii = {
16113
+ borderBottomEndRadius: {
16114
+ property: 'borderBottomEndRadius',
16115
+ scale: 'radii'
16116
+ },
16117
+ borderBottomLeftRadius: {
16118
+ property: 'borderBottomLeftRadius',
16119
+ scale: 'radii'
16120
+ },
16121
+ borderBottomRightRadius: {
16122
+ property: 'borderBottomRightRadius',
16123
+ scale: 'radii'
16124
+ },
16125
+ borderBottomStartRadius: {
16126
+ property: 'borderBottomStartRadius',
16127
+ scale: 'radii'
16128
+ },
16129
+ borderTopEndRadius: {
16130
+ property: 'borderTopEndRadius',
16131
+ scale: 'radii'
16132
+ },
16133
+ borderTopLeftRadius: {
16134
+ property: 'borderTopLeftRadius',
16135
+ scale: 'radii'
16136
+ },
16137
+ borderTopRightRadius: {
16138
+ property: 'borderTopRightRadius',
16139
+ scale: 'radii'
16140
+ },
16141
+ borderTopStartRadius: {
16142
+ property: 'borderTopStartRadius',
16143
+ scale: 'radii'
16144
+ },
16145
+ borderRadius: {
16146
+ property: 'borderRadius',
16147
+ scale: 'radii'
16148
+ }
16149
+ };
16150
+ var borderWidths = {
16151
+ borderWidth: {
16152
+ property: 'borderWidth',
16153
+ scale: 'borderWidths'
16154
+ },
16155
+ borderBottomWidth: {
16156
+ property: 'borderBottomWidth',
16157
+ scale: 'borderWidths'
16158
+ },
16159
+ borderTopWidth: {
16160
+ property: 'borderTopWidth',
16161
+ scale: 'borderWidths'
16162
+ },
16163
+ borderLeftWidth: {
16164
+ property: 'borderLeftWidth',
16165
+ scale: 'borderWidths'
16166
+ },
16167
+ borderRightWidth: {
16168
+ property: 'borderRightWidth',
16169
+ scale: 'borderWidths'
16170
+ }
16171
+ };
16172
+
16173
+ var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
16174
+
16175
+ var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
16176
+
16177
+ var pick = function pick(keys, props) {
16178
+ return keys.filter(function (key) {
16179
+ return key in props;
16180
+ }).reduce(function (result, cur) {
16181
+ return _objectSpread2(_objectSpread2({}, result), {}, _defineProperty({}, cur, props[cur]));
16182
+ }, {});
16183
+ };
16184
+
16185
+ var _excluded$9 = ["theme"];
16186
+ var getThemeValue = function getThemeValue(theme, key, props) {
16187
+ var propConfig = config[key];
16188
+ var propValue = props[key];
16189
+ if (!propValue) return undefined;
16190
+ var scale = propConfig.scale,
16191
+ property = propConfig.property;
16192
+
16193
+ switch (scale) {
16194
+ case 'colors':
16195
+ return _defineProperty({}, property, theme.colors[propValue]);
16196
+
16197
+ case 'space':
16198
+ return _defineProperty({}, property, theme.space[propValue]);
16199
+
16200
+ case 'radii':
16201
+ return _defineProperty({}, property, theme.radii[propValue]);
16202
+
16203
+ case 'borderWidths':
16204
+ return _defineProperty({}, property, theme.borderWidths[propValue]);
16205
+ }
16206
+ };
16207
+
16208
+ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
16209
+ var entries = Object.keys(props);
16210
+ return entries.reduce(function (result, key) {
16211
+ return _objectSpread2(_objectSpread2({}, result), getThemeValue(theme, key, props));
16212
+ }, {});
16213
+ };
16214
+
16215
+ var configKeys = Object.keys(config);
16216
+ var StyledBox = index$7(reactNative.View)(function (_ref5) {
16217
+ var theme = _ref5.theme,
16218
+ otherProps = _objectWithoutProperties(_ref5, _excluded$9);
16219
+
16220
+ var styleProps = pick(configKeys, otherProps);
16221
+ var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
16222
+ return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
16223
+ });
16224
+
16225
+ var _excluded$8 = ["children", "style", "testID"];
16226
+
16227
+ var Box = function Box(_ref) {
16228
+ var children = _ref.children,
16229
+ style = _ref.style,
16230
+ testID = _ref.testID,
16231
+ otherProps = _objectWithoutProperties(_ref, _excluded$8);
16232
+
16233
+ return /*#__PURE__*/React__default["default"].createElement(StyledBox, _extends$1({}, otherProps, {
16234
+ style: style,
16235
+ testID: testID
16236
+ }), children);
16237
+ };
16238
+
15944
16239
  function requiredArgs(required, args) {
15945
16240
  if (args.length < required) {
15946
16241
  throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
@@ -18337,7 +18632,7 @@ function convertToFP(fn, arity, a) {
18337
18632
  var format = convertToFP(format$1, 2);
18338
18633
  var formatTime = format;
18339
18634
 
18340
- var Wrapper$1 = index$7(reactNative.View)(function () {
18635
+ var Wrapper = index$7(reactNative.View)(function () {
18341
18636
  return {
18342
18637
  flex: 1,
18343
18638
  flexDirection: 'row',
@@ -18364,7 +18659,7 @@ function ContentNavigator(_ref) {
18364
18659
  fontSize = _ref$fontSize === void 0 ? 'medium' : _ref$fontSize,
18365
18660
  testID = _ref.testID,
18366
18661
  style = _ref.style;
18367
- return /*#__PURE__*/React__default["default"].createElement(Wrapper$1, {
18662
+ return /*#__PURE__*/React__default["default"].createElement(Wrapper, {
18368
18663
  testID: testID,
18369
18664
  style: style
18370
18665
  }, /*#__PURE__*/React__default["default"].createElement(CompoundButton.Icon, {
@@ -18642,7 +18937,7 @@ var Indicator = index$7(reactNative.View)(function (_ref2) {
18642
18937
  var theme = _ref2.theme,
18643
18938
  themeIntent = _ref2.themeIntent;
18644
18939
  return {
18645
- backgroundColor: theme.__hd__.card.colors.indicator[themeIntent],
18940
+ backgroundColor: theme.__hd__.card.colors[themeIntent],
18646
18941
  width: theme.__hd__.card.sizes.indicatorWidth,
18647
18942
  height: '100%'
18648
18943
  };
@@ -18664,23 +18959,18 @@ var DataCard = function DataCard(_ref) {
18664
18959
 
18665
18960
  var StyledCard = index$7(reactNative.View)(function (_ref) {
18666
18961
  var themeVariant = _ref.themeVariant,
18667
- theme = _ref.theme;
18668
- var sharedStyles = {
18962
+ theme = _ref.theme,
18963
+ themeIntent = _ref.themeIntent;
18964
+ return _objectSpread2(_objectSpread2(_objectSpread2({}, themeVariant === 'data' && {
18965
+ flexDirection: 'row'
18966
+ }), themeIntent !== undefined && {
18967
+ backgroundColor: theme.__hd__.card.colors[themeIntent]
18968
+ }), {}, {
18669
18969
  borderRadius: theme.__hd__.card.radii["default"],
18670
18970
  overflow: 'hidden'
18671
- };
18672
- var dataStyles = {
18673
- flexDirection: 'row'
18674
- };
18675
-
18676
- switch (themeVariant) {
18677
- case 'basic':
18678
- return sharedStyles;
18971
+ });
18972
+ }); // DEPRECATED
18679
18973
 
18680
- case 'data':
18681
- return _objectSpread2(_objectSpread2({}, sharedStyles), dataStyles);
18682
- }
18683
- });
18684
18974
  var LeftDataCard = index$7(reactNative.View)(function (_ref2) {
18685
18975
  var theme = _ref2.theme;
18686
18976
  return {
@@ -18690,16 +18980,18 @@ var LeftDataCard = index$7(reactNative.View)(function (_ref2) {
18690
18980
  };
18691
18981
  });
18692
18982
 
18693
- var _excluded$6 = ["variant", "children"];
18983
+ var _excluded$6 = ["variant", "intent", "children"];
18694
18984
 
18695
18985
  var Card = function Card(_ref) {
18696
18986
  var _ref$variant = _ref.variant,
18697
18987
  variant = _ref$variant === void 0 ? 'basic' : _ref$variant,
18988
+ intent = _ref.intent,
18698
18989
  children = _ref.children,
18699
18990
  nativeProps = _objectWithoutProperties(_ref, _excluded$6);
18700
18991
 
18701
18992
  return /*#__PURE__*/React__default["default"].createElement(StyledCard, _extends$1({}, nativeProps, {
18702
- themeVariant: variant
18993
+ themeVariant: variant,
18994
+ themeIntent: intent
18703
18995
  }), variant === 'data' && /*#__PURE__*/React__default["default"].createElement(LeftDataCard, {
18704
18996
  testID: "data-card-indicator"
18705
18997
  }), children);
@@ -18711,42 +19003,73 @@ var index$6 = Object.assign(Card, {
18711
19003
 
18712
19004
  var StyledWrapper$5 = index$7(reactNative.TouchableOpacity)(function (_ref) {
18713
19005
  var theme = _ref.theme,
18714
- disabled = _ref.disabled;
19006
+ themeWithBorder = _ref.themeWithBorder,
19007
+ themeDisabled = _ref.themeDisabled;
19008
+ var borderStyle = {
19009
+ borderRadius: theme.__hd__.checkbox.radii.wrapper,
19010
+ borderWidth: theme.__hd__.checkbox.borderWidths.wrapper,
19011
+ padding: theme.__hd__.checkbox.space.wrapperPadding,
19012
+ borderColor: themeDisabled ? theme.__hd__.checkbox.colors.disabledBorder : theme.__hd__.checkbox.colors["default"]
19013
+ };
19014
+ return _objectSpread2({
19015
+ flexDirection: 'row'
19016
+ }, themeWithBorder && borderStyle);
19017
+ });
19018
+ var StyledDescription$1 = index$7(Typography.Text)(function (_ref2) {
19019
+ var theme = _ref2.theme;
19020
+ return {
19021
+ paddingRight: theme.__hd__.checkbox.space.iconDescriptionPadding,
19022
+ flex: 1
19023
+ };
19024
+ });
19025
+ var StyledCheckbox = index$7(reactNative.View)(function (_ref3) {
19026
+ var theme = _ref3.theme,
19027
+ themeDisabled = _ref3.themeDisabled;
18715
19028
  return {
18716
- display: 'flex',
18717
19029
  flexDirection: 'row',
18718
19030
  justifyContent: 'center',
18719
- height: theme.__hd__.checkbox.sizes.base,
18720
- width: theme.__hd__.checkbox.sizes.base,
18721
- borderRadius: theme.__hd__.checkbox.radii.base,
18722
- borderWidth: theme.__hd__.checkbox.borderWidths["default"],
18723
- borderColor: disabled ? theme.__hd__.checkbox.colors.disabled : theme.__hd__.checkbox.colors.borderColor,
19031
+ height: theme.__hd__.checkbox.sizes.icon,
19032
+ width: theme.__hd__.checkbox.sizes.icon,
19033
+ borderRadius: theme.__hd__.checkbox.radii.icon,
19034
+ borderWidth: theme.__hd__.checkbox.borderWidths.icon,
19035
+ borderColor: themeDisabled ? theme.__hd__.checkbox.colors.disabledBorder : theme.__hd__.checkbox.colors["default"],
18724
19036
  overflow: 'hidden'
18725
19037
  };
18726
19038
  });
19039
+ var StyledCheckMark = index$7(Icon)(function (_ref4) {
19040
+ var theme = _ref4.theme;
19041
+ return {
19042
+ position: 'absolute',
19043
+ top: theme.__hd__.checkbox.space.iconTop
19044
+ };
19045
+ });
18727
19046
 
18728
- var CheckBox = function CheckBox(_ref) {
19047
+ var Checkbox = function Checkbox(_ref) {
18729
19048
  var checked = _ref.checked,
18730
- disabled = _ref.disabled,
19049
+ description = _ref.description,
19050
+ _ref$withBorder = _ref.withBorder,
19051
+ withBorder = _ref$withBorder === void 0 ? false : _ref$withBorder,
19052
+ _ref$disabled = _ref.disabled,
19053
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
18731
19054
  onPress = _ref.onPress,
18732
19055
  style = _ref.style,
18733
19056
  testID = _ref.testID;
18734
19057
  return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$5, {
18735
19058
  onPress: onPress,
18736
19059
  disabled: disabled,
19060
+ themeDisabled: disabled,
19061
+ themeWithBorder: withBorder,
18737
19062
  style: style,
18738
19063
  testID: testID
18739
- }, checked && /*#__PURE__*/React__default["default"].createElement(Icon, {
18740
- icon: "circle-ok",
18741
- intent: "primary",
18742
- size: "large",
18743
- style: _objectSpread2({
18744
- position: 'absolute',
18745
- top: defaultTheme.__hd__.checkbox.space.iconTop
18746
- }, disabled ? {
18747
- color: defaultTheme.__hd__.checkbox.colors.disabled
18748
- } : {})
18749
- }));
19064
+ }, !!description && /*#__PURE__*/React__default["default"].createElement(StyledDescription$1, {
19065
+ intent: disabled ? 'subdued' : 'body'
19066
+ }, description), /*#__PURE__*/React__default["default"].createElement(StyledCheckbox, {
19067
+ themeDisabled: disabled
19068
+ }, checked && /*#__PURE__*/React__default["default"].createElement(StyledCheckMark, {
19069
+ icon: "box-check",
19070
+ intent: disabled ? 'disabled-text' : 'text',
19071
+ testID: "check-mark"
19072
+ })));
18750
19073
  };
18751
19074
 
18752
19075
  var StyledContainer$3 = index$7(reactNative.View)(function (_ref) {
@@ -18897,7 +19220,7 @@ var StyledErrorAndMaxLengthContainer = index$7(reactNative.View)(function () {
18897
19220
  });
18898
19221
 
18899
19222
  var _excluded$5 = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "helpText", "value", "defaultValue"];
18900
- var getVariant = function getVariant(_ref) {
19223
+ var getVariant$1 = function getVariant(_ref) {
18901
19224
  var disabled = _ref.disabled,
18902
19225
  error = _ref.error,
18903
19226
  editable = _ref.editable,
@@ -18962,7 +19285,7 @@ var TextInput = function TextInput(_ref2) {
18962
19285
  isFocused = _React$useState2[0],
18963
19286
  setIsFocused = _React$useState2[1];
18964
19287
 
18965
- var variant = getVariant({
19288
+ var variant = getVariant$1({
18966
19289
  disabled: disabled,
18967
19290
  error: error,
18968
19291
  editable: editable,
@@ -19885,8 +20208,9 @@ var StyledListItemContainer$1 = index$7(reactNative.TouchableHighlight)(function
19885
20208
  borderRadius: theme.__hd__.list.radii.card,
19886
20209
  shadowColor: theme.colors.shadow,
19887
20210
  shadowRadius: theme.__hd__.list.radii.cardShadow,
19888
- shadowOffset: theme.__hd__.list.offsets.cardShadow,
19889
- shadowOpacity: theme.__hd__.list.opacity.cardShadow
20211
+ shadowOffset: theme.__hd__.list.shadows.cardOffset,
20212
+ shadowOpacity: theme.__hd__.list.opacity.cardShadow,
20213
+ elevation: theme.__hd__.list.shadows.cardElevation
19890
20214
  });
19891
20215
 
19892
20216
  default:
@@ -20544,54 +20868,59 @@ var StyledSpinnerContainer = index$7(reactNative.View)({
20544
20868
  });
20545
20869
  var StyledSpinnerRow = index$7(reactNative.View)(function (_ref) {
20546
20870
  var themePosition = _ref.themePosition,
20871
+ _ref$themeSize = _ref.themeSize,
20872
+ themeSize = _ref$themeSize === void 0 ? 'medium' : _ref$themeSize,
20547
20873
  theme = _ref.theme;
20548
20874
  return {
20549
20875
  flexDirection: 'row',
20550
- marginBottom: themePosition === 'top' ? theme.__hd__.spinner.space.spinnerDotPadding : 0
20876
+ marginBottom: themePosition === 'top' ? theme.__hd__.spinner.space.spinnerDotPadding[themeSize] : 0
20551
20877
  };
20552
20878
  });
20553
20879
  var StyledSpinnerDot = index$7(reactNative.View)(function (_ref2) {
20554
20880
  var themePosition = _ref2.themePosition,
20881
+ _ref2$themeSize = _ref2.themeSize,
20882
+ themeSize = _ref2$themeSize === void 0 ? 'medium' : _ref2$themeSize,
20555
20883
  theme = _ref2.theme;
20556
20884
 
20557
20885
  var themeStyling = function themeStyling() {
20558
20886
  switch (themePosition) {
20559
20887
  case 'topLeft':
20560
20888
  return {
20561
- opacity: 1
20889
+ backgroundColor: theme.__hd__.spinner.colors.dot1
20562
20890
  };
20563
20891
 
20564
20892
  case 'topRight':
20565
20893
  return {
20566
- marginLeft: theme.__hd__.spinner.space.spinnerDotPadding,
20567
- opacity: 0.7
20894
+ marginLeft: theme.__hd__.spinner.space.spinnerDotPadding[themeSize],
20895
+ backgroundColor: theme.__hd__.spinner.colors.dot2
20568
20896
  };
20569
20897
 
20570
20898
  case 'bottomLeft':
20571
20899
  return {
20572
- opacity: 0.5
20900
+ backgroundColor: theme.__hd__.spinner.colors.dot3
20573
20901
  };
20574
20902
 
20575
20903
  case 'bottomRight':
20576
20904
  return {
20577
- marginLeft: theme.__hd__.spinner.space.spinnerDotPadding,
20578
- opacity: 0.3
20905
+ marginLeft: theme.__hd__.spinner.space.spinnerDotPadding[themeSize],
20906
+ backgroundColor: theme.__hd__.spinner.colors.dot4
20579
20907
  };
20580
20908
  }
20581
20909
  };
20582
20910
 
20583
20911
  return _objectSpread2({
20584
- height: scale(theme.__hd__.spinner.space.spinnerDot),
20585
- width: scale(theme.__hd__.spinner.space.spinnerDot),
20586
- borderRadius: theme.__hd__.spinner.radii["default"],
20587
- backgroundColor: theme.__hd__.spinner.color["default"]
20912
+ height: scale(theme.__hd__.spinner.space.spinnerDot[themeSize]),
20913
+ width: scale(theme.__hd__.spinner.space.spinnerDot[themeSize]),
20914
+ borderRadius: theme.__hd__.spinner.radii["default"]
20588
20915
  }, themeStyling());
20589
20916
  });
20590
20917
 
20591
20918
  var AnimatedRow = reactNative.Animated.createAnimatedComponent(StyledSpinnerRow);
20592
20919
  var AnimatedDot = reactNative.Animated.createAnimatedComponent(StyledSpinnerDot);
20593
20920
 
20594
- var AnimatedSpinner = function AnimatedSpinner() {
20921
+ var AnimatedSpinner = function AnimatedSpinner(_ref) {
20922
+ var _ref$size = _ref.size,
20923
+ size = _ref$size === void 0 ? 'medium' : _ref$size;
20595
20924
  var rotateAnimation = React.useRef(new reactNative.Animated.Value(0));
20596
20925
  React.useEffect(function () {
20597
20926
  var animation = reactNative.Animated.loop(reactNative.Animated.timing(rotateAnimation.current, {
@@ -20616,95 +20945,95 @@ var AnimatedSpinner = function AnimatedSpinner() {
20616
20945
  }]
20617
20946
  }])
20618
20947
  }, /*#__PURE__*/React__default["default"].createElement(AnimatedRow, {
20619
- themePosition: "top"
20948
+ themePosition: "top",
20949
+ themeSize: size
20620
20950
  }, /*#__PURE__*/React__default["default"].createElement(AnimatedDot, {
20621
- themePosition: "topLeft"
20951
+ themePosition: "topLeft",
20952
+ themeSize: size
20622
20953
  }), /*#__PURE__*/React__default["default"].createElement(AnimatedDot, {
20623
- themePosition: "topRight"
20954
+ themePosition: "topRight",
20955
+ themeSize: size
20624
20956
  })), /*#__PURE__*/React__default["default"].createElement(AnimatedRow, {
20625
- themePosition: "bottom"
20957
+ themePosition: "bottom",
20958
+ themeSize: size
20626
20959
  }, /*#__PURE__*/React__default["default"].createElement(AnimatedDot, {
20627
- themePosition: "bottomLeft"
20960
+ themePosition: "bottomLeft",
20961
+ themeSize: size
20628
20962
  }), /*#__PURE__*/React__default["default"].createElement(AnimatedDot, {
20629
- themePosition: "bottomRight"
20963
+ themePosition: "bottomRight",
20964
+ themeSize: size
20630
20965
  })));
20631
20966
  };
20632
20967
 
20633
- var _excluded$1 = ["testID"];
20968
+ var _excluded$1 = ["testID", "size"];
20634
20969
 
20635
20970
  var Spinner = function Spinner(_ref) {
20636
20971
  var testID = _ref.testID,
20972
+ _ref$size = _ref.size,
20973
+ size = _ref$size === void 0 ? 'medium' : _ref$size,
20637
20974
  nativeProps = _objectWithoutProperties(_ref, _excluded$1);
20638
20975
 
20639
20976
  return /*#__PURE__*/React__default["default"].createElement(StyledView$1, nativeProps, /*#__PURE__*/React__default["default"].createElement(StyledSpinnerContainer, {
20640
20977
  testID: testID
20641
- }, /*#__PURE__*/React__default["default"].createElement(AnimatedSpinner, null)));
20978
+ }, /*#__PURE__*/React__default["default"].createElement(AnimatedSpinner, {
20979
+ size: size
20980
+ })));
20642
20981
  };
20643
20982
 
20644
- var Wrapper = index$7(reactNative.TouchableOpacity)(function (_ref) {
20645
- var theme = _ref.theme,
20646
- themeChecked = _ref.themeChecked;
20647
- return {
20648
- flexDirection: 'row',
20649
- justifyContent: 'space-between',
20650
- alignItems: 'center',
20651
- borderRadius: theme.__hd__.radio.radii.wrapper,
20652
- padding: theme.__hd__.radio.space.wrapperPadding,
20653
- backgroundColor: themeChecked ? theme.__hd__.radio.colors.checkedWrapper : theme.__hd__.radio.colors.wrapper
20654
- };
20655
- });
20656
- var Circle = index$7(reactNative.View)(function (_ref2) {
20657
- var theme = _ref2.theme,
20658
- themeChecked = _ref2.themeChecked;
20983
+ var Circle = index$7(reactNative.View)(function (_ref) {
20984
+ var theme = _ref.theme;
20659
20985
  return {
20660
20986
  height: theme.__hd__.radio.sizes.circle,
20661
20987
  width: theme.__hd__.radio.sizes.circle,
20662
20988
  borderRadius: theme.radii.rounded,
20663
20989
  borderWidth: theme.__hd__.radio.borderWidths.circle,
20664
- borderColor: themeChecked ? theme.__hd__.radio.colors.checkedCircle : theme.__hd__.radio.colors.circle,
20990
+ borderColor: theme.__hd__.radio.colors.circle,
20665
20991
  alignItems: 'center',
20666
20992
  justifyContent: 'center'
20667
20993
  };
20668
20994
  });
20669
- var InnerCircle = index$7(reactNative.View)(function (_ref3) {
20670
- var theme = _ref3.theme;
20995
+ var InnerCircle = index$7(reactNative.View)(function (_ref2) {
20996
+ var theme = _ref2.theme;
20671
20997
  return {
20672
20998
  height: theme.__hd__.radio.sizes.innerCircle,
20673
20999
  width: theme.__hd__.radio.sizes.innerCircle,
20674
21000
  borderRadius: theme.radii.rounded,
20675
- backgroundColor: theme.__hd__.radio.colors.checkedCircle
21001
+ backgroundColor: theme.__hd__.radio.colors.circle
20676
21002
  };
20677
21003
  });
20678
- var Spacer = index$7(reactNative.View)(function (_ref4) {
20679
- var theme = _ref4.theme;
21004
+ var Spacer = index$7(reactNative.View)(function (_ref3) {
21005
+ var theme = _ref3.theme;
20680
21006
  return {
20681
21007
  marginTop: theme.__hd__.radio.space.groupTopMargin
20682
21008
  };
20683
21009
  });
20684
21010
 
20685
- var Radio = function Radio(_ref) {
20686
- var text = _ref.text,
20687
- _ref$checked = _ref.checked,
20688
- checked = _ref$checked === void 0 ? false : _ref$checked,
20689
- onPress = _ref.onPress,
20690
- style = _ref.style,
20691
- testID = _ref.testID;
20692
- return /*#__PURE__*/React__default["default"].createElement(Wrapper, {
21011
+ var RadioCircle = function RadioCircle(_ref) {
21012
+ var checked = _ref.checked,
21013
+ text = _ref.text;
21014
+ return /*#__PURE__*/React__default["default"].createElement(Circle, null, checked && /*#__PURE__*/React__default["default"].createElement(InnerCircle, {
21015
+ testID: "".concat(text, "-selected-circle")
21016
+ }));
21017
+ };
21018
+
21019
+ var Radio = function Radio(_ref2) {
21020
+ var text = _ref2.text,
21021
+ _ref2$checked = _ref2.checked,
21022
+ checked = _ref2$checked === void 0 ? false : _ref2$checked,
21023
+ onPress = _ref2.onPress,
21024
+ style = _ref2.style,
21025
+ testID = _ref2.testID;
21026
+ return /*#__PURE__*/React__default["default"].createElement(List.BasicItem, {
20693
21027
  onPress: onPress,
20694
- themeChecked: checked,
21028
+ selected: checked,
21029
+ title: text,
21030
+ suffix: /*#__PURE__*/React__default["default"].createElement(RadioCircle, {
21031
+ checked: checked,
21032
+ text: text
21033
+ }),
20695
21034
  style: style,
20696
21035
  testID: testID
20697
- }, /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
20698
- style: {
20699
- flex: 1
20700
- }
20701
- }, /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
20702
- fontSize: "large"
20703
- }, text)), /*#__PURE__*/React__default["default"].createElement(Circle, {
20704
- themeChecked: checked
20705
- }, checked && /*#__PURE__*/React__default["default"].createElement(InnerCircle, {
20706
- testID: "".concat(text, "-selected-circle")
20707
- })));
21036
+ });
20708
21037
  };
20709
21038
 
20710
21039
  function getKey(option, index, keyExtractor) {
@@ -21095,6 +21424,8 @@ function MultiSelect(_ref) {
21095
21424
  onPress: function onPress() {
21096
21425
  return setOpen(true);
21097
21426
  }
21427
+ }, /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
21428
+ pointerEvents: "none"
21098
21429
  }, /*#__PURE__*/React__default["default"].createElement(TextInput, {
21099
21430
  label: label,
21100
21431
  value: displayedValue,
@@ -21108,7 +21439,7 @@ function MultiSelect(_ref) {
21108
21439
  pointerEvents: "none",
21109
21440
  style: style,
21110
21441
  testID: testID
21111
- }))), /*#__PURE__*/React__default["default"].createElement(BottomSheet, {
21442
+ })))), /*#__PURE__*/React__default["default"].createElement(BottomSheet, {
21112
21443
  open: open,
21113
21444
  onRequestClose: function onRequestClose() {
21114
21445
  return setOpen(false);
@@ -21249,6 +21580,8 @@ var SingleSelect = function SingleSelect(_ref) {
21249
21580
  onPress: function onPress() {
21250
21581
  return setOpen(true);
21251
21582
  }
21583
+ }, /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
21584
+ pointerEvents: "none"
21252
21585
  }, /*#__PURE__*/React__default["default"].createElement(TextInput, {
21253
21586
  label: label,
21254
21587
  value: displayedValue,
@@ -21262,7 +21595,7 @@ var SingleSelect = function SingleSelect(_ref) {
21262
21595
  pointerEvents: "none",
21263
21596
  style: style,
21264
21597
  testID: testID
21265
- }))), /*#__PURE__*/React__default["default"].createElement(BottomSheet, {
21598
+ })))), /*#__PURE__*/React__default["default"].createElement(BottomSheet, {
21266
21599
  open: open,
21267
21600
  onRequestClose: function onRequestClose() {
21268
21601
  return setOpen(false);
@@ -21298,43 +21631,21 @@ var index$3 = Object.assign(SingleSelect, {
21298
21631
 
21299
21632
  var StyledWrapper = index$7(reactNative.View)(function (_ref) {
21300
21633
  var theme = _ref.theme,
21301
- themeChecked = _ref.themeChecked,
21634
+ themeVariant = _ref.themeVariant,
21302
21635
  themeSize = _ref.themeSize;
21303
21636
  return {
21304
21637
  height: theme.__hd__["switch"].heights[themeSize],
21305
21638
  width: theme.__hd__["switch"].widths[themeSize],
21306
21639
  paddingHorizontal: theme.__hd__["switch"].spaces[themeSize],
21307
21640
  borderRadius: theme.__hd__["switch"].radii.rounded,
21308
- backgroundColor: themeChecked ? theme.__hd__["switch"].colors.active : theme.__hd__["switch"].colors.inactive
21309
- };
21310
- });
21311
- var StyledDisabledWrapper = index$7(reactNative.View)(function (_ref2) {
21312
- var theme = _ref2.theme,
21313
- themeSize = _ref2.themeSize;
21314
- return {
21315
- position: 'absolute',
21316
- height: theme.__hd__["switch"].heights[themeSize],
21317
- width: theme.__hd__["switch"].widths[themeSize],
21318
- borderRadius: theme.__hd__["switch"].radii.rounded,
21319
- backgroundColor: theme.__hd__["switch"].colors.thumb,
21320
- zIndex: 9999,
21321
- opacity: 0.8
21322
- };
21323
- });
21324
- var StyledThumbWrapper = index$7(reactNative.View)(function (_ref3) {
21325
- var theme = _ref3.theme,
21326
- themeSize = _ref3.themeSize;
21327
- return {
21328
- height: theme.__hd__["switch"].heights[themeSize],
21329
- width: theme.__hd__["switch"].widths[themeSize],
21330
- borderRadius: theme.__hd__["switch"].radii.rounded,
21641
+ backgroundColor: theme.__hd__["switch"].colors.backgroundColors[themeVariant],
21331
21642
  display: 'flex',
21332
21643
  justifyContent: 'center'
21333
21644
  };
21334
21645
  });
21335
- var StyledKnot = index$7(reactNative.Animated.View)(function (_ref4) {
21336
- var theme = _ref4.theme,
21337
- themeSize = _ref4.themeSize;
21646
+ var StyledKnot = index$7(reactNative.Animated.View)(function (_ref2) {
21647
+ var theme = _ref2.theme,
21648
+ themeSize = _ref2.themeSize;
21338
21649
  return {
21339
21650
  width: theme.__hd__["switch"].thumbSizes[themeSize],
21340
21651
  height: theme.__hd__["switch"].thumbSizes[themeSize],
@@ -21343,16 +21654,32 @@ var StyledKnot = index$7(reactNative.Animated.View)(function (_ref4) {
21343
21654
  };
21344
21655
  });
21345
21656
 
21346
- var Switch = function Switch(_ref) {
21347
- var _ref$size = _ref.size,
21348
- size = _ref$size === void 0 ? 'medium' : _ref$size,
21349
- _ref$disabled = _ref.disabled,
21350
- disabled = _ref$disabled === void 0 ? false : _ref$disabled,
21351
- checked = _ref.checked,
21352
- onPress = _ref.onPress,
21353
- style = _ref.style,
21354
- testID = _ref.testID;
21657
+ var getVariant = function getVariant(_ref) {
21658
+ var disabled = _ref.disabled,
21659
+ checked = _ref.checked;
21660
+
21661
+ if (disabled) {
21662
+ return checked ? 'disabled-checked' : 'disabled-unchecked';
21663
+ }
21664
+
21665
+ return checked ? 'checked' : 'unchecked';
21666
+ };
21667
+
21668
+ var Switch = function Switch(_ref2) {
21669
+ var _ref2$size = _ref2.size,
21670
+ size = _ref2$size === void 0 ? 'medium' : _ref2$size,
21671
+ _ref2$disabled = _ref2.disabled,
21672
+ disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
21673
+ _ref2$checked = _ref2.checked,
21674
+ checked = _ref2$checked === void 0 ? false : _ref2$checked,
21675
+ onPress = _ref2.onPress,
21676
+ style = _ref2.style,
21677
+ testID = _ref2.testID;
21355
21678
  var theme = useTheme$1();
21679
+ var variant = getVariant({
21680
+ disabled: disabled,
21681
+ checked: checked
21682
+ });
21356
21683
  var offset = checked ? theme.__hd__["switch"].widths[size] - theme.__hd__["switch"].thumbSizes[size] - theme.__hd__["switch"].spaces[size] * 2 : theme.__hd__["switch"].spaces.inactive;
21357
21684
 
21358
21685
  var _useState = React.useState(function () {
@@ -21373,19 +21700,15 @@ var Switch = function Switch(_ref) {
21373
21700
  onPress: onPress,
21374
21701
  disabled: disabled
21375
21702
  }, /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
21376
- themeChecked: checked,
21703
+ themeVariant: variant,
21377
21704
  themeSize: size,
21378
21705
  style: style
21379
- }, disabled && /*#__PURE__*/React__default["default"].createElement(StyledDisabledWrapper, {
21380
- themeSize: size
21381
- }), /*#__PURE__*/React__default["default"].createElement(StyledThumbWrapper, {
21382
- themeSize: size
21383
21706
  }, /*#__PURE__*/React__default["default"].createElement(StyledKnot, {
21384
21707
  themeSize: size,
21385
21708
  style: {
21386
21709
  left: animatedOffset
21387
21710
  }
21388
- }))));
21711
+ })));
21389
21712
  };
21390
21713
 
21391
21714
  var AnimatedPagerView = reactNative.Animated.createAnimatedComponent(PagerView__default["default"]);
@@ -21430,6 +21753,10 @@ var StyledIndicator = index$7(reactNative.Animated.View)(function (_ref3) {
21430
21753
  bottom: 0
21431
21754
  };
21432
21755
  });
21756
+ var StyledBadgeWrapper = index$7(reactNative.View)({
21757
+ flexDirection: 'row',
21758
+ alignItems: 'center'
21759
+ });
21433
21760
 
21434
21761
  var ActiveTabIndicator = function ActiveTabIndicator(_ref) {
21435
21762
  var scrollOffsetAnimatedValue = _ref.scrollOffsetAnimatedValue,
@@ -21472,16 +21799,16 @@ var HeaderTabWrapper = index$7(reactNative.View)(function (_ref) {
21472
21799
  };
21473
21800
  });
21474
21801
  var HeaderTabItem = index$7(reactNative.Animated.View)(function (_ref2) {
21475
- var theme = _ref2.theme;
21802
+ var theme = _ref2.theme,
21803
+ isFirstItem = _ref2.isFirstItem;
21476
21804
  return {
21477
- paddingHorizontal: theme.__hd__.tabs.space.itemHorizontalPadding,
21805
+ marginLeft: isFirstItem ? 0 : theme.__hd__.tabs.space.itemMargin,
21478
21806
  paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
21479
21807
  };
21480
21808
  });
21481
21809
  var HeaderTabItemOutlineWrapper = index$7(reactNative.View)(function (_ref3) {
21482
21810
  var theme = _ref3.theme;
21483
21811
  return _objectSpread2({
21484
- paddingHorizontal: theme.__hd__.tabs.space.itemHorizontalPadding,
21485
21812
  paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
21486
21813
  }, reactNative.StyleSheet.absoluteFillObject);
21487
21814
  });
@@ -21512,6 +21839,47 @@ var useAnimatedValueArray = function useAnimatedValueArray(initialValues) {
21512
21839
  return refs.current;
21513
21840
  };
21514
21841
 
21842
+ var TabWithBadge = function TabWithBadge(_ref) {
21843
+ var showBadge = _ref.showBadge,
21844
+ config = _ref.config,
21845
+ tabItem = _ref.tabItem;
21846
+ var theme = useTheme$1(); // Deprecated. To be removed.
21847
+
21848
+ if (showBadge !== undefined) {
21849
+ return /*#__PURE__*/React__default["default"].createElement(Badge$1.Status, {
21850
+ testID: "deprecated-badge",
21851
+ visible: showBadge,
21852
+ style: {
21853
+ paddingHorizontal: theme.space.small
21854
+ }
21855
+ }, tabItem);
21856
+ }
21857
+
21858
+ if (!config) return /*#__PURE__*/React__default["default"].createElement(reactNative.View, null, tabItem);
21859
+
21860
+ if (config.type === 'status') {
21861
+ return /*#__PURE__*/React__default["default"].createElement(Badge$1.Status, {
21862
+ visible: true,
21863
+ style: {
21864
+ paddingHorizontal: theme.space.xsmall
21865
+ }
21866
+ }, tabItem);
21867
+ }
21868
+
21869
+ if (config.type === 'counter') {
21870
+ return /*#__PURE__*/React__default["default"].createElement(StyledBadgeWrapper, null, tabItem, /*#__PURE__*/React__default["default"].createElement(Badge$1, {
21871
+ content: config.value,
21872
+ max: config.max,
21873
+ intent: "info",
21874
+ style: {
21875
+ marginLeft: theme.space.xsmall
21876
+ }
21877
+ }));
21878
+ }
21879
+
21880
+ return /*#__PURE__*/React__default["default"].createElement(reactNative.View, null, tabItem);
21881
+ };
21882
+
21515
21883
  var getTabItem$1 = function getTabItem(_ref) {
21516
21884
  var item = _ref.item,
21517
21885
  color = _ref.color,
@@ -21618,8 +21986,8 @@ var ScrollableTab = function ScrollableTab(_ref2) {
21618
21986
  testID = tab.testID,
21619
21987
  activeItem = tab.activeItem,
21620
21988
  originalInactiveItem = tab.inactiveItem,
21621
- _tab$showBadge = tab.showBadge,
21622
- showBadge = _tab$showBadge === void 0 ? false : _tab$showBadge;
21989
+ showBadge = tab.showBadge,
21990
+ badge = tab.badge;
21623
21991
  var active = selectedTabKey === key;
21624
21992
  var activeAnimated = tabsAnims[index];
21625
21993
  var outlineScale = active ? activeAnimated.interpolate({
@@ -21638,7 +22006,9 @@ var ScrollableTab = function ScrollableTab(_ref2) {
21638
22006
  onTabPress(key);
21639
22007
  },
21640
22008
  testID: testID
21641
- }, /*#__PURE__*/React__default["default"].createElement(HeaderTabItem, null, /*#__PURE__*/React__default["default"].createElement(HeaderTabItemOutlineWrapper, null, /*#__PURE__*/React__default["default"].createElement(HeaderTabItemOutline, {
22009
+ }, /*#__PURE__*/React__default["default"].createElement(HeaderTabItem, {
22010
+ isFirstItem: index === 0
22011
+ }, /*#__PURE__*/React__default["default"].createElement(HeaderTabItemOutlineWrapper, null, /*#__PURE__*/React__default["default"].createElement(HeaderTabItemOutline, {
21642
22012
  themeActive: active,
21643
22013
  style: {
21644
22014
  flex: 1,
@@ -21646,9 +22016,11 @@ var ScrollableTab = function ScrollableTab(_ref2) {
21646
22016
  scaleX: outlineScale
21647
22017
  }]
21648
22018
  }
21649
- })), /*#__PURE__*/React__default["default"].createElement(HeaderTabItemWrapper, null, /*#__PURE__*/React__default["default"].createElement(Badge$1.Status, {
21650
- visible: showBadge
21651
- }, tabItem))));
22019
+ })), /*#__PURE__*/React__default["default"].createElement(HeaderTabItemWrapper, null, /*#__PURE__*/React__default["default"].createElement(TabWithBadge, {
22020
+ showBadge: showBadge,
22021
+ config: badge,
22022
+ tabItem: tabItem
22023
+ }))));
21652
22024
  }
21653
22025
  })), /*#__PURE__*/React__default["default"].createElement(ContentWrapper, {
21654
22026
  initialPage: selectedTabIndex,
@@ -21747,8 +22119,8 @@ var Tabs = function Tabs(_ref2) {
21747
22119
  testID = tab.testID,
21748
22120
  activeItem = tab.activeItem,
21749
22121
  originalInactiveItem = tab.inactiveItem,
21750
- _tab$showBadge = tab.showBadge,
21751
- showBadge = _tab$showBadge === void 0 ? false : _tab$showBadge;
22122
+ showBadge = tab.showBadge,
22123
+ badge = tab.badge;
21752
22124
  var active = selectedTabKey === key;
21753
22125
  var inactiveItem = originalInactiveItem !== null && originalInactiveItem !== void 0 ? originalInactiveItem : activeItem;
21754
22126
  var tabItem = getTabItem({
@@ -21762,9 +22134,11 @@ var Tabs = function Tabs(_ref2) {
21762
22134
  onTabPress(key);
21763
22135
  },
21764
22136
  testID: testID
21765
- }, /*#__PURE__*/React__default["default"].createElement(HeaderTabItem$1, null, /*#__PURE__*/React__default["default"].createElement(Badge$1.Status, {
21766
- visible: showBadge
21767
- }, tabItem)));
22137
+ }, /*#__PURE__*/React__default["default"].createElement(HeaderTabItem$1, null, /*#__PURE__*/React__default["default"].createElement(TabWithBadge, {
22138
+ showBadge: showBadge,
22139
+ config: badge,
22140
+ tabItem: tabItem
22141
+ })));
21768
22142
  })), /*#__PURE__*/React__default["default"].createElement(ActiveTabIndicator, {
21769
22143
  positionAnimatedValue: positionAnimatedValue,
21770
22144
  scrollOffsetAnimatedValue: scrollOffsetAnimatedValue,
@@ -21810,15 +22184,6 @@ var index$2 = Object.assign(Tabs, {
21810
22184
  Scroll: ScrollableTab
21811
22185
  });
21812
22186
 
21813
- var BACKGROUND_INTENTS = {
21814
- "default": 'defaultBackground',
21815
- primary: 'primaryBackground',
21816
- info: 'infoBackground',
21817
- success: 'successBackground',
21818
- warning: 'warningBackground',
21819
- danger: 'dangerBackground',
21820
- archived: 'archivedBackground'
21821
- };
21822
22187
  var StyledView = index$7(reactNative.View)(function (_ref) {
21823
22188
  var themeIntent = _ref.themeIntent,
21824
22189
  theme = _ref.theme;
@@ -21828,7 +22193,7 @@ var StyledView = index$7(reactNative.View)(function (_ref) {
21828
22193
  paddingVertical: theme.__hd__.tag.space.verticalPadding,
21829
22194
  paddingHorizontal: theme.__hd__.tag.space.horizontalPadding,
21830
22195
  borderColor: theme.__hd__.tag.colors[themeIntent],
21831
- backgroundColor: theme.__hd__.tag.colors[BACKGROUND_INTENTS[themeIntent]]
22196
+ backgroundColor: theme.__hd__.tag.colors["".concat(themeIntent, "Background")]
21832
22197
  };
21833
22198
  });
21834
22199
  var StyledText = index$7(reactNative.Text)(function (_ref2) {
@@ -21849,7 +22214,7 @@ var _excluded = ["content", "intent", "style", "testID"];
21849
22214
  var Tag = function Tag(_ref) {
21850
22215
  var content = _ref.content,
21851
22216
  _ref$intent = _ref.intent,
21852
- intent = _ref$intent === void 0 ? 'default' : _ref$intent,
22217
+ intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
21853
22218
  style = _ref.style,
21854
22219
  testID = _ref.testID,
21855
22220
  nativeProps = _objectWithoutProperties(_ref, _excluded);
@@ -22025,8 +22390,8 @@ var ToastContainerWrapper = index$7(reactNative.View)(function (_ref) {
22025
22390
  var theme = _ref.theme,
22026
22391
  position = _ref.position;
22027
22392
  return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
22028
- paddingHorizontal: theme.__hd__.toast.space.largePadding,
22029
- paddingVertical: theme.__hd__.toast.space.mediumPadding,
22393
+ paddingHorizontal: theme.__hd__.toast.space.wrapperVerticalPadding,
22394
+ paddingVertical: theme.__hd__.toast.space.wrapperHorizontalPadding,
22030
22395
  flexDirection: position === 'bottom' ? 'column-reverse' : 'column',
22031
22396
  elevation: 9999
22032
22397
  });
@@ -22039,20 +22404,25 @@ var Container = index$7(reactNative.Animated.View)(function (_ref2) {
22039
22404
  borderRadius: themeVariant === 'round' ? theme.__hd__.toast.radii["default"] : 0,
22040
22405
  backgroundColor: theme.__hd__.toast.colors[themeIntent],
22041
22406
  minHeight: theme.__hd__.toast.sizes.height,
22042
- flexDirection: 'row'
22407
+ flexDirection: 'row',
22408
+ shadowColor: theme.__hd__.toast.colors.shadow,
22409
+ shadowOffset: theme.__hd__.toast.shadows.offset,
22410
+ shadowRadius: theme.__hd__.toast.shadows.radius,
22411
+ shadowOpacity: theme.__hd__.toast.shadows.opacity,
22412
+ elevation: theme.__hd__.toast.shadows.elevation
22043
22413
  };
22044
22414
  });
22045
22415
  var IconContainer = index$7(reactNative.View)(function (_ref3) {
22046
22416
  var theme = _ref3.theme;
22047
22417
  return {
22048
22418
  alignItems: 'center',
22049
- paddingLeft: theme.__hd__.toast.space.mediumPadding
22419
+ paddingLeft: theme.__hd__.toast.space.iconLeftPadding
22050
22420
  };
22051
22421
  });
22052
22422
  var TextContainer = index$7(reactNative.View)(function (_ref4) {
22053
22423
  var theme = _ref4.theme;
22054
22424
  return {
22055
- paddingHorizontal: theme.__hd__.toast.space.mediumPadding,
22425
+ paddingHorizontal: theme.__hd__.toast.space.textHorizontalPadding,
22056
22426
  flex: 1
22057
22427
  };
22058
22428
  });
@@ -22060,7 +22430,7 @@ var ContentContainer = index$7(reactNative.View)(function (_ref5) {
22060
22430
  var theme = _ref5.theme,
22061
22431
  showDivider = _ref5.showDivider;
22062
22432
  return {
22063
- paddingVertical: theme.__hd__.toast.space.mediumPadding,
22433
+ paddingVertical: theme.__hd__.toast.space.contentVerticalPadding,
22064
22434
  flex: 1,
22065
22435
  borderRightWidth: showDivider ? theme.__hd__.toast.borderWidths.base : 0,
22066
22436
  borderColor: theme.__hd__.toast.colors.divider,
@@ -22070,7 +22440,7 @@ var ContentContainer = index$7(reactNative.View)(function (_ref5) {
22070
22440
  var CTAWrapper = index$7(reactNative.TouchableOpacity)(function (_ref6) {
22071
22441
  var theme = _ref6.theme;
22072
22442
  return {
22073
- paddingHorizontal: theme.__hd__.alert.space.padding,
22443
+ paddingHorizontal: theme.__hd__.toast.space.ctaPadding,
22074
22444
  justifyContent: 'center'
22075
22445
  };
22076
22446
  });
@@ -22097,24 +22467,39 @@ var getIntentIcon = function getIntentIcon(intent) {
22097
22467
 
22098
22468
  case 'error':
22099
22469
  return 'circle-warning';
22470
+
22471
+ default:
22472
+ return undefined;
22100
22473
  }
22101
22474
  };
22102
22475
 
22103
- var Toast$1 = function Toast(_ref) {
22104
- var content = _ref.content,
22105
- icon = _ref.icon,
22106
- _ref$variant = _ref.variant,
22107
- variant = _ref$variant === void 0 ? 'default' : _ref$variant,
22108
- _ref$intent = _ref.intent,
22109
- intent = _ref$intent === void 0 ? 'info' : _ref$intent,
22110
- style = _ref.style,
22111
- _ref$duration = _ref.duration,
22112
- duration = _ref$duration === void 0 ? 2000 : _ref$duration,
22113
- _ref$autoDismiss = _ref.autoDismiss,
22114
- autoDismiss = _ref$autoDismiss === void 0 ? true : _ref$autoDismiss,
22115
- onAction = _ref.onAction,
22116
- actionLabel = _ref.actionLabel,
22117
- onDismiss = _ref.onDismiss;
22476
+ var ToastIcon = function ToastIcon(_ref) {
22477
+ var themeIntent = _ref.themeIntent,
22478
+ icon = _ref.icon;
22479
+ return icon ? /*#__PURE__*/React__default["default"].createElement(IconContainer, {
22480
+ testID: "toast-left-icon"
22481
+ }, /*#__PURE__*/React__default["default"].createElement(Icon, {
22482
+ icon: icon,
22483
+ size: "small",
22484
+ intent: themeIntent === 'snackbar' ? 'text-inverted' : 'text'
22485
+ })) : null;
22486
+ };
22487
+
22488
+ var Toast$1 = function Toast(_ref2) {
22489
+ var content = _ref2.content,
22490
+ icon = _ref2.icon,
22491
+ _ref2$variant = _ref2.variant,
22492
+ variant = _ref2$variant === void 0 ? 'default' : _ref2$variant,
22493
+ _ref2$intent = _ref2.intent,
22494
+ intent = _ref2$intent === void 0 ? 'info' : _ref2$intent,
22495
+ style = _ref2.style,
22496
+ _ref2$duration = _ref2.duration,
22497
+ duration = _ref2$duration === void 0 ? 2000 : _ref2$duration,
22498
+ _ref2$autoDismiss = _ref2.autoDismiss,
22499
+ autoDismiss = _ref2$autoDismiss === void 0 ? true : _ref2$autoDismiss,
22500
+ onAction = _ref2.onAction,
22501
+ actionLabel = _ref2.actionLabel,
22502
+ onDismiss = _ref2.onDismiss;
22118
22503
  var animatedValue = React.useRef(new reactNative.Animated.Value(0)).current;
22119
22504
  var toastConfig = useToastConfig();
22120
22505
  React.useEffect(function () {
@@ -22158,19 +22543,20 @@ var Toast$1 = function Toast(_ref) {
22158
22543
  }]
22159
22544
  }, /*#__PURE__*/React__default["default"].createElement(ContentContainer, {
22160
22545
  showDivider: !!actionLabel
22161
- }, icon !== null ? /*#__PURE__*/React__default["default"].createElement(IconContainer, {
22162
- testID: "toast-left-icon"
22163
- }, /*#__PURE__*/React__default["default"].createElement(Icon, {
22164
- icon: icon || getIntentIcon(intent),
22165
- size: "small"
22166
- })) : null, /*#__PURE__*/React__default["default"].createElement(TextContainer, null, typeof content === 'string' ? /*#__PURE__*/React__default["default"].createElement(Typography.Text, null, content) : content)), actionLabel ? /*#__PURE__*/React__default["default"].createElement(CTAWrapper, {
22546
+ }, icon !== null ? /*#__PURE__*/React__default["default"].createElement(ToastIcon, {
22547
+ themeIntent: intent,
22548
+ icon: icon || getIntentIcon(intent)
22549
+ }) : null, /*#__PURE__*/React__default["default"].createElement(TextContainer, null, typeof content === 'string' ? /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
22550
+ intent: intent === 'snackbar' ? 'inverted' : 'body'
22551
+ }, content) : content)), actionLabel ? /*#__PURE__*/React__default["default"].createElement(CTAWrapper, {
22167
22552
  testID: "toast-action-button",
22168
22553
  onPress: function onPress() {
22169
22554
  onAction === null || onAction === void 0 ? void 0 : onAction();
22170
22555
  onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss();
22171
22556
  }
22172
22557
  }, typeof actionLabel === 'string' ? /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
22173
- fontWeight: "semi-bold"
22558
+ fontWeight: "semi-bold",
22559
+ intent: intent === 'snackbar' ? 'inverted' : 'body'
22174
22560
  }, actionLabel) : actionLabel) : null);
22175
22561
  };
22176
22562
 
@@ -22293,13 +22679,17 @@ var ToastProvider = function ToastProvider(_ref) {
22293
22679
  }, [displayType, position]);
22294
22680
  return /*#__PURE__*/React__default["default"].createElement(ToastContext.Provider, {
22295
22681
  value: refState
22682
+ }, /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
22683
+ style: {
22684
+ flex: 1
22685
+ }
22296
22686
  }, children, /*#__PURE__*/React__default["default"].createElement(ToastConfigContext.Provider, {
22297
22687
  value: config
22298
22688
  }, /*#__PURE__*/React__default["default"].createElement(ToastContainer, {
22299
22689
  ref: toastRef,
22300
22690
  displayType: displayType,
22301
22691
  position: position
22302
- })));
22692
+ }))));
22303
22693
  };
22304
22694
 
22305
22695
  var Toast = {
@@ -40688,10 +41078,11 @@ exports.Avatar = Avatar;
40688
41078
  exports.Badge = Badge$1;
40689
41079
  exports.BottomNavigation = BottomNavigation;
40690
41080
  exports.BottomSheet = BottomSheet;
41081
+ exports.Box = Box;
40691
41082
  exports.Button = CompoundButton;
40692
41083
  exports.Calendar = Calendar;
40693
41084
  exports.Card = index$6;
40694
- exports.Checkbox = CheckBox;
41085
+ exports.Checkbox = Checkbox;
40695
41086
  exports.Collapse = Collapse;
40696
41087
  exports.ContentNavigator = ContentNavigator;
40697
41088
  exports.DatePicker = DatePicker;