@hero-design/rn 8.22.0 → 8.24.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 (319) hide show
  1. package/.turbo/turbo-build.log +9 -9
  2. package/.turbo/turbo-build:types.log +2 -0
  3. package/.turbo/turbo-lint.log +146 -0
  4. package/.turbo/turbo-publish:npm.log +9 -0
  5. package/.turbo/turbo-test.log +451 -0
  6. package/.turbo/turbo-type-check.log +1 -0
  7. package/es/index.js +527 -165
  8. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  9. package/lib/index.js +527 -164
  10. package/package.json +5 -5
  11. package/src/components/Alert/index.tsx +6 -0
  12. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +21 -9
  13. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +7 -3
  14. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +7 -3
  15. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +7 -3
  16. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  17. package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +5 -5
  18. package/src/components/List/ListItem.tsx +12 -8
  19. package/src/components/RichTextEditor/RichTextEditor.tsx +10 -7
  20. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +10 -8
  21. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +37 -16
  22. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +37 -16
  23. package/src/components/Success/StyledSuccess.tsx +87 -0
  24. package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +497 -0
  25. package/src/components/Success/__tests__/index.spec.tsx +78 -0
  26. package/src/components/Success/index.tsx +129 -0
  27. package/src/components/Tabs/ScrollableTabs.tsx +10 -149
  28. package/src/components/Tabs/ScrollableTabsHeader.tsx +214 -0
  29. package/src/components/Tabs/ScrollableTabsV2/SceneView.tsx +61 -0
  30. package/src/components/Tabs/ScrollableTabsV2/ScrollableTabsV2.tsx +120 -0
  31. package/src/components/Tabs/ScrollableTabsV2/__tests__/SceneView.spec.tsx +76 -0
  32. package/src/components/Tabs/ScrollableTabsV2/__tests__/ScrollableTabsV2.spec.tsx +166 -0
  33. package/src/components/Tabs/ScrollableTabsV2/__tests__/__snapshots__/SceneView.spec.tsx.snap +161 -0
  34. package/src/components/Tabs/ScrollableTabsV2/__tests__/__snapshots__/ScrollableTabsV2.spec.tsx.snap +2497 -0
  35. package/src/components/Tabs/ScrollableTabsV2/index.tsx +5 -0
  36. package/src/components/Tabs/__tests__/ScrollableTabsHeader.spec.tsx +80 -0
  37. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +587 -0
  38. package/src/components/Tabs/index.tsx +2 -0
  39. package/src/components/Tag/StyledTag.tsx +1 -1
  40. package/src/components/Tag/__tests__/Tag.spec.tsx +22 -71
  41. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +106 -53
  42. package/src/components/TextInput/StyledTextInput.tsx +40 -29
  43. package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +48 -57
  44. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +84 -58
  45. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +587 -70
  46. package/src/components/TextInput/__tests__/index.spec.tsx +45 -4
  47. package/src/components/TextInput/index.tsx +31 -16
  48. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +14 -6
  49. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +14 -6
  50. package/src/index.ts +2 -0
  51. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +41 -6
  52. package/src/theme/components/empty.ts +1 -1
  53. package/src/theme/components/error.ts +1 -1
  54. package/src/theme/components/success.ts +40 -0
  55. package/src/theme/components/tag.ts +1 -1
  56. package/src/theme/components/textInput.ts +10 -4
  57. package/src/theme/getTheme.ts +3 -0
  58. package/src/utils/hooks.ts +1 -1
  59. package/testUtils/setup.tsx +6 -0
  60. package/types/components/Accordion/AccordionItem.d.ts +0 -0
  61. package/types/components/Accordion/StyledAccordion.d.ts +0 -0
  62. package/types/components/Accordion/index.d.ts +0 -0
  63. package/types/components/Alert/StyledAlert.d.ts +0 -0
  64. package/types/components/Alert/index.d.ts +0 -0
  65. package/types/components/Attachment/StyledAttachment.d.ts +0 -0
  66. package/types/components/Attachment/index.d.ts +0 -0
  67. package/types/components/Avatar/Avatar.d.ts +0 -0
  68. package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +0 -0
  69. package/types/components/Avatar/AvatarStack/index.d.ts +0 -0
  70. package/types/components/Avatar/AvatarStack/utils.d.ts +0 -0
  71. package/types/components/Avatar/StyledAvatar.d.ts +0 -0
  72. package/types/components/Avatar/index.d.ts +0 -0
  73. package/types/components/Badge/Status.d.ts +0 -0
  74. package/types/components/Badge/StyledBadge.d.ts +0 -0
  75. package/types/components/Badge/index.d.ts +0 -0
  76. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
  77. package/types/components/BottomNavigation/index.d.ts +0 -0
  78. package/types/components/BottomSheet/BottomSheetContext.d.ts +0 -0
  79. package/types/components/BottomSheet/Footer.d.ts +0 -0
  80. package/types/components/BottomSheet/Header.d.ts +0 -0
  81. package/types/components/BottomSheet/ScrollView.d.ts +0 -0
  82. package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -0
  83. package/types/components/BottomSheet/index.d.ts +0 -0
  84. package/types/components/Box/StyledBox.d.ts +0 -0
  85. package/types/components/Box/config.d.ts +0 -0
  86. package/types/components/Box/index.d.ts +0 -0
  87. package/types/components/Box/types.d.ts +0 -0
  88. package/types/components/Button/Button.d.ts +0 -0
  89. package/types/components/Button/IconButton.d.ts +0 -0
  90. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
  91. package/types/components/Button/LoadingIndicator/index.d.ts +0 -0
  92. package/types/components/Button/StyledButton.d.ts +0 -0
  93. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +0 -0
  94. package/types/components/Button/UtilityButton/index.d.ts +0 -0
  95. package/types/components/Button/index.d.ts +0 -0
  96. package/types/components/Calendar/CalendarRowItem.d.ts +0 -0
  97. package/types/components/Calendar/StyledCalendar.d.ts +0 -0
  98. package/types/components/Calendar/helpers.d.ts +0 -0
  99. package/types/components/Calendar/index.d.ts +0 -0
  100. package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -0
  101. package/types/components/Card/DataCard/index.d.ts +0 -0
  102. package/types/components/Card/StyledCard.d.ts +0 -0
  103. package/types/components/Card/index.d.ts +0 -0
  104. package/types/components/Carousel/CardCarousel.d.ts +0 -0
  105. package/types/components/Carousel/CarouselItem.d.ts +0 -0
  106. package/types/components/Carousel/StyledCardCarousel.d.ts +0 -0
  107. package/types/components/Carousel/StyledCarousel.d.ts +0 -0
  108. package/types/components/Carousel/contants.d.ts +0 -0
  109. package/types/components/Carousel/index.d.ts +0 -0
  110. package/types/components/Carousel/types.d.ts +0 -0
  111. package/types/components/Checkbox/StyledCheckbox.d.ts +0 -0
  112. package/types/components/Checkbox/index.d.ts +0 -0
  113. package/types/components/Collapse/StyledCollapse.d.ts +0 -0
  114. package/types/components/Collapse/index.d.ts +0 -0
  115. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -0
  116. package/types/components/ContentNavigator/index.d.ts +0 -0
  117. package/types/components/DatePicker/DatePickerAndroid.d.ts +0 -0
  118. package/types/components/DatePicker/DatePickerCalendar.d.ts +0 -0
  119. package/types/components/DatePicker/DatePickerIOS.d.ts +0 -0
  120. package/types/components/DatePicker/StyledDatePicker.d.ts +0 -0
  121. package/types/components/DatePicker/index.d.ts +0 -0
  122. package/types/components/DatePicker/types.d.ts +0 -0
  123. package/types/components/Divider/StyledDivider.d.ts +0 -0
  124. package/types/components/Divider/index.d.ts +0 -0
  125. package/types/components/Drawer/DragableDrawer/helpers.d.ts +0 -0
  126. package/types/components/Drawer/DragableDrawer/index.d.ts +0 -0
  127. package/types/components/Drawer/StyledDrawer.d.ts +0 -0
  128. package/types/components/Drawer/index.d.ts +0 -0
  129. package/types/components/Empty/StyledEmpty.d.ts +0 -0
  130. package/types/components/Empty/index.d.ts +0 -0
  131. package/types/components/Error/StyledError.d.ts +0 -0
  132. package/types/components/Error/index.d.ts +0 -0
  133. package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
  134. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
  135. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
  136. package/types/components/FAB/ActionGroup/index.d.ts +0 -0
  137. package/types/components/FAB/AnimatedFABIcon.d.ts +0 -0
  138. package/types/components/FAB/FAB.d.ts +0 -0
  139. package/types/components/FAB/StyledFAB.d.ts +0 -0
  140. package/types/components/FAB/index.d.ts +0 -0
  141. package/types/components/Icon/AnimatedIcon.d.ts +0 -0
  142. package/types/components/Icon/HeroIcon/index.d.ts +0 -0
  143. package/types/components/Icon/IconList.d.ts +0 -0
  144. package/types/components/Icon/index.d.ts +0 -0
  145. package/types/components/Icon/utils.d.ts +0 -0
  146. package/types/components/Image/index.d.ts +0 -0
  147. package/types/components/List/BasicListItem.d.ts +0 -0
  148. package/types/components/List/ListItem.d.ts +0 -0
  149. package/types/components/List/StyledBasicListItem.d.ts +0 -0
  150. package/types/components/List/StyledListItem.d.ts +0 -0
  151. package/types/components/List/index.d.ts +0 -0
  152. package/types/components/PageControl/StyledPageControl.d.ts +0 -0
  153. package/types/components/PageControl/index.d.ts +0 -0
  154. package/types/components/PinInput/PinCell.d.ts +0 -0
  155. package/types/components/PinInput/StyledPinInput.d.ts +0 -0
  156. package/types/components/PinInput/index.d.ts +0 -0
  157. package/types/components/Progress/ProgressBar.d.ts +0 -0
  158. package/types/components/Progress/ProgressCircle.d.ts +0 -0
  159. package/types/components/Progress/StyledProgressBar.d.ts +0 -0
  160. package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
  161. package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
  162. package/types/components/Progress/constants.d.ts +0 -0
  163. package/types/components/Progress/index.d.ts +0 -0
  164. package/types/components/Progress/types.d.ts +0 -0
  165. package/types/components/Radio/Radio.d.ts +0 -0
  166. package/types/components/Radio/RadioGroup.d.ts +0 -0
  167. package/types/components/Radio/StyledRadio.d.ts +0 -0
  168. package/types/components/Radio/index.d.ts +0 -0
  169. package/types/components/Radio/types.d.ts +0 -0
  170. package/types/components/RefreshControl/index.d.ts +0 -0
  171. package/types/components/RichTextEditor/EditorEvent.d.ts +0 -0
  172. package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -0
  173. package/types/components/RichTextEditor/MentionList.d.ts +0 -0
  174. package/types/components/RichTextEditor/RichTextEditor.d.ts +0 -0
  175. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -0
  176. package/types/components/RichTextEditor/StyledToolbar.d.ts +0 -0
  177. package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -0
  178. package/types/components/RichTextEditor/constants.d.ts +0 -0
  179. package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -0
  180. package/types/components/RichTextEditor/index.d.ts +0 -0
  181. package/types/components/RichTextEditor/types.d.ts +0 -0
  182. package/types/components/RichTextEditor/utils/events.d.ts +0 -0
  183. package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -0
  184. package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
  185. package/types/components/SectionHeading/index.d.ts +0 -0
  186. package/types/components/Select/BaseOptionList.d.ts +0 -0
  187. package/types/components/Select/Footer.d.ts +0 -0
  188. package/types/components/Select/MultiSelect/Option.d.ts +0 -0
  189. package/types/components/Select/MultiSelect/OptionList.d.ts +0 -0
  190. package/types/components/Select/MultiSelect/index.d.ts +0 -0
  191. package/types/components/Select/SingleSelect/Option.d.ts +0 -0
  192. package/types/components/Select/SingleSelect/OptionList.d.ts +0 -0
  193. package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +0 -0
  194. package/types/components/Select/SingleSelect/index.d.ts +0 -0
  195. package/types/components/Select/StyledSelect.d.ts +0 -0
  196. package/types/components/Select/helpers.d.ts +0 -0
  197. package/types/components/Select/index.d.ts +0 -0
  198. package/types/components/Select/types.d.ts +0 -0
  199. package/types/components/Skeleton/StyledSkeleton.d.ts +0 -0
  200. package/types/components/Skeleton/index.d.ts +0 -0
  201. package/types/components/Slider/index.d.ts +0 -0
  202. package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
  203. package/types/components/Spinner/StyledSpinner.d.ts +0 -0
  204. package/types/components/Spinner/index.d.ts +0 -0
  205. package/types/components/Success/StyledSuccess.d.ts +54 -0
  206. package/types/components/Success/index.d.ts +42 -0
  207. package/types/components/Swipeable/StyledSwipeable.d.ts +0 -0
  208. package/types/components/Swipeable/SwipeableAction.d.ts +0 -0
  209. package/types/components/Swipeable/index.d.ts +0 -0
  210. package/types/components/Switch/SelectorSwitch/Option.d.ts +0 -0
  211. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -0
  212. package/types/components/Switch/SelectorSwitch/index.d.ts +0 -0
  213. package/types/components/Switch/StyledSwitch.d.ts +0 -0
  214. package/types/components/Switch/index.d.ts +0 -0
  215. package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
  216. package/types/components/Tabs/SceneView.d.ts +9 -0
  217. package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
  218. package/types/components/Tabs/ScrollableTabsHeader.d.ts +35 -0
  219. package/types/components/Tabs/ScrollableTabsV2/SceneView.d.ts +10 -0
  220. package/types/components/Tabs/ScrollableTabsV2/ScrollableTabsV2.d.ts +9 -0
  221. package/types/components/Tabs/ScrollableTabsV2/index.d.ts +4 -0
  222. package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -0
  223. package/types/components/Tabs/StyledTabs.d.ts +0 -0
  224. package/types/components/Tabs/TabWithBadge.d.ts +0 -0
  225. package/types/components/Tabs/index.d.ts +3 -0
  226. package/types/components/Tabs/utils.d.ts +0 -0
  227. package/types/components/Tag/StyledTag.d.ts +0 -0
  228. package/types/components/Tag/index.d.ts +0 -0
  229. package/types/components/TextInput/StyledTextInput.d.ts +12 -7
  230. package/types/components/TextInput/index.d.ts +12 -4
  231. package/types/components/TimePicker/StyledTimePicker.d.ts +0 -0
  232. package/types/components/TimePicker/TimePickerAndroid.d.ts +0 -0
  233. package/types/components/TimePicker/TimePickerIOS.d.ts +0 -0
  234. package/types/components/TimePicker/index.d.ts +0 -0
  235. package/types/components/TimePicker/types.d.ts +0 -0
  236. package/types/components/Toast/StyledToast.d.ts +0 -0
  237. package/types/components/Toast/Toast.d.ts +0 -0
  238. package/types/components/Toast/ToastContainer.d.ts +0 -0
  239. package/types/components/Toast/ToastContext.d.ts +0 -0
  240. package/types/components/Toast/ToastProvider.d.ts +0 -0
  241. package/types/components/Toast/index.d.ts +0 -0
  242. package/types/components/Toast/types.d.ts +0 -0
  243. package/types/components/Toolbar/StyledToolbar.d.ts +0 -0
  244. package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
  245. package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
  246. package/types/components/Toolbar/index.d.ts +0 -0
  247. package/types/components/Typography/Text/StyledText.d.ts +0 -0
  248. package/types/components/Typography/Text/index.d.ts +0 -0
  249. package/types/components/Typography/index.d.ts +0 -0
  250. package/types/index.d.ts +2 -1
  251. package/types/testHelpers/renderWithTheme.d.ts +0 -0
  252. package/types/theme/ThemeProvider.d.ts +0 -0
  253. package/types/theme/ThemeSwitcher.d.ts +0 -0
  254. package/types/theme/components/accordion.d.ts +0 -0
  255. package/types/theme/components/alert.d.ts +0 -0
  256. package/types/theme/components/attachment.d.ts +0 -0
  257. package/types/theme/components/avatar.d.ts +0 -0
  258. package/types/theme/components/badge.d.ts +0 -0
  259. package/types/theme/components/bottomNavigation.d.ts +0 -0
  260. package/types/theme/components/bottomSheet.d.ts +0 -0
  261. package/types/theme/components/button.d.ts +0 -0
  262. package/types/theme/components/calendar.d.ts +0 -0
  263. package/types/theme/components/card.d.ts +0 -0
  264. package/types/theme/components/cardCarousel.d.ts +0 -0
  265. package/types/theme/components/carousel.d.ts +0 -0
  266. package/types/theme/components/checkbox.d.ts +0 -0
  267. package/types/theme/components/contentNavigator.d.ts +0 -0
  268. package/types/theme/components/datePicker.d.ts +0 -0
  269. package/types/theme/components/divider.d.ts +0 -0
  270. package/types/theme/components/drawer.d.ts +0 -0
  271. package/types/theme/components/empty.d.ts +0 -0
  272. package/types/theme/components/error.d.ts +0 -0
  273. package/types/theme/components/fab.d.ts +0 -0
  274. package/types/theme/components/icon.d.ts +0 -0
  275. package/types/theme/components/image.d.ts +0 -0
  276. package/types/theme/components/list.d.ts +0 -0
  277. package/types/theme/components/pageControl.d.ts +0 -0
  278. package/types/theme/components/pinInput.d.ts +0 -0
  279. package/types/theme/components/progress.d.ts +0 -0
  280. package/types/theme/components/radio.d.ts +0 -0
  281. package/types/theme/components/refreshControl.d.ts +0 -0
  282. package/types/theme/components/richTextEditor.d.ts +0 -0
  283. package/types/theme/components/sectionHeading.d.ts +0 -0
  284. package/types/theme/components/select.d.ts +0 -0
  285. package/types/theme/components/skeleton.d.ts +0 -0
  286. package/types/theme/components/slider.d.ts +0 -0
  287. package/types/theme/components/spinner.d.ts +0 -0
  288. package/types/theme/components/success.d.ts +32 -0
  289. package/types/theme/components/swipeable.d.ts +0 -0
  290. package/types/theme/components/switch.d.ts +0 -0
  291. package/types/theme/components/tabs.d.ts +0 -0
  292. package/types/theme/components/tag.d.ts +0 -0
  293. package/types/theme/components/textInput.d.ts +5 -0
  294. package/types/theme/components/timePicker.d.ts +0 -0
  295. package/types/theme/components/toast.d.ts +0 -0
  296. package/types/theme/components/toolbar.d.ts +0 -0
  297. package/types/theme/components/typography.d.ts +0 -0
  298. package/types/theme/getTheme.d.ts +2 -0
  299. package/types/theme/global/borders.d.ts +0 -0
  300. package/types/theme/global/colors/eBens.d.ts +0 -0
  301. package/types/theme/global/colors/global.d.ts +0 -0
  302. package/types/theme/global/colors/globalDark.d.ts +0 -0
  303. package/types/theme/global/colors/jobs.d.ts +0 -0
  304. package/types/theme/global/colors/swag.d.ts +0 -0
  305. package/types/theme/global/colors/swagDark.d.ts +0 -0
  306. package/types/theme/global/colors/types.d.ts +0 -0
  307. package/types/theme/global/colors/wallet.d.ts +0 -0
  308. package/types/theme/global/colors/work.d.ts +0 -0
  309. package/types/theme/global/index.d.ts +0 -0
  310. package/types/theme/global/scale.d.ts +0 -0
  311. package/types/theme/global/sizes.d.ts +0 -0
  312. package/types/theme/global/space.d.ts +0 -0
  313. package/types/theme/global/typography.d.ts +0 -0
  314. package/types/theme/index.d.ts +0 -0
  315. package/types/types.d.ts +0 -0
  316. package/types/utils/functions.d.ts +0 -0
  317. package/types/utils/helpers.d.ts +0 -0
  318. package/types/utils/hooks.d.ts +0 -0
  319. package/types/utils/scale.d.ts +0 -0
