@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/es/index.js CHANGED
@@ -990,11 +990,11 @@ var STEPS = [5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85,
990
990
 
991
991
  var createColorScales = function createColorScales(base) {
992
992
  var colorValues = new Values$1(base);
993
- return _objectSpread2(_objectSpread2({}, STEPS.reduce(function (acc, step) {
994
- var _objectSpread2$1;
993
+ return Object.assign(Object.assign({}, STEPS.reduce(function (acc, step) {
994
+ var _Object$assign;
995
995
 
996
- 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));
997
- }, {})), {}, {
996
+ 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));
997
+ }, {})), {
998
998
  base: colorValues.hexString()
999
999
  });
1000
1000
  };
@@ -1036,7 +1036,7 @@ var BASE_COLORS = {
1036
1036
  violet1: '#8505a2',
1037
1037
  mauve: '#c38cee',
1038
1038
  yellow: '#fadb14',
1039
- seashell: '#ebf4ff',
1039
+ seashell: '#fff6eb',
1040
1040
  gold: '#ffd500'
1041
1041
  };
1042
1042
  var colorScales = Object.entries(BASE_COLORS).reduce(function (acc, _ref16) {
@@ -1044,7 +1044,7 @@ var colorScales = Object.entries(BASE_COLORS).reduce(function (acc, _ref16) {
1044
1044
  key = _ref17[0],
1045
1045
  value = _ref17[1];
1046
1046
 
1047
- return _objectSpread2(_objectSpread2({}, acc), {}, _defineProperty({}, key, createColorScales(value)));
1047
+ return Object.assign(Object.assign({}, acc), _defineProperty({}, key, createColorScales(value)));
1048
1048
  }, {});
1049
1049
  var blue$1 = colorScales.blue,
1050
1050
  ultramarineBlue$1 = colorScales.ultramarineBlue,
@@ -1200,9 +1200,8 @@ var emerald = colorScales.emerald,
1200
1200
  peach = colorScales.peach,
1201
1201
  vermilion = colorScales.vermilion,
1202
1202
  pastelRed = colorScales.pastelRed,
1203
- mauve = colorScales.mauve;
1204
-
1205
- _objectSpread2(_objectSpread2({}, palette$5), {}, {
1203
+ mauve$1 = colorScales.mauve;
1204
+ Object.assign(Object.assign({}, palette$5), {
1206
1205
  nightBlue: nightBlue.base,
1207
1206
  blueLight60: blue1.lighten60,
1208
1207
  blue: blue1.base,
@@ -1219,21 +1218,18 @@ _objectSpread2(_objectSpread2({}, palette$5), {}, {
1219
1218
  peachLight75: peach.lighten75,
1220
1219
  red: vermilion.base,
1221
1220
  pastelRed: pastelRed.base,
1222
- mauve: mauve.base
1221
+ mauve: mauve$1.base
1223
1222
  });
1224
-
1225
1223
  var apple = colorScales.apple,
1226
1224
  currant = colorScales.currant;
1227
-
1228
- _objectSpread2(_objectSpread2({}, palette$5), {}, {
1225
+ Object.assign(Object.assign({}, palette$5), {
1229
1226
  apple: apple.base,
1230
1227
  currant: currant.base
1231
1228
  });
1232
-
1233
1229
  var scarletGum = colorScales.scarletGum,
1234
- violet1 = colorScales.violet1;
1235
-
1236
- var palette$2 = _objectSpread2(_objectSpread2({}, palette$5), {}, {
1230
+ violet1 = colorScales.violet1,
1231
+ mauve = colorScales.mauve;
1232
+ var palette$2 = Object.assign(Object.assign({}, palette$5), {
1237
1233
  scarletGumLight30: scarletGum.lighten30,
1238
1234
  scarletGumLight50: scarletGum.lighten50,
1239
1235
  scarletGumLight80: scarletGum.lighten80,
@@ -1243,14 +1239,13 @@ var palette$2 = _objectSpread2(_objectSpread2({}, palette$5), {}, {
1243
1239
  violetLight50: violet1.lighten50,
1244
1240
  violetLight80: violet1.lighten80,
1245
1241
  violetLight90: violet1.lighten90,
1246
- violet: violet1.base
1242
+ violet: violet1.base,
1243
+ mauve: mauve.base
1247
1244
  });
1248
-
1249
1245
  var jordyBlue = colorScales.jordyBlue,
1250
1246
  cornflowerBlue = colorScales.cornflowerBlue,
1251
1247
  paua = colorScales.paua;
1252
-
1253
- _objectSpread2(_objectSpread2({}, palette$5), {}, {
1248
+ Object.assign(Object.assign({}, palette$5), {
1254
1249
  jordyBlueLight30: jordyBlue.lighten30,
1255
1250
  jordyBlueLight50: jordyBlue.lighten50,
1256
1251
  jordyBlueLight70: jordyBlue.lighten70,
@@ -1259,10 +1254,8 @@ _objectSpread2(_objectSpread2({}, palette$5), {}, {
1259
1254
  cornflowerBlue: cornflowerBlue.base,
1260
1255
  paua: paua.base
1261
1256
  });
1262
-
1263
1257
  var gold$1 = colorScales.gold;
1264
-
1265
- var palette = _objectSpread2(_objectSpread2({}, palette$5), {}, {
1258
+ var palette = Object.assign(Object.assign({}, palette$5), {
1266
1259
  goldLight20: gold$1.lighten20,
1267
1260
  goldLight50: gold$1.lighten50,
1268
1261
  goldLight70: gold$1.lighten70,
@@ -1313,15 +1306,35 @@ var swagSystemPalette = {
1313
1306
  archivedBackground: palette$5.greyLight90,
1314
1307
  black: palette$5.black,
1315
1308
  inactiveBackground: palette$5.maasstrichtBlueLight50,
1316
- shadow: palette$5.greyLight45 // waiting for new color
1317
-
1309
+ shadow: palette$5.greyLight45,
1310
+ __alpha__globalPrimary: palette$5.maasstrichtBlue,
1311
+ __alpha__globalSecondary1: palette$5.maasstrichtBlueLight30,
1312
+ __alpha__globalNeutral3: palette$5.greyLight90,
1313
+ __alpha__globalLabel1: palette$5.vermilion,
1314
+ __alpha__globalLabel2: palette$5.deepSaffron,
1315
+ __alpha__globalLabel3: palette$5.pineGreen,
1316
+ __alpha__globalLabel4: palette$5.ultramarineBlue,
1317
+ __alpha__globalLabel5: palette$5.sonicSilver,
1318
+ __alpha__globalLabel6: palette$5.linen,
1319
+ __alpha__globalLabel7: palette$5.seashell,
1320
+ __alpha__globalLabel8: palette$5.honeydew,
1321
+ __alpha__globalLabel9: palette$5.aliceBlue,
1322
+ __alpha__primary2: palette$2.mauve,
1323
+ __alpha__secondary1: palette$2.scarletGumLight30,
1324
+ __alpha__secondary2: palette$2.scarletGumLight50,
1325
+ __alpha__secondary3: palette$2.scarletGumLight80,
1326
+ __alpha__secondary4: palette$2.scarletGumLight90
1318
1327
  };
1319
1328
 
1320
1329
  var workSystemPalette = _objectSpread2(_objectSpread2({}, swagSystemPalette), {}, {
1321
1330
  primary: palette.gold,
1322
1331
  primaryLight: palette.goldLight50,
1323
1332
  primaryDark: palette.goldLight20,
1324
- primaryBackground: palette.goldLight90
1333
+ primaryBackground: palette.goldLight90,
1334
+ __alpha__secondary1: palette.goldLight20,
1335
+ __alpha__secondary2: palette.goldLight50,
1336
+ __alpha__secondary3: palette.goldLight70,
1337
+ __alpha__secondary4: palette.goldLight90
1325
1338
  });
1326
1339
 
1327
1340
  var BASE_WIDTH = 390; // Based on iPhone 13's viewport size
@@ -1473,13 +1486,17 @@ var getAlertTheme = function getAlertTheme(theme) {
1473
1486
  warning: theme.colors.warning,
1474
1487
  error: theme.colors.dangerLight,
1475
1488
  info: theme.colors.infoLight,
1489
+ notification: theme.colors.platformBackground,
1476
1490
  divider: theme.colors.outline
1477
1491
  };
1478
1492
  var sizes = {
1479
1493
  height: scale(48)
1480
1494
  };
1481
1495
  var space = {
1482
- padding: theme.space.medium
1496
+ contentPaddingHorizontal: theme.space.smallMedium,
1497
+ textPaddingHorizontal: theme.space.smallMedium,
1498
+ iconLeftPadding: theme.space.smallMedium,
1499
+ ctaPadding: theme.space.smallMedium
1483
1500
  };
1484
1501
  var radii = {
1485
1502
  "default": theme.radii.xlarge
@@ -1511,7 +1528,8 @@ var getAvatarTheme = function getAvatarTheme(theme) {
1511
1528
  xlarge: theme.space.xxxxlarge,
1512
1529
  xxlarge: theme.space.xlarge * 2,
1513
1530
  xxxlarge: theme.space.xxlarge * 2,
1514
- xxxxlarge: theme.space.xxxlarge * 2
1531
+ xxxxlarge: theme.space.xxxlarge * 2,
1532
+ xxxxxlarge: theme.space.small * 17
1515
1533
  };
1516
1534
  var fontSizes = {
1517
1535
  small: theme.fontSizes.large,
@@ -1520,7 +1538,8 @@ var getAvatarTheme = function getAvatarTheme(theme) {
1520
1538
  xlarge: theme.fontSizes.xxxlarge,
1521
1539
  xxlarge: theme.space.medium * 2,
1522
1540
  xxxlarge: theme.space.large * 1.5,
1523
- xxxxlarge: theme.space.xlarge * 1.5
1541
+ xxxxlarge: theme.space.xlarge * 1.5,
1542
+ xxxxxlarge: theme.space.xxlarge * 1.5
1524
1543
  };
1525
1544
  var radii = {
1526
1545
  rounded: theme.radii.rounded
@@ -1738,13 +1757,12 @@ var getCalendarTheme = function getCalendarTheme(theme) {
1738
1757
  var getCardTheme = function getCardTheme(theme) {
1739
1758
  var colors = {
1740
1759
  dataCardIndicator: theme.colors.primary,
1741
- indicator: {
1742
- archived: theme.colors.archivedLight,
1743
- info: theme.colors.infoLight,
1744
- success: theme.colors.success,
1745
- warning: theme.colors.warning,
1746
- danger: theme.colors.dangerMediumLight
1747
- }
1760
+ primary: theme.colors.__alpha__primary2,
1761
+ info: theme.colors.infoLight,
1762
+ success: theme.colors.success,
1763
+ warning: theme.colors.warning,
1764
+ danger: theme.colors.dangerMediumLight,
1765
+ archived: theme.colors.archivedLight
1748
1766
  };
1749
1767
  var sizes = {
1750
1768
  indicatorWidth: theme.space.medium
@@ -1761,23 +1779,26 @@ var getCardTheme = function getCardTheme(theme) {
1761
1779
 
1762
1780
  var getCheckboxTheme = function getCheckboxTheme(theme) {
1763
1781
  var colors = {
1764
- borderColor: theme.colors.primary,
1765
- text: theme.colors.invertedText,
1766
- disabled: theme.colors.inactiveBackground
1782
+ "default": theme.colors.globalPrimary,
1783
+ disabledBorder: theme.colors.globalPrimaryLight
1767
1784
  };
1768
1785
  var space = {
1769
1786
  // to remove the empty space above the check icon
1770
1787
  // and also to center the check mark
1771
- iconTop: -theme.space.xsmall
1788
+ iconTop: -scale(3),
1789
+ wrapperPadding: theme.space.medium,
1790
+ iconDescriptionPadding: theme.space.smallMedium
1772
1791
  };
1773
1792
  var sizes = {
1774
- base: theme.space.large
1793
+ icon: scale(20)
1775
1794
  };
1776
1795
  var radii = {
1777
- base: theme.radii.base
1796
+ wrapper: theme.radii.medium,
1797
+ icon: theme.radii.base
1778
1798
  };
1779
1799
  var borderWidths = {
1780
- "default": theme.borderWidths.medium
1800
+ wrapper: theme.borderWidths.base,
1801
+ icon: theme.borderWidths.medium
1781
1802
  };
1782
1803
  return {
1783
1804
  colors: colors,
@@ -2007,11 +2028,12 @@ var getListTheme = function getListTheme(theme) {
2007
2028
  cardShadow: theme.radii.base,
2008
2029
  leadingStatus: theme.radii.rounded
2009
2030
  };
2010
- var offsets = {
2011
- cardShadow: {
2031
+ var shadows = {
2032
+ cardOffset: {
2012
2033
  width: 0,
2013
2034
  height: 2
2014
- }
2035
+ },
2036
+ cardElevation: 10
2015
2037
  };
2016
2038
  var widths = {
2017
2039
  leadingStatus: 8
@@ -2025,9 +2047,9 @@ var getListTheme = function getListTheme(theme) {
2025
2047
  colors: colors,
2026
2048
  space: space,
2027
2049
  radii: radii,
2028
- offsets: offsets,
2029
2050
  widths: widths,
2030
- opacity: opacity
2051
+ opacity: opacity,
2052
+ shadows: shadows
2031
2053
  };
2032
2054
  };
2033
2055
 
@@ -2100,13 +2122,9 @@ var getProgressTheme = function getProgressTheme(theme) {
2100
2122
 
2101
2123
  var getRadioTheme = function getRadioTheme(theme) {
2102
2124
  var colors = {
2103
- circle: theme.colors.black,
2104
- checkedCircle: theme.colors.primary,
2105
- wrapper: theme.colors.platformBackground,
2106
- checkedWrapper: theme.colors.primaryBackground
2125
+ circle: theme.colors.globalPrimary
2107
2126
  };
2108
2127
  var space = {
2109
- wrapperPadding: theme.space.medium,
2110
2128
  circleLeftMargin: theme.space.small,
2111
2129
  groupTopMargin: theme.space.xsmall
2112
2130
  };
@@ -2117,15 +2135,11 @@ var getRadioTheme = function getRadioTheme(theme) {
2117
2135
  var borderWidths = {
2118
2136
  circle: theme.borderWidths.medium
2119
2137
  };
2120
- var radii = {
2121
- wrapper: theme.radii.base
2122
- };
2123
2138
  return {
2124
2139
  sizes: sizes,
2125
2140
  borderWidths: borderWidths,
2126
2141
  space: space,
2127
- colors: colors,
2128
- radii: radii
2142
+ colors: colors
2129
2143
  };
2130
2144
  };
2131
2145
 
@@ -2163,7 +2177,7 @@ var getRichTextEditorTheme = function getRichTextEditorTheme(theme) {
2163
2177
 
2164
2178
  var getSectionHeadingTheme = function getSectionHeadingTheme(theme) {
2165
2179
  var colors = {
2166
- background: theme.colors.outline
2180
+ background: theme.colors.__alpha__globalNeutral3
2167
2181
  };
2168
2182
  var space = {
2169
2183
  headingVerticalPadding: theme.space.small,
@@ -2201,19 +2215,31 @@ var getSelectTheme = function getSelectTheme(theme) {
2201
2215
  };
2202
2216
 
2203
2217
  var getSpinnerTheme = function getSpinnerTheme(theme) {
2204
- var color = {
2205
- "default": theme.colors.primary
2218
+ var colors = {
2219
+ dot1: theme.colors.__alpha__secondary1,
2220
+ dot2: theme.colors.__alpha__secondary2,
2221
+ dot3: theme.colors.__alpha__secondary3,
2222
+ dot4: theme.colors.__alpha__secondary4
2206
2223
  };
2207
2224
  var space = {
2208
- spinnerDot: theme.space.medium,
2209
- spinnerDotPadding: theme.space.small,
2210
- spinnerTextPaddingTop: theme.space.small
2225
+ spinnerDot: {
2226
+ small: theme.space.small,
2227
+ medium: theme.space.medium
2228
+ },
2229
+ spinnerDotPadding: {
2230
+ small: theme.space.xsmall,
2231
+ medium: theme.space.small
2232
+ },
2233
+ spinnerTextPaddingTop: {
2234
+ small: theme.space.xsmall,
2235
+ medium: theme.space.small
2236
+ }
2211
2237
  };
2212
2238
  var radii = {
2213
- "default": theme.radii.medium
2239
+ "default": theme.radii.rounded
2214
2240
  };
2215
2241
  return {
2216
- color: color,
2242
+ colors: colors,
2217
2243
  space: space,
2218
2244
  radii: radii
2219
2245
  };
@@ -2221,9 +2247,13 @@ var getSpinnerTheme = function getSpinnerTheme(theme) {
2221
2247
 
2222
2248
  var getSwitchTheme = function getSwitchTheme(theme) {
2223
2249
  var colors = {
2224
- thumb: theme.colors.platformBackground,
2225
- active: theme.colors.primary,
2226
- inactive: theme.colors.inactiveBackground
2250
+ backgroundColors: {
2251
+ checked: theme.colors.primary,
2252
+ unchecked: theme.colors.globalPrimaryLight,
2253
+ 'disabled-checked': theme.colors.primaryLight,
2254
+ 'disabled-unchecked': theme.colors.archived
2255
+ },
2256
+ thumb: theme.colors.platformBackground
2227
2257
  };
2228
2258
  var thumbSizes = {
2229
2259
  small: theme.space.medium,
@@ -2245,25 +2275,21 @@ var getSwitchTheme = function getSwitchTheme(theme) {
2245
2275
  var radii = {
2246
2276
  rounded: theme.radii.rounded
2247
2277
  };
2248
- var borderWidths = {
2249
- "default": theme.borderWidths.base
2250
- };
2251
2278
  return {
2252
2279
  colors: colors,
2253
2280
  thumbSizes: thumbSizes,
2254
2281
  widths: widths,
2255
2282
  heights: heights,
2256
2283
  spaces: spaces,
2257
- radii: radii,
2258
- borderWidths: borderWidths
2284
+ radii: radii
2259
2285
  };
2260
2286
  };
2261
2287
 
2262
2288
  var getTabsTheme = function getTabsTheme(theme) {
2263
2289
  var colors = {
2264
- active: theme.colors.primary,
2290
+ active: theme.colors.text,
2265
2291
  inactive: theme.colors.text,
2266
- activeBackground: theme.colors.primaryBackground,
2292
+ activeBackground: theme.colors.__alpha__secondary4,
2267
2293
  headerBottom: theme.colors.outline,
2268
2294
  text: theme.colors.text
2269
2295
  };
@@ -2271,6 +2297,7 @@ var getTabsTheme = function getTabsTheme(theme) {
2271
2297
  flatListHorizontalPadding: theme.space.small,
2272
2298
  itemHorizontalPadding: theme.space.small,
2273
2299
  itemVerticalPadding: theme.space.small,
2300
+ itemMargin: theme.space.smallMedium,
2274
2301
  outlineHorizontalPadding: theme.space.small,
2275
2302
  outlineVerticalPadding: theme.space.xsmall
2276
2303
  };
@@ -2297,20 +2324,20 @@ var getTagTheme = function getTagTheme(theme) {
2297
2324
  "default": theme.borderWidths.base
2298
2325
  };
2299
2326
  var colors = {
2300
- "default": theme.colors.text,
2327
+ "default": theme.colors.__alpha__globalPrimary,
2301
2328
  defaultBackground: undefined,
2302
- primary: theme.colors.primary,
2303
- primaryBackground: theme.colors.primaryBackground,
2304
- info: theme.colors.info,
2305
- infoBackground: theme.colors.infoBackground,
2306
- success: theme.colors.successDark,
2307
- successBackground: theme.colors.successBackground,
2308
- warning: theme.colors.warningDark,
2309
- warningBackground: theme.colors.warningBackground,
2310
- danger: theme.colors.danger,
2311
- dangerBackground: theme.colors.dangerBackground,
2312
- archived: theme.colors.archivedDark,
2313
- archivedBackground: theme.colors.archivedBackground
2329
+ primary: theme.colors.__alpha__globalPrimary,
2330
+ primaryBackground: undefined,
2331
+ info: theme.colors.__alpha__globalLabel4,
2332
+ infoBackground: theme.colors.__alpha__globalLabel9,
2333
+ success: theme.colors.__alpha__globalLabel3,
2334
+ successBackground: theme.colors.__alpha__globalLabel8,
2335
+ warning: theme.colors.__alpha__globalLabel2,
2336
+ warningBackground: theme.colors.__alpha__globalLabel7,
2337
+ danger: theme.colors.__alpha__globalLabel1,
2338
+ dangerBackground: theme.colors.__alpha__globalLabel6,
2339
+ archived: theme.colors.__alpha__globalLabel5,
2340
+ archivedBackground: theme.colors.__alpha__globalNeutral3
2314
2341
  };
2315
2342
  var fonts = {
2316
2343
  "default": theme.fonts.semiBold
@@ -2439,14 +2466,21 @@ var getToastTheme = function getToastTheme(theme) {
2439
2466
  warning: theme.colors.warning,
2440
2467
  error: theme.colors.dangerLight,
2441
2468
  info: theme.colors.infoLight,
2442
- divider: theme.colors.outline
2469
+ notification: theme.colors.platformBackground,
2470
+ snackbar: theme.colors.backgroundDark,
2471
+ divider: theme.colors.outline,
2472
+ shadow: theme.colors.backgroundDark
2443
2473
  };
2444
2474
  var sizes = {
2445
2475
  height: scale(48)
2446
2476
  };
2447
2477
  var space = {
2448
- mediumPadding: theme.space.medium,
2449
- largePadding: theme.space.large
2478
+ wrapperVerticalPadding: theme.space.large,
2479
+ wrapperHorizontalPadding: theme.space.medium,
2480
+ contentVerticalPadding: theme.space.smallMedium,
2481
+ textHorizontalPadding: theme.space.smallMedium,
2482
+ iconLeftPadding: theme.space.smallMedium,
2483
+ ctaPadding: theme.space.smallMedium
2450
2484
  };
2451
2485
  var radii = {
2452
2486
  "default": theme.radii.xlarge
@@ -2454,12 +2488,22 @@ var getToastTheme = function getToastTheme(theme) {
2454
2488
  var borderWidths = {
2455
2489
  base: theme.borderWidths.base
2456
2490
  };
2491
+ var shadows = {
2492
+ offset: {
2493
+ width: 0,
2494
+ height: 2
2495
+ },
2496
+ opacity: 0.12,
2497
+ radius: 4,
2498
+ elevation: 4
2499
+ };
2457
2500
  return {
2458
2501
  colors: colors,
2459
2502
  radii: radii,
2460
2503
  sizes: sizes,
2461
2504
  space: space,
2462
- borderWidths: borderWidths
2505
+ borderWidths: borderWidths,
2506
+ shadows: shadows
2463
2507
  };
2464
2508
  };
2465
2509
 
@@ -2509,6 +2553,7 @@ var getTypographyTheme = function getTypographyTheme(theme) {
2509
2553
  medium: theme.fontSizes.medium,
2510
2554
  large: theme.fontSizes.large,
2511
2555
  xlarge: theme.fontSizes.xlarge,
2556
+ xxxlarge: theme.fontSizes.xxxlarge,
2512
2557
  xxxxxlarge: theme.fontSizes.xxxxxlarge
2513
2558
  };
2514
2559
  var lineHeights = {
@@ -2516,6 +2561,7 @@ var getTypographyTheme = function getTypographyTheme(theme) {
2516
2561
  medium: theme.lineHeights.medium,
2517
2562
  large: theme.lineHeights.large,
2518
2563
  xlarge: theme.lineHeights.xlarge,
2564
+ xxxlarge: theme.lineHeights.xxxlarge,
2519
2565
  xxxxxlarge: theme.lineHeights.xxxxxlarge
2520
2566
  };
2521
2567
  return {
@@ -5931,7 +5977,7 @@ var StyledText$3 = index$7(Text$1)(function (_ref) {
5931
5977
  });
5932
5978
  });
5933
5979
 
5934
- var _excluded$f = ["children", "fontSize", "fontWeight", "intent"];
5980
+ var _excluded$h = ["children", "fontSize", "fontWeight", "intent"];
5935
5981
 
5936
5982
  var Text = function Text(_ref) {
5937
5983
  var children = _ref.children,
@@ -5941,7 +5987,7 @@ var Text = function Text(_ref) {
5941
5987
  fontWeight = _ref$fontWeight === void 0 ? 'regular' : _ref$fontWeight,
5942
5988
  _ref$intent = _ref.intent,
5943
5989
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
5944
- nativeProps = _objectWithoutProperties(_ref, _excluded$f);
5990
+ nativeProps = _objectWithoutProperties(_ref, _excluded$h);
5945
5991
 
5946
5992
  return /*#__PURE__*/React.createElement(StyledText$3, _extends$1({}, nativeProps, {
5947
5993
  themeFontSize: fontSize,
@@ -14486,11 +14532,11 @@ var StyledHeroIcon = index$7(HeroIcon)(function (_ref) {
14486
14532
  };
14487
14533
  });
14488
14534
 
14489
- var _excluded$e = ["style"];
14535
+ var _excluded$g = ["style"];
14490
14536
 
14491
14537
  var AnimatedIcon = function AnimatedIcon(_ref) {
14492
14538
  var style = _ref.style,
14493
- otherProps = _objectWithoutProperties(_ref, _excluded$e);
14539
+ otherProps = _objectWithoutProperties(_ref, _excluded$g);
14494
14540
 
14495
14541
  var rotateAnimation = useRef(new Animated.Value(0));
14496
14542
  useEffect(function () {
@@ -14563,7 +14609,7 @@ var AccordionItem = function AccordionItem(_ref) {
14563
14609
  fontSize: "large",
14564
14610
  fontWeight: "semi-bold"
14565
14611
  }, header) : header, /*#__PURE__*/React.createElement(Icon, {
14566
- icon: "arrow-".concat(open ? 'up' : 'down'),
14612
+ icon: open ? 'arrow-up' : 'arrow-down',
14567
14613
  intent: "primary",
14568
14614
  size: "small"
14569
14615
  })), /*#__PURE__*/React.createElement(StyledCollapse, {
@@ -14580,7 +14626,7 @@ function usePropsOrInternalState(initialState, state, setState) {
14580
14626
  return [state || internalState, setState || setInternalState];
14581
14627
  }
14582
14628
 
14583
- var _excluded$d = ["key"];
14629
+ var _excluded$f = ["key"];
14584
14630
 
14585
14631
  var Accordion = function Accordion(_ref) {
14586
14632
  var items = _ref.items,
@@ -14604,7 +14650,7 @@ var Accordion = function Accordion(_ref) {
14604
14650
  testID: testID
14605
14651
  }, items.map(function (_ref2, index) {
14606
14652
  var key = _ref2.key,
14607
- props = _objectWithoutProperties(_ref2, _excluded$d);
14653
+ props = _objectWithoutProperties(_ref2, _excluded$f);
14608
14654
 
14609
14655
  var open = _activeItemKey === key;
14610
14656
  return /*#__PURE__*/React.createElement(React.Fragment, {
@@ -14637,13 +14683,13 @@ var IconContainer$1 = index$7(View)(function (_ref2) {
14637
14683
  var theme = _ref2.theme;
14638
14684
  return {
14639
14685
  alignItems: 'center',
14640
- paddingLeft: theme.__hd__.alert.space.padding
14686
+ paddingLeft: theme.__hd__.alert.space.iconLeftPadding
14641
14687
  };
14642
14688
  });
14643
14689
  var TextContainer$1 = index$7(View)(function (_ref3) {
14644
14690
  var theme = _ref3.theme;
14645
14691
  return {
14646
- paddingHorizontal: theme.__hd__.alert.space.padding,
14692
+ paddingHorizontal: theme.__hd__.alert.space.textPaddingHorizontal,
14647
14693
  flex: 1
14648
14694
  };
14649
14695
  });
@@ -14651,7 +14697,7 @@ var ContentContainer$1 = index$7(View)(function (_ref4) {
14651
14697
  var theme = _ref4.theme,
14652
14698
  showDivider = _ref4.showDivider;
14653
14699
  return {
14654
- paddingVertical: theme.__hd__.alert.space.padding,
14700
+ paddingVertical: theme.__hd__.alert.space.contentPaddingHorizontal,
14655
14701
  flex: 1,
14656
14702
  borderRightWidth: showDivider ? theme.__hd__.alert.borderWidths.base : 0,
14657
14703
  borderColor: theme.__hd__.alert.colors.divider,
@@ -14661,7 +14707,7 @@ var ContentContainer$1 = index$7(View)(function (_ref4) {
14661
14707
  var CTAWrapper$1 = index$7(TouchableOpacity)(function (_ref5) {
14662
14708
  var theme = _ref5.theme;
14663
14709
  return {
14664
- paddingHorizontal: theme.__hd__.alert.space.padding,
14710
+ paddingHorizontal: theme.__hd__.alert.space.ctaPadding,
14665
14711
  justifyContent: 'center'
14666
14712
  };
14667
14713
  });
@@ -14679,20 +14725,33 @@ var getIntentIcon$1 = function getIntentIcon(intent) {
14679
14725
 
14680
14726
  case 'error':
14681
14727
  return 'circle-warning';
14728
+
14729
+ default:
14730
+ return undefined;
14682
14731
  }
14683
14732
  };
14684
14733
 
14685
- var Alert = function Alert(_ref) {
14686
- var content = _ref.content,
14687
- icon = _ref.icon,
14688
- title = _ref.title,
14689
- _ref$intent = _ref.intent,
14690
- intent = _ref$intent === void 0 ? 'info' : _ref$intent,
14691
- onClose = _ref.onClose,
14692
- _ref$variant = _ref.variant,
14693
- variant = _ref$variant === void 0 ? 'default' : _ref$variant,
14694
- style = _ref.style,
14695
- testID = _ref.testID;
14734
+ var AlertIcon = function AlertIcon(_ref) {
14735
+ var icon = _ref.icon;
14736
+ return icon ? /*#__PURE__*/React.createElement(IconContainer$1, {
14737
+ testID: "alert-left-icon"
14738
+ }, /*#__PURE__*/React.createElement(Icon, {
14739
+ icon: icon,
14740
+ size: "small"
14741
+ })) : null;
14742
+ };
14743
+
14744
+ var Alert = function Alert(_ref2) {
14745
+ var content = _ref2.content,
14746
+ icon = _ref2.icon,
14747
+ title = _ref2.title,
14748
+ _ref2$intent = _ref2.intent,
14749
+ intent = _ref2$intent === void 0 ? 'info' : _ref2$intent,
14750
+ onClose = _ref2.onClose,
14751
+ _ref2$variant = _ref2.variant,
14752
+ variant = _ref2$variant === void 0 ? 'default' : _ref2$variant,
14753
+ style = _ref2.style,
14754
+ testID = _ref2.testID;
14696
14755
  return /*#__PURE__*/React.createElement(Container$1, {
14697
14756
  themeVariant: variant,
14698
14757
  themeIntent: intent,
@@ -14700,12 +14759,9 @@ var Alert = function Alert(_ref) {
14700
14759
  testID: testID
14701
14760
  }, /*#__PURE__*/React.createElement(ContentContainer$1, {
14702
14761
  showDivider: !!onClose
14703
- }, icon !== null ? /*#__PURE__*/React.createElement(IconContainer$1, {
14704
- testID: "alert-left-icon"
14705
- }, /*#__PURE__*/React.createElement(Icon, {
14706
- icon: icon || getIntentIcon$1(intent),
14707
- size: "small"
14708
- })) : null, /*#__PURE__*/React.createElement(TextContainer$1, null, typeof title === 'string' ? /*#__PURE__*/React.createElement(Typography.Text, {
14762
+ }, icon !== null ? /*#__PURE__*/React.createElement(AlertIcon, {
14763
+ icon: icon || getIntentIcon$1(intent)
14764
+ }) : null, /*#__PURE__*/React.createElement(TextContainer$1, null, typeof title === 'string' ? /*#__PURE__*/React.createElement(Typography.Text, {
14709
14765
  fontWeight: "semi-bold"
14710
14766
  }, title) : title, typeof content === 'string' ? /*#__PURE__*/React.createElement(Typography.Text, null, content) : content)), onClose ? /*#__PURE__*/React.createElement(CTAWrapper$1, {
14711
14767
  onPress: onClose,
@@ -14836,7 +14892,7 @@ var StyledStatus = index$7(Animated.View)(function (_ref3) {
14836
14892
  };
14837
14893
  });
14838
14894
 
14839
- var _excluded$c = ["children", "visible", "intent", "style", "testID"];
14895
+ var _excluded$e = ["children", "visible", "intent", "style", "testID"];
14840
14896
 
14841
14897
  var Status = function Status(_ref) {
14842
14898
  var children = _ref.children,
@@ -14846,7 +14902,7 @@ var Status = function Status(_ref) {
14846
14902
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
14847
14903
  style = _ref.style,
14848
14904
  testID = _ref.testID,
14849
- nativeProps = _objectWithoutProperties(_ref, _excluded$c);
14905
+ nativeProps = _objectWithoutProperties(_ref, _excluded$e);
14850
14906
 
14851
14907
  var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
14852
14908
  opacity = _React$useRef.current;
@@ -14882,7 +14938,7 @@ var Status = function Status(_ref) {
14882
14938
  }));
14883
14939
  };
14884
14940
 
14885
- var _excluded$b = ["content", "visible", "max", "intent", "style", "testID"];
14941
+ var _excluded$d = ["content", "visible", "max", "intent", "style", "testID"];
14886
14942
  var DEFAULT_MAX_NUMBER = 99;
14887
14943
 
14888
14944
  var getPaddingState = function getPaddingState(content) {
@@ -14899,7 +14955,7 @@ var Badge = function Badge(_ref) {
14899
14955
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
14900
14956
  style = _ref.style,
14901
14957
  testID = _ref.testID,
14902
- nativeProps = _objectWithoutProperties(_ref, _excluded$b);
14958
+ nativeProps = _objectWithoutProperties(_ref, _excluded$d);
14903
14959
 
14904
14960
  var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
14905
14961
  opacity = _React$useRef.current;
@@ -14995,7 +15051,7 @@ var StyledBottomBarText = index$7(Typography.Text)(function (_ref3) {
14995
15051
  var isIOS = Platform.OS === 'ios';
14996
15052
  var isAndroid = Platform.OS === 'android';
14997
15053
 
14998
- var _excluded$a = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
15054
+ var _excluded$c = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
14999
15055
 
15000
15056
  var getInactiveIcon = function getInactiveIcon(icon) {
15001
15057
  var inactiveIcon = "".concat(icon, "-outlined");
@@ -15008,7 +15064,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
15008
15064
  renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
15009
15065
  selectedTabKey = _ref.selectedTabKey,
15010
15066
  tabs = _ref.tabs,
15011
- nativeProps = _objectWithoutProperties(_ref, _excluded$a);
15067
+ nativeProps = _objectWithoutProperties(_ref, _excluded$c);
15012
15068
 
15013
15069
  var insets = useSafeAreaInsets();
15014
15070
  /**
@@ -15099,14 +15155,14 @@ var StyledDivider = index$7(View)(function (_ref) {
15099
15155
  }, horizontalMargin), verticalMargin);
15100
15156
  });
15101
15157
 
15102
- var _excluded$9 = ["marginHorizontal", "marginVertical", "style", "testID"];
15158
+ var _excluded$b = ["marginHorizontal", "marginVertical", "style", "testID"];
15103
15159
 
15104
15160
  var Divider = function Divider(_ref) {
15105
15161
  var marginHorizontal = _ref.marginHorizontal,
15106
15162
  marginVertical = _ref.marginVertical,
15107
15163
  style = _ref.style,
15108
15164
  testID = _ref.testID,
15109
- nativeProps = _objectWithoutProperties(_ref, _excluded$9);
15165
+ nativeProps = _objectWithoutProperties(_ref, _excluded$b);
15110
15166
 
15111
15167
  return /*#__PURE__*/React.createElement(StyledDivider, _extends$1({}, nativeProps, {
15112
15168
  themeMarginHorizontal: marginHorizontal,
@@ -15238,7 +15294,7 @@ var StyledLoadingDot = index$7(View)(function (_ref2) {
15238
15294
  }, themeStyling());
15239
15295
  });
15240
15296
 
15241
- var _excluded$8 = ["count", "size", "testID", "themeVariant"];
15297
+ var _excluded$a = ["count", "size", "testID", "themeVariant"];
15242
15298
  var AnimatedLoadingIndicatorWrapper = Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
15243
15299
  var AnimatedLoadingDot = Animated.createAnimatedComponent(StyledLoadingDot);
15244
15300
 
@@ -15272,7 +15328,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
15272
15328
  size = _ref2$size === void 0 ? 12 : _ref2$size,
15273
15329
  testID = _ref2.testID,
15274
15330
  themeVariant = _ref2.themeVariant,
15275
- nativeProps = _objectWithoutProperties(_ref2, _excluded$8);
15331
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$a);
15276
15332
 
15277
15333
  var progressAnimation = useRef(new Animated.Value(0));
15278
15334
  useEffect(function () {
@@ -15913,6 +15969,245 @@ var BottomSheet = function BottomSheet(_ref) {
15913
15969
  }, footer) : null)));
15914
15970
  };
15915
15971
 
15972
+ var colors = {
15973
+ backgroundColor: {
15974
+ property: 'backgroundColor',
15975
+ scale: 'colors'
15976
+ },
15977
+ bgColor: {
15978
+ property: 'backgroundColor',
15979
+ scale: 'colors'
15980
+ },
15981
+ borderColor: {
15982
+ property: 'borderColor',
15983
+ scale: 'colors'
15984
+ },
15985
+ borderTopColor: {
15986
+ property: 'borderTopColor',
15987
+ scale: 'colors'
15988
+ },
15989
+ borderBottomColor: {
15990
+ property: 'borderBottomColor',
15991
+ scale: 'colors'
15992
+ },
15993
+ borderStartColor: {
15994
+ property: 'borderStartColor',
15995
+ scale: 'colors'
15996
+ },
15997
+ borderEndColor: {
15998
+ property: 'borderEndColor',
15999
+ scale: 'colors'
16000
+ },
16001
+ borderLeftColor: {
16002
+ property: 'borderLeftColor',
16003
+ scale: 'colors'
16004
+ },
16005
+ borderRightColor: {
16006
+ property: 'borderRightColor',
16007
+ scale: 'colors'
16008
+ }
16009
+ };
16010
+ var space = {
16011
+ margin: {
16012
+ property: 'margin',
16013
+ scale: 'space'
16014
+ },
16015
+ marginBottom: {
16016
+ property: 'marginBottom',
16017
+ scale: 'space'
16018
+ },
16019
+ marginEnd: {
16020
+ property: 'marginEnd',
16021
+ scale: 'space'
16022
+ },
16023
+ marginHorizontal: {
16024
+ property: 'marginHorizontal',
16025
+ scale: 'space'
16026
+ },
16027
+ marginLeft: {
16028
+ property: 'marginLeft',
16029
+ scale: 'space'
16030
+ },
16031
+ marginRight: {
16032
+ property: 'marginRight',
16033
+ scale: 'space'
16034
+ },
16035
+ marginStart: {
16036
+ property: 'marginStart',
16037
+ scale: 'space'
16038
+ },
16039
+ marginTop: {
16040
+ property: 'marginTop',
16041
+ scale: 'space'
16042
+ },
16043
+ marginVertical: {
16044
+ property: 'marginVertical',
16045
+ scale: 'space'
16046
+ },
16047
+ padding: {
16048
+ property: 'padding',
16049
+ scale: 'space'
16050
+ },
16051
+ paddingBottom: {
16052
+ property: 'paddingBottom',
16053
+ scale: 'space'
16054
+ },
16055
+ paddingEnd: {
16056
+ property: 'paddingEnd',
16057
+ scale: 'space'
16058
+ },
16059
+ paddingHorizontal: {
16060
+ property: 'paddingHorizontal',
16061
+ scale: 'space'
16062
+ },
16063
+ paddingLeft: {
16064
+ property: 'paddingLeft',
16065
+ scale: 'space'
16066
+ },
16067
+ paddingRight: {
16068
+ property: 'paddingRight',
16069
+ scale: 'space'
16070
+ },
16071
+ paddingStart: {
16072
+ property: 'paddingStart',
16073
+ scale: 'space'
16074
+ },
16075
+ paddingTop: {
16076
+ property: 'paddingTop',
16077
+ scale: 'space'
16078
+ },
16079
+ paddingVertical: {
16080
+ property: 'paddingVertical',
16081
+ scale: 'space'
16082
+ }
16083
+ };
16084
+ var radii = {
16085
+ borderBottomEndRadius: {
16086
+ property: 'borderBottomEndRadius',
16087
+ scale: 'radii'
16088
+ },
16089
+ borderBottomLeftRadius: {
16090
+ property: 'borderBottomLeftRadius',
16091
+ scale: 'radii'
16092
+ },
16093
+ borderBottomRightRadius: {
16094
+ property: 'borderBottomRightRadius',
16095
+ scale: 'radii'
16096
+ },
16097
+ borderBottomStartRadius: {
16098
+ property: 'borderBottomStartRadius',
16099
+ scale: 'radii'
16100
+ },
16101
+ borderTopEndRadius: {
16102
+ property: 'borderTopEndRadius',
16103
+ scale: 'radii'
16104
+ },
16105
+ borderTopLeftRadius: {
16106
+ property: 'borderTopLeftRadius',
16107
+ scale: 'radii'
16108
+ },
16109
+ borderTopRightRadius: {
16110
+ property: 'borderTopRightRadius',
16111
+ scale: 'radii'
16112
+ },
16113
+ borderTopStartRadius: {
16114
+ property: 'borderTopStartRadius',
16115
+ scale: 'radii'
16116
+ },
16117
+ borderRadius: {
16118
+ property: 'borderRadius',
16119
+ scale: 'radii'
16120
+ }
16121
+ };
16122
+ var borderWidths = {
16123
+ borderWidth: {
16124
+ property: 'borderWidth',
16125
+ scale: 'borderWidths'
16126
+ },
16127
+ borderBottomWidth: {
16128
+ property: 'borderBottomWidth',
16129
+ scale: 'borderWidths'
16130
+ },
16131
+ borderTopWidth: {
16132
+ property: 'borderTopWidth',
16133
+ scale: 'borderWidths'
16134
+ },
16135
+ borderLeftWidth: {
16136
+ property: 'borderLeftWidth',
16137
+ scale: 'borderWidths'
16138
+ },
16139
+ borderRightWidth: {
16140
+ property: 'borderRightWidth',
16141
+ scale: 'borderWidths'
16142
+ }
16143
+ };
16144
+
16145
+ var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
16146
+
16147
+ var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
16148
+
16149
+ var pick = function pick(keys, props) {
16150
+ return keys.filter(function (key) {
16151
+ return key in props;
16152
+ }).reduce(function (result, cur) {
16153
+ return _objectSpread2(_objectSpread2({}, result), {}, _defineProperty({}, cur, props[cur]));
16154
+ }, {});
16155
+ };
16156
+
16157
+ var _excluded$9 = ["theme"];
16158
+ var getThemeValue = function getThemeValue(theme, key, props) {
16159
+ var propConfig = config[key];
16160
+ var propValue = props[key];
16161
+ if (!propValue) return undefined;
16162
+ var scale = propConfig.scale,
16163
+ property = propConfig.property;
16164
+
16165
+ switch (scale) {
16166
+ case 'colors':
16167
+ return _defineProperty({}, property, theme.colors[propValue]);
16168
+
16169
+ case 'space':
16170
+ return _defineProperty({}, property, theme.space[propValue]);
16171
+
16172
+ case 'radii':
16173
+ return _defineProperty({}, property, theme.radii[propValue]);
16174
+
16175
+ case 'borderWidths':
16176
+ return _defineProperty({}, property, theme.borderWidths[propValue]);
16177
+ }
16178
+ };
16179
+
16180
+ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
16181
+ var entries = Object.keys(props);
16182
+ return entries.reduce(function (result, key) {
16183
+ return _objectSpread2(_objectSpread2({}, result), getThemeValue(theme, key, props));
16184
+ }, {});
16185
+ };
16186
+
16187
+ var configKeys = Object.keys(config);
16188
+ var StyledBox = index$7(View)(function (_ref5) {
16189
+ var theme = _ref5.theme,
16190
+ otherProps = _objectWithoutProperties(_ref5, _excluded$9);
16191
+
16192
+ var styleProps = pick(configKeys, otherProps);
16193
+ var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
16194
+ return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
16195
+ });
16196
+
16197
+ var _excluded$8 = ["children", "style", "testID"];
16198
+
16199
+ var Box = function Box(_ref) {
16200
+ var children = _ref.children,
16201
+ style = _ref.style,
16202
+ testID = _ref.testID,
16203
+ otherProps = _objectWithoutProperties(_ref, _excluded$8);
16204
+
16205
+ return /*#__PURE__*/React.createElement(StyledBox, _extends$1({}, otherProps, {
16206
+ style: style,
16207
+ testID: testID
16208
+ }), children);
16209
+ };
16210
+
15916
16211
  function requiredArgs(required, args) {
15917
16212
  if (args.length < required) {
15918
16213
  throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
@@ -18309,7 +18604,7 @@ function convertToFP(fn, arity, a) {
18309
18604
  var format = convertToFP(format$1, 2);
18310
18605
  var formatTime = format;
18311
18606
 
18312
- var Wrapper$1 = index$7(View)(function () {
18607
+ var Wrapper = index$7(View)(function () {
18313
18608
  return {
18314
18609
  flex: 1,
18315
18610
  flexDirection: 'row',
@@ -18336,7 +18631,7 @@ function ContentNavigator(_ref) {
18336
18631
  fontSize = _ref$fontSize === void 0 ? 'medium' : _ref$fontSize,
18337
18632
  testID = _ref.testID,
18338
18633
  style = _ref.style;
18339
- return /*#__PURE__*/React.createElement(Wrapper$1, {
18634
+ return /*#__PURE__*/React.createElement(Wrapper, {
18340
18635
  testID: testID,
18341
18636
  style: style
18342
18637
  }, /*#__PURE__*/React.createElement(CompoundButton.Icon, {
@@ -18614,7 +18909,7 @@ var Indicator = index$7(View)(function (_ref2) {
18614
18909
  var theme = _ref2.theme,
18615
18910
  themeIntent = _ref2.themeIntent;
18616
18911
  return {
18617
- backgroundColor: theme.__hd__.card.colors.indicator[themeIntent],
18912
+ backgroundColor: theme.__hd__.card.colors[themeIntent],
18618
18913
  width: theme.__hd__.card.sizes.indicatorWidth,
18619
18914
  height: '100%'
18620
18915
  };
@@ -18636,23 +18931,18 @@ var DataCard = function DataCard(_ref) {
18636
18931
 
18637
18932
  var StyledCard = index$7(View)(function (_ref) {
18638
18933
  var themeVariant = _ref.themeVariant,
18639
- theme = _ref.theme;
18640
- var sharedStyles = {
18934
+ theme = _ref.theme,
18935
+ themeIntent = _ref.themeIntent;
18936
+ return _objectSpread2(_objectSpread2(_objectSpread2({}, themeVariant === 'data' && {
18937
+ flexDirection: 'row'
18938
+ }), themeIntent !== undefined && {
18939
+ backgroundColor: theme.__hd__.card.colors[themeIntent]
18940
+ }), {}, {
18641
18941
  borderRadius: theme.__hd__.card.radii["default"],
18642
18942
  overflow: 'hidden'
18643
- };
18644
- var dataStyles = {
18645
- flexDirection: 'row'
18646
- };
18647
-
18648
- switch (themeVariant) {
18649
- case 'basic':
18650
- return sharedStyles;
18943
+ });
18944
+ }); // DEPRECATED
18651
18945
 
18652
- case 'data':
18653
- return _objectSpread2(_objectSpread2({}, sharedStyles), dataStyles);
18654
- }
18655
- });
18656
18946
  var LeftDataCard = index$7(View)(function (_ref2) {
18657
18947
  var theme = _ref2.theme;
18658
18948
  return {
@@ -18662,16 +18952,18 @@ var LeftDataCard = index$7(View)(function (_ref2) {
18662
18952
  };
18663
18953
  });
18664
18954
 
18665
- var _excluded$6 = ["variant", "children"];
18955
+ var _excluded$6 = ["variant", "intent", "children"];
18666
18956
 
18667
18957
  var Card = function Card(_ref) {
18668
18958
  var _ref$variant = _ref.variant,
18669
18959
  variant = _ref$variant === void 0 ? 'basic' : _ref$variant,
18960
+ intent = _ref.intent,
18670
18961
  children = _ref.children,
18671
18962
  nativeProps = _objectWithoutProperties(_ref, _excluded$6);
18672
18963
 
18673
18964
  return /*#__PURE__*/React.createElement(StyledCard, _extends$1({}, nativeProps, {
18674
- themeVariant: variant
18965
+ themeVariant: variant,
18966
+ themeIntent: intent
18675
18967
  }), variant === 'data' && /*#__PURE__*/React.createElement(LeftDataCard, {
18676
18968
  testID: "data-card-indicator"
18677
18969
  }), children);
@@ -18683,42 +18975,73 @@ var index$6 = Object.assign(Card, {
18683
18975
 
18684
18976
  var StyledWrapper$5 = index$7(TouchableOpacity)(function (_ref) {
18685
18977
  var theme = _ref.theme,
18686
- disabled = _ref.disabled;
18978
+ themeWithBorder = _ref.themeWithBorder,
18979
+ themeDisabled = _ref.themeDisabled;
18980
+ var borderStyle = {
18981
+ borderRadius: theme.__hd__.checkbox.radii.wrapper,
18982
+ borderWidth: theme.__hd__.checkbox.borderWidths.wrapper,
18983
+ padding: theme.__hd__.checkbox.space.wrapperPadding,
18984
+ borderColor: themeDisabled ? theme.__hd__.checkbox.colors.disabledBorder : theme.__hd__.checkbox.colors["default"]
18985
+ };
18986
+ return _objectSpread2({
18987
+ flexDirection: 'row'
18988
+ }, themeWithBorder && borderStyle);
18989
+ });
18990
+ var StyledDescription$1 = index$7(Typography.Text)(function (_ref2) {
18991
+ var theme = _ref2.theme;
18992
+ return {
18993
+ paddingRight: theme.__hd__.checkbox.space.iconDescriptionPadding,
18994
+ flex: 1
18995
+ };
18996
+ });
18997
+ var StyledCheckbox = index$7(View)(function (_ref3) {
18998
+ var theme = _ref3.theme,
18999
+ themeDisabled = _ref3.themeDisabled;
18687
19000
  return {
18688
- display: 'flex',
18689
19001
  flexDirection: 'row',
18690
19002
  justifyContent: 'center',
18691
- height: theme.__hd__.checkbox.sizes.base,
18692
- width: theme.__hd__.checkbox.sizes.base,
18693
- borderRadius: theme.__hd__.checkbox.radii.base,
18694
- borderWidth: theme.__hd__.checkbox.borderWidths["default"],
18695
- borderColor: disabled ? theme.__hd__.checkbox.colors.disabled : theme.__hd__.checkbox.colors.borderColor,
19003
+ height: theme.__hd__.checkbox.sizes.icon,
19004
+ width: theme.__hd__.checkbox.sizes.icon,
19005
+ borderRadius: theme.__hd__.checkbox.radii.icon,
19006
+ borderWidth: theme.__hd__.checkbox.borderWidths.icon,
19007
+ borderColor: themeDisabled ? theme.__hd__.checkbox.colors.disabledBorder : theme.__hd__.checkbox.colors["default"],
18696
19008
  overflow: 'hidden'
18697
19009
  };
18698
19010
  });
19011
+ var StyledCheckMark = index$7(Icon)(function (_ref4) {
19012
+ var theme = _ref4.theme;
19013
+ return {
19014
+ position: 'absolute',
19015
+ top: theme.__hd__.checkbox.space.iconTop
19016
+ };
19017
+ });
18699
19018
 
18700
- var CheckBox = function CheckBox(_ref) {
19019
+ var Checkbox = function Checkbox(_ref) {
18701
19020
  var checked = _ref.checked,
18702
- disabled = _ref.disabled,
19021
+ description = _ref.description,
19022
+ _ref$withBorder = _ref.withBorder,
19023
+ withBorder = _ref$withBorder === void 0 ? false : _ref$withBorder,
19024
+ _ref$disabled = _ref.disabled,
19025
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
18703
19026
  onPress = _ref.onPress,
18704
19027
  style = _ref.style,
18705
19028
  testID = _ref.testID;
18706
19029
  return /*#__PURE__*/React.createElement(StyledWrapper$5, {
18707
19030
  onPress: onPress,
18708
19031
  disabled: disabled,
19032
+ themeDisabled: disabled,
19033
+ themeWithBorder: withBorder,
18709
19034
  style: style,
18710
19035
  testID: testID
18711
- }, checked && /*#__PURE__*/React.createElement(Icon, {
18712
- icon: "circle-ok",
18713
- intent: "primary",
18714
- size: "large",
18715
- style: _objectSpread2({
18716
- position: 'absolute',
18717
- top: defaultTheme.__hd__.checkbox.space.iconTop
18718
- }, disabled ? {
18719
- color: defaultTheme.__hd__.checkbox.colors.disabled
18720
- } : {})
18721
- }));
19036
+ }, !!description && /*#__PURE__*/React.createElement(StyledDescription$1, {
19037
+ intent: disabled ? 'subdued' : 'body'
19038
+ }, description), /*#__PURE__*/React.createElement(StyledCheckbox, {
19039
+ themeDisabled: disabled
19040
+ }, checked && /*#__PURE__*/React.createElement(StyledCheckMark, {
19041
+ icon: "box-check",
19042
+ intent: disabled ? 'disabled-text' : 'text',
19043
+ testID: "check-mark"
19044
+ })));
18722
19045
  };
18723
19046
 
18724
19047
  var StyledContainer$3 = index$7(View)(function (_ref) {
@@ -18869,7 +19192,7 @@ var StyledErrorAndMaxLengthContainer = index$7(View)(function () {
18869
19192
  });
18870
19193
 
18871
19194
  var _excluded$5 = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "helpText", "value", "defaultValue"];
18872
- var getVariant = function getVariant(_ref) {
19195
+ var getVariant$1 = function getVariant(_ref) {
18873
19196
  var disabled = _ref.disabled,
18874
19197
  error = _ref.error,
18875
19198
  editable = _ref.editable,
@@ -18934,7 +19257,7 @@ var TextInput = function TextInput(_ref2) {
18934
19257
  isFocused = _React$useState2[0],
18935
19258
  setIsFocused = _React$useState2[1];
18936
19259
 
18937
- var variant = getVariant({
19260
+ var variant = getVariant$1({
18938
19261
  disabled: disabled,
18939
19262
  error: error,
18940
19263
  editable: editable,
@@ -19857,8 +20180,9 @@ var StyledListItemContainer$1 = index$7(TouchableHighlight)(function (_ref) {
19857
20180
  borderRadius: theme.__hd__.list.radii.card,
19858
20181
  shadowColor: theme.colors.shadow,
19859
20182
  shadowRadius: theme.__hd__.list.radii.cardShadow,
19860
- shadowOffset: theme.__hd__.list.offsets.cardShadow,
19861
- shadowOpacity: theme.__hd__.list.opacity.cardShadow
20183
+ shadowOffset: theme.__hd__.list.shadows.cardOffset,
20184
+ shadowOpacity: theme.__hd__.list.opacity.cardShadow,
20185
+ elevation: theme.__hd__.list.shadows.cardElevation
19862
20186
  });
19863
20187
 
19864
20188
  default:
@@ -20516,54 +20840,59 @@ var StyledSpinnerContainer = index$7(View)({
20516
20840
  });
20517
20841
  var StyledSpinnerRow = index$7(View)(function (_ref) {
20518
20842
  var themePosition = _ref.themePosition,
20843
+ _ref$themeSize = _ref.themeSize,
20844
+ themeSize = _ref$themeSize === void 0 ? 'medium' : _ref$themeSize,
20519
20845
  theme = _ref.theme;
20520
20846
  return {
20521
20847
  flexDirection: 'row',
20522
- marginBottom: themePosition === 'top' ? theme.__hd__.spinner.space.spinnerDotPadding : 0
20848
+ marginBottom: themePosition === 'top' ? theme.__hd__.spinner.space.spinnerDotPadding[themeSize] : 0
20523
20849
  };
20524
20850
  });
20525
20851
  var StyledSpinnerDot = index$7(View)(function (_ref2) {
20526
20852
  var themePosition = _ref2.themePosition,
20853
+ _ref2$themeSize = _ref2.themeSize,
20854
+ themeSize = _ref2$themeSize === void 0 ? 'medium' : _ref2$themeSize,
20527
20855
  theme = _ref2.theme;
20528
20856
 
20529
20857
  var themeStyling = function themeStyling() {
20530
20858
  switch (themePosition) {
20531
20859
  case 'topLeft':
20532
20860
  return {
20533
- opacity: 1
20861
+ backgroundColor: theme.__hd__.spinner.colors.dot1
20534
20862
  };
20535
20863
 
20536
20864
  case 'topRight':
20537
20865
  return {
20538
- marginLeft: theme.__hd__.spinner.space.spinnerDotPadding,
20539
- opacity: 0.7
20866
+ marginLeft: theme.__hd__.spinner.space.spinnerDotPadding[themeSize],
20867
+ backgroundColor: theme.__hd__.spinner.colors.dot2
20540
20868
  };
20541
20869
 
20542
20870
  case 'bottomLeft':
20543
20871
  return {
20544
- opacity: 0.5
20872
+ backgroundColor: theme.__hd__.spinner.colors.dot3
20545
20873
  };
20546
20874
 
20547
20875
  case 'bottomRight':
20548
20876
  return {
20549
- marginLeft: theme.__hd__.spinner.space.spinnerDotPadding,
20550
- opacity: 0.3
20877
+ marginLeft: theme.__hd__.spinner.space.spinnerDotPadding[themeSize],
20878
+ backgroundColor: theme.__hd__.spinner.colors.dot4
20551
20879
  };
20552
20880
  }
20553
20881
  };
20554
20882
 
20555
20883
  return _objectSpread2({
20556
- height: scale(theme.__hd__.spinner.space.spinnerDot),
20557
- width: scale(theme.__hd__.spinner.space.spinnerDot),
20558
- borderRadius: theme.__hd__.spinner.radii["default"],
20559
- backgroundColor: theme.__hd__.spinner.color["default"]
20884
+ height: scale(theme.__hd__.spinner.space.spinnerDot[themeSize]),
20885
+ width: scale(theme.__hd__.spinner.space.spinnerDot[themeSize]),
20886
+ borderRadius: theme.__hd__.spinner.radii["default"]
20560
20887
  }, themeStyling());
20561
20888
  });
20562
20889
 
20563
20890
  var AnimatedRow = Animated.createAnimatedComponent(StyledSpinnerRow);
20564
20891
  var AnimatedDot = Animated.createAnimatedComponent(StyledSpinnerDot);
20565
20892
 
20566
- var AnimatedSpinner = function AnimatedSpinner() {
20893
+ var AnimatedSpinner = function AnimatedSpinner(_ref) {
20894
+ var _ref$size = _ref.size,
20895
+ size = _ref$size === void 0 ? 'medium' : _ref$size;
20567
20896
  var rotateAnimation = useRef(new Animated.Value(0));
20568
20897
  useEffect(function () {
20569
20898
  var animation = Animated.loop(Animated.timing(rotateAnimation.current, {
@@ -20588,95 +20917,95 @@ var AnimatedSpinner = function AnimatedSpinner() {
20588
20917
  }]
20589
20918
  }])
20590
20919
  }, /*#__PURE__*/React.createElement(AnimatedRow, {
20591
- themePosition: "top"
20920
+ themePosition: "top",
20921
+ themeSize: size
20592
20922
  }, /*#__PURE__*/React.createElement(AnimatedDot, {
20593
- themePosition: "topLeft"
20923
+ themePosition: "topLeft",
20924
+ themeSize: size
20594
20925
  }), /*#__PURE__*/React.createElement(AnimatedDot, {
20595
- themePosition: "topRight"
20926
+ themePosition: "topRight",
20927
+ themeSize: size
20596
20928
  })), /*#__PURE__*/React.createElement(AnimatedRow, {
20597
- themePosition: "bottom"
20929
+ themePosition: "bottom",
20930
+ themeSize: size
20598
20931
  }, /*#__PURE__*/React.createElement(AnimatedDot, {
20599
- themePosition: "bottomLeft"
20932
+ themePosition: "bottomLeft",
20933
+ themeSize: size
20600
20934
  }), /*#__PURE__*/React.createElement(AnimatedDot, {
20601
- themePosition: "bottomRight"
20935
+ themePosition: "bottomRight",
20936
+ themeSize: size
20602
20937
  })));
20603
20938
  };
20604
20939
 
20605
- var _excluded$1 = ["testID"];
20940
+ var _excluded$1 = ["testID", "size"];
20606
20941
 
20607
20942
  var Spinner = function Spinner(_ref) {
20608
20943
  var testID = _ref.testID,
20944
+ _ref$size = _ref.size,
20945
+ size = _ref$size === void 0 ? 'medium' : _ref$size,
20609
20946
  nativeProps = _objectWithoutProperties(_ref, _excluded$1);
20610
20947
 
20611
20948
  return /*#__PURE__*/React.createElement(StyledView$1, nativeProps, /*#__PURE__*/React.createElement(StyledSpinnerContainer, {
20612
20949
  testID: testID
20613
- }, /*#__PURE__*/React.createElement(AnimatedSpinner, null)));
20950
+ }, /*#__PURE__*/React.createElement(AnimatedSpinner, {
20951
+ size: size
20952
+ })));
20614
20953
  };
20615
20954
 
20616
- var Wrapper = index$7(TouchableOpacity)(function (_ref) {
20617
- var theme = _ref.theme,
20618
- themeChecked = _ref.themeChecked;
20619
- return {
20620
- flexDirection: 'row',
20621
- justifyContent: 'space-between',
20622
- alignItems: 'center',
20623
- borderRadius: theme.__hd__.radio.radii.wrapper,
20624
- padding: theme.__hd__.radio.space.wrapperPadding,
20625
- backgroundColor: themeChecked ? theme.__hd__.radio.colors.checkedWrapper : theme.__hd__.radio.colors.wrapper
20626
- };
20627
- });
20628
- var Circle = index$7(View)(function (_ref2) {
20629
- var theme = _ref2.theme,
20630
- themeChecked = _ref2.themeChecked;
20955
+ var Circle = index$7(View)(function (_ref) {
20956
+ var theme = _ref.theme;
20631
20957
  return {
20632
20958
  height: theme.__hd__.radio.sizes.circle,
20633
20959
  width: theme.__hd__.radio.sizes.circle,
20634
20960
  borderRadius: theme.radii.rounded,
20635
20961
  borderWidth: theme.__hd__.radio.borderWidths.circle,
20636
- borderColor: themeChecked ? theme.__hd__.radio.colors.checkedCircle : theme.__hd__.radio.colors.circle,
20962
+ borderColor: theme.__hd__.radio.colors.circle,
20637
20963
  alignItems: 'center',
20638
20964
  justifyContent: 'center'
20639
20965
  };
20640
20966
  });
20641
- var InnerCircle = index$7(View)(function (_ref3) {
20642
- var theme = _ref3.theme;
20967
+ var InnerCircle = index$7(View)(function (_ref2) {
20968
+ var theme = _ref2.theme;
20643
20969
  return {
20644
20970
  height: theme.__hd__.radio.sizes.innerCircle,
20645
20971
  width: theme.__hd__.radio.sizes.innerCircle,
20646
20972
  borderRadius: theme.radii.rounded,
20647
- backgroundColor: theme.__hd__.radio.colors.checkedCircle
20973
+ backgroundColor: theme.__hd__.radio.colors.circle
20648
20974
  };
20649
20975
  });
20650
- var Spacer = index$7(View)(function (_ref4) {
20651
- var theme = _ref4.theme;
20976
+ var Spacer = index$7(View)(function (_ref3) {
20977
+ var theme = _ref3.theme;
20652
20978
  return {
20653
20979
  marginTop: theme.__hd__.radio.space.groupTopMargin
20654
20980
  };
20655
20981
  });
20656
20982
 
20657
- var Radio = function Radio(_ref) {
20658
- var text = _ref.text,
20659
- _ref$checked = _ref.checked,
20660
- checked = _ref$checked === void 0 ? false : _ref$checked,
20661
- onPress = _ref.onPress,
20662
- style = _ref.style,
20663
- testID = _ref.testID;
20664
- return /*#__PURE__*/React.createElement(Wrapper, {
20983
+ var RadioCircle = function RadioCircle(_ref) {
20984
+ var checked = _ref.checked,
20985
+ text = _ref.text;
20986
+ return /*#__PURE__*/React.createElement(Circle, null, checked && /*#__PURE__*/React.createElement(InnerCircle, {
20987
+ testID: "".concat(text, "-selected-circle")
20988
+ }));
20989
+ };
20990
+
20991
+ var Radio = function Radio(_ref2) {
20992
+ var text = _ref2.text,
20993
+ _ref2$checked = _ref2.checked,
20994
+ checked = _ref2$checked === void 0 ? false : _ref2$checked,
20995
+ onPress = _ref2.onPress,
20996
+ style = _ref2.style,
20997
+ testID = _ref2.testID;
20998
+ return /*#__PURE__*/React.createElement(List.BasicItem, {
20665
20999
  onPress: onPress,
20666
- themeChecked: checked,
21000
+ selected: checked,
21001
+ title: text,
21002
+ suffix: /*#__PURE__*/React.createElement(RadioCircle, {
21003
+ checked: checked,
21004
+ text: text
21005
+ }),
20667
21006
  style: style,
20668
21007
  testID: testID
20669
- }, /*#__PURE__*/React.createElement(View, {
20670
- style: {
20671
- flex: 1
20672
- }
20673
- }, /*#__PURE__*/React.createElement(Typography.Text, {
20674
- fontSize: "large"
20675
- }, text)), /*#__PURE__*/React.createElement(Circle, {
20676
- themeChecked: checked
20677
- }, checked && /*#__PURE__*/React.createElement(InnerCircle, {
20678
- testID: "".concat(text, "-selected-circle")
20679
- })));
21008
+ });
20680
21009
  };
20681
21010
 
20682
21011
  function getKey(option, index, keyExtractor) {
@@ -21067,6 +21396,8 @@ function MultiSelect(_ref) {
21067
21396
  onPress: function onPress() {
21068
21397
  return setOpen(true);
21069
21398
  }
21399
+ }, /*#__PURE__*/React.createElement(View, {
21400
+ pointerEvents: "none"
21070
21401
  }, /*#__PURE__*/React.createElement(TextInput, {
21071
21402
  label: label,
21072
21403
  value: displayedValue,
@@ -21080,7 +21411,7 @@ function MultiSelect(_ref) {
21080
21411
  pointerEvents: "none",
21081
21412
  style: style,
21082
21413
  testID: testID
21083
- }))), /*#__PURE__*/React.createElement(BottomSheet, {
21414
+ })))), /*#__PURE__*/React.createElement(BottomSheet, {
21084
21415
  open: open,
21085
21416
  onRequestClose: function onRequestClose() {
21086
21417
  return setOpen(false);
@@ -21221,6 +21552,8 @@ var SingleSelect = function SingleSelect(_ref) {
21221
21552
  onPress: function onPress() {
21222
21553
  return setOpen(true);
21223
21554
  }
21555
+ }, /*#__PURE__*/React.createElement(View, {
21556
+ pointerEvents: "none"
21224
21557
  }, /*#__PURE__*/React.createElement(TextInput, {
21225
21558
  label: label,
21226
21559
  value: displayedValue,
@@ -21234,7 +21567,7 @@ var SingleSelect = function SingleSelect(_ref) {
21234
21567
  pointerEvents: "none",
21235
21568
  style: style,
21236
21569
  testID: testID
21237
- }))), /*#__PURE__*/React.createElement(BottomSheet, {
21570
+ })))), /*#__PURE__*/React.createElement(BottomSheet, {
21238
21571
  open: open,
21239
21572
  onRequestClose: function onRequestClose() {
21240
21573
  return setOpen(false);
@@ -21270,43 +21603,21 @@ var index$3 = Object.assign(SingleSelect, {
21270
21603
 
21271
21604
  var StyledWrapper = index$7(View)(function (_ref) {
21272
21605
  var theme = _ref.theme,
21273
- themeChecked = _ref.themeChecked,
21606
+ themeVariant = _ref.themeVariant,
21274
21607
  themeSize = _ref.themeSize;
21275
21608
  return {
21276
21609
  height: theme.__hd__["switch"].heights[themeSize],
21277
21610
  width: theme.__hd__["switch"].widths[themeSize],
21278
21611
  paddingHorizontal: theme.__hd__["switch"].spaces[themeSize],
21279
21612
  borderRadius: theme.__hd__["switch"].radii.rounded,
21280
- backgroundColor: themeChecked ? theme.__hd__["switch"].colors.active : theme.__hd__["switch"].colors.inactive
21281
- };
21282
- });
21283
- var StyledDisabledWrapper = index$7(View)(function (_ref2) {
21284
- var theme = _ref2.theme,
21285
- themeSize = _ref2.themeSize;
21286
- return {
21287
- position: 'absolute',
21288
- height: theme.__hd__["switch"].heights[themeSize],
21289
- width: theme.__hd__["switch"].widths[themeSize],
21290
- borderRadius: theme.__hd__["switch"].radii.rounded,
21291
- backgroundColor: theme.__hd__["switch"].colors.thumb,
21292
- zIndex: 9999,
21293
- opacity: 0.8
21294
- };
21295
- });
21296
- var StyledThumbWrapper = index$7(View)(function (_ref3) {
21297
- var theme = _ref3.theme,
21298
- themeSize = _ref3.themeSize;
21299
- return {
21300
- height: theme.__hd__["switch"].heights[themeSize],
21301
- width: theme.__hd__["switch"].widths[themeSize],
21302
- borderRadius: theme.__hd__["switch"].radii.rounded,
21613
+ backgroundColor: theme.__hd__["switch"].colors.backgroundColors[themeVariant],
21303
21614
  display: 'flex',
21304
21615
  justifyContent: 'center'
21305
21616
  };
21306
21617
  });
21307
- var StyledKnot = index$7(Animated.View)(function (_ref4) {
21308
- var theme = _ref4.theme,
21309
- themeSize = _ref4.themeSize;
21618
+ var StyledKnot = index$7(Animated.View)(function (_ref2) {
21619
+ var theme = _ref2.theme,
21620
+ themeSize = _ref2.themeSize;
21310
21621
  return {
21311
21622
  width: theme.__hd__["switch"].thumbSizes[themeSize],
21312
21623
  height: theme.__hd__["switch"].thumbSizes[themeSize],
@@ -21315,16 +21626,32 @@ var StyledKnot = index$7(Animated.View)(function (_ref4) {
21315
21626
  };
21316
21627
  });
21317
21628
 
21318
- var Switch = function Switch(_ref) {
21319
- var _ref$size = _ref.size,
21320
- size = _ref$size === void 0 ? 'medium' : _ref$size,
21321
- _ref$disabled = _ref.disabled,
21322
- disabled = _ref$disabled === void 0 ? false : _ref$disabled,
21323
- checked = _ref.checked,
21324
- onPress = _ref.onPress,
21325
- style = _ref.style,
21326
- testID = _ref.testID;
21629
+ var getVariant = function getVariant(_ref) {
21630
+ var disabled = _ref.disabled,
21631
+ checked = _ref.checked;
21632
+
21633
+ if (disabled) {
21634
+ return checked ? 'disabled-checked' : 'disabled-unchecked';
21635
+ }
21636
+
21637
+ return checked ? 'checked' : 'unchecked';
21638
+ };
21639
+
21640
+ var Switch = function Switch(_ref2) {
21641
+ var _ref2$size = _ref2.size,
21642
+ size = _ref2$size === void 0 ? 'medium' : _ref2$size,
21643
+ _ref2$disabled = _ref2.disabled,
21644
+ disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
21645
+ _ref2$checked = _ref2.checked,
21646
+ checked = _ref2$checked === void 0 ? false : _ref2$checked,
21647
+ onPress = _ref2.onPress,
21648
+ style = _ref2.style,
21649
+ testID = _ref2.testID;
21327
21650
  var theme = useTheme$1();
21651
+ var variant = getVariant({
21652
+ disabled: disabled,
21653
+ checked: checked
21654
+ });
21328
21655
  var offset = checked ? theme.__hd__["switch"].widths[size] - theme.__hd__["switch"].thumbSizes[size] - theme.__hd__["switch"].spaces[size] * 2 : theme.__hd__["switch"].spaces.inactive;
21329
21656
 
21330
21657
  var _useState = useState(function () {
@@ -21345,19 +21672,15 @@ var Switch = function Switch(_ref) {
21345
21672
  onPress: onPress,
21346
21673
  disabled: disabled
21347
21674
  }, /*#__PURE__*/React.createElement(StyledWrapper, {
21348
- themeChecked: checked,
21675
+ themeVariant: variant,
21349
21676
  themeSize: size,
21350
21677
  style: style
21351
- }, disabled && /*#__PURE__*/React.createElement(StyledDisabledWrapper, {
21352
- themeSize: size
21353
- }), /*#__PURE__*/React.createElement(StyledThumbWrapper, {
21354
- themeSize: size
21355
21678
  }, /*#__PURE__*/React.createElement(StyledKnot, {
21356
21679
  themeSize: size,
21357
21680
  style: {
21358
21681
  left: animatedOffset
21359
21682
  }
21360
- }))));
21683
+ })));
21361
21684
  };
21362
21685
 
21363
21686
  var AnimatedPagerView = Animated.createAnimatedComponent(PagerView);
@@ -21402,6 +21725,10 @@ var StyledIndicator = index$7(Animated.View)(function (_ref3) {
21402
21725
  bottom: 0
21403
21726
  };
21404
21727
  });
21728
+ var StyledBadgeWrapper = index$7(View)({
21729
+ flexDirection: 'row',
21730
+ alignItems: 'center'
21731
+ });
21405
21732
 
21406
21733
  var ActiveTabIndicator = function ActiveTabIndicator(_ref) {
21407
21734
  var scrollOffsetAnimatedValue = _ref.scrollOffsetAnimatedValue,
@@ -21444,16 +21771,16 @@ var HeaderTabWrapper = index$7(View)(function (_ref) {
21444
21771
  };
21445
21772
  });
21446
21773
  var HeaderTabItem = index$7(Animated.View)(function (_ref2) {
21447
- var theme = _ref2.theme;
21774
+ var theme = _ref2.theme,
21775
+ isFirstItem = _ref2.isFirstItem;
21448
21776
  return {
21449
- paddingHorizontal: theme.__hd__.tabs.space.itemHorizontalPadding,
21777
+ marginLeft: isFirstItem ? 0 : theme.__hd__.tabs.space.itemMargin,
21450
21778
  paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
21451
21779
  };
21452
21780
  });
21453
21781
  var HeaderTabItemOutlineWrapper = index$7(View)(function (_ref3) {
21454
21782
  var theme = _ref3.theme;
21455
21783
  return _objectSpread2({
21456
- paddingHorizontal: theme.__hd__.tabs.space.itemHorizontalPadding,
21457
21784
  paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
21458
21785
  }, StyleSheet$1.absoluteFillObject);
21459
21786
  });
@@ -21484,6 +21811,47 @@ var useAnimatedValueArray = function useAnimatedValueArray(initialValues) {
21484
21811
  return refs.current;
21485
21812
  };
21486
21813
 
21814
+ var TabWithBadge = function TabWithBadge(_ref) {
21815
+ var showBadge = _ref.showBadge,
21816
+ config = _ref.config,
21817
+ tabItem = _ref.tabItem;
21818
+ var theme = useTheme$1(); // Deprecated. To be removed.
21819
+
21820
+ if (showBadge !== undefined) {
21821
+ return /*#__PURE__*/React.createElement(Badge$1.Status, {
21822
+ testID: "deprecated-badge",
21823
+ visible: showBadge,
21824
+ style: {
21825
+ paddingHorizontal: theme.space.small
21826
+ }
21827
+ }, tabItem);
21828
+ }
21829
+
21830
+ if (!config) return /*#__PURE__*/React.createElement(View, null, tabItem);
21831
+
21832
+ if (config.type === 'status') {
21833
+ return /*#__PURE__*/React.createElement(Badge$1.Status, {
21834
+ visible: true,
21835
+ style: {
21836
+ paddingHorizontal: theme.space.xsmall
21837
+ }
21838
+ }, tabItem);
21839
+ }
21840
+
21841
+ if (config.type === 'counter') {
21842
+ return /*#__PURE__*/React.createElement(StyledBadgeWrapper, null, tabItem, /*#__PURE__*/React.createElement(Badge$1, {
21843
+ content: config.value,
21844
+ max: config.max,
21845
+ intent: "info",
21846
+ style: {
21847
+ marginLeft: theme.space.xsmall
21848
+ }
21849
+ }));
21850
+ }
21851
+
21852
+ return /*#__PURE__*/React.createElement(View, null, tabItem);
21853
+ };
21854
+
21487
21855
  var getTabItem$1 = function getTabItem(_ref) {
21488
21856
  var item = _ref.item,
21489
21857
  color = _ref.color,
@@ -21590,8 +21958,8 @@ var ScrollableTab = function ScrollableTab(_ref2) {
21590
21958
  testID = tab.testID,
21591
21959
  activeItem = tab.activeItem,
21592
21960
  originalInactiveItem = tab.inactiveItem,
21593
- _tab$showBadge = tab.showBadge,
21594
- showBadge = _tab$showBadge === void 0 ? false : _tab$showBadge;
21961
+ showBadge = tab.showBadge,
21962
+ badge = tab.badge;
21595
21963
  var active = selectedTabKey === key;
21596
21964
  var activeAnimated = tabsAnims[index];
21597
21965
  var outlineScale = active ? activeAnimated.interpolate({
@@ -21610,7 +21978,9 @@ var ScrollableTab = function ScrollableTab(_ref2) {
21610
21978
  onTabPress(key);
21611
21979
  },
21612
21980
  testID: testID
21613
- }, /*#__PURE__*/React.createElement(HeaderTabItem, null, /*#__PURE__*/React.createElement(HeaderTabItemOutlineWrapper, null, /*#__PURE__*/React.createElement(HeaderTabItemOutline, {
21981
+ }, /*#__PURE__*/React.createElement(HeaderTabItem, {
21982
+ isFirstItem: index === 0
21983
+ }, /*#__PURE__*/React.createElement(HeaderTabItemOutlineWrapper, null, /*#__PURE__*/React.createElement(HeaderTabItemOutline, {
21614
21984
  themeActive: active,
21615
21985
  style: {
21616
21986
  flex: 1,
@@ -21618,9 +21988,11 @@ var ScrollableTab = function ScrollableTab(_ref2) {
21618
21988
  scaleX: outlineScale
21619
21989
  }]
21620
21990
  }
21621
- })), /*#__PURE__*/React.createElement(HeaderTabItemWrapper, null, /*#__PURE__*/React.createElement(Badge$1.Status, {
21622
- visible: showBadge
21623
- }, tabItem))));
21991
+ })), /*#__PURE__*/React.createElement(HeaderTabItemWrapper, null, /*#__PURE__*/React.createElement(TabWithBadge, {
21992
+ showBadge: showBadge,
21993
+ config: badge,
21994
+ tabItem: tabItem
21995
+ }))));
21624
21996
  }
21625
21997
  })), /*#__PURE__*/React.createElement(ContentWrapper, {
21626
21998
  initialPage: selectedTabIndex,
@@ -21719,8 +22091,8 @@ var Tabs = function Tabs(_ref2) {
21719
22091
  testID = tab.testID,
21720
22092
  activeItem = tab.activeItem,
21721
22093
  originalInactiveItem = tab.inactiveItem,
21722
- _tab$showBadge = tab.showBadge,
21723
- showBadge = _tab$showBadge === void 0 ? false : _tab$showBadge;
22094
+ showBadge = tab.showBadge,
22095
+ badge = tab.badge;
21724
22096
  var active = selectedTabKey === key;
21725
22097
  var inactiveItem = originalInactiveItem !== null && originalInactiveItem !== void 0 ? originalInactiveItem : activeItem;
21726
22098
  var tabItem = getTabItem({
@@ -21734,9 +22106,11 @@ var Tabs = function Tabs(_ref2) {
21734
22106
  onTabPress(key);
21735
22107
  },
21736
22108
  testID: testID
21737
- }, /*#__PURE__*/React.createElement(HeaderTabItem$1, null, /*#__PURE__*/React.createElement(Badge$1.Status, {
21738
- visible: showBadge
21739
- }, tabItem)));
22109
+ }, /*#__PURE__*/React.createElement(HeaderTabItem$1, null, /*#__PURE__*/React.createElement(TabWithBadge, {
22110
+ showBadge: showBadge,
22111
+ config: badge,
22112
+ tabItem: tabItem
22113
+ })));
21740
22114
  })), /*#__PURE__*/React.createElement(ActiveTabIndicator, {
21741
22115
  positionAnimatedValue: positionAnimatedValue,
21742
22116
  scrollOffsetAnimatedValue: scrollOffsetAnimatedValue,
@@ -21782,15 +22156,6 @@ var index$2 = Object.assign(Tabs, {
21782
22156
  Scroll: ScrollableTab
21783
22157
  });
21784
22158
 
21785
- var BACKGROUND_INTENTS = {
21786
- "default": 'defaultBackground',
21787
- primary: 'primaryBackground',
21788
- info: 'infoBackground',
21789
- success: 'successBackground',
21790
- warning: 'warningBackground',
21791
- danger: 'dangerBackground',
21792
- archived: 'archivedBackground'
21793
- };
21794
22159
  var StyledView = index$7(View)(function (_ref) {
21795
22160
  var themeIntent = _ref.themeIntent,
21796
22161
  theme = _ref.theme;
@@ -21800,7 +22165,7 @@ var StyledView = index$7(View)(function (_ref) {
21800
22165
  paddingVertical: theme.__hd__.tag.space.verticalPadding,
21801
22166
  paddingHorizontal: theme.__hd__.tag.space.horizontalPadding,
21802
22167
  borderColor: theme.__hd__.tag.colors[themeIntent],
21803
- backgroundColor: theme.__hd__.tag.colors[BACKGROUND_INTENTS[themeIntent]]
22168
+ backgroundColor: theme.__hd__.tag.colors["".concat(themeIntent, "Background")]
21804
22169
  };
21805
22170
  });
21806
22171
  var StyledText = index$7(Text$1)(function (_ref2) {
@@ -21821,7 +22186,7 @@ var _excluded = ["content", "intent", "style", "testID"];
21821
22186
  var Tag = function Tag(_ref) {
21822
22187
  var content = _ref.content,
21823
22188
  _ref$intent = _ref.intent,
21824
- intent = _ref$intent === void 0 ? 'default' : _ref$intent,
22189
+ intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
21825
22190
  style = _ref.style,
21826
22191
  testID = _ref.testID,
21827
22192
  nativeProps = _objectWithoutProperties(_ref, _excluded);
@@ -21997,8 +22362,8 @@ var ToastContainerWrapper = index$7(View)(function (_ref) {
21997
22362
  var theme = _ref.theme,
21998
22363
  position = _ref.position;
21999
22364
  return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
22000
- paddingHorizontal: theme.__hd__.toast.space.largePadding,
22001
- paddingVertical: theme.__hd__.toast.space.mediumPadding,
22365
+ paddingHorizontal: theme.__hd__.toast.space.wrapperVerticalPadding,
22366
+ paddingVertical: theme.__hd__.toast.space.wrapperHorizontalPadding,
22002
22367
  flexDirection: position === 'bottom' ? 'column-reverse' : 'column',
22003
22368
  elevation: 9999
22004
22369
  });
@@ -22011,20 +22376,25 @@ var Container = index$7(Animated.View)(function (_ref2) {
22011
22376
  borderRadius: themeVariant === 'round' ? theme.__hd__.toast.radii["default"] : 0,
22012
22377
  backgroundColor: theme.__hd__.toast.colors[themeIntent],
22013
22378
  minHeight: theme.__hd__.toast.sizes.height,
22014
- flexDirection: 'row'
22379
+ flexDirection: 'row',
22380
+ shadowColor: theme.__hd__.toast.colors.shadow,
22381
+ shadowOffset: theme.__hd__.toast.shadows.offset,
22382
+ shadowRadius: theme.__hd__.toast.shadows.radius,
22383
+ shadowOpacity: theme.__hd__.toast.shadows.opacity,
22384
+ elevation: theme.__hd__.toast.shadows.elevation
22015
22385
  };
22016
22386
  });
22017
22387
  var IconContainer = index$7(View)(function (_ref3) {
22018
22388
  var theme = _ref3.theme;
22019
22389
  return {
22020
22390
  alignItems: 'center',
22021
- paddingLeft: theme.__hd__.toast.space.mediumPadding
22391
+ paddingLeft: theme.__hd__.toast.space.iconLeftPadding
22022
22392
  };
22023
22393
  });
22024
22394
  var TextContainer = index$7(View)(function (_ref4) {
22025
22395
  var theme = _ref4.theme;
22026
22396
  return {
22027
- paddingHorizontal: theme.__hd__.toast.space.mediumPadding,
22397
+ paddingHorizontal: theme.__hd__.toast.space.textHorizontalPadding,
22028
22398
  flex: 1
22029
22399
  };
22030
22400
  });
@@ -22032,7 +22402,7 @@ var ContentContainer = index$7(View)(function (_ref5) {
22032
22402
  var theme = _ref5.theme,
22033
22403
  showDivider = _ref5.showDivider;
22034
22404
  return {
22035
- paddingVertical: theme.__hd__.toast.space.mediumPadding,
22405
+ paddingVertical: theme.__hd__.toast.space.contentVerticalPadding,
22036
22406
  flex: 1,
22037
22407
  borderRightWidth: showDivider ? theme.__hd__.toast.borderWidths.base : 0,
22038
22408
  borderColor: theme.__hd__.toast.colors.divider,
@@ -22042,7 +22412,7 @@ var ContentContainer = index$7(View)(function (_ref5) {
22042
22412
  var CTAWrapper = index$7(TouchableOpacity)(function (_ref6) {
22043
22413
  var theme = _ref6.theme;
22044
22414
  return {
22045
- paddingHorizontal: theme.__hd__.alert.space.padding,
22415
+ paddingHorizontal: theme.__hd__.toast.space.ctaPadding,
22046
22416
  justifyContent: 'center'
22047
22417
  };
22048
22418
  });
@@ -22069,24 +22439,39 @@ var getIntentIcon = function getIntentIcon(intent) {
22069
22439
 
22070
22440
  case 'error':
22071
22441
  return 'circle-warning';
22442
+
22443
+ default:
22444
+ return undefined;
22072
22445
  }
22073
22446
  };
22074
22447
 
22075
- var Toast$1 = function Toast(_ref) {
22076
- var content = _ref.content,
22077
- icon = _ref.icon,
22078
- _ref$variant = _ref.variant,
22079
- variant = _ref$variant === void 0 ? 'default' : _ref$variant,
22080
- _ref$intent = _ref.intent,
22081
- intent = _ref$intent === void 0 ? 'info' : _ref$intent,
22082
- style = _ref.style,
22083
- _ref$duration = _ref.duration,
22084
- duration = _ref$duration === void 0 ? 2000 : _ref$duration,
22085
- _ref$autoDismiss = _ref.autoDismiss,
22086
- autoDismiss = _ref$autoDismiss === void 0 ? true : _ref$autoDismiss,
22087
- onAction = _ref.onAction,
22088
- actionLabel = _ref.actionLabel,
22089
- onDismiss = _ref.onDismiss;
22448
+ var ToastIcon = function ToastIcon(_ref) {
22449
+ var themeIntent = _ref.themeIntent,
22450
+ icon = _ref.icon;
22451
+ return icon ? /*#__PURE__*/React.createElement(IconContainer, {
22452
+ testID: "toast-left-icon"
22453
+ }, /*#__PURE__*/React.createElement(Icon, {
22454
+ icon: icon,
22455
+ size: "small",
22456
+ intent: themeIntent === 'snackbar' ? 'text-inverted' : 'text'
22457
+ })) : null;
22458
+ };
22459
+
22460
+ var Toast$1 = function Toast(_ref2) {
22461
+ var content = _ref2.content,
22462
+ icon = _ref2.icon,
22463
+ _ref2$variant = _ref2.variant,
22464
+ variant = _ref2$variant === void 0 ? 'default' : _ref2$variant,
22465
+ _ref2$intent = _ref2.intent,
22466
+ intent = _ref2$intent === void 0 ? 'info' : _ref2$intent,
22467
+ style = _ref2.style,
22468
+ _ref2$duration = _ref2.duration,
22469
+ duration = _ref2$duration === void 0 ? 2000 : _ref2$duration,
22470
+ _ref2$autoDismiss = _ref2.autoDismiss,
22471
+ autoDismiss = _ref2$autoDismiss === void 0 ? true : _ref2$autoDismiss,
22472
+ onAction = _ref2.onAction,
22473
+ actionLabel = _ref2.actionLabel,
22474
+ onDismiss = _ref2.onDismiss;
22090
22475
  var animatedValue = useRef(new Animated.Value(0)).current;
22091
22476
  var toastConfig = useToastConfig();
22092
22477
  useEffect(function () {
@@ -22130,19 +22515,20 @@ var Toast$1 = function Toast(_ref) {
22130
22515
  }]
22131
22516
  }, /*#__PURE__*/React.createElement(ContentContainer, {
22132
22517
  showDivider: !!actionLabel
22133
- }, icon !== null ? /*#__PURE__*/React.createElement(IconContainer, {
22134
- testID: "toast-left-icon"
22135
- }, /*#__PURE__*/React.createElement(Icon, {
22136
- icon: icon || getIntentIcon(intent),
22137
- size: "small"
22138
- })) : null, /*#__PURE__*/React.createElement(TextContainer, null, typeof content === 'string' ? /*#__PURE__*/React.createElement(Typography.Text, null, content) : content)), actionLabel ? /*#__PURE__*/React.createElement(CTAWrapper, {
22518
+ }, icon !== null ? /*#__PURE__*/React.createElement(ToastIcon, {
22519
+ themeIntent: intent,
22520
+ icon: icon || getIntentIcon(intent)
22521
+ }) : null, /*#__PURE__*/React.createElement(TextContainer, null, typeof content === 'string' ? /*#__PURE__*/React.createElement(Typography.Text, {
22522
+ intent: intent === 'snackbar' ? 'inverted' : 'body'
22523
+ }, content) : content)), actionLabel ? /*#__PURE__*/React.createElement(CTAWrapper, {
22139
22524
  testID: "toast-action-button",
22140
22525
  onPress: function onPress() {
22141
22526
  onAction === null || onAction === void 0 ? void 0 : onAction();
22142
22527
  onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss();
22143
22528
  }
22144
22529
  }, typeof actionLabel === 'string' ? /*#__PURE__*/React.createElement(Typography.Text, {
22145
- fontWeight: "semi-bold"
22530
+ fontWeight: "semi-bold",
22531
+ intent: intent === 'snackbar' ? 'inverted' : 'body'
22146
22532
  }, actionLabel) : actionLabel) : null);
22147
22533
  };
22148
22534
 
@@ -22265,13 +22651,17 @@ var ToastProvider = function ToastProvider(_ref) {
22265
22651
  }, [displayType, position]);
22266
22652
  return /*#__PURE__*/React.createElement(ToastContext.Provider, {
22267
22653
  value: refState
22654
+ }, /*#__PURE__*/React.createElement(View, {
22655
+ style: {
22656
+ flex: 1
22657
+ }
22268
22658
  }, children, /*#__PURE__*/React.createElement(ToastConfigContext.Provider, {
22269
22659
  value: config
22270
22660
  }, /*#__PURE__*/React.createElement(ToastContainer, {
22271
22661
  ref: toastRef,
22272
22662
  displayType: displayType,
22273
22663
  position: position
22274
- })));
22664
+ }))));
22275
22665
  };
22276
22666
 
22277
22667
  var Toast = {
@@ -40654,4 +41044,4 @@ var index = Object.assign(RichTextEditor$1, {
40654
41044
  Toolbar: EditorToolbar
40655
41045
  });
40656
41046
 
40657
- export { Accordion, Alert, Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet, CompoundButton as Button, Calendar, index$6 as Card, CheckBox as Checkbox, Collapse, ContentNavigator, DatePicker, Divider, index$5 as Drawer, Empty, index$4 as FAB, Icon, List, PinInput, Progress, CompoundRadio as Radio, index as RichTextEditor, SectionHeading, index$3 as Select, Spinner, Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, TimePicker, Toast, index$1 as Toolbar, Typography, getTheme$1 as getTheme, scale, swagSystemPalette, defaultTheme as theme, useTheme, workSystemPalette };
41047
+ export { Accordion, Alert, Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet, Box, CompoundButton as Button, Calendar, index$6 as Card, Checkbox, Collapse, ContentNavigator, DatePicker, Divider, index$5 as Drawer, Empty, index$4 as FAB, Icon, List, PinInput, Progress, CompoundRadio as Radio, index as RichTextEditor, SectionHeading, index$3 as Select, Spinner, Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, TimePicker, Toast, index$1 as Toolbar, Typography, getTheme$1 as getTheme, scale, swagSystemPalette, defaultTheme as theme, useTheme, workSystemPalette };