@hero-design/rn 9.0.0-0 → 9.0.0-alpha.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 (668) hide show
  1. package/CHANGELOG.md +287 -0
  2. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  3. package/es/index.js +17491 -14687
  4. package/jest-ci.config.js +17 -0
  5. package/jest-setup.ts +2 -0
  6. package/jest.config.js +1 -3
  7. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  8. package/lib/index.js +17376 -14565
  9. package/package.json +50 -40
  10. package/rollup.config.js +1 -0
  11. package/sonar-project.properties +11 -0
  12. package/src/components/Accordion/AccordionItem.tsx +1 -3
  13. package/src/components/Accordion/__tests__/AccordionItem.spec.tsx +5 -5
  14. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +580 -408
  15. package/src/components/Accordion/__tests__/__snapshots__/StyledAccordion.spec.tsx.snap +76 -20
  16. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +818 -644
  17. package/src/components/Accordion/__tests__/index.spec.tsx +2 -2
  18. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +912 -644
  19. package/src/components/Alert/__tests__/index.spec.tsx +44 -2
  20. package/src/components/Alert/index.tsx +30 -4
  21. package/src/components/AnimatedScroller/AnimatedFAB.tsx +155 -0
  22. package/src/components/AnimatedScroller/AnimatedScrollable.tsx +70 -0
  23. package/src/components/AnimatedScroller/FlatListWithFAB.tsx +23 -0
  24. package/src/components/AnimatedScroller/ScrollViewWithFAB.tsx +21 -0
  25. package/src/components/AnimatedScroller/SectionListWithFAB.tsx +26 -0
  26. package/src/components/AnimatedScroller/__tests__/ScrollablesWithFAB.spec.tsx +193 -0
  27. package/src/components/AnimatedScroller/__tests__/__snapshots__/ScrollablesWithFAB.spec.tsx.snap +3462 -0
  28. package/src/components/AnimatedScroller/index.tsx +5 -0
  29. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +178 -117
  30. package/src/components/Attachment/index.tsx +3 -1
  31. package/src/components/Avatar/AvatarStack/StyledAvatarStack.tsx +63 -9
  32. package/src/components/Avatar/AvatarStack/__tests__/StyledAvatarStack.spec.tsx +71 -9
  33. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +410 -73
  34. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +2904 -591
  35. package/src/components/Avatar/AvatarStack/__tests__/index.spec.tsx +140 -6
  36. package/src/components/Avatar/AvatarStack/index.tsx +94 -9
  37. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +163 -62
  38. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +288 -168
  39. package/src/components/Badge/StyledBadge.tsx +1 -4
  40. package/src/components/Badge/__tests__/Status.spec.tsx +1 -1
  41. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +397 -259
  42. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +123 -68
  43. package/src/components/BottomNavigation/StyledBottomNavigation.tsx +1 -1
  44. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +332 -276
  45. package/src/components/BottomNavigation/index.tsx +4 -1
  46. package/src/components/BottomSheet/Header.tsx +1 -3
  47. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +330 -197
  48. package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +1042 -454
  49. package/src/components/Button/Button.tsx +60 -25
  50. package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +6 -9
  51. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +400 -140
  52. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +1090 -880
  53. package/src/components/Button/StyledButton.tsx +56 -59
  54. package/src/components/Button/UtilityButton/StyledUtilityButton.tsx +2 -4
  55. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +206 -122
  56. package/src/components/Button/__tests__/Button.spec.tsx +18 -0
  57. package/src/components/Button/__tests__/StyledButton.spec.tsx +12 -6
  58. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +1878 -1196
  59. package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +74 -29
  60. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +1734 -778
  61. package/src/components/Calendar/CalendarRowItem.tsx +5 -2
  62. package/src/components/Calendar/StyledCalendar.tsx +2 -2
  63. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +555 -335
  64. package/src/components/Calendar/__tests__/index.spec.tsx +76 -0
  65. package/src/components/Calendar/index.tsx +170 -59
  66. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +265 -69
  67. package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +215 -75
  68. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +36 -8
  69. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +304 -142
  70. package/src/components/Card/__tests__/index.spec.tsx +1 -1
  71. package/src/components/Carousel/CardCarousel.tsx +23 -25
  72. package/src/components/Carousel/CarouselItem.tsx +39 -23
  73. package/src/components/Carousel/StyledCardCarousel.tsx +1 -16
  74. package/src/components/Carousel/StyledCarousel.tsx +8 -12
  75. package/src/components/Carousel/__tests__/CardCarousel.spec.tsx +18 -18
  76. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +370 -366
  77. package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +199 -72
  78. package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +41 -13
  79. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +1621 -1861
  80. package/src/components/Carousel/__tests__/index.spec.tsx +107 -7
  81. package/src/components/Carousel/index.tsx +63 -35
  82. package/src/components/Carousel/types.ts +4 -4
  83. package/src/components/Checkbox/StyledCheckbox.tsx +24 -30
  84. package/src/components/Checkbox/__tests__/StyledCheckbox.spec.tsx +25 -16
  85. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +432 -77
  86. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +598 -345
  87. package/src/components/Checkbox/__tests__/index.spec.tsx +24 -9
  88. package/src/components/Checkbox/index.tsx +60 -25
  89. package/src/components/Chip/StyledChip.tsx +121 -0
  90. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +1483 -0
  91. package/src/components/Chip/__tests__/index.spec.tsx +136 -0
  92. package/src/components/Chip/index.tsx +82 -0
  93. package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +74 -18
  94. package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +100 -44
  95. package/src/components/Collapse/index.tsx +1 -1
  96. package/src/components/ContentNavigator/StyledContentNavigator.tsx +1 -6
  97. package/src/components/ContentNavigator/__tests__/StyledContentNavigator.spec.tsx +1 -9
  98. package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +37 -38
  99. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +449 -186
  100. package/src/components/ContentNavigator/__tests__/index.spec.tsx +16 -0
  101. package/src/components/ContentNavigator/index.tsx +30 -9
  102. package/src/components/DatePicker/DatePickerAndroid.tsx +8 -3
  103. package/src/components/DatePicker/DatePickerCalendar.tsx +44 -15
  104. package/src/components/DatePicker/DatePickerIOS.tsx +12 -23
  105. package/src/components/DatePicker/__tests__/DatePicker.spec.tsx +92 -0
  106. package/src/components/DatePicker/__tests__/DatePickerCalendar.spec.tsx +42 -0
  107. package/src/components/DatePicker/__tests__/DatePickerIOS.spec.tsx +6 -5
  108. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +676 -508
  109. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +230 -174
  110. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +222 -166
  111. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +518 -423
  112. package/src/components/DatePicker/types.ts +8 -0
  113. package/src/components/DatePicker/useCalculateDate.tsx +34 -0
  114. package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +464 -128
  115. package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +99 -71
  116. package/src/components/Drawer/DragableDrawer/index.tsx +2 -2
  117. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +327 -192
  118. package/src/components/Drawer/index.tsx +3 -3
  119. package/src/components/Empty/StyledEmpty.tsx +2 -6
  120. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +176 -134
  121. package/src/components/Empty/index.tsx +4 -2
  122. package/src/components/Error/StyledError.tsx +4 -9
  123. package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +431 -335
  124. package/src/components/Error/__tests__/index.spec.tsx +9 -6
  125. package/src/components/Error/index.tsx +6 -2
  126. package/src/components/FAB/ActionGroup/ActionItem.tsx +46 -15
  127. package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +16 -18
  128. package/src/components/FAB/ActionGroup/StyledActionItem.tsx +1 -5
  129. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +980 -1217
  130. package/src/components/FAB/ActionGroup/__tests__/index.spec.tsx +32 -22
  131. package/src/components/FAB/ActionGroup/index.tsx +135 -94
  132. package/src/components/FAB/AnimatedFABIcon.tsx +3 -5
  133. package/src/components/FAB/FAB.tsx +170 -28
  134. package/src/components/FAB/StyledFAB.tsx +26 -23
  135. package/src/components/FAB/__tests__/StyledFAB.spec.tsx +12 -2
  136. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +102 -46
  137. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +204 -52
  138. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +323 -180
  139. package/src/components/FAB/__tests__/index.spec.tsx +22 -2
  140. package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +80 -0
  141. package/src/components/HeroDesignProvider/__tests__/index.spec.tsx +78 -0
  142. package/src/components/HeroDesignProvider/index.tsx +14 -0
  143. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  144. package/src/components/Icon/IconList.ts +36 -0
  145. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +162 -50
  146. package/src/components/Image/__tests__/__snapshots__/index.spec.tsx.snap +172 -60
  147. package/src/components/List/BasicListItem.tsx +2 -6
  148. package/src/components/List/ListItem.tsx +3 -5
  149. package/src/components/List/StyledListItem.tsx +8 -7
  150. package/src/components/List/__tests__/ListItem.spec.tsx +4 -4
  151. package/src/components/List/__tests__/StyledBasicListItem.spec.tsx +3 -1
  152. package/src/components/List/__tests__/StyledListItem.spec.tsx +3 -1
  153. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +264 -198
  154. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +798 -635
  155. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +280 -140
  156. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +485 -203
  157. package/src/components/Modal/__tests__/__snapshots__/index.spec.tsx.snap +169 -0
  158. package/src/components/Modal/__tests__/index.spec.tsx +99 -0
  159. package/src/components/Modal/index.tsx +217 -0
  160. package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +84 -41
  161. package/src/components/PageControl/index.tsx +7 -4
  162. package/src/components/PinInput/PinCell.tsx +3 -1
  163. package/src/components/PinInput/StyledPinInput.tsx +2 -7
  164. package/src/components/PinInput/__tests__/StyledPinInput.spec.tsx +9 -4
  165. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +298 -178
  166. package/src/components/PinInput/__tests__/__snapshots__/StyledPinInput.spec.tsx.snap +15 -48
  167. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +873 -777
  168. package/src/components/PinInput/index.tsx +3 -1
  169. package/src/components/Portal/PortalHost.tsx +27 -0
  170. package/src/components/Portal/PortalProvider.tsx +35 -0
  171. package/src/components/Portal/__tests__/PortalHost.spec.tsx +48 -0
  172. package/src/components/Portal/__tests__/PortalProvider.spec.tsx +24 -0
  173. package/src/components/Portal/__tests__/__snapshots__/index.spec.tsx.snap +57 -0
  174. package/src/components/Portal/__tests__/index.spec.tsx +48 -0
  175. package/src/components/Portal/__tests__/reducer.spec.tsx +110 -0
  176. package/src/components/Portal/constants.ts +10 -0
  177. package/src/components/Portal/contexts.ts +14 -0
  178. package/src/components/Portal/index.tsx +66 -0
  179. package/src/components/Portal/reducer.ts +106 -0
  180. package/src/components/Portal/types.tsx +31 -0
  181. package/src/components/Portal/usePortal.ts +50 -0
  182. package/src/components/Portal/usePortalState.ts +11 -0
  183. package/src/components/Progress/ProgressCircle.tsx +1 -3
  184. package/src/components/Progress/StyledProgressBar.tsx +1 -0
  185. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +810 -671
  186. package/src/components/Radio/Radio.tsx +25 -6
  187. package/src/components/Radio/RadioGroup.tsx +13 -4
  188. package/src/components/Radio/StyledRadio.tsx +20 -3
  189. package/src/components/Radio/__tests__/Radio.spec.tsx +46 -13
  190. package/src/components/Radio/__tests__/RadioGroup.spec.tsx +40 -7
  191. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +565 -126
  192. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +1079 -196
  193. package/src/components/Radio/types.ts +9 -1
  194. package/src/components/Rate/StyledRate.tsx +16 -0
  195. package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +1006 -0
  196. package/src/components/Rate/__tests__/index.spec.tsx +47 -0
  197. package/src/components/Rate/index.tsx +90 -0
  198. package/src/components/RefreshControl/__tests__/__snapshots__/index.spec.tsx.snap +131 -47
  199. package/src/components/RichTextEditor/RichTextEditor.tsx +94 -47
  200. package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +5 -2
  201. package/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx +3 -3
  202. package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +420 -273
  203. package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +66 -37
  204. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +451 -355
  205. package/src/components/SectionHeading/StyledHeading.tsx +21 -10
  206. package/src/components/SectionHeading/__tests__/StyledHeading.spec.tsx +6 -2
  207. package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +165 -30
  208. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +469 -169
  209. package/src/components/SectionHeading/__tests__/index.spec.tsx +15 -1
  210. package/src/components/SectionHeading/index.tsx +51 -32
  211. package/src/components/Select/MultiSelect/Option.tsx +3 -0
  212. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +100 -64
  213. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +2557 -2320
  214. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +2739 -911
  215. package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +39 -22
  216. package/src/components/Select/MultiSelect/index.tsx +1 -1
  217. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +78 -43
  218. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +2460 -2228
  219. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +1356 -843
  220. package/src/components/Select/SingleSelect/__tests__/index.spec.tsx +5 -9
  221. package/src/components/Skeleton/__tests__/__snapshots__/index.spec.tsx.snap +525 -329
  222. package/src/components/Skeleton/index.tsx +3 -7
  223. package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +117 -33
  224. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +114 -86
  225. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +1336 -664
  226. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +129 -101
  227. package/src/components/Success/StyledSuccess.tsx +4 -7
  228. package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +560 -311
  229. package/src/components/Success/__tests__/index.spec.tsx +37 -9
  230. package/src/components/Success/index.tsx +7 -4
  231. package/src/components/Swipeable/__tests__/SwipeableAction.spec.tsx +2 -2
  232. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +219 -87
  233. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +158 -24
  234. package/src/components/Swipeable/__tests__/index.spec.tsx +12 -5
  235. package/src/components/Swipeable/index.tsx +42 -15
  236. package/src/components/Switch/SelectorSwitch/Option.tsx +1 -1
  237. package/src/components/Switch/SelectorSwitch/StyledSelectorSwitch.tsx +4 -7
  238. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +242 -131
  239. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +152 -116
  240. package/src/components/Switch/SelectorSwitch/index.tsx +7 -15
  241. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +203 -63
  242. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +134 -70
  243. package/src/components/Tabs/SceneView.tsx +11 -6
  244. package/src/components/Tabs/ScrollableTabs.tsx +26 -8
  245. package/src/components/Tabs/{ScrollableTabsHeader.tsx → ScrollableTabsHeader/ScrollableTabsHeader.tsx} +74 -45
  246. package/src/components/Tabs/ScrollableTabsHeader/hooks/useInitHighlightedAnimation.ts +45 -0
  247. package/src/components/Tabs/ScrollableTabsHeader/hooks/useInitUnderlinedAnimation.ts +91 -0
  248. package/src/components/Tabs/StyledScrollableTabs.tsx +14 -9
  249. package/src/components/Tabs/StyledTabs.tsx +1 -9
  250. package/src/components/Tabs/__tests__/SceneView.spec.tsx +11 -11
  251. package/src/components/Tabs/__tests__/ScrollableTabsHeader.spec.tsx +7 -3
  252. package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +219 -110
  253. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +2348 -2072
  254. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +1134 -444
  255. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +124 -73
  256. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +1694 -1487
  257. package/src/components/Tabs/__tests__/useInitHighlightedAnimation.spec.tsx +56 -0
  258. package/src/components/Tabs/__tests__/useInitUnderlinedAnimation.spec.tsx +65 -0
  259. package/src/components/Tabs/index.tsx +9 -6
  260. package/src/components/Tag/StyledTag.tsx +7 -39
  261. package/src/components/Tag/__tests__/Tag.spec.tsx +18 -14
  262. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +572 -377
  263. package/src/components/Tag/index.tsx +8 -2
  264. package/src/components/TextInput/StyledTextInput.tsx +18 -49
  265. package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +2 -46
  266. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +1001 -803
  267. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +3774 -3075
  268. package/src/components/TextInput/__tests__/index.spec.tsx +151 -9
  269. package/src/components/TextInput/index.tsx +253 -105
  270. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +452 -347
  271. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +741 -597
  272. package/src/components/Toast/StyledToast.tsx +1 -1
  273. package/src/components/Toast/Toast.tsx +6 -5
  274. package/src/components/Toast/ToastContainer.tsx +2 -0
  275. package/src/components/Toast/ToastContext.ts +20 -2
  276. package/src/components/Toast/ToastProvider.tsx +7 -4
  277. package/src/components/Toast/__tests__/Toast.spec.tsx +5 -1
  278. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +916 -631
  279. package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +180 -68
  280. package/src/components/Toolbar/StyledToolbar.tsx +1 -1
  281. package/src/components/Toolbar/ToolbarItem.tsx +4 -6
  282. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +606 -456
  283. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +714 -401
  284. package/src/components/Typography/Body/StyledBody.tsx +46 -0
  285. package/src/components/Typography/Body/__tests__/StyledBody.tsx +56 -0
  286. package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +801 -0
  287. package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +970 -0
  288. package/src/components/Typography/Body/__tests__/index.spec.tsx +54 -0
  289. package/src/components/Typography/Body/index.tsx +71 -0
  290. package/src/components/Typography/Caption/StyledCaption.tsx +17 -0
  291. package/src/components/Typography/Caption/__tests__/StyledCaption.spec.tsx +39 -0
  292. package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +491 -0
  293. package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +651 -0
  294. package/src/components/Typography/Caption/__tests__/index.spec.tsx +46 -0
  295. package/src/components/Typography/Caption/index.tsx +61 -0
  296. package/src/components/Typography/Label/StyledLabel.tsx +14 -0
  297. package/src/components/Typography/Label/__tests__/StyledLabel.tsx +23 -0
  298. package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +377 -0
  299. package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +529 -0
  300. package/src/components/Typography/Label/__tests__/index.spec.tsx +32 -0
  301. package/src/components/Typography/Label/index.tsx +55 -0
  302. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +900 -340
  303. package/src/components/Typography/Text/index.tsx +19 -12
  304. package/src/components/Typography/Title/StyledTitle.tsx +20 -0
  305. package/src/components/Typography/Title/__tests__/StyledTitle.tsx +53 -0
  306. package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +1001 -0
  307. package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +1174 -0
  308. package/src/components/Typography/Title/__tests__/index.spec.tsx +55 -0
  309. package/src/components/Typography/Title/index.tsx +70 -0
  310. package/src/components/Typography/index.tsx +15 -0
  311. package/src/components/Typography/types.ts +18 -0
  312. package/src/index.ts +16 -0
  313. package/src/testHelpers/renderWithTheme.tsx +2 -2
  314. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +539 -345
  315. package/src/theme/components/badge.ts +15 -0
  316. package/src/theme/components/button.ts +17 -1
  317. package/src/theme/components/calendar.ts +2 -0
  318. package/src/theme/components/cardCarousel.ts +1 -8
  319. package/src/theme/components/carousel.ts +15 -1
  320. package/src/theme/components/checkbox.ts +5 -2
  321. package/src/theme/components/chip.ts +47 -0
  322. package/src/theme/components/empty.ts +12 -0
  323. package/src/theme/components/error.ts +16 -0
  324. package/src/theme/components/fab.ts +17 -11
  325. package/src/theme/components/list.ts +9 -5
  326. package/src/theme/components/pinInput.ts +15 -0
  327. package/src/theme/components/progress.ts +2 -2
  328. package/src/theme/components/radio.ts +8 -2
  329. package/src/theme/components/rate.ts +16 -0
  330. package/src/theme/components/sectionHeading.ts +2 -1
  331. package/src/theme/components/success.ts +12 -0
  332. package/src/theme/components/swipeable.ts +10 -1
  333. package/src/theme/components/switch.ts +4 -4
  334. package/src/theme/components/tabs.ts +3 -2
  335. package/src/theme/components/tag.ts +18 -2
  336. package/src/theme/components/textInput.ts +4 -4
  337. package/src/theme/components/toast.ts +5 -5
  338. package/src/theme/components/typography.ts +132 -1
  339. package/src/theme/getTheme.ts +24 -18
  340. package/src/theme/global/colors/__tests__/__snapshots__/eBens.spec.ts.snap +8 -8
  341. package/src/theme/global/colors/__tests__/__snapshots__/global.spec.ts.snap +6 -6
  342. package/src/theme/global/colors/__tests__/__snapshots__/globalDark.spec.ts.snap +1 -1
  343. package/src/theme/global/colors/__tests__/__snapshots__/jobs.spec.ts.snap +7 -7
  344. package/src/theme/global/colors/__tests__/__snapshots__/swag.spec.ts.snap +7 -7
  345. package/src/theme/global/colors/__tests__/__snapshots__/swagDark.spec.ts.snap +1 -1
  346. package/src/theme/global/colors/__tests__/__snapshots__/wallet.spec.ts.snap +8 -8
  347. package/src/theme/global/colors/__tests__/__snapshots__/work.spec.ts.snap +10 -10
  348. package/src/theme/global/colors/eBens.ts +2 -2
  349. package/src/theme/global/colors/global.ts +5 -5
  350. package/src/theme/global/colors/jobs.ts +1 -1
  351. package/src/theme/global/colors/swag.ts +1 -1
  352. package/src/theme/global/colors/wallet.ts +2 -2
  353. package/src/theme/global/colors/work.ts +4 -4
  354. package/src/theme/global/index.ts +3 -0
  355. package/src/theme/global/shadows.ts +19 -0
  356. package/src/theme/global/space.ts +2 -0
  357. package/src/types.ts +4 -0
  358. package/src/utils/helpers.ts +4 -1
  359. package/testUtils/setup.tsx +32 -2
  360. package/tsconfig.json +14 -3
  361. package/types/components/Accordion/AccordionItem.d.ts +2 -1
  362. package/types/components/Accordion/StyledAccordion.d.ts +5 -6
  363. package/types/components/Accordion/index.d.ts +1 -1
  364. package/types/components/Alert/StyledAlert.d.ts +5 -6
  365. package/types/components/Alert/index.d.ts +18 -2
  366. package/types/components/AnimatedScroller/AnimatedFAB.d.ts +12 -0
  367. package/types/components/AnimatedScroller/AnimatedScrollable.d.ts +16 -0
  368. package/types/components/AnimatedScroller/FlatListWithFAB.d.ts +12 -0
  369. package/types/components/AnimatedScroller/ScrollViewWithFAB.d.ts +12 -0
  370. package/types/components/AnimatedScroller/SectionListWithFAB.d.ts +12 -0
  371. package/types/components/AnimatedScroller/index.d.ts +4 -0
  372. package/types/components/Attachment/StyledAttachment.d.ts +4 -5
  373. package/types/components/Attachment/index.d.ts +2 -1
  374. package/types/components/Avatar/Avatar.d.ts +2 -1
  375. package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +15 -3
  376. package/types/components/Avatar/AvatarStack/index.d.ts +14 -2
  377. package/types/components/Avatar/AvatarStack/utils.d.ts +0 -0
  378. package/types/components/Avatar/StyledAvatar.d.ts +4 -5
  379. package/types/components/Avatar/index.d.ts +2 -2
  380. package/types/components/Badge/Status.d.ts +0 -0
  381. package/types/components/Badge/StyledBadge.d.ts +4 -9
  382. package/types/components/Badge/index.d.ts +0 -0
  383. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +8 -9
  384. package/types/components/BottomNavigation/index.d.ts +0 -0
  385. package/types/components/BottomSheet/BottomSheetContext.d.ts +0 -1
  386. package/types/components/BottomSheet/Footer.d.ts +2 -1
  387. package/types/components/BottomSheet/Header.d.ts +2 -1
  388. package/types/components/BottomSheet/ScrollView.d.ts +0 -0
  389. package/types/components/BottomSheet/StyledBottomSheet.d.ts +8 -13
  390. package/types/components/BottomSheet/index.d.ts +0 -0
  391. package/types/components/Box/StyledBox.d.ts +1 -2
  392. package/types/components/Box/config.d.ts +0 -0
  393. package/types/components/Box/index.d.ts +2 -1
  394. package/types/components/Box/types.d.ts +0 -1
  395. package/types/components/Button/Button.d.ts +3 -3
  396. package/types/components/Button/IconButton.d.ts +2 -1
  397. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +5 -6
  398. package/types/components/Button/LoadingIndicator/index.d.ts +2 -1
  399. package/types/components/Button/StyledButton.d.ts +16 -10
  400. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +4 -5
  401. package/types/components/Button/UtilityButton/index.d.ts +2 -1
  402. package/types/components/Button/index.d.ts +0 -0
  403. package/types/components/Calendar/CalendarRowItem.d.ts +2 -1
  404. package/types/components/Calendar/StyledCalendar.d.ts +8 -9
  405. package/types/components/Calendar/helpers.d.ts +0 -0
  406. package/types/components/Calendar/index.d.ts +15 -1
  407. package/types/components/Card/DataCard/StyledDataCard.d.ts +2 -3
  408. package/types/components/Card/DataCard/index.d.ts +0 -0
  409. package/types/components/Card/StyledCard.d.ts +1 -2
  410. package/types/components/Card/index.d.ts +0 -0
  411. package/types/components/Carousel/CardCarousel.d.ts +2 -1
  412. package/types/components/Carousel/CarouselItem.d.ts +2 -1
  413. package/types/components/Carousel/StyledCardCarousel.d.ts +5 -12
  414. package/types/components/Carousel/StyledCarousel.d.ts +13 -14
  415. package/types/components/Carousel/contants.d.ts +0 -0
  416. package/types/components/Carousel/index.d.ts +2 -2
  417. package/types/components/Carousel/types.d.ts +4 -4
  418. package/types/components/Checkbox/StyledCheckbox.d.ts +12 -10
  419. package/types/components/Checkbox/index.d.ts +12 -1
  420. package/types/components/Chip/StyledChip.d.ts +30 -0
  421. package/types/components/Chip/index.d.ts +27 -0
  422. package/types/components/Collapse/StyledCollapse.d.ts +3 -6
  423. package/types/components/Collapse/index.d.ts +2 -1
  424. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +2 -7
  425. package/types/components/ContentNavigator/index.d.ts +2 -1
  426. package/types/components/DatePicker/DatePickerAndroid.d.ts +2 -1
  427. package/types/components/DatePicker/DatePickerCalendar.d.ts +2 -1
  428. package/types/components/DatePicker/DatePickerIOS.d.ts +2 -2
  429. package/types/components/DatePicker/StyledDatePicker.d.ts +1 -2
  430. package/types/components/DatePicker/index.d.ts +2 -1
  431. package/types/components/DatePicker/types.d.ts +8 -0
  432. package/types/components/DatePicker/useCalculateDate.d.ts +4 -0
  433. package/types/components/Divider/StyledDivider.d.ts +1 -2
  434. package/types/components/Divider/index.d.ts +2 -1
  435. package/types/components/Drawer/DragableDrawer/helpers.d.ts +0 -0
  436. package/types/components/Drawer/DragableDrawer/index.d.ts +0 -0
  437. package/types/components/Drawer/StyledDrawer.d.ts +7 -14
  438. package/types/components/Drawer/index.d.ts +0 -0
  439. package/types/components/Empty/StyledEmpty.d.ts +5 -6
  440. package/types/components/Empty/index.d.ts +0 -0
  441. package/types/components/Error/StyledError.d.ts +15 -22
  442. package/types/components/Error/index.d.ts +0 -0
  443. package/types/components/FAB/ActionGroup/ActionItem.d.ts +7 -2
  444. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +13 -17
  445. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +4 -5
  446. package/types/components/FAB/ActionGroup/index.d.ts +12 -1
  447. package/types/components/FAB/AnimatedFABIcon.d.ts +2 -1
  448. package/types/components/FAB/FAB.d.ts +8 -2
  449. package/types/components/FAB/StyledFAB.d.ts +11 -12
  450. package/types/components/FAB/index.d.ts +2 -2
  451. package/types/components/HeroDesignProvider/index.d.ts +4 -0
  452. package/types/components/Icon/AnimatedIcon.d.ts +2 -1
  453. package/types/components/Icon/HeroIcon/index.d.ts +1 -2
  454. package/types/components/Icon/IconList.d.ts +1 -1
  455. package/types/components/Icon/index.d.ts +3 -2
  456. package/types/components/Icon/utils.d.ts +1 -1
  457. package/types/components/Image/index.d.ts +0 -0
  458. package/types/components/List/BasicListItem.d.ts +0 -0
  459. package/types/components/List/ListItem.d.ts +0 -0
  460. package/types/components/List/StyledBasicListItem.d.ts +4 -5
  461. package/types/components/List/StyledListItem.d.ts +7 -8
  462. package/types/components/List/index.d.ts +0 -0
  463. package/types/components/Modal/index.d.ts +37 -0
  464. package/types/components/PageControl/StyledPageControl.d.ts +2 -5
  465. package/types/components/PageControl/index.d.ts +2 -1
  466. package/types/components/PinInput/PinCell.d.ts +2 -1
  467. package/types/components/PinInput/StyledPinInput.d.ts +12 -13
  468. package/types/components/PinInput/index.d.ts +0 -0
  469. package/types/components/Portal/PortalHost.d.ts +5 -0
  470. package/types/components/Portal/PortalProvider.d.ts +7 -0
  471. package/types/components/Portal/constants.d.ts +8 -0
  472. package/types/components/Portal/contexts.d.ts +9 -0
  473. package/types/components/Portal/index.d.ts +18 -0
  474. package/types/components/Portal/reducer.d.ts +5 -0
  475. package/types/components/Portal/types.d.ts +22 -0
  476. package/types/components/Portal/usePortal.d.ts +8 -0
  477. package/types/components/Portal/usePortalState.d.ts +1 -0
  478. package/types/components/Progress/ProgressBar.d.ts +0 -0
  479. package/types/components/Progress/ProgressCircle.d.ts +0 -0
  480. package/types/components/Progress/StyledProgressBar.d.ts +2 -5
  481. package/types/components/Progress/StyledProgressCircle.d.ts +6 -7
  482. package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
  483. package/types/components/Progress/constants.d.ts +0 -0
  484. package/types/components/Progress/index.d.ts +0 -0
  485. package/types/components/Progress/types.d.ts +0 -0
  486. package/types/components/Radio/Radio.d.ts +15 -3
  487. package/types/components/Radio/RadioGroup.d.ts +5 -1
  488. package/types/components/Radio/StyledRadio.d.ts +14 -5
  489. package/types/components/Radio/index.d.ts +1 -2
  490. package/types/components/Radio/types.d.ts +3 -0
  491. package/types/components/Rate/StyledRate.d.ts +10 -0
  492. package/types/components/Rate/index.d.ts +29 -0
  493. package/types/components/RefreshControl/index.d.ts +2 -1
  494. package/types/components/RichTextEditor/EditorEvent.d.ts +1 -0
  495. package/types/components/RichTextEditor/EditorToolbar.d.ts +2 -1
  496. package/types/components/RichTextEditor/MentionList.d.ts +2 -1
  497. package/types/components/RichTextEditor/RichTextEditor.d.ts +2 -2
  498. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +2 -3
  499. package/types/components/RichTextEditor/StyledToolbar.d.ts +3 -4
  500. package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -0
  501. package/types/components/RichTextEditor/constants.d.ts +0 -0
  502. package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -0
  503. package/types/components/RichTextEditor/index.d.ts +2 -3
  504. package/types/components/RichTextEditor/types.d.ts +0 -0
  505. package/types/components/RichTextEditor/utils/events.d.ts +0 -0
  506. package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -0
  507. package/types/components/SectionHeading/StyledHeading.d.ts +7 -5
  508. package/types/components/SectionHeading/index.d.ts +7 -1
  509. package/types/components/Select/BaseOptionList.d.ts +1 -1
  510. package/types/components/Select/Footer.d.ts +2 -1
  511. package/types/components/Select/MultiSelect/Option.d.ts +2 -1
  512. package/types/components/Select/MultiSelect/OptionList.d.ts +2 -1
  513. package/types/components/Select/MultiSelect/index.d.ts +1 -1
  514. package/types/components/Select/SingleSelect/Option.d.ts +2 -1
  515. package/types/components/Select/SingleSelect/OptionList.d.ts +1 -1
  516. package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +1 -1
  517. package/types/components/Select/SingleSelect/index.d.ts +1 -1
  518. package/types/components/Select/StyledSelect.d.ts +3 -4
  519. package/types/components/Select/helpers.d.ts +1 -2
  520. package/types/components/Select/index.d.ts +1 -1
  521. package/types/components/Select/types.d.ts +0 -0
  522. package/types/components/Skeleton/StyledSkeleton.d.ts +2 -3
  523. package/types/components/Skeleton/index.d.ts +2 -1
  524. package/types/components/Slider/index.d.ts +2 -1
  525. package/types/components/Spinner/AnimatedSpinner.d.ts +2 -1
  526. package/types/components/Spinner/StyledSpinner.d.ts +4 -5
  527. package/types/components/Spinner/index.d.ts +0 -0
  528. package/types/components/Success/StyledSuccess.d.ts +14 -19
  529. package/types/components/Success/index.d.ts +1 -1
  530. package/types/components/Swipeable/StyledSwipeable.d.ts +1 -2
  531. package/types/components/Swipeable/SwipeableAction.d.ts +2 -2
  532. package/types/components/Swipeable/index.d.ts +8 -4
  533. package/types/components/Switch/SelectorSwitch/Option.d.ts +2 -1
  534. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +4 -11
  535. package/types/components/Switch/SelectorSwitch/index.d.ts +0 -0
  536. package/types/components/Switch/StyledSwitch.d.ts +2 -5
  537. package/types/components/Switch/index.d.ts +0 -0
  538. package/types/components/Tabs/ActiveTabIndicator.d.ts +2 -1
  539. package/types/components/Tabs/SceneView.d.ts +1 -1
  540. package/types/components/Tabs/ScrollableTabs.d.ts +5 -1
  541. package/types/components/Tabs/{ScrollableTabsHeader.d.ts → ScrollableTabsHeader/ScrollableTabsHeader.d.ts} +8 -3
  542. package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitHighlightedAnimation.d.ts +9 -0
  543. package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitUnderlinedAnimation.d.ts +10 -0
  544. package/types/components/Tabs/StyledScrollableTabs.d.ts +12 -20
  545. package/types/components/Tabs/StyledTabs.d.ts +8 -18
  546. package/types/components/Tabs/TabWithBadge.d.ts +2 -2
  547. package/types/components/Tabs/index.d.ts +2 -1
  548. package/types/components/Tabs/useIsFocused.d.ts +0 -0
  549. package/types/components/Tabs/utils.d.ts +0 -0
  550. package/types/components/Tag/StyledTag.d.ts +4 -8
  551. package/types/components/Tag/index.d.ts +1 -0
  552. package/types/components/TextInput/StyledTextInput.d.ts +22 -46
  553. package/types/components/TextInput/index.d.ts +31 -2
  554. package/types/components/TimePicker/StyledTimePicker.d.ts +1 -2
  555. package/types/components/TimePicker/TimePickerAndroid.d.ts +2 -1
  556. package/types/components/TimePicker/TimePickerIOS.d.ts +2 -1
  557. package/types/components/TimePicker/index.d.ts +2 -1
  558. package/types/components/TimePicker/types.d.ts +0 -0
  559. package/types/components/Toast/StyledToast.d.ts +6 -9
  560. package/types/components/Toast/Toast.d.ts +0 -0
  561. package/types/components/Toast/ToastContainer.d.ts +0 -0
  562. package/types/components/Toast/ToastContext.d.ts +1 -1
  563. package/types/components/Toast/ToastProvider.d.ts +2 -1
  564. package/types/components/Toast/index.d.ts +1 -2
  565. package/types/components/Toast/types.d.ts +0 -0
  566. package/types/components/Toolbar/StyledToolbar.d.ts +6 -7
  567. package/types/components/Toolbar/ToolbarGroup.d.ts +2 -1
  568. package/types/components/Toolbar/ToolbarItem.d.ts +2 -1
  569. package/types/components/Toolbar/index.d.ts +3 -2
  570. package/types/components/Typography/Body/StyledBody.d.ts +14 -0
  571. package/types/components/Typography/Body/__tests__/StyledBody.d.ts +1 -0
  572. package/types/components/Typography/Body/index.d.ts +33 -0
  573. package/types/components/Typography/Caption/StyledCaption.d.ts +12 -0
  574. package/types/components/Typography/Caption/index.d.ts +27 -0
  575. package/types/components/Typography/Label/StyledLabel.d.ts +11 -0
  576. package/types/components/Typography/Label/__tests__/StyledLabel.d.ts +1 -0
  577. package/types/components/Typography/Label/index.d.ts +23 -0
  578. package/types/components/Typography/Text/StyledText.d.ts +1 -2
  579. package/types/components/Typography/Text/index.d.ts +2 -1
  580. package/types/components/Typography/Title/StyledTitle.d.ts +14 -0
  581. package/types/components/Typography/Title/__tests__/StyledTitle.d.ts +1 -0
  582. package/types/components/Typography/Title/index.d.ts +33 -0
  583. package/types/components/Typography/index.d.ts +11 -0
  584. package/types/components/Typography/types.d.ts +6 -0
  585. package/types/index.d.ts +6 -1
  586. package/types/testHelpers/renderWithTheme.d.ts +0 -0
  587. package/types/theme/ThemeProvider.d.ts +0 -1
  588. package/types/theme/ThemeSwitcher.d.ts +2 -2
  589. package/types/theme/components/accordion.d.ts +0 -0
  590. package/types/theme/components/alert.d.ts +0 -0
  591. package/types/theme/components/attachment.d.ts +0 -0
  592. package/types/theme/components/avatar.d.ts +0 -0
  593. package/types/theme/components/badge.d.ts +15 -0
  594. package/types/theme/components/bottomNavigation.d.ts +0 -0
  595. package/types/theme/components/bottomSheet.d.ts +0 -0
  596. package/types/theme/components/button.d.ts +14 -0
  597. package/types/theme/components/calendar.d.ts +2 -0
  598. package/types/theme/components/card.d.ts +0 -0
  599. package/types/theme/components/cardCarousel.d.ts +0 -10
  600. package/types/theme/components/carousel.d.ts +15 -1
  601. package/types/theme/components/checkbox.d.ts +5 -2
  602. package/types/theme/components/chip.d.ts +40 -0
  603. package/types/theme/components/contentNavigator.d.ts +0 -0
  604. package/types/theme/components/datePicker.d.ts +0 -0
  605. package/types/theme/components/divider.d.ts +0 -0
  606. package/types/theme/components/drawer.d.ts +0 -0
  607. package/types/theme/components/empty.d.ts +11 -0
  608. package/types/theme/components/error.d.ts +15 -0
  609. package/types/theme/components/fab.d.ts +13 -7
  610. package/types/theme/components/icon.d.ts +0 -0
  611. package/types/theme/components/image.d.ts +0 -0
  612. package/types/theme/components/list.d.ts +11 -7
  613. package/types/theme/components/pageControl.d.ts +0 -0
  614. package/types/theme/components/pinInput.d.ts +15 -0
  615. package/types/theme/components/progress.d.ts +0 -0
  616. package/types/theme/components/radio.d.ts +7 -1
  617. package/types/theme/components/rate.d.ts +11 -0
  618. package/types/theme/components/refreshControl.d.ts +0 -0
  619. package/types/theme/components/richTextEditor.d.ts +0 -0
  620. package/types/theme/components/sectionHeading.d.ts +1 -0
  621. package/types/theme/components/select.d.ts +0 -0
  622. package/types/theme/components/skeleton.d.ts +0 -0
  623. package/types/theme/components/slider.d.ts +0 -0
  624. package/types/theme/components/spinner.d.ts +0 -0
  625. package/types/theme/components/success.d.ts +11 -0
  626. package/types/theme/components/swipeable.d.ts +7 -0
  627. package/types/theme/components/switch.d.ts +1 -1
  628. package/types/theme/components/tabs.d.ts +1 -0
  629. package/types/theme/components/tag.d.ts +16 -1
  630. package/types/theme/components/textInput.d.ts +2 -2
  631. package/types/theme/components/timePicker.d.ts +0 -0
  632. package/types/theme/components/toast.d.ts +1 -1
  633. package/types/theme/components/toolbar.d.ts +0 -0
  634. package/types/theme/components/typography.d.ts +122 -0
  635. package/types/theme/getTheme.d.ts +22 -18
  636. package/types/theme/global/borders.d.ts +0 -0
  637. package/types/theme/global/colors/eBens.d.ts +0 -0
  638. package/types/theme/global/colors/global.d.ts +0 -0
  639. package/types/theme/global/colors/globalDark.d.ts +0 -0
  640. package/types/theme/global/colors/jobs.d.ts +0 -0
  641. package/types/theme/global/colors/swag.d.ts +0 -0
  642. package/types/theme/global/colors/swagDark.d.ts +0 -0
  643. package/types/theme/global/colors/types.d.ts +0 -0
  644. package/types/theme/global/colors/wallet.d.ts +0 -0
  645. package/types/theme/global/colors/work.d.ts +0 -0
  646. package/types/theme/global/index.d.ts +12 -0
  647. package/types/theme/global/scale.d.ts +0 -0
  648. package/types/theme/global/shadows.d.ts +16 -0
  649. package/types/theme/global/sizes.d.ts +0 -0
  650. package/types/theme/global/space.d.ts +1 -0
  651. package/types/theme/global/typography.d.ts +0 -0
  652. package/types/theme/index.d.ts +0 -0
  653. package/types/types.d.ts +3 -1
  654. package/types/utils/functions.d.ts +0 -0
  655. package/types/utils/helpers.d.ts +1 -1
  656. package/types/utils/hooks.d.ts +0 -0
  657. package/types/utils/scale.d.ts +0 -0
  658. package/.turbo/turbo-build.log +0 -8
  659. package/.turbo/turbo-build:types.log +0 -1
  660. package/.turbo/turbo-lint.log +0 -153
  661. package/.turbo/turbo-publish:npm.log +0 -0
  662. package/.turbo/turbo-type-check.log +0 -1
  663. package/types/components/Carousel/CarouselPaginator/StyledCarouselPaginator.d.ts +0 -14
  664. package/types/components/Carousel/CarouselPaginator/index.d.ts +0 -7
  665. package/types/components/Select/StyledOptionList.d.ts +0 -12
  666. package/types/components/SwipeableV2/StyledSwipeable.d.ts +0 -15
  667. package/types/components/SwipeableV2/index.d.ts +0 -46
  668. package/types/theme/global/colors/legacySystemPalette.d.ts +0 -3