@@ -15,15 +15,15 @@ import {
15
15
 
16
16
  describe('Label', () => {
17
17
  it.each`
18
- themeVariant
18
+ themeState
19
19
  ${'default'}
20
20
  ${'filled'}
21
21
  ${'error'}
22
22
  ${'disabled'}
23
23
  ${'readonly'}
24
- `('renders correctly with themeVariant $themeVariant', ({ themeVariant }) => {
24
+ `('renders correctly with themeState $themeState', ({ themeState }) => {
25
25
  const { toJSON } = renderWithTheme(
26
- <StyledLabel themeVariant={themeVariant}>Label</StyledLabel>
26
+ <StyledLabel themeState={themeState}>Label</StyledLabel>
27
27
  );
28
28
 
29
29
  expect(toJSON()).toMatchSnapshot();
@@ -31,24 +31,21 @@ describe('Label', () => {
31
31
  });
32
32
  describe('LabelInsideTextInput', () => {
33
33
  it.each`
34
- themeVariant
34
+ themeState
35
35
  ${'default'}
36
36
  ${'filled'}
37
37
  ${'error'}
38
38
  ${'disabled'}
39
39
  ${'readonly'}
40
- `(
41
- 'renders correctly with themeVariant $themeVariant',
42
- ({ themeVariant }): void => {
43
- const { toJSON } = renderWithTheme(
44
- <StyledLabelInsideTextInput themeVariant={themeVariant}>
45
- Label
46
- </StyledLabelInsideTextInput>
47
- );
48
-
49
- expect(toJSON()).toMatchSnapshot();
50
- }
51
- );
40
+ `('renders correctly with themeState $themeState', ({ themeState }): void => {
41
+ const { toJSON } = renderWithTheme(
42
+ <StyledLabelInsideTextInput themeState={themeState}>
43
+ Label
44
+ </StyledLabelInsideTextInput>
45
+ );
46
+
47
+ expect(toJSON()).toMatchSnapshot();
48
+ });
52
49
  });
53
50
 
54
51
  describe('LabelContainer', () => {
@@ -61,22 +58,19 @@ describe('LabelContainer', () => {
61
58
 
62
59
  describe('StyledAsteriskLabel', () => {
63
60
  it.each`
64
- themeVariant
61
+ themeState
65
62
  ${'default'}
66
63
  ${'filled'}
67
64
  ${'error'}
68
65
  ${'disabled'}
69
66
  ${'readonly'}
70
- `(
71
- 'renders correctly with themeVariant $themeVariant',
72
- ({ themeVariant }): void => {
73
- const { toJSON } = renderWithTheme(
74
- <StyledAsteriskLabel themeVariant={themeVariant}>*</StyledAsteriskLabel>
75
- );
76
-
77
- expect(toJSON()).toMatchSnapshot();
78
- }
79
- );
67
+ `('renders correctly with themeState $themeState', ({ themeState }): void => {
68
+ const { toJSON } = renderWithTheme(
69
+ <StyledAsteriskLabel themeState={themeState}>*</StyledAsteriskLabel>
70
+ );
71
+
72
+ expect(toJSON()).toMatchSnapshot();
73
+ });
80
74
  });
81
75
 
82
76
  describe('StyledErrorMessageContainer', () => {
@@ -99,24 +93,21 @@ describe('StyledErrorMessage', () => {
99
93
 
100
94
  describe('StyledMaxLengthMessage', () => {
101
95
  it.each`
102
- themeVariant
96
+ themeState
103
97
  ${'default'}
104
98
  ${'filled'}
105
99
  ${'error'}
106
100
  ${'disabled'}
107
101
  ${'readonly'}
108
- `(
109
- 'renders correctly with themeVariant $themeVariant',
110
- ({ themeVariant }): void => {
111
- const { toJSON } = renderWithTheme(
112
- <StyledMaxLengthMessage themeVariant={themeVariant}>
113
- 100/255
114
- </StyledMaxLengthMessage>
115
- );
116
-
117
- expect(toJSON()).toMatchSnapshot();
118
- }
119
- );
102
+ `('renders correctly with themeState $themeState', ({ themeState }): void => {
103
+ const { toJSON } = renderWithTheme(
104
+ <StyledMaxLengthMessage themeState={themeState}>
105
+ 100/255
106
+ </StyledMaxLengthMessage>
107
+ );
108
+
109
+ expect(toJSON()).toMatchSnapshot();
110
+ });
120
111
  });
121
112
 
122
113
  describe('StyledHelperText', () => {
@@ -131,29 +122,23 @@ describe('StyledHelperText', () => {
131
122
 
132
123
  describe('StyledBorderBackDrop', () => {
133
124
  it.each`
134
- themeVariant
125
+ themeState
135
126
  ${'default'}
136
127
  ${'filled'}
137
128
  ${'error'}
138
129
  ${'disabled'}
139
130
  ${'readonly'}
140
- `(
141
- 'renders correctly with themeVariant $themeVariant',
142
- ({ themeVariant }): void => {
143
- const { toJSON } = renderWithTheme(
144
- <StyledBorderBackDrop
145
- themeVariant={themeVariant}
146
- themeFocused={false}
147
- />
148
- );
149
-
150
- expect(toJSON()).toMatchSnapshot();
151
- }
152
- );
131
+ `('renders correctly with themeState $themeState', ({ themeState }): void => {
132
+ const { toJSON } = renderWithTheme(
133
+ <StyledBorderBackDrop themeState={themeState} themeFocused={false} />
134
+ );
135
+
136
+ expect(toJSON()).toMatchSnapshot();
137
+ });
153
138
 
154
139
  it('renders correctly when focused', (): void => {
155
140
  const { toJSON } = renderWithTheme(
156
- <StyledBorderBackDrop themeVariant="error" themeFocused />
141
+ <StyledBorderBackDrop themeState="error" themeFocused />
157
142
  );
158
143
 
159
144
  expect(toJSON()).toMatchSnapshot();
@@ -161,8 +146,14 @@ describe('StyledBorderBackDrop', () => {
161
146
  });
162
147
 
163
148
  describe('StyledTextInput', () => {
164
- it('renders correctly', () => {
165
- const { toJSON } = renderWithTheme(<StyledTextInput />);
149
+ it.each`
150
+ themeVariant
151
+ ${'text'}
152
+ ${'textarea'}
153
+ `('renders correctly with $themeState state', ({ themeVariant }) => {
154
+ const { toJSON } = renderWithTheme(
155
+ <StyledTextInput themeVariant={themeVariant} />
156
+ );
166
157
 
167
158
  expect(toJSON()).toMatchSnapshot();
168
159
  });
@@ -1,6 +1,6 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`Label renders correctly with themeVariant default 1`] = `
3
+ exports[`Label renders correctly with themeState default 1`] = `
4
4
  <Text
5
5
  allowFontScaling={false}
6
6
  style={
@@ -23,14 +23,14 @@ exports[`Label renders correctly with themeVariant default 1`] = `
23
23
  themeFontSize="medium"
24
24
  themeFontWeight="regular"
25
25
  themeIntent="body"
26
+ themeState="default"
26
27
  themeTypeface="neutral"
27
- themeVariant="default"
28
28
  >
29
29
  Label
30
30
  </Text>
31
31
  `;
32
32
 
33
- exports[`Label renders correctly with themeVariant disabled 1`] = `
33
+ exports[`Label renders correctly with themeState disabled 1`] = `
34
34
  <Text
35
35
  allowFontScaling={false}
36
36
  style={
@@ -53,14 +53,14 @@ exports[`Label renders correctly with themeVariant disabled 1`] = `
53
53
  themeFontSize="medium"
54
54
  themeFontWeight="regular"
55
55
  themeIntent="body"
56
+ themeState="disabled"
56
57
  themeTypeface="neutral"
57
- themeVariant="disabled"
58
58
  >
59
59
  Label
60
60
  </Text>
61
61
  `;
62
62
 
63
- exports[`Label renders correctly with themeVariant error 1`] = `
63
+ exports[`Label renders correctly with themeState error 1`] = `
64
64
  <Text
65
65
  allowFontScaling={false}
66
66
  style={
@@ -83,14 +83,14 @@ exports[`Label renders correctly with themeVariant error 1`] = `
83
83
  themeFontSize="medium"
84
84
  themeFontWeight="regular"
85
85
  themeIntent="body"
86
+ themeState="error"
86
87
  themeTypeface="neutral"
87
- themeVariant="error"
88
88
  >
89
89
  Label
90
90
  </Text>
91
91
  `;
92
92
 
93
- exports[`Label renders correctly with themeVariant filled 1`] = `
93
+ exports[`Label renders correctly with themeState filled 1`] = `
94
94
  <Text
95
95
  allowFontScaling={false}
96
96
  style={
@@ -113,14 +113,14 @@ exports[`Label renders correctly with themeVariant filled 1`] = `
113
113
  themeFontSize="medium"
114
114
  themeFontWeight="regular"
115
115
  themeIntent="body"
116
+ themeState="filled"
116
117
  themeTypeface="neutral"
117
- themeVariant="filled"
118
118
  >
119
119
  Label
120
120
  </Text>
121
121
  `;
122
122
 
123
- exports[`Label renders correctly with themeVariant readonly 1`] = `
123
+ exports[`Label renders correctly with themeState readonly 1`] = `
124
124
  <Text
125
125
  allowFontScaling={false}
126
126
  style={
@@ -143,8 +143,8 @@ exports[`Label renders correctly with themeVariant readonly 1`] = `
143
143
  themeFontSize="medium"
144
144
  themeFontWeight="regular"
145
145
  themeIntent="body"
146
+ themeState="readonly"
146
147
  themeTypeface="neutral"
147
- themeVariant="readonly"
148
148
  >
149
149
  Label
150
150
  </Text>
@@ -169,7 +169,7 @@ exports[`LabelContainer renders correctly 1`] = `
169
169
  />
170
170
  `;
171
171
 
172
- exports[`LabelInsideTextInput renders correctly with themeVariant default 1`] = `
172
+ exports[`LabelInsideTextInput renders correctly with themeState default 1`] = `
173
173
  <Text
174
174
  allowFontScaling={false}
175
175
  style={
@@ -186,7 +186,7 @@ exports[`LabelInsideTextInput renders correctly with themeVariant default 1`] =
186
186
  "alignContent": "center",
187
187
  "alignItems": "center",
188
188
  "color": "#001f23",
189
- "fontSize": 14,
189
+ "fontSize": 16,
190
190
  "marginTop": -2,
191
191
  "textAlignVertical": "center",
192
192
  },
@@ -197,14 +197,14 @@ exports[`LabelInsideTextInput renders correctly with themeVariant default 1`] =
197
197
  themeFontSize="medium"
198
198
  themeFontWeight="regular"
199
199
  themeIntent="body"
200
+ themeState="default"
200
201
  themeTypeface="neutral"
201
- themeVariant="default"
202
202
  >
203
203
  Label
204
204
  </Text>
205
205
  `;
206
206
 
207
- exports[`LabelInsideTextInput renders correctly with themeVariant disabled 1`] = `
207
+ exports[`LabelInsideTextInput renders correctly with themeState disabled 1`] = `
208
208
  <Text
209
209
  allowFontScaling={false}
210
210
  style={
@@ -221,7 +221,7 @@ exports[`LabelInsideTextInput renders correctly with themeVariant disabled 1`] =
221
221
  "alignContent": "center",
222
222
  "alignItems": "center",
223
223
  "color": "#bfc1c5",
224
- "fontSize": 14,
224
+ "fontSize": 16,
225
225
  "marginTop": -2,
226
226
  "textAlignVertical": "center",
227
227
  },
@@ -232,14 +232,14 @@ exports[`LabelInsideTextInput renders correctly with themeVariant disabled 1`] =
232
232
  themeFontSize="medium"
233
233
  themeFontWeight="regular"
234
234
  themeIntent="body"
235
+ themeState="disabled"
235
236
  themeTypeface="neutral"
236
- themeVariant="disabled"
237
237
  >
238
238
  Label
239
239
  </Text>
240
240
  `;
241
241
 
242
- exports[`LabelInsideTextInput renders correctly with themeVariant error 1`] = `
242
+ exports[`LabelInsideTextInput renders correctly with themeState error 1`] = `
243
243
  <Text
244
244
  allowFontScaling={false}
245
245
  style={
@@ -256,7 +256,7 @@ exports[`LabelInsideTextInput renders correctly with themeVariant error 1`] = `
256
256
  "alignContent": "center",
257
257
  "alignItems": "center",
258
258
  "color": "#001f23",
259
- "fontSize": 14,
259
+ "fontSize": 16,
260
260
  "marginTop": -2,
261
261
  "textAlignVertical": "center",
262
262
  },
@@ -267,14 +267,14 @@ exports[`LabelInsideTextInput renders correctly with themeVariant error 1`] = `
267
267
  themeFontSize="medium"
268
268
  themeFontWeight="regular"
269
269
  themeIntent="body"
270
+ themeState="error"
270
271
  themeTypeface="neutral"
271
- themeVariant="error"
272
272
  >
273
273
  Label
274
274
  </Text>
275
275
  `;
276
276
 
277
- exports[`LabelInsideTextInput renders correctly with themeVariant filled 1`] = `
277
+ exports[`LabelInsideTextInput renders correctly with themeState filled 1`] = `
278
278
  <Text
279
279
  allowFontScaling={false}
280
280
  style={
@@ -291,7 +291,7 @@ exports[`LabelInsideTextInput renders correctly with themeVariant filled 1`] = `
291
291
  "alignContent": "center",
292
292
  "alignItems": "center",
293
293
  "color": "#001f23",
294
- "fontSize": 14,
294
+ "fontSize": 16,
295
295
  "marginTop": -2,
296
296
  "textAlignVertical": "center",
297
297
  },
@@ -302,14 +302,14 @@ exports[`LabelInsideTextInput renders correctly with themeVariant filled 1`] = `
302
302
  themeFontSize="medium"
303
303
  themeFontWeight="regular"
304
304
  themeIntent="body"
305
+ themeState="filled"
305
306
  themeTypeface="neutral"
306
- themeVariant="filled"
307
307
  >
308
308
  Label
309
309
  </Text>
310
310
  `;
311
311
 
312
- exports[`LabelInsideTextInput renders correctly with themeVariant readonly 1`] = `
312
+ exports[`LabelInsideTextInput renders correctly with themeState readonly 1`] = `
313
313
  <Text
314
314
  allowFontScaling={false}
315
315
  style={
@@ -326,7 +326,7 @@ exports[`LabelInsideTextInput renders correctly with themeVariant readonly 1`] =
326
326
  "alignContent": "center",
327
327
  "alignItems": "center",
328
328
  "color": "#808f91",
329
- "fontSize": 14,
329
+ "fontSize": 16,
330
330
  "marginTop": -2,
331
331
  "textAlignVertical": "center",
332
332
  },
@@ -337,14 +337,14 @@ exports[`LabelInsideTextInput renders correctly with themeVariant readonly 1`] =
337
337
  themeFontSize="medium"
338
338
  themeFontWeight="regular"
339
339
  themeIntent="body"
340
+ themeState="readonly"
340
341
  themeTypeface="neutral"
341
- themeVariant="readonly"
342
342
  >
343
343
  Label
344
344
  </Text>
345
345
  `;
346
346
 
347
- exports[`StyledAsteriskLabel renders correctly with themeVariant default 1`] = `
347
+ exports[`StyledAsteriskLabel renders correctly with themeState default 1`] = `
348
348
  <Text
349
349
  allowFontScaling={false}
350
350
  style={
@@ -367,14 +367,14 @@ exports[`StyledAsteriskLabel renders correctly with themeVariant default 1`] = `
367
367
  themeFontSize="medium"
368
368
  themeFontWeight="regular"
369
369
  themeIntent="body"
370
+ themeState="default"
370
371
  themeTypeface="neutral"
371
- themeVariant="default"
372
372
  >
373
373
  *
374
374
  </Text>
375
375
  `;
376
376
 
377
- exports[`StyledAsteriskLabel renders correctly with themeVariant disabled 1`] = `
377
+ exports[`StyledAsteriskLabel renders correctly with themeState disabled 1`] = `
378
378
  <Text
379
379
  allowFontScaling={false}
380
380
  style={
@@ -397,14 +397,14 @@ exports[`StyledAsteriskLabel renders correctly with themeVariant disabled 1`] =
397
397
  themeFontSize="medium"
398
398
  themeFontWeight="regular"
399
399
  themeIntent="body"
400
+ themeState="disabled"
400
401
  themeTypeface="neutral"
401
- themeVariant="disabled"
402
402
  >
403
403
  *
404
404
  </Text>
405
405
  `;
406
406
 
407
- exports[`StyledAsteriskLabel renders correctly with themeVariant error 1`] = `
407
+ exports[`StyledAsteriskLabel renders correctly with themeState error 1`] = `
408
408
  <Text
409
409
  allowFontScaling={false}
410
410
  style={
@@ -427,14 +427,14 @@ exports[`StyledAsteriskLabel renders correctly with themeVariant error 1`] = `
427
427
  themeFontSize="medium"
428
428
  themeFontWeight="regular"
429
429
  themeIntent="body"
430
+ themeState="error"
430
431
  themeTypeface="neutral"
431
- themeVariant="error"
432
432
  >
433
433
  *
434
434
  </Text>
435
435
  `;
436
436
 
437
- exports[`StyledAsteriskLabel renders correctly with themeVariant filled 1`] = `
437
+ exports[`StyledAsteriskLabel renders correctly with themeState filled 1`] = `
438
438
  <Text
439
439
  allowFontScaling={false}
440
440
  style={
@@ -457,14 +457,14 @@ exports[`StyledAsteriskLabel renders correctly with themeVariant filled 1`] = `
457
457
  themeFontSize="medium"
458
458
  themeFontWeight="regular"
459
459
  themeIntent="body"
460
+ themeState="filled"
460
461
  themeTypeface="neutral"
461
- themeVariant="filled"
462
462
  >
463
463
  *
464
464
  </Text>
465
465
  `;
466
466
 
467
- exports[`StyledAsteriskLabel renders correctly with themeVariant readonly 1`] = `
467
+ exports[`StyledAsteriskLabel renders correctly with themeState readonly 1`] = `
468
468
  <Text
469
469
  allowFontScaling={false}
470
470
  style={
@@ -487,8 +487,8 @@ exports[`StyledAsteriskLabel renders correctly with themeVariant readonly 1`] =
487
487
  themeFontSize="medium"
488
488
  themeFontWeight="regular"
489
489
  themeIntent="body"
490
+ themeState="readonly"
490
491
  themeTypeface="neutral"
491
- themeVariant="readonly"
492
492
  >
493
493
  *
494
494
  </Text>
@@ -512,11 +512,11 @@ exports[`StyledBorderBackDrop renders correctly when focused 1`] = `
512
512
  ]
513
513
  }
514
514
  themeFocused={true}
515
- themeVariant="error"
515
+ themeState="error"
516
516
  />
517
517
  `;
518
518
 
519
- exports[`StyledBorderBackDrop renders correctly with themeVariant default 1`] = `
519
+ exports[`StyledBorderBackDrop renders correctly with themeState default 1`] = `
520
520
  <View
521
521
  style={
522
522
  Array [
@@ -534,11 +534,11 @@ exports[`StyledBorderBackDrop renders correctly with themeVariant default 1`] =
534
534
  ]
535
535
  }
536
536
  themeFocused={false}
537
- themeVariant="default"
537
+ themeState="default"
538
538
  />
539
539
  `;
540
540
 
541
- exports[`StyledBorderBackDrop renders correctly with themeVariant disabled 1`] = `
541
+ exports[`StyledBorderBackDrop renders correctly with themeState disabled 1`] = `
542
542
  <View
543
543
  style={
544
544
  Array [
@@ -556,11 +556,11 @@ exports[`StyledBorderBackDrop renders correctly with themeVariant disabled 1`] =
556
556
  ]
557
557
  }
558
558
  themeFocused={false}
559
- themeVariant="disabled"
559
+ themeState="disabled"
560
560
  />
561
561
  `;
562
562
 
563
- exports[`StyledBorderBackDrop renders correctly with themeVariant error 1`] = `
563
+ exports[`StyledBorderBackDrop renders correctly with themeState error 1`] = `
564
564
  <View
565
565
  style={
566
566
  Array [
@@ -578,11 +578,11 @@ exports[`StyledBorderBackDrop renders correctly with themeVariant error 1`] = `
578
578
  ]
579
579
  }
580
580
  themeFocused={false}
581
- themeVariant="error"
581
+ themeState="error"
582
582
  />
583
583
  `;
584
584
 
585
- exports[`StyledBorderBackDrop renders correctly with themeVariant filled 1`] = `
585
+ exports[`StyledBorderBackDrop renders correctly with themeState filled 1`] = `
586
586
  <View
587
587
  style={
588
588
  Array [
@@ -600,11 +600,11 @@ exports[`StyledBorderBackDrop renders correctly with themeVariant filled 1`] = `
600
600
  ]
601
601
  }
602
602
  themeFocused={false}
603
- themeVariant="filled"
603
+ themeState="filled"
604
604
  />
605
605
  `;
606
606
 
607
- exports[`StyledBorderBackDrop renders correctly with themeVariant readonly 1`] = `
607
+ exports[`StyledBorderBackDrop renders correctly with themeState readonly 1`] = `
608
608
  <View
609
609
  style={
610
610
  Array [
@@ -622,7 +622,7 @@ exports[`StyledBorderBackDrop renders correctly with themeVariant readonly 1`] =
622
622
  ]
623
623
  }
624
624
  themeFocused={false}
625
- themeVariant="readonly"
625
+ themeState="readonly"
626
626
  />
627
627
  `;
628
628
 
@@ -709,7 +709,7 @@ exports[`StyledHelperText renders correctly 1`] = `
709
709
  </Text>
710
710
  `;
711
711
 
712
- exports[`StyledMaxLengthMessage renders correctly with themeVariant default 1`] = `
712
+ exports[`StyledMaxLengthMessage renders correctly with themeState default 1`] = `
713
713
  <Text
714
714
  allowFontScaling={false}
715
715
  style={
@@ -738,14 +738,14 @@ exports[`StyledMaxLengthMessage renders correctly with themeVariant default 1`]
738
738
  themeFontSize="medium"
739
739
  themeFontWeight="regular"
740
740
  themeIntent="body"
741
+ themeState="default"
741
742
  themeTypeface="neutral"
742
- themeVariant="default"
743
743
  >
744
744
  100/255
745
745
  </Text>
746
746
  `;
747
747
 
748
- exports[`StyledMaxLengthMessage renders correctly with themeVariant disabled 1`] = `
748
+ exports[`StyledMaxLengthMessage renders correctly with themeState disabled 1`] = `
749
749
  <Text
750
750
  allowFontScaling={false}
751
751
  style={
@@ -774,14 +774,14 @@ exports[`StyledMaxLengthMessage renders correctly with themeVariant disabled 1`]
774
774
  themeFontSize="medium"
775
775
  themeFontWeight="regular"
776
776
  themeIntent="body"
777
+ themeState="disabled"
777
778
  themeTypeface="neutral"
778
- themeVariant="disabled"
779
779
  >
780
780
  100/255
781
781
  </Text>
782
782
  `;
783
783
 
784
- exports[`StyledMaxLengthMessage renders correctly with themeVariant error 1`] = `
784
+ exports[`StyledMaxLengthMessage renders correctly with themeState error 1`] = `
785
785
  <Text
786
786
  allowFontScaling={false}
787
787
  style={
@@ -810,14 +810,14 @@ exports[`StyledMaxLengthMessage renders correctly with themeVariant error 1`] =
810
810
  themeFontSize="medium"
811
811
  themeFontWeight="regular"
812
812
  themeIntent="body"
813
+ themeState="error"
813
814
  themeTypeface="neutral"
814
- themeVariant="error"
815
815
  >
816
816
  100/255
817
817
  </Text>
818
818
  `;
819
819
 
820
- exports[`StyledMaxLengthMessage renders correctly with themeVariant filled 1`] = `
820
+ exports[`StyledMaxLengthMessage renders correctly with themeState filled 1`] = `
821
821
  <Text
822
822
  allowFontScaling={false}
823
823
  style={
@@ -846,14 +846,14 @@ exports[`StyledMaxLengthMessage renders correctly with themeVariant filled 1`] =
846
846
  themeFontSize="medium"
847
847
  themeFontWeight="regular"
848
848
  themeIntent="body"
849
+ themeState="filled"
849
850
  themeTypeface="neutral"
850
- themeVariant="filled"
851
851
  >
852
852
  100/255
853
853
  </Text>
854
854
  `;
855
855
 
856
- exports[`StyledMaxLengthMessage renders correctly with themeVariant readonly 1`] = `
856
+ exports[`StyledMaxLengthMessage renders correctly with themeState readonly 1`] = `
857
857
  <Text
858
858
  allowFontScaling={false}
859
859
  style={
@@ -882,27 +882,53 @@ exports[`StyledMaxLengthMessage renders correctly with themeVariant readonly 1`]
882
882
  themeFontSize="medium"
883
883
  themeFontWeight="regular"
884
884
  themeIntent="body"
885
+ themeState="readonly"
885
886
  themeTypeface="neutral"
886
- themeVariant="readonly"
887
887
  >
888
888
  100/255
889
889
  </Text>
890
890
  `;
891
891
 
892
- exports[`StyledTextInput renders correctly 1`] = `
892
+ exports[`StyledTextInput renders correctly with $themeState state 1`] = `
893
893
  <TextInput
894
894
  style={
895
895
  Array [
896
896
  Object {
897
897
  "alignSelf": "stretch",
898
898
  "flexGrow": 2,
899
- "fontSize": 14,
899
+ "fontFamily": "BeVietnamPro-Regular",
900
+ "fontSize": 16,
901
+ "height": undefined,
900
902
  "marginHorizontal": 8,
903
+ "maxHeight": 144,
901
904
  "paddingVertical": 0,
902
905
  "textAlignVertical": "center",
903
906
  },
904
907
  undefined,
905
908
  ]
906
909
  }
910
+ themeVariant="text"
911
+ />
912
+ `;
913
+
914
+ exports[`StyledTextInput renders correctly with $themeState state 2`] = `
915
+ <TextInput
916
+ style={
917
+ Array [
918
+ Object {
919
+ "alignSelf": "stretch",
920
+ "flexGrow": 2,
921
+ "fontFamily": "BeVietnamPro-Regular",
922
+ "fontSize": 16,
923
+ "height": 144,
924
+ "marginHorizontal": 8,
925
+ "maxHeight": 144,
926
+ "paddingVertical": 0,
927
+ "textAlignVertical": "top",
928
+ },
929
+ undefined,
930
+ ]
931
+ }
932
+ themeVariant="textarea"
907
933
  />
908
934
  `;