@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
@@ -1,6 +1,6 @@
1
1
  import React, { useEffect, useLayoutEffect, useRef } from 'react';
2
2
  import { Animated, LayoutAnimation } from 'react-native';
3
- import Icon, { IconName } from '../Icon';
3
+ import Icon from '../Icon';
4
4
  import Typography from '../Typography';
5
5
  import {
6
6
  Container,
@@ -10,11 +10,10 @@ import {
10
10
  TextContainer,
11
11
  } from './StyledToast';
12
12
  import { useToastConfig } from './ToastContext';
13
- import { ToastProps } from './types';
13
+ import type { IconName } from '../Icon';
14
+ import type { IntentType, ToastProps } from './types';
14
15
 
15
- const getIntentIcon = (
16
- intent: 'success' | 'info' | 'warning' | 'error'
17
- ): IconName => {
16
+ const getIntentIcon = (intent: IntentType): IconName | undefined => {
18
17
  switch (intent) {
19
18
  case 'success':
20
19
  return 'circle-ok';
@@ -24,9 +23,28 @@ const getIntentIcon = (
24
23
  return 'circle-info';
25
24
  case 'error':
26
25
  return 'circle-warning';
26
+ default:
27
+ return undefined;
27
28
  }
28
29
  };
29
30
 
31
+ const ToastIcon = ({
32
+ themeIntent,
33
+ icon,
34
+ }: {
35
+ icon?: IconName;
36
+ themeIntent: IntentType;
37
+ }) =>
38
+ icon ? (
39
+ <IconContainer testID="toast-left-icon">
40
+ <Icon
41
+ icon={icon}
42
+ size="small"
43
+ intent={themeIntent === 'snackbar' ? 'text-inverted' : 'text'}
44
+ />
45
+ </IconContainer>
46
+ ) : null;
47
+
30
48
  const Toast = ({
31
49
  content,
32
50
  icon,
@@ -87,13 +105,18 @@ const Toast = ({
87
105
  >
88
106
  <ContentContainer showDivider={!!actionLabel}>
89
107
  {icon !== null ? (
90
- <IconContainer testID="toast-left-icon">
91
- <Icon icon={icon || getIntentIcon(intent)} size="small" />
92
- </IconContainer>
108
+ <ToastIcon
109
+ themeIntent={intent}
110
+ icon={icon || getIntentIcon(intent)}
111
+ />
93
112
  ) : null}
94
113
  <TextContainer>
95
114
  {typeof content === 'string' ? (
96
- <Typography.Text>{content}</Typography.Text>
115
+ <Typography.Text
116
+ intent={intent === 'snackbar' ? 'inverted' : 'body'}
117
+ >
118
+ {content}
119
+ </Typography.Text>
97
120
  ) : (
98
121
  content
99
122
  )}
@@ -108,7 +131,10 @@ const Toast = ({
108
131
  }}
109
132
  >
110
133
  {typeof actionLabel === 'string' ? (
111
- <Typography.Text fontWeight="semi-bold">
134
+ <Typography.Text
135
+ fontWeight="semi-bold"
136
+ intent={intent === 'snackbar' ? 'inverted' : 'body'}
137
+ >
112
138
  {actionLabel}
113
139
  </Typography.Text>
114
140
  ) : (
@@ -3,8 +3,8 @@ import { useTheme } from '@emotion/react';
3
3
 
4
4
  import Toast from './Toast';
5
5
  import { ToastContainerWrapper } from './StyledToast';
6
- import { ToastContainerProps, ToastItemProps } from './types';
7
- import { ToastControllerContextType } from './ToastContext';
6
+ import type { ToastContainerProps, ToastItemProps } from './types';
7
+ import type { ToastControllerContextType } from './ToastContext';
8
8
 
9
9
  const generateID = () =>
10
10
  (performance.now().toString(36) + Math.random().toString(36)).replace(
@@ -1,5 +1,5 @@
1
1
  import { createContext, useContext } from 'react';
2
- import { ToastContainerProps, ToastProps } from './types';
2
+ import type { ToastContainerProps, ToastProps } from './types';
3
3
 
4
4
  export type ToastControllerContextType = {
5
5
  show: (props: Omit<ToastProps, 'position'>) => string;
@@ -1,12 +1,11 @@
1
- import React, { ReactNode, useEffect, useRef, useState, useMemo } from 'react';
1
+ import React, { useEffect, useRef, useState, useMemo } from 'react';
2
+ import { View } from 'react-native';
2
3
 
4
+ import type { ReactNode } from 'react';
3
5
  import ToastContainer from './ToastContainer';
4
- import {
5
- ToastConfigContext,
6
- ToastContext,
7
- ToastControllerContextType,
8
- } from './ToastContext';
9
- import { ToastContainerProps } from './types';
6
+ import { ToastConfigContext, ToastContext } from './ToastContext';
7
+ import type { ToastControllerContextType } from './ToastContext';
8
+ import type { ToastContainerProps } from './types';
10
9
 
11
10
  type ToastProviderProps = {
12
11
  /**
@@ -31,21 +30,23 @@ const ToastProvider = ({
31
30
  }
32
31
  }, []);
33
32
 
34
- const config = useMemo(() => ({ displayType, position }), [
35
- displayType,
36
- position,
37
- ]);
33
+ const config = useMemo(
34
+ () => ({ displayType, position }),
35
+ [displayType, position]
36
+ );
38
37
 
39
38
  return (
40
39
  <ToastContext.Provider value={refState}>
41
- {children}
42
- <ToastConfigContext.Provider value={config}>
43
- <ToastContainer
44
- ref={toastRef}
45
- displayType={displayType}
46
- position={position}
47
- />
48
- </ToastConfigContext.Provider>
40
+ <View style={{ flex: 1 }}>
41
+ {children}
42
+ <ToastConfigContext.Provider value={config}>
43
+ <ToastContainer
44
+ ref={toastRef}
45
+ displayType={displayType}
46
+ position={position}
47
+ />
48
+ </ToastConfigContext.Provider>
49
+ </View>
49
50
  </ToastContext.Provider>
50
51
  );
51
52
  };
@@ -23,9 +23,26 @@ describe('Toast', () => {
23
23
  expect(toJSON()).toMatchSnapshot();
24
24
  expect(getByText('Toast Content')).toBeDefined();
25
25
  expect(getByText('Action')).toBeDefined();
26
+ // Default icon
26
27
  expect(getByTestId('toast-left-icon')).toBeDefined();
27
28
  });
28
29
 
30
+ it.each`
31
+ intent
32
+ ${'notification'}
33
+ ${'snackbar'}
34
+ `('renders correctly when intent is $intent', ({ intent }) => {
35
+ const { getByText, queryByTestId, toJSON } = renderWithTheme(
36
+ <Toast content="Toast Content" actionLabel="Action" intent={intent} />
37
+ );
38
+
39
+ expect(toJSON()).toMatchSnapshot();
40
+ expect(getByText('Toast Content')).toBeDefined();
41
+ expect(getByText('Action')).toBeDefined();
42
+ // No default icon
43
+ expect(queryByTestId('toast-left-icon')).toBeNull();
44
+ });
45
+
29
46
  describe('Icon', () => {
30
47
  it('not render icon when icon prop is null', () => {
31
48
  const { queryByTestId } = renderWithTheme(
@@ -2,7 +2,7 @@ import { act } from '@testing-library/react-native';
2
2
  import React, { createRef } from 'react';
3
3
  import renderWithTheme from '../../../testHelpers/renderWithTheme';
4
4
  import ToastContainer from '../ToastContainer';
5
- import { ToastControllerContextType } from '../ToastContext';
5
+ import type { ToastControllerContextType } from '../ToastContext';
6
6
 
7
7
  describe('ToastContainer', () => {
8
8
  afterEach(() => {
@@ -8,9 +8,17 @@ exports[`Toast Icon render custom icon correctly 1`] = `
8
8
  Object {
9
9
  "backgroundColor": "#b5c3fd",
10
10
  "borderRadius": 0,
11
+ "elevation": 4,
11
12
  "flexDirection": "row",
12
13
  "minHeight": 48,
13
14
  "opacity": 0,
15
+ "shadowColor": "#001f23",
16
+ "shadowOffset": Object {
17
+ "height": 2,
18
+ "width": 0,
19
+ },
20
+ "shadowOpacity": 0.12,
21
+ "shadowRadius": 4,
14
22
  "transform": Array [
15
23
  Object {
16
24
  "translateY": 20,
@@ -30,7 +38,7 @@ exports[`Toast Icon render custom icon correctly 1`] = `
30
38
  "borderRightWidth": 0,
31
39
  "flex": 1,
32
40
  "flexDirection": "row",
33
- "paddingVertical": 16,
41
+ "paddingVertical": 12,
34
42
  },
35
43
  undefined,
36
44
  ]
@@ -41,7 +49,7 @@ exports[`Toast Icon render custom icon correctly 1`] = `
41
49
  Array [
42
50
  Object {
43
51
  "alignItems": "center",
44
- "paddingLeft": 16,
52
+ "paddingLeft": 12,
45
53
  },
46
54
  undefined,
47
55
  ]
@@ -68,7 +76,7 @@ exports[`Toast Icon render custom icon correctly 1`] = `
68
76
  Array [
69
77
  Object {
70
78
  "flex": 1,
71
- "paddingHorizontal": 16,
79
+ "paddingHorizontal": 12,
72
80
  },
73
81
  undefined,
74
82
  ]
@@ -106,9 +114,17 @@ exports[`Toast renders correctly when intent is error 1`] = `
106
114
  Object {
107
115
  "backgroundColor": "#f46363",
108
116
  "borderRadius": 0,
117
+ "elevation": 4,
109
118
  "flexDirection": "row",
110
119
  "minHeight": 48,
111
120
  "opacity": 0,
121
+ "shadowColor": "#001f23",
122
+ "shadowOffset": Object {
123
+ "height": 2,
124
+ "width": 0,
125
+ },
126
+ "shadowOpacity": 0.12,
127
+ "shadowRadius": 4,
112
128
  "transform": Array [
113
129
  Object {
114
130
  "translateY": 20,
@@ -128,7 +144,7 @@ exports[`Toast renders correctly when intent is error 1`] = `
128
144
  "borderRightWidth": 1,
129
145
  "flex": 1,
130
146
  "flexDirection": "row",
131
- "paddingVertical": 16,
147
+ "paddingVertical": 12,
132
148
  },
133
149
  undefined,
134
150
  ]
@@ -139,7 +155,7 @@ exports[`Toast renders correctly when intent is error 1`] = `
139
155
  Array [
140
156
  Object {
141
157
  "alignItems": "center",
142
- "paddingLeft": 16,
158
+ "paddingLeft": 12,
143
159
  },
144
160
  undefined,
145
161
  ]
@@ -166,7 +182,7 @@ exports[`Toast renders correctly when intent is error 1`] = `
166
182
  Array [
167
183
  Object {
168
184
  "flex": 1,
169
- "paddingHorizontal": 16,
185
+ "paddingHorizontal": 12,
170
186
  },
171
187
  undefined,
172
188
  ]
@@ -209,7 +225,7 @@ exports[`Toast renders correctly when intent is error 1`] = `
209
225
  Object {
210
226
  "justifyContent": "center",
211
227
  "opacity": 1,
212
- "paddingHorizontal": 16,
228
+ "paddingHorizontal": 12,
213
229
  }
214
230
  }
215
231
  testID="toast-action-button"
@@ -245,9 +261,17 @@ exports[`Toast renders correctly when intent is info 1`] = `
245
261
  Object {
246
262
  "backgroundColor": "#b5c3fd",
247
263
  "borderRadius": 0,
264
+ "elevation": 4,
248
265
  "flexDirection": "row",
249
266
  "minHeight": 48,
250
267
  "opacity": 0,
268
+ "shadowColor": "#001f23",
269
+ "shadowOffset": Object {
270
+ "height": 2,
271
+ "width": 0,
272
+ },
273
+ "shadowOpacity": 0.12,
274
+ "shadowRadius": 4,
251
275
  "transform": Array [
252
276
  Object {
253
277
  "translateY": 20,
@@ -267,7 +291,7 @@ exports[`Toast renders correctly when intent is info 1`] = `
267
291
  "borderRightWidth": 1,
268
292
  "flex": 1,
269
293
  "flexDirection": "row",
270
- "paddingVertical": 16,
294
+ "paddingVertical": 12,
271
295
  },
272
296
  undefined,
273
297
  ]
@@ -278,7 +302,7 @@ exports[`Toast renders correctly when intent is info 1`] = `
278
302
  Array [
279
303
  Object {
280
304
  "alignItems": "center",
281
- "paddingLeft": 16,
305
+ "paddingLeft": 12,
282
306
  },
283
307
  undefined,
284
308
  ]
@@ -305,7 +329,7 @@ exports[`Toast renders correctly when intent is info 1`] = `
305
329
  Array [
306
330
  Object {
307
331
  "flex": 1,
308
- "paddingHorizontal": 16,
332
+ "paddingHorizontal": 12,
309
333
  },
310
334
  undefined,
311
335
  ]
@@ -348,7 +372,7 @@ exports[`Toast renders correctly when intent is info 1`] = `
348
372
  Object {
349
373
  "justifyContent": "center",
350
374
  "opacity": 1,
351
- "paddingHorizontal": 16,
375
+ "paddingHorizontal": 12,
352
376
  }
353
377
  }
354
378
  testID="toast-action-button"
@@ -376,6 +400,246 @@ exports[`Toast renders correctly when intent is info 1`] = `
376
400
  </View>
377
401
  `;
378
402
 
403
+ exports[`Toast renders correctly when intent is notification 1`] = `
404
+ <View
405
+ collapsable={false}
406
+ nativeID="animatedComponent"
407
+ style={
408
+ Object {
409
+ "backgroundColor": "#ffffff",
410
+ "borderRadius": 0,
411
+ "elevation": 4,
412
+ "flexDirection": "row",
413
+ "minHeight": 48,
414
+ "opacity": 0,
415
+ "shadowColor": "#001f23",
416
+ "shadowOffset": Object {
417
+ "height": 2,
418
+ "width": 0,
419
+ },
420
+ "shadowOpacity": 0.12,
421
+ "shadowRadius": 4,
422
+ "transform": Array [
423
+ Object {
424
+ "translateY": 20,
425
+ },
426
+ ],
427
+ }
428
+ }
429
+ themeIntent="notification"
430
+ themeVariant="default"
431
+ >
432
+ <View
433
+ showDivider={true}
434
+ style={
435
+ Array [
436
+ Object {
437
+ "borderColor": "#e8e9ea",
438
+ "borderRightWidth": 1,
439
+ "flex": 1,
440
+ "flexDirection": "row",
441
+ "paddingVertical": 12,
442
+ },
443
+ undefined,
444
+ ]
445
+ }
446
+ >
447
+ <View
448
+ style={
449
+ Array [
450
+ Object {
451
+ "flex": 1,
452
+ "paddingHorizontal": 12,
453
+ },
454
+ undefined,
455
+ ]
456
+ }
457
+ >
458
+ <Text
459
+ style={
460
+ Array [
461
+ Object {
462
+ "color": "#001f23",
463
+ "fontFamily": "BeVietnamPro-Regular",
464
+ "fontSize": 14,
465
+ "letterSpacing": 0.42,
466
+ "lineHeight": 22,
467
+ },
468
+ undefined,
469
+ ]
470
+ }
471
+ themeFontSize="medium"
472
+ themeFontWeight="regular"
473
+ themeIntent="body"
474
+ >
475
+ Toast Content
476
+ </Text>
477
+ </View>
478
+ </View>
479
+ <View
480
+ accessible={true}
481
+ collapsable={false}
482
+ focusable={true}
483
+ nativeID="animatedComponent"
484
+ onClick={[Function]}
485
+ onResponderGrant={[Function]}
486
+ onResponderMove={[Function]}
487
+ onResponderRelease={[Function]}
488
+ onResponderTerminate={[Function]}
489
+ onResponderTerminationRequest={[Function]}
490
+ onStartShouldSetResponder={[Function]}
491
+ style={
492
+ Object {
493
+ "justifyContent": "center",
494
+ "opacity": 1,
495
+ "paddingHorizontal": 12,
496
+ }
497
+ }
498
+ testID="toast-action-button"
499
+ >
500
+ <Text
501
+ style={
502
+ Array [
503
+ Object {
504
+ "color": "#001f23",
505
+ "fontFamily": "BeVietnamPro-SemiBold",
506
+ "fontSize": 14,
507
+ "letterSpacing": 0.42,
508
+ "lineHeight": 22,
509
+ },
510
+ undefined,
511
+ ]
512
+ }
513
+ themeFontSize="medium"
514
+ themeFontWeight="semi-bold"
515
+ themeIntent="body"
516
+ >
517
+ Action
518
+ </Text>
519
+ </View>
520
+ </View>
521
+ `;
522
+
523
+ exports[`Toast renders correctly when intent is snackbar 1`] = `
524
+ <View
525
+ collapsable={false}
526
+ nativeID="animatedComponent"
527
+ style={
528
+ Object {
529
+ "backgroundColor": "#001f23",
530
+ "borderRadius": 0,
531
+ "elevation": 4,
532
+ "flexDirection": "row",
533
+ "minHeight": 48,
534
+ "opacity": 0,
535
+ "shadowColor": "#001f23",
536
+ "shadowOffset": Object {
537
+ "height": 2,
538
+ "width": 0,
539
+ },
540
+ "shadowOpacity": 0.12,
541
+ "shadowRadius": 4,
542
+ "transform": Array [
543
+ Object {
544
+ "translateY": 20,
545
+ },
546
+ ],
547
+ }
548
+ }
549
+ themeIntent="snackbar"
550
+ themeVariant="default"
551
+ >
552
+ <View
553
+ showDivider={true}
554
+ style={
555
+ Array [
556
+ Object {
557
+ "borderColor": "#e8e9ea",
558
+ "borderRightWidth": 1,
559
+ "flex": 1,
560
+ "flexDirection": "row",
561
+ "paddingVertical": 12,
562
+ },
563
+ undefined,
564
+ ]
565
+ }
566
+ >
567
+ <View
568
+ style={
569
+ Array [
570
+ Object {
571
+ "flex": 1,
572
+ "paddingHorizontal": 12,
573
+ },
574
+ undefined,
575
+ ]
576
+ }
577
+ >
578
+ <Text
579
+ style={
580
+ Array [
581
+ Object {
582
+ "color": "#ffffff",
583
+ "fontFamily": "BeVietnamPro-Regular",
584
+ "fontSize": 14,
585
+ "letterSpacing": 0.42,
586
+ "lineHeight": 22,
587
+ },
588
+ undefined,
589
+ ]
590
+ }
591
+ themeFontSize="medium"
592
+ themeFontWeight="regular"
593
+ themeIntent="inverted"
594
+ >
595
+ Toast Content
596
+ </Text>
597
+ </View>
598
+ </View>
599
+ <View
600
+ accessible={true}
601
+ collapsable={false}
602
+ focusable={true}
603
+ nativeID="animatedComponent"
604
+ onClick={[Function]}
605
+ onResponderGrant={[Function]}
606
+ onResponderMove={[Function]}
607
+ onResponderRelease={[Function]}
608
+ onResponderTerminate={[Function]}
609
+ onResponderTerminationRequest={[Function]}
610
+ onStartShouldSetResponder={[Function]}
611
+ style={
612
+ Object {
613
+ "justifyContent": "center",
614
+ "opacity": 1,
615
+ "paddingHorizontal": 12,
616
+ }
617
+ }
618
+ testID="toast-action-button"
619
+ >
620
+ <Text
621
+ style={
622
+ Array [
623
+ Object {
624
+ "color": "#ffffff",
625
+ "fontFamily": "BeVietnamPro-SemiBold",
626
+ "fontSize": 14,
627
+ "letterSpacing": 0.42,
628
+ "lineHeight": 22,
629
+ },
630
+ undefined,
631
+ ]
632
+ }
633
+ themeFontSize="medium"
634
+ themeFontWeight="semi-bold"
635
+ themeIntent="inverted"
636
+ >
637
+ Action
638
+ </Text>
639
+ </View>
640
+ </View>
641
+ `;
642
+
379
643
  exports[`Toast renders correctly when intent is success 1`] = `
380
644
  <View
381
645
  collapsable={false}
@@ -384,9 +648,17 @@ exports[`Toast renders correctly when intent is success 1`] = `
384
648
  Object {
385
649
  "backgroundColor": "#5ace7d",
386
650
  "borderRadius": 0,
651
+ "elevation": 4,
387
652
  "flexDirection": "row",
388
653
  "minHeight": 48,
389
654
  "opacity": 0,
655
+ "shadowColor": "#001f23",
656
+ "shadowOffset": Object {
657
+ "height": 2,
658
+ "width": 0,
659
+ },
660
+ "shadowOpacity": 0.12,
661
+ "shadowRadius": 4,
390
662
  "transform": Array [
391
663
  Object {
392
664
  "translateY": 20,
@@ -406,7 +678,7 @@ exports[`Toast renders correctly when intent is success 1`] = `
406
678
  "borderRightWidth": 1,
407
679
  "flex": 1,
408
680
  "flexDirection": "row",
409
- "paddingVertical": 16,
681
+ "paddingVertical": 12,
410
682
  },
411
683
  undefined,
412
684
  ]
@@ -417,7 +689,7 @@ exports[`Toast renders correctly when intent is success 1`] = `
417
689
  Array [
418
690
  Object {
419
691
  "alignItems": "center",
420
- "paddingLeft": 16,
692
+ "paddingLeft": 12,
421
693
  },
422
694
  undefined,
423
695
  ]
@@ -444,7 +716,7 @@ exports[`Toast renders correctly when intent is success 1`] = `
444
716
  Array [
445
717
  Object {
446
718
  "flex": 1,
447
- "paddingHorizontal": 16,
719
+ "paddingHorizontal": 12,
448
720
  },
449
721
  undefined,
450
722
  ]
@@ -487,7 +759,7 @@ exports[`Toast renders correctly when intent is success 1`] = `
487
759
  Object {
488
760
  "justifyContent": "center",
489
761
  "opacity": 1,
490
- "paddingHorizontal": 16,
762
+ "paddingHorizontal": 12,
491
763
  }
492
764
  }
493
765
  testID="toast-action-button"
@@ -523,9 +795,17 @@ exports[`Toast renders correctly when intent is warning 1`] = `
523
795
  Object {
524
796
  "backgroundColor": "#ffbe71",
525
797
  "borderRadius": 0,
798
+ "elevation": 4,
526
799
  "flexDirection": "row",
527
800
  "minHeight": 48,
528
801
  "opacity": 0,
802
+ "shadowColor": "#001f23",
803
+ "shadowOffset": Object {
804
+ "height": 2,
805
+ "width": 0,
806
+ },
807
+ "shadowOpacity": 0.12,
808
+ "shadowRadius": 4,
529
809
  "transform": Array [
530
810
  Object {
531
811
  "translateY": 20,
@@ -545,7 +825,7 @@ exports[`Toast renders correctly when intent is warning 1`] = `
545
825
  "borderRightWidth": 1,
546
826
  "flex": 1,
547
827
  "flexDirection": "row",
548
- "paddingVertical": 16,
828
+ "paddingVertical": 12,
549
829
  },
550
830
  undefined,
551
831
  ]
@@ -556,7 +836,7 @@ exports[`Toast renders correctly when intent is warning 1`] = `
556
836
  Array [
557
837
  Object {
558
838
  "alignItems": "center",
559
- "paddingLeft": 16,
839
+ "paddingLeft": 12,
560
840
  },
561
841
  undefined,
562
842
  ]
@@ -583,7 +863,7 @@ exports[`Toast renders correctly when intent is warning 1`] = `
583
863
  Array [
584
864
  Object {
585
865
  "flex": 1,
586
- "paddingHorizontal": 16,
866
+ "paddingHorizontal": 12,
587
867
  },
588
868
  undefined,
589
869
  ]
@@ -626,7 +906,7 @@ exports[`Toast renders correctly when intent is warning 1`] = `
626
906
  Object {
627
907
  "justifyContent": "center",
628
908
  "opacity": 1,
629
- "paddingHorizontal": 16,
909
+ "paddingHorizontal": 12,
630
910
  }
631
911
  }
632
912
  testID="toast-action-button"