@@ -3,838 +3,1012 @@
3
3
  exports[`Accordion allows fully controlled 1`] = `
4
4
  <View
5
5
  style={
6
- Array [
7
- Object {},
8
- undefined,
9
- ]
6
+ {
7
+ "flex": 1,
8
+ }
10
9
  }
11
10
  >
12
11
  <View
13
12
  style={
14
- Array [
15
- Object {
16
- "backgroundColor": "#ffffff",
17
- "borderRadius": 0,
18
- "padding": 16,
19
- },
13
+ [
14
+ {},
20
15
  undefined,
21
16
  ]
22
17
  }
23
- themeVariant="default"
24
18
  >
25
19
  <View
26
- accessible={true}
27
- collapsable={false}
28
- focusable={true}
29
- onClick={[Function]}
30
- onResponderGrant={[Function]}
31
- onResponderMove={[Function]}
32
- onResponderRelease={[Function]}
33
- onResponderTerminate={[Function]}
34
- onResponderTerminationRequest={[Function]}
35
- onStartShouldSetResponder={[Function]}
36
20
  style={
37
- Object {
38
- "flexDirection": "row",
39
- "justifyContent": "space-between",
40
- "opacity": 1,
41
- }
21
+ [
22
+ {
23
+ "backgroundColor": "#ffffff",
24
+ "borderRadius": 0,
25
+ "padding": 16,
26
+ },
27
+ undefined,
28
+ ]
42
29
  }
30
+ themeVariant="default"
43
31
  >
44
- <Text
45
- allowFontScaling={false}
46
- style={
47
- Array [
48
- Object {
49
- "color": "#001f23",
50
- "fontFamily": "BeVietnamPro-SemiBold",
51
- "fontSize": 16,
52
- "letterSpacing": 0.48,
53
- "lineHeight": 24,
54
- },
55
- undefined,
56
- ]
32
+ <View
33
+ accessibilityState={
34
+ {
35
+ "busy": undefined,
36
+ "checked": undefined,
37
+ "disabled": undefined,
38
+ "expanded": undefined,
39
+ "selected": undefined,
40
+ }
57
41
  }
58
- themeFontSize="large"
59
- themeFontWeight="semi-bold"
60
- themeIntent="body"
61
- themeTypeface="neutral"
62
- >
63
- Accordion header 1
64
- </Text>
65
- <HeroIcon
66
- name="arrow-down"
67
- style={
68
- Array [
69
- Object {
70
- "color": "#795e90",
71
- "fontSize": 20,
72
- },
73
- undefined,
74
- ]
42
+ accessibilityValue={
43
+ {
44
+ "max": undefined,
45
+ "min": undefined,
46
+ "now": undefined,
47
+ "text": undefined,
48
+ }
75
49
  }
76
- themeIntent="secondary"
77
- themeSize="small"
78
- />
79
- </View>
80
- <View
81
- collapsable={false}
82
- onLayout={[Function]}
83
- style={
84
- Object {
85
- "height": 0,
86
- "margin": 0,
87
- "overflow": "hidden",
88
- "padding": 0,
50
+ accessible={true}
51
+ collapsable={false}
52
+ focusable={true}
53
+ onClick={[Function]}
54
+ onResponderGrant={[Function]}
55
+ onResponderMove={[Function]}
56
+ onResponderRelease={[Function]}
57
+ onResponderTerminate={[Function]}
58
+ onResponderTerminationRequest={[Function]}
59
+ onStartShouldSetResponder={[Function]}
60
+ style={
61
+ {
62
+ "flexDirection": "row",
63
+ "justifyContent": "space-between",
64
+ "opacity": 1,
65
+ }
89
66
  }
90
- }
91
- >
67
+ >
68
+ <Text
69
+ allowFontScaling={false}
70
+ style={
71
+ [
72
+ {
73
+ "color": "#001f23",
74
+ "fontFamily": "BeVietnamPro-SemiBold",
75
+ "fontSize": 16,
76
+ "letterSpacing": 0.24,
77
+ "lineHeight": 24,
78
+ },
79
+ undefined,
80
+ ]
81
+ }
82
+ themeIntent="body"
83
+ themeTypeface="neutral"
84
+ themeVariant="regular-bold"
85
+ >
86
+ Accordion header 1
87
+ </Text>
88
+ <HeroIcon
89
+ name="arrow-down"
90
+ style={
91
+ [
92
+ {
93
+ "color": "#795e90",
94
+ "fontSize": 20,
95
+ },
96
+ undefined,
97
+ ]
98
+ }
99
+ themeIntent="secondary"
100
+ themeSize="small"
101
+ />
102
+ </View>
92
103
  <View
104
+ collapsable={false}
105
+ onLayout={[Function]}
93
106
  style={
94
- Array [
95
- Object {
96
- "height": 1334,
97
- },
98
- undefined,
99
- ]
107
+ {
108
+ "height": 0,
109
+ "margin": 0,
110
+ "overflow": "hidden",
111
+ "padding": 0,
112
+ }
100
113
  }
101
114
  >
102
115
  <View
103
- onLayout={[Function]}
104
116
  style={
105
- Array [
106
- Object {
107
- "margin": 0,
108
- "padding": 0,
117
+ [
118
+ {
119
+ "height": 1334,
109
120
  },
110
- Array [
111
- Object {
112
- "paddingTop": 16,
113
- },
114
- undefined,
115
- ],
121
+ undefined,
116
122
  ]
117
123
  }
118
124
  >
119
- <Text
120
- allowFontScaling={false}
125
+ <View
126
+ onLayout={[Function]}
121
127
  style={
122
- Array [
123
- Object {
124
- "color": "#001f23",
125
- "fontFamily": "BeVietnamPro-Regular",
126
- "fontSize": 14,
127
- "letterSpacing": 0.42,
128
- "lineHeight": 22,
128
+ [
129
+ {
130
+ "margin": 0,
131
+ "padding": 0,
129
132
  },
130
- undefined,
133
+ [
134
+ {
135
+ "paddingTop": 16,
136
+ },
137
+ undefined,
138
+ ],
131
139
  ]
132
140
  }
133
- themeFontSize="medium"
134
- themeFontWeight="regular"
135
- themeIntent="body"
136
- themeTypeface="neutral"
137
141
  >
138
- Accordion content 1
139
- </Text>
142
+ <Text
143
+ allowFontScaling={false}
144
+ style={
145
+ [
146
+ {
147
+ "color": "#001f23",
148
+ "fontFamily": "BeVietnamPro-Regular",
149
+ "fontSize": 16,
150
+ "letterSpacing": 0.48,
151
+ "lineHeight": 24,
152
+ },
153
+ undefined,
154
+ ]
155
+ }
156
+ themeIntent="body"
157
+ themeTypeface="neutral"
158
+ themeVariant="regular"
159
+ >
160
+ Accordion content 1
161
+ </Text>
162
+ </View>
140
163
  </View>
141
164
  </View>
142
165
  </View>
143
- </View>
144
- <View
145
- style={
146
- Array [
147
- Object {
148
- "backgroundColor": "#ffffff",
149
- "borderRadius": 0,
150
- "padding": 16,
151
- },
152
- undefined,
153
- ]
154
- }
155
- themeVariant="default"
156
- >
157
166
  <View
158
- accessible={true}
159
- collapsable={false}
160
- focusable={true}
161
- onClick={[Function]}
162
- onResponderGrant={[Function]}
163
- onResponderMove={[Function]}
164
- onResponderRelease={[Function]}
165
- onResponderTerminate={[Function]}
166
- onResponderTerminationRequest={[Function]}
167
- onStartShouldSetResponder={[Function]}
168
167
  style={
169
- Object {
170
- "flexDirection": "row",
171
- "justifyContent": "space-between",
172
- "opacity": 1,
173
- }
168
+ [
169
+ {
170
+ "backgroundColor": "#ffffff",
171
+ "borderRadius": 0,
172
+ "padding": 16,
173
+ },
174
+ undefined,
175
+ ]
174
176
  }
177
+ themeVariant="default"
175
178
  >
176
- <Text
177
- allowFontScaling={false}
178
- style={
179
- Array [
180
- Object {
181
- "color": "#001f23",
182
- "fontFamily": "BeVietnamPro-SemiBold",
183
- "fontSize": 16,
184
- "letterSpacing": 0.48,
185
- "lineHeight": 24,
186
- },
187
- undefined,
188
- ]
179
+ <View
180
+ accessibilityState={
181
+ {
182
+ "busy": undefined,
183
+ "checked": undefined,
184
+ "disabled": undefined,
185
+ "expanded": undefined,
186
+ "selected": undefined,
187
+ }
189
188
  }
190
- themeFontSize="large"
191
- themeFontWeight="semi-bold"
192
- themeIntent="body"
193
- themeTypeface="neutral"
194
- >
195
- Accordion header 2
196
- </Text>
197
- <HeroIcon
198
- name="arrow-up"
199
- style={
200
- Array [
201
- Object {
202
- "color": "#795e90",
203
- "fontSize": 20,
204
- },
205
- undefined,
206
- ]
189
+ accessibilityValue={
190
+ {
191
+ "max": undefined,
192
+ "min": undefined,
193
+ "now": undefined,
194
+ "text": undefined,
195
+ }
207
196
  }
208
- themeIntent="secondary"
209
- themeSize="small"
210
- />
211
- </View>
212
- <View
213
- collapsable={false}
214
- onLayout={[Function]}
215
- style={
216
- Object {
217
- "height": 0,
218
- "margin": 0,
219
- "overflow": "hidden",
220
- "padding": 0,
197
+ accessible={true}
198
+ collapsable={false}
199
+ focusable={true}
200
+ onClick={[Function]}
201
+ onResponderGrant={[Function]}
202
+ onResponderMove={[Function]}
203
+ onResponderRelease={[Function]}
204
+ onResponderTerminate={[Function]}
205
+ onResponderTerminationRequest={[Function]}
206
+ onStartShouldSetResponder={[Function]}
207
+ style={
208
+ {
209
+ "flexDirection": "row",
210
+ "justifyContent": "space-between",
211
+ "opacity": 1,
212
+ }
221
213
  }
222
- }
223
- >
214
+ >
215
+ <Text
216
+ allowFontScaling={false}
217
+ style={
218
+ [
219
+ {
220
+ "color": "#001f23",
221
+ "fontFamily": "BeVietnamPro-SemiBold",
222
+ "fontSize": 16,
223
+ "letterSpacing": 0.24,
224
+ "lineHeight": 24,
225
+ },
226
+ undefined,
227
+ ]
228
+ }
229
+ themeIntent="body"
230
+ themeTypeface="neutral"
231
+ themeVariant="regular-bold"
232
+ >
233
+ Accordion header 2
234
+ </Text>
235
+ <HeroIcon
236
+ name="arrow-up"
237
+ style={
238
+ [
239
+ {
240
+ "color": "#795e90",
241
+ "fontSize": 20,
242
+ },
243
+ undefined,
244
+ ]
245
+ }
246
+ themeIntent="secondary"
247
+ themeSize="small"
248
+ />
249
+ </View>
224
250
  <View
251
+ collapsable={false}
252
+ onLayout={[Function]}
225
253
  style={
226
- Array [
227
- Object {
228
- "height": 1334,
229
- },
230
- undefined,
231
- ]
254
+ {
255
+ "height": 0,
256
+ "margin": 0,
257
+ "overflow": "hidden",
258
+ "padding": 0,
259
+ }
232
260
  }
233
261
  >
234
262
  <View
235
- onLayout={[Function]}
236
263
  style={
237
- Array [
238
- Object {
239
- "margin": 0,
240
- "padding": 0,
264
+ [
265
+ {
266
+ "height": 1334,
241
267
  },
242
- Array [
243
- Object {
244
- "paddingTop": 16,
245
- },
246
- undefined,
247
- ],
268
+ undefined,
248
269
  ]
249
270
  }
250
271
  >
251
- <Text
252
- allowFontScaling={false}
272
+ <View
273
+ onLayout={[Function]}
253
274
  style={
254
- Array [
255
- Object {
256
- "color": "#001f23",
257
- "fontFamily": "BeVietnamPro-Regular",
258
- "fontSize": 14,
259
- "letterSpacing": 0.42,
260
- "lineHeight": 22,
275
+ [
276
+ {
277
+ "margin": 0,
278
+ "padding": 0,
261
279
  },
262
- undefined,
280
+ [
281
+ {
282
+ "paddingTop": 16,
283
+ },
284
+ undefined,
285
+ ],
263
286
  ]
264
287
  }
265
- themeFontSize="medium"
266
- themeFontWeight="regular"
267
- themeIntent="body"
268
- themeTypeface="neutral"
269
288
  >
270
- Accordion content 2
271
- </Text>
289
+ <Text
290
+ allowFontScaling={false}
291
+ style={
292
+ [
293
+ {
294
+ "color": "#001f23",
295
+ "fontFamily": "BeVietnamPro-Regular",
296
+ "fontSize": 16,
297
+ "letterSpacing": 0.48,
298
+ "lineHeight": 24,
299
+ },
300
+ undefined,
301
+ ]
302
+ }
303
+ themeIntent="body"
304
+ themeTypeface="neutral"
305
+ themeVariant="regular"
306
+ >
307
+ Accordion content 2
308
+ </Text>
309
+ </View>
272
310
  </View>
273
311
  </View>
274
312
  </View>
275
313
  </View>
314
+ <View
315
+ pointerEvents="box-none"
316
+ position="bottom"
317
+ style={
318
+ [
319
+ {
320
+ "bottom": 0,
321
+ "elevation": 9999,
322
+ "flexDirection": "column-reverse",
323
+ "left": 0,
324
+ "paddingHorizontal": 24,
325
+ "paddingVertical": 16,
326
+ "position": "absolute",
327
+ "right": 0,
328
+ "top": 0,
329
+ },
330
+ undefined,
331
+ ]
332
+ }
333
+ />
276
334
  </View>
277
335
  `;
278
336
 
279
337
  exports[`Accordion renders correctly 1`] = `
280
338
  <View
281
339
  style={
282
- Array [
283
- Object {},
284
- undefined,
285
- ]
340
+ {
341
+ "flex": 1,
342
+ }
286
343
  }
287
344
  >
288
345
  <View
289
346
  style={
290
- Array [
291
- Object {
292
- "backgroundColor": "#ffffff",
293
- "borderRadius": 0,
294
- "padding": 16,
295
- },
347
+ [
348
+ {},
296
349
  undefined,
297
350
  ]
298
351
  }
299
- themeVariant="default"
300
352
  >
301
353
  <View
302
- accessible={true}
303
- collapsable={false}
304
- focusable={true}
305
- onClick={[Function]}
306
- onResponderGrant={[Function]}
307
- onResponderMove={[Function]}
308
- onResponderRelease={[Function]}
309
- onResponderTerminate={[Function]}
310
- onResponderTerminationRequest={[Function]}
311
- onStartShouldSetResponder={[Function]}
312
354
  style={
313
- Object {
314
- "flexDirection": "row",
315
- "justifyContent": "space-between",
316
- "opacity": 1,
317
- }
355
+ [
356
+ {
357
+ "backgroundColor": "#ffffff",
358
+ "borderRadius": 0,
359
+ "padding": 16,
360
+ },
361
+ undefined,
362
+ ]
318
363
  }
364
+ themeVariant="default"
319
365
  >
320
- <Text
321
- allowFontScaling={false}
322
- style={
323
- Array [
324
- Object {
325
- "color": "#001f23",
326
- "fontFamily": "BeVietnamPro-SemiBold",
327
- "fontSize": 16,
328
- "letterSpacing": 0.48,
329
- "lineHeight": 24,
330
- },
331
- undefined,
332
- ]
366
+ <View
367
+ accessibilityState={
368
+ {
369
+ "busy": undefined,
370
+ "checked": undefined,
371
+ "disabled": undefined,
372
+ "expanded": undefined,
373
+ "selected": undefined,
374
+ }
333
375
  }
334
- themeFontSize="large"
335
- themeFontWeight="semi-bold"
336
- themeIntent="body"
337
- themeTypeface="neutral"
338
- >
339
- Accordion header 1
340
- </Text>
341
- <HeroIcon
342
- name="arrow-down"
343
- style={
344
- Array [
345
- Object {
346
- "color": "#795e90",
347
- "fontSize": 20,
348
- },
349
- undefined,
350
- ]
376
+ accessibilityValue={
377
+ {
378
+ "max": undefined,
379
+ "min": undefined,
380
+ "now": undefined,
381
+ "text": undefined,
382
+ }
351
383
  }
352
- themeIntent="secondary"
353
- themeSize="small"
354
- />
355
- </View>
356
- <View
357
- collapsable={false}
358
- onLayout={[Function]}
359
- style={
360
- Object {
361
- "height": 0,
362
- "margin": 0,
363
- "overflow": "hidden",
364
- "padding": 0,
384
+ accessible={true}
385
+ collapsable={false}
386
+ focusable={true}
387
+ onClick={[Function]}
388
+ onResponderGrant={[Function]}
389
+ onResponderMove={[Function]}
390
+ onResponderRelease={[Function]}
391
+ onResponderTerminate={[Function]}
392
+ onResponderTerminationRequest={[Function]}
393
+ onStartShouldSetResponder={[Function]}
394
+ style={
395
+ {
396
+ "flexDirection": "row",
397
+ "justifyContent": "space-between",
398
+ "opacity": 1,
399
+ }
365
400
  }
366
- }
367
- >
401
+ >
402
+ <Text
403
+ allowFontScaling={false}
404
+ style={
405
+ [
406
+ {
407
+ "color": "#001f23",
408
+ "fontFamily": "BeVietnamPro-SemiBold",
409
+ "fontSize": 16,
410
+ "letterSpacing": 0.24,
411
+ "lineHeight": 24,
412
+ },
413
+ undefined,
414
+ ]
415
+ }
416
+ themeIntent="body"
417
+ themeTypeface="neutral"
418
+ themeVariant="regular-bold"
419
+ >
420
+ Accordion header 1
421
+ </Text>
422
+ <HeroIcon
423
+ name="arrow-down"
424
+ style={
425
+ [
426
+ {
427
+ "color": "#795e90",
428
+ "fontSize": 20,
429
+ },
430
+ undefined,
431
+ ]
432
+ }
433
+ themeIntent="secondary"
434
+ themeSize="small"
435
+ />
436
+ </View>
368
437
  <View
438
+ collapsable={false}
439
+ onLayout={[Function]}
369
440
  style={
370
- Array [
371
- Object {
372
- "height": 1334,
373
- },
374
- undefined,
375
- ]
441
+ {
442
+ "height": 0,
443
+ "margin": 0,
444
+ "overflow": "hidden",
445
+ "padding": 0,
446
+ }
376
447
  }
377
448
  >
378
449
  <View
379
- onLayout={[Function]}
380
450
  style={
381
- Array [
382
- Object {
383
- "margin": 0,
384
- "padding": 0,
451
+ [
452
+ {
453
+ "height": 1334,
385
454
  },
386
- Array [
387
- Object {
388
- "paddingTop": 16,
389
- },
390
- undefined,
391
- ],
455
+ undefined,
392
456
  ]
393
457
  }
394
458
  >
395
- <Text
396
- allowFontScaling={false}
459
+ <View
460
+ onLayout={[Function]}
397
461
  style={
398
- Array [
399
- Object {
400
- "color": "#001f23",
401
- "fontFamily": "BeVietnamPro-Regular",
402
- "fontSize": 14,
403
- "letterSpacing": 0.42,
404
- "lineHeight": 22,
462
+ [
463
+ {
464
+ "margin": 0,
465
+ "padding": 0,
405
466
  },
406
- undefined,
467
+ [
468
+ {
469
+ "paddingTop": 16,
470
+ },
471
+ undefined,
472
+ ],
407
473
  ]
408
474
  }
409
- themeFontSize="medium"
410
- themeFontWeight="regular"
411
- themeIntent="body"
412
- themeTypeface="neutral"
413
475
  >
414
- Accordion content 1
415
- </Text>
476
+ <Text
477
+ allowFontScaling={false}
478
+ style={
479
+ [
480
+ {
481
+ "color": "#001f23",
482
+ "fontFamily": "BeVietnamPro-Regular",
483
+ "fontSize": 16,
484
+ "letterSpacing": 0.48,
485
+ "lineHeight": 24,
486
+ },
487
+ undefined,
488
+ ]
489
+ }
490
+ themeIntent="body"
491
+ themeTypeface="neutral"
492
+ themeVariant="regular"
493
+ >
494
+ Accordion content 1
495
+ </Text>
496
+ </View>
416
497
  </View>
417
498
  </View>
418
499
  </View>
419
- </View>
420
- <View
421
- style={
422
- Array [
423
- Object {
424
- "backgroundColor": "#ffffff",
425
- "borderRadius": 0,
426
- "padding": 16,
427
- },
428
- undefined,
429
- ]
430
- }
431
- themeVariant="default"
432
- >
433
500
  <View
434
- accessible={true}
435
- collapsable={false}
436
- focusable={true}
437
- onClick={[Function]}
438
- onResponderGrant={[Function]}
439
- onResponderMove={[Function]}
440
- onResponderRelease={[Function]}
441
- onResponderTerminate={[Function]}
442
- onResponderTerminationRequest={[Function]}
443
- onStartShouldSetResponder={[Function]}
444
501
  style={
445
- Object {
446
- "flexDirection": "row",
447
- "justifyContent": "space-between",
448
- "opacity": 1,
449
- }
502
+ [
503
+ {
504
+ "backgroundColor": "#ffffff",
505
+ "borderRadius": 0,
506
+ "padding": 16,
507
+ },
508
+ undefined,
509
+ ]
450
510
  }
511
+ themeVariant="default"
451
512
  >
452
- <Text
453
- allowFontScaling={false}
454
- style={
455
- Array [
456
- Object {
457
- "color": "#001f23",
458
- "fontFamily": "BeVietnamPro-SemiBold",
459
- "fontSize": 16,
460
- "letterSpacing": 0.48,
461
- "lineHeight": 24,
462
- },
463
- undefined,
464
- ]
513
+ <View
514
+ accessibilityState={
515
+ {
516
+ "busy": undefined,
517
+ "checked": undefined,
518
+ "disabled": undefined,
519
+ "expanded": undefined,
520
+ "selected": undefined,
521
+ }
465
522
  }
466
- themeFontSize="large"
467
- themeFontWeight="semi-bold"
468
- themeIntent="body"
469
- themeTypeface="neutral"
470
- >
471
- Accordion header 2
472
- </Text>
473
- <HeroIcon
474
- name="arrow-down"
475
- style={
476
- Array [
477
- Object {
478
- "color": "#795e90",
479
- "fontSize": 20,
480
- },
481
- undefined,
482
- ]
523
+ accessibilityValue={
524
+ {
525
+ "max": undefined,
526
+ "min": undefined,
527
+ "now": undefined,
528
+ "text": undefined,
529
+ }
483
530
  }
484
- themeIntent="secondary"
485
- themeSize="small"
486
- />
487
- </View>
488
- <View
489
- collapsable={false}
490
- onLayout={[Function]}
491
- style={
492
- Object {
493
- "height": 0,
494
- "margin": 0,
495
- "overflow": "hidden",
496
- "padding": 0,
531
+ accessible={true}
532
+ collapsable={false}
533
+ focusable={true}
534
+ onClick={[Function]}
535
+ onResponderGrant={[Function]}
536
+ onResponderMove={[Function]}
537
+ onResponderRelease={[Function]}
538
+ onResponderTerminate={[Function]}
539
+ onResponderTerminationRequest={[Function]}
540
+ onStartShouldSetResponder={[Function]}
541
+ style={
542
+ {
543
+ "flexDirection": "row",
544
+ "justifyContent": "space-between",
545
+ "opacity": 1,
546
+ }
497
547
  }
498
- }
499
- >
548
+ >
549
+ <Text
550
+ allowFontScaling={false}
551
+ style={
552
+ [
553
+ {
554
+ "color": "#001f23",
555
+ "fontFamily": "BeVietnamPro-SemiBold",
556
+ "fontSize": 16,
557
+ "letterSpacing": 0.24,
558
+ "lineHeight": 24,
559
+ },
560
+ undefined,
561
+ ]
562
+ }
563
+ themeIntent="body"
564
+ themeTypeface="neutral"
565
+ themeVariant="regular-bold"
566
+ >
567
+ Accordion header 2
568
+ </Text>
569
+ <HeroIcon
570
+ name="arrow-down"
571
+ style={
572
+ [
573
+ {
574
+ "color": "#795e90",
575
+ "fontSize": 20,
576
+ },
577
+ undefined,
578
+ ]
579
+ }
580
+ themeIntent="secondary"
581
+ themeSize="small"
582
+ />
583
+ </View>
500
584
  <View
585
+ collapsable={false}
586
+ onLayout={[Function]}
501
587
  style={
502
- Array [
503
- Object {
504
- "height": 1334,
505
- },
506
- undefined,
507
- ]
588
+ {
589
+ "height": 0,
590
+ "margin": 0,
591
+ "overflow": "hidden",
592
+ "padding": 0,
593
+ }
508
594
  }
509
595
  >
510
596
  <View
511
- onLayout={[Function]}
512
597
  style={
513
- Array [
514
- Object {
515
- "margin": 0,
516
- "padding": 0,
598
+ [
599
+ {
600
+ "height": 1334,
517
601
  },
518
- Array [
519
- Object {
520
- "paddingTop": 16,
521
- },
522
- undefined,
523
- ],
602
+ undefined,
524
603
  ]
525
604
  }
526
605
  >
527
- <Text
528
- allowFontScaling={false}
606
+ <View
607
+ onLayout={[Function]}
529
608
  style={
530
- Array [
531
- Object {
532
- "color": "#001f23",
533
- "fontFamily": "BeVietnamPro-Regular",
534
- "fontSize": 14,
535
- "letterSpacing": 0.42,
536
- "lineHeight": 22,
609
+ [
610
+ {
611
+ "margin": 0,
612
+ "padding": 0,
537
613
  },
538
- undefined,
614
+ [
615
+ {
616
+ "paddingTop": 16,
617
+ },
618
+ undefined,
619
+ ],
539
620
  ]
540
621
  }
541
- themeFontSize="medium"
542
- themeFontWeight="regular"
543
- themeIntent="body"
544
- themeTypeface="neutral"
545
622
  >
546
- Accordion content 2
547
- </Text>
623
+ <Text
624
+ allowFontScaling={false}
625
+ style={
626
+ [
627
+ {
628
+ "color": "#001f23",
629
+ "fontFamily": "BeVietnamPro-Regular",
630
+ "fontSize": 16,
631
+ "letterSpacing": 0.48,
632
+ "lineHeight": 24,
633
+ },
634
+ undefined,
635
+ ]
636
+ }
637
+ themeIntent="body"
638
+ themeTypeface="neutral"
639
+ themeVariant="regular"
640
+ >
641
+ Accordion content 2
642
+ </Text>
643
+ </View>
548
644
  </View>
549
645
  </View>
550
646
  </View>
551
647
  </View>
648
+ <View
649
+ pointerEvents="box-none"
650
+ position="bottom"
651
+ style={
652
+ [
653
+ {
654
+ "bottom": 0,
655
+ "elevation": 9999,
656
+ "flexDirection": "column-reverse",
657
+ "left": 0,
658
+ "paddingHorizontal": 24,
659
+ "paddingVertical": 16,
660
+ "position": "absolute",
661
+ "right": 0,
662
+ "top": 0,
663
+ },
664
+ undefined,
665
+ ]
666
+ }
667
+ />
552
668
  </View>
553
669
  `;
554
670
 
555
671
  exports[`Accordion renders correctly when variant is card 1`] = `
556
672
  <View
557
673
  style={
558
- Array [
559
- Object {},
560
- undefined,
561
- ]
674
+ {
675
+ "flex": 1,
676
+ }
562
677
  }
563
678
  >
564
679
  <View
565
680
  style={
566
- Array [
567
- Object {
568
- "backgroundColor": "#ffffff",
569
- "borderRadius": 8,
570
- "padding": 16,
571
- },
681
+ [
682
+ {},
572
683
  undefined,
573
684
  ]
574
685
  }
575
- themeVariant="card"
576
686
  >
577
687
  <View
578
- accessible={true}
579
- collapsable={false}
580
- focusable={true}
581
- onClick={[Function]}
582
- onResponderGrant={[Function]}
583
- onResponderMove={[Function]}
584
- onResponderRelease={[Function]}
585
- onResponderTerminate={[Function]}
586
- onResponderTerminationRequest={[Function]}
587
- onStartShouldSetResponder={[Function]}
588
688
  style={
589
- Object {
590
- "flexDirection": "row",
591
- "justifyContent": "space-between",
592
- "opacity": 1,
593
- }
689
+ [
690
+ {
691
+ "backgroundColor": "#ffffff",
692
+ "borderRadius": 8,
693
+ "padding": 16,
694
+ },
695
+ undefined,
696
+ ]
594
697
  }
698
+ themeVariant="card"
595
699
  >
596
- <Text
597
- allowFontScaling={false}
598
- style={
599
- Array [
600
- Object {
601
- "color": "#001f23",
602
- "fontFamily": "BeVietnamPro-SemiBold",
603
- "fontSize": 16,
604
- "letterSpacing": 0.48,
605
- "lineHeight": 24,
606
- },
607
- undefined,
608
- ]
700
+ <View
701
+ accessibilityState={
702
+ {
703
+ "busy": undefined,
704
+ "checked": undefined,
705
+ "disabled": undefined,
706
+ "expanded": undefined,
707
+ "selected": undefined,
708
+ }
609
709
  }
610
- themeFontSize="large"
611
- themeFontWeight="semi-bold"
612
- themeIntent="body"
613
- themeTypeface="neutral"
614
- >
615
- Accordion header 1
616
- </Text>
617
- <HeroIcon
618
- name="arrow-down"
619
- style={
620
- Array [
621
- Object {
622
- "color": "#795e90",
623
- "fontSize": 20,
624
- },
625
- undefined,
626
- ]
710
+ accessibilityValue={
711
+ {
712
+ "max": undefined,
713
+ "min": undefined,
714
+ "now": undefined,
715
+ "text": undefined,
716
+ }
627
717
  }
628
- themeIntent="secondary"
629
- themeSize="small"
630
- />
631
- </View>
632
- <View
633
- collapsable={false}
634
- onLayout={[Function]}
635
- style={
636
- Object {
637
- "height": 0,
638
- "margin": 0,
639
- "overflow": "hidden",
640
- "padding": 0,
718
+ accessible={true}
719
+ collapsable={false}
720
+ focusable={true}
721
+ onClick={[Function]}
722
+ onResponderGrant={[Function]}
723
+ onResponderMove={[Function]}
724
+ onResponderRelease={[Function]}
725
+ onResponderTerminate={[Function]}
726
+ onResponderTerminationRequest={[Function]}
727
+ onStartShouldSetResponder={[Function]}
728
+ style={
729
+ {
730
+ "flexDirection": "row",
731
+ "justifyContent": "space-between",
732
+ "opacity": 1,
733
+ }
641
734
  }
642
- }
643
- >
735
+ >
736
+ <Text
737
+ allowFontScaling={false}
738
+ style={
739
+ [
740
+ {
741
+ "color": "#001f23",
742
+ "fontFamily": "BeVietnamPro-SemiBold",
743
+ "fontSize": 16,
744
+ "letterSpacing": 0.24,
745
+ "lineHeight": 24,
746
+ },
747
+ undefined,
748
+ ]
749
+ }
750
+ themeIntent="body"
751
+ themeTypeface="neutral"
752
+ themeVariant="regular-bold"
753
+ >
754
+ Accordion header 1
755
+ </Text>
756
+ <HeroIcon
757
+ name="arrow-down"
758
+ style={
759
+ [
760
+ {
761
+ "color": "#795e90",
762
+ "fontSize": 20,
763
+ },
764
+ undefined,
765
+ ]
766
+ }
767
+ themeIntent="secondary"
768
+ themeSize="small"
769
+ />
770
+ </View>
644
771
  <View
772
+ collapsable={false}
773
+ onLayout={[Function]}
645
774
  style={
646
- Array [
647
- Object {
648
- "height": 1334,
649
- },
650
- undefined,
651
- ]
775
+ {
776
+ "height": 0,
777
+ "margin": 0,
778
+ "overflow": "hidden",
779
+ "padding": 0,
780
+ }
652
781
  }
653
782
  >
654
783
  <View
655
- onLayout={[Function]}
656
784
  style={
657
- Array [
658
- Object {
659
- "margin": 0,
660
- "padding": 0,
785
+ [
786
+ {
787
+ "height": 1334,
661
788
  },
662
- Array [
663
- Object {
664
- "paddingTop": 16,
665
- },
666
- undefined,
667
- ],
789
+ undefined,
668
790
  ]
669
791
  }
670
792
  >
671
- <Text
672
- allowFontScaling={false}
793
+ <View
794
+ onLayout={[Function]}
673
795
  style={
674
- Array [
675
- Object {
676
- "color": "#001f23",
677
- "fontFamily": "BeVietnamPro-Regular",
678
- "fontSize": 14,
679
- "letterSpacing": 0.42,
680
- "lineHeight": 22,
796
+ [
797
+ {
798
+ "margin": 0,
799
+ "padding": 0,
681
800
  },
682
- undefined,
801
+ [
802
+ {
803
+ "paddingTop": 16,
804
+ },
805
+ undefined,
806
+ ],
683
807
  ]
684
808
  }
685
- themeFontSize="medium"
686
- themeFontWeight="regular"
687
- themeIntent="body"
688
- themeTypeface="neutral"
689
809
  >
690
- Accordion content 1
691
- </Text>
810
+ <Text
811
+ allowFontScaling={false}
812
+ style={
813
+ [
814
+ {
815
+ "color": "#001f23",
816
+ "fontFamily": "BeVietnamPro-Regular",
817
+ "fontSize": 16,
818
+ "letterSpacing": 0.48,
819
+ "lineHeight": 24,
820
+ },
821
+ undefined,
822
+ ]
823
+ }
824
+ themeIntent="body"
825
+ themeTypeface="neutral"
826
+ themeVariant="regular"
827
+ >
828
+ Accordion content 1
829
+ </Text>
830
+ </View>
692
831
  </View>
693
832
  </View>
694
833
  </View>
695
- </View>
696
- <View
697
- style={
698
- Array [
699
- Object {
700
- "paddingTop": 16,
701
- },
702
- undefined,
703
- ]
704
- }
705
- testID="accordion-spacer"
706
- />
707
- <View
708
- style={
709
- Array [
710
- Object {
711
- "backgroundColor": "#ffffff",
712
- "borderRadius": 8,
713
- "padding": 16,
714
- },
715
- undefined,
716
- ]
717
- }
718
- themeVariant="card"
719
- >
720
834
  <View
721
- accessible={true}
722
- collapsable={false}
723
- focusable={true}
724
- onClick={[Function]}
725
- onResponderGrant={[Function]}
726
- onResponderMove={[Function]}
727
- onResponderRelease={[Function]}
728
- onResponderTerminate={[Function]}
729
- onResponderTerminationRequest={[Function]}
730
- onStartShouldSetResponder={[Function]}
731
835
  style={
732
- Object {
733
- "flexDirection": "row",
734
- "justifyContent": "space-between",
735
- "opacity": 1,
736
- }
836
+ [
837
+ {
838
+ "paddingTop": 16,
839
+ },
840
+ undefined,
841
+ ]
737
842
  }
738
- >
739
- <Text
740
- allowFontScaling={false}
741
- style={
742
- Array [
743
- Object {
744
- "color": "#001f23",
745
- "fontFamily": "BeVietnamPro-SemiBold",
746
- "fontSize": 16,
747
- "letterSpacing": 0.48,
748
- "lineHeight": 24,
749
- },
750
- undefined,
751
- ]
752
- }
753
- themeFontSize="large"
754
- themeFontWeight="semi-bold"
755
- themeIntent="body"
756
- themeTypeface="neutral"
757
- >
758
- Accordion header 2
759
- </Text>
760
- <HeroIcon
761
- name="arrow-down"
762
- style={
763
- Array [
764
- Object {
765
- "color": "#795e90",
766
- "fontSize": 20,
767
- },
768
- undefined,
769
- ]
770
- }
771
- themeIntent="secondary"
772
- themeSize="small"
773
- />
774
- </View>
843
+ testID="accordion-spacer"
844
+ />
775
845
  <View
776
- collapsable={false}
777
- onLayout={[Function]}
778
846
  style={
779
- Object {
780
- "height": 0,
781
- "margin": 0,
782
- "overflow": "hidden",
783
- "padding": 0,
784
- }
847
+ [
848
+ {
849
+ "backgroundColor": "#ffffff",
850
+ "borderRadius": 8,
851
+ "padding": 16,
852
+ },
853
+ undefined,
854
+ ]
785
855
  }
856
+ themeVariant="card"
786
857
  >
787
858
  <View
859
+ accessibilityState={
860
+ {
861
+ "busy": undefined,
862
+ "checked": undefined,
863
+ "disabled": undefined,
864
+ "expanded": undefined,
865
+ "selected": undefined,
866
+ }
867
+ }
868
+ accessibilityValue={
869
+ {
870
+ "max": undefined,
871
+ "min": undefined,
872
+ "now": undefined,
873
+ "text": undefined,
874
+ }
875
+ }
876
+ accessible={true}
877
+ collapsable={false}
878
+ focusable={true}
879
+ onClick={[Function]}
880
+ onResponderGrant={[Function]}
881
+ onResponderMove={[Function]}
882
+ onResponderRelease={[Function]}
883
+ onResponderTerminate={[Function]}
884
+ onResponderTerminationRequest={[Function]}
885
+ onStartShouldSetResponder={[Function]}
788
886
  style={
789
- Array [
790
- Object {
791
- "height": 1334,
792
- },
793
- undefined,
794
- ]
887
+ {
888
+ "flexDirection": "row",
889
+ "justifyContent": "space-between",
890
+ "opacity": 1,
891
+ }
892
+ }
893
+ >
894
+ <Text
895
+ allowFontScaling={false}
896
+ style={
897
+ [
898
+ {
899
+ "color": "#001f23",
900
+ "fontFamily": "BeVietnamPro-SemiBold",
901
+ "fontSize": 16,
902
+ "letterSpacing": 0.24,
903
+ "lineHeight": 24,
904
+ },
905
+ undefined,
906
+ ]
907
+ }
908
+ themeIntent="body"
909
+ themeTypeface="neutral"
910
+ themeVariant="regular-bold"
911
+ >
912
+ Accordion header 2
913
+ </Text>
914
+ <HeroIcon
915
+ name="arrow-down"
916
+ style={
917
+ [
918
+ {
919
+ "color": "#795e90",
920
+ "fontSize": 20,
921
+ },
922
+ undefined,
923
+ ]
924
+ }
925
+ themeIntent="secondary"
926
+ themeSize="small"
927
+ />
928
+ </View>
929
+ <View
930
+ collapsable={false}
931
+ onLayout={[Function]}
932
+ style={
933
+ {
934
+ "height": 0,
935
+ "margin": 0,
936
+ "overflow": "hidden",
937
+ "padding": 0,
938
+ }
795
939
  }
796
940
  >
797
941
  <View
798
- onLayout={[Function]}
799
942
  style={
800
- Array [
801
- Object {
802
- "margin": 0,
803
- "padding": 0,
943
+ [
944
+ {
945
+ "height": 1334,
804
946
  },
805
- Array [
806
- Object {
807
- "paddingTop": 16,
808
- },
809
- undefined,
810
- ],
947
+ undefined,
811
948
  ]
812
949
  }
813
950
  >
814
- <Text
815
- allowFontScaling={false}
951
+ <View
952
+ onLayout={[Function]}
816
953
  style={
817
- Array [
818
- Object {
819
- "color": "#001f23",
820
- "fontFamily": "BeVietnamPro-Regular",
821
- "fontSize": 14,
822
- "letterSpacing": 0.42,
823
- "lineHeight": 22,
954
+ [
955
+ {
956
+ "margin": 0,
957
+ "padding": 0,
824
958
  },
825
- undefined,
959
+ [
960
+ {
961
+ "paddingTop": 16,
962
+ },
963
+ undefined,
964
+ ],
826
965
  ]
827
966
  }
828
- themeFontSize="medium"
829
- themeFontWeight="regular"
830
- themeIntent="body"
831
- themeTypeface="neutral"
832
967
  >
833
- Accordion content 2
834
- </Text>
968
+ <Text
969
+ allowFontScaling={false}
970
+ style={
971
+ [
972
+ {
973
+ "color": "#001f23",
974
+ "fontFamily": "BeVietnamPro-Regular",
975
+ "fontSize": 16,
976
+ "letterSpacing": 0.48,
977
+ "lineHeight": 24,
978
+ },
979
+ undefined,
980
+ ]
981
+ }
982
+ themeIntent="body"
983
+ themeTypeface="neutral"
984
+ themeVariant="regular"
985
+ >
986
+ Accordion content 2
987
+ </Text>
988
+ </View>
835
989
  </View>
836
990
  </View>
837
991
  </View>
838
992
  </View>
993
+ <View
994
+ pointerEvents="box-none"
995
+ position="bottom"
996
+ style={
997
+ [
998
+ {
999
+ "bottom": 0,
1000
+ "elevation": 9999,
1001
+ "flexDirection": "column-reverse",
1002
+ "left": 0,
1003
+ "paddingHorizontal": 24,
1004
+ "paddingVertical": 16,
1005
+ "position": "absolute",
1006
+ "right": 0,
1007
+ "top": 0,
1008
+ },
1009
+ undefined,
1010
+ ]
1011
+ }
1012
+ />
839
1013
  </View>
840
1014
  `;