@hero-design/rn 8.44.0-alpha.0 → 8.45.0-test.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 (276) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/CHANGELOG.md +36 -0
  3. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  4. package/es/index.js +2772 -2661
  5. package/jest-setup.ts +2 -0
  6. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  7. package/lib/index.js +2775 -2665
  8. package/package.json +23 -24
  9. package/rollup.config.js +0 -1
  10. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +564 -384
  11. package/src/components/Accordion/__tests__/__snapshots__/StyledAccordion.spec.tsx.snap +76 -20
  12. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +791 -605
  13. package/src/components/Accordion/index.tsx +1 -1
  14. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +848 -567
  15. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +172 -110
  16. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +138 -70
  17. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +745 -581
  18. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +158 -57
  19. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +273 -153
  20. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +391 -223
  21. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +119 -63
  22. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +306 -242
  23. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +317 -183
  24. package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +1042 -454
  25. package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +6 -10
  26. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +400 -140
  27. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +1090 -880
  28. package/src/components/Button/StyledButton.tsx +4 -0
  29. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +196 -106
  30. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +1675 -1125
  31. package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +71 -26
  32. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +1651 -665
  33. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +555 -330
  34. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +265 -69
  35. package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +205 -65
  36. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +36 -8
  37. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +292 -124
  38. package/src/components/Carousel/CardCarousel.tsx +10 -7
  39. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +486 -406
  40. package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +197 -70
  41. package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +41 -13
  42. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +1742 -1526
  43. package/src/components/Carousel/__tests__/index.spec.tsx +50 -3
  44. package/src/components/Carousel/index.tsx +16 -22
  45. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +404 -112
  46. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +574 -334
  47. package/src/components/Chip/StyledChip.tsx +121 -0
  48. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +1483 -0
  49. package/src/components/Chip/__tests__/index.spec.tsx +136 -0
  50. package/src/components/Chip/index.tsx +82 -0
  51. package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +73 -17
  52. package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +94 -38
  53. package/src/components/Collapse/index.tsx +1 -1
  54. package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +37 -9
  55. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +424 -268
  56. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +586 -466
  57. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +200 -160
  58. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +192 -152
  59. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +471 -389
  60. package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +464 -128
  61. package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +97 -69
  62. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +327 -192
  63. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +169 -113
  64. package/src/components/Error/StyledError.tsx +2 -1
  65. package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +390 -262
  66. package/src/components/Error/__tests__/index.spec.tsx +9 -6
  67. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +860 -723
  68. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +98 -42
  69. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +199 -99
  70. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +293 -185
  71. package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +45 -17
  72. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  73. package/src/components/Icon/IconList.ts +3 -0
  74. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +158 -46
  75. package/src/components/Image/__tests__/__snapshots__/index.spec.tsx.snap +164 -52
  76. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +242 -170
  77. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +760 -588
  78. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +272 -128
  79. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +477 -193
  80. package/src/components/Modal/__tests__/__snapshots__/index.spec.tsx.snap +169 -0
  81. package/src/components/Modal/__tests__/index.spec.tsx +99 -0
  82. package/src/components/Modal/index.tsx +178 -82
  83. package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +84 -41
  84. package/src/components/PageControl/index.tsx +1 -0
  85. package/src/components/PinInput/__tests__/StyledPinInput.spec.tsx +9 -4
  86. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +293 -153
  87. package/src/components/PinInput/__tests__/__snapshots__/StyledPinInput.spec.tsx.snap +15 -48
  88. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +809 -697
  89. package/src/components/Portal/__tests__/PortalHost.spec.tsx +12 -14
  90. package/src/components/Portal/__tests__/__snapshots__/index.spec.tsx.snap +43 -15
  91. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +743 -603
  92. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +188 -116
  93. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +257 -205
  94. package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +864 -600
  95. package/src/components/RefreshControl/__tests__/__snapshots__/index.spec.tsx.snap +128 -44
  96. package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +5 -2
  97. package/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx +3 -3
  98. package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +413 -266
  99. package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +64 -35
  100. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +371 -297
  101. package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +158 -46
  102. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +394 -226
  103. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +93 -57
  104. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +2387 -2151
  105. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +621 -28
  106. package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +7 -6
  107. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +73 -37
  108. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +2321 -2085
  109. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +473 -23
  110. package/src/components/Skeleton/__tests__/__snapshots__/index.spec.tsx.snap +490 -294
  111. package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +117 -33
  112. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +105 -77
  113. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +1308 -636
  114. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +121 -93
  115. package/src/components/Success/StyledSuccess.tsx +2 -1
  116. package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +388 -258
  117. package/src/components/Success/__tests__/index.spec.tsx +9 -6
  118. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +210 -75
  119. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +58 -30
  120. package/src/components/Swipeable/index.tsx +3 -3
  121. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +226 -114
  122. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +146 -109
  123. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +202 -62
  124. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +132 -68
  125. package/src/components/Tabs/__tests__/SceneView.spec.tsx +7 -7
  126. package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +206 -94
  127. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +2217 -1962
  128. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +523 -455
  129. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +121 -65
  130. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +1641 -1398
  131. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +554 -274
  132. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +1542 -646
  133. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +3177 -2701
  134. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +390 -310
  135. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +662 -540
  136. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +871 -573
  137. package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +180 -68
  138. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +582 -426
  139. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +683 -363
  140. package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +704 -256
  141. package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +855 -323
  142. package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +430 -150
  143. package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +572 -208
  144. package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +328 -104
  145. package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +462 -154
  146. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +900 -340
  147. package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +880 -320
  148. package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +1035 -391
  149. package/src/index.ts +2 -2
  150. package/src/testHelpers/renderWithTheme.tsx +2 -2
  151. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +38 -1
  152. package/src/theme/components/button.ts +0 -1
  153. package/src/theme/components/chip.ts +47 -0
  154. package/src/theme/getTheme.ts +3 -0
  155. package/testUtils/setup.tsx +0 -18
  156. package/tsconfig.json +4 -1
  157. package/types/components/Accordion/AccordionItem.d.ts +2 -1
  158. package/types/components/Accordion/index.d.ts +1 -1
  159. package/types/components/Attachment/index.d.ts +2 -1
  160. package/types/components/Avatar/Avatar.d.ts +2 -1
  161. package/types/components/Avatar/AvatarStack/index.d.ts +2 -2
  162. package/types/components/Avatar/index.d.ts +3 -2
  163. package/types/components/Badge/StyledBadge.d.ts +0 -4
  164. package/types/components/BottomSheet/Footer.d.ts +2 -1
  165. package/types/components/BottomSheet/Header.d.ts +2 -1
  166. package/types/components/BottomSheet/ScrollView.d.ts +1 -0
  167. package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -4
  168. package/types/components/Box/index.d.ts +2 -1
  169. package/types/components/Button/IconButton.d.ts +2 -1
  170. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +3 -3
  171. package/types/components/Button/LoadingIndicator/index.d.ts +2 -1
  172. package/types/components/Button/UtilityButton/index.d.ts +2 -1
  173. package/types/components/Calendar/CalendarRowItem.d.ts +2 -1
  174. package/types/components/Calendar/StyledCalendar.d.ts +1 -1
  175. package/types/components/Calendar/index.d.ts +2 -1
  176. package/types/components/Carousel/CardCarousel.d.ts +1 -1
  177. package/types/components/Carousel/CarouselItem.d.ts +2 -1
  178. package/types/components/Carousel/index.d.ts +2 -2
  179. package/types/components/Checkbox/index.d.ts +2 -1
  180. package/types/components/Chip/StyledChip.d.ts +31 -0
  181. package/types/components/Chip/index.d.ts +27 -0
  182. package/types/components/Collapse/StyledCollapse.d.ts +0 -2
  183. package/types/components/Collapse/index.d.ts +2 -1
  184. package/types/components/ContentNavigator/index.d.ts +2 -1
  185. package/types/components/DatePicker/DatePickerAndroid.d.ts +2 -1
  186. package/types/components/DatePicker/DatePickerCalendar.d.ts +2 -1
  187. package/types/components/DatePicker/DatePickerIOS.d.ts +2 -1
  188. package/types/components/DatePicker/index.d.ts +2 -1
  189. package/types/components/Divider/index.d.ts +2 -1
  190. package/types/components/Drawer/StyledDrawer.d.ts +0 -6
  191. package/types/components/Error/StyledError.d.ts +3 -9
  192. package/types/components/FAB/ActionGroup/ActionItem.d.ts +2 -1
  193. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -4
  194. package/types/components/FAB/AnimatedFABIcon.d.ts +2 -1
  195. package/types/components/HeroDesignProvider/index.d.ts +2 -1
  196. package/types/components/Icon/AnimatedIcon.d.ts +2 -1
  197. package/types/components/Icon/IconList.d.ts +1 -1
  198. package/types/components/Icon/index.d.ts +3 -2
  199. package/types/components/Icon/utils.d.ts +1 -1
  200. package/types/components/Image/index.d.ts +1 -0
  201. package/types/components/Modal/index.d.ts +12 -8
  202. package/types/components/PageControl/StyledPageControl.d.ts +0 -2
  203. package/types/components/PageControl/index.d.ts +2 -1
  204. package/types/components/PinInput/PinCell.d.ts +2 -1
  205. package/types/components/Portal/PortalHost.d.ts +1 -1
  206. package/types/components/Portal/PortalProvider.d.ts +1 -1
  207. package/types/components/Portal/index.d.ts +2 -2
  208. package/types/components/Progress/ProgressBar.d.ts +1 -0
  209. package/types/components/Progress/StyledProgressBar.d.ts +0 -2
  210. package/types/components/Progress/index.d.ts +1 -0
  211. package/types/components/Rate/StyledRate.d.ts +0 -2
  212. package/types/components/Rate/index.d.ts +2 -1
  213. package/types/components/RefreshControl/index.d.ts +2 -1
  214. package/types/components/RichTextEditor/EditorToolbar.d.ts +2 -1
  215. package/types/components/RichTextEditor/MentionList.d.ts +2 -1
  216. package/types/components/RichTextEditor/index.d.ts +2 -2
  217. package/types/components/Select/BaseOptionList.d.ts +1 -1
  218. package/types/components/Select/Footer.d.ts +2 -1
  219. package/types/components/Select/MultiSelect/Option.d.ts +2 -1
  220. package/types/components/Select/MultiSelect/OptionList.d.ts +2 -1
  221. package/types/components/Select/MultiSelect/index.d.ts +1 -1
  222. package/types/components/Select/SingleSelect/Option.d.ts +2 -1
  223. package/types/components/Select/SingleSelect/OptionList.d.ts +1 -1
  224. package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +2 -1
  225. package/types/components/Select/SingleSelect/index.d.ts +1 -1
  226. package/types/components/Select/helpers.d.ts +1 -2
  227. package/types/components/Select/index.d.ts +2 -1
  228. package/types/components/Skeleton/index.d.ts +2 -1
  229. package/types/components/Slider/index.d.ts +2 -1
  230. package/types/components/Spinner/AnimatedSpinner.d.ts +2 -1
  231. package/types/components/Success/StyledSuccess.d.ts +3 -7
  232. package/types/components/Swipeable/SwipeableAction.d.ts +2 -2
  233. package/types/components/Swipeable/index.d.ts +3 -3
  234. package/types/components/Switch/SelectorSwitch/Option.d.ts +2 -1
  235. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -6
  236. package/types/components/Switch/StyledSwitch.d.ts +0 -2
  237. package/types/components/Tabs/ActiveTabIndicator.d.ts +2 -1
  238. package/types/components/Tabs/SceneView.d.ts +1 -1
  239. package/types/components/Tabs/ScrollableTabs.d.ts +2 -1
  240. package/types/components/Tabs/ScrollableTabsHeader.d.ts +2 -1
  241. package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -4
  242. package/types/components/Tabs/StyledTabs.d.ts +0 -4
  243. package/types/components/Tabs/TabWithBadge.d.ts +2 -2
  244. package/types/components/Tabs/index.d.ts +2 -1
  245. package/types/components/TextInput/StyledTextInput.d.ts +1 -1
  246. package/types/components/TextInput/index.d.ts +1 -1
  247. package/types/components/TimePicker/TimePickerAndroid.d.ts +2 -1
  248. package/types/components/TimePicker/TimePickerIOS.d.ts +2 -1
  249. package/types/components/TimePicker/index.d.ts +2 -1
  250. package/types/components/Toast/StyledToast.d.ts +0 -2
  251. package/types/components/Toast/Toast.d.ts +1 -0
  252. package/types/components/Toast/ToastProvider.d.ts +2 -1
  253. package/types/components/Toast/index.d.ts +1 -1
  254. package/types/components/Toolbar/ToolbarGroup.d.ts +2 -1
  255. package/types/components/Toolbar/ToolbarItem.d.ts +2 -1
  256. package/types/components/Toolbar/index.d.ts +3 -2
  257. package/types/components/Typography/Body/index.d.ts +2 -1
  258. package/types/components/Typography/Caption/index.d.ts +2 -1
  259. package/types/components/Typography/Label/index.d.ts +2 -1
  260. package/types/components/Typography/Text/index.d.ts +2 -1
  261. package/types/components/Typography/Title/index.d.ts +2 -1
  262. package/types/index.d.ts +2 -2
  263. package/types/testHelpers/renderWithTheme.d.ts +1 -0
  264. package/types/theme/ThemeSwitcher.d.ts +2 -2
  265. package/types/theme/components/button.d.ts +0 -1
  266. package/types/theme/components/chip.d.ts +40 -0
  267. package/types/theme/getTheme.d.ts +2 -0
  268. package/.turbo/turbo-publish:npm.log +0 -0
  269. package/src/components/Modal/ModalContentWrapper.tsx +0 -112
  270. package/src/components/Modal/ModalPresenter/ModalPresenter.tsx +0 -135
  271. package/src/components/Modal/ModalPresenter/index.tsx +0 -9
  272. package/src/components/Modal/ModalProvider.tsx +0 -8
  273. package/types/components/Modal/ModalContentWrapper.d.ts +0 -16
  274. package/types/components/Modal/ModalPresenter/ModalPresenter.d.ts +0 -34
  275. package/types/components/Modal/ModalPresenter/index.d.ts +0 -3
  276. package/types/components/Modal/ModalProvider.d.ts +0 -5
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { StyleProp, ViewStyle } from 'react-native';
2
3
  export interface SliderProps {
3
4
  /**
@@ -48,5 +49,5 @@ export interface SliderProps {
48
49
  */
49
50
  testID?: string;
50
51
  }
51
- declare const Slider: ({ minimumValue, maximumValue, step, value, onValueChange, onSlidingStart, onSlidingComplete, disabled, style, testID, }: SliderProps) => JSX.Element;
52
+ declare const Slider: ({ minimumValue, maximumValue, step, value, onValueChange, onSlidingStart, onSlidingComplete, disabled, style, testID, }: SliderProps) => React.JSX.Element;
52
53
  export default Slider;
@@ -1,5 +1,6 @@
1
+ import React from 'react';
1
2
  declare const AnimatedSpinner: ({ size, intent, }: {
2
3
  size: 'small' | 'medium';
3
4
  intent: 'primary' | 'inverted';
4
- }) => JSX.Element;
5
+ }) => React.JSX.Element;
5
6
  export { AnimatedSpinner };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Modal, View } from 'react-native';
2
+ import { View } from 'react-native';
3
3
  type SuccessVariant = 'full-screen' | 'in-page';
4
4
  declare const StyledSuccessContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
5
5
  theme?: import("@emotion/react").Theme | undefined;
@@ -40,15 +40,11 @@ declare const StyledSuccessButtonContainer: import("@emotion/native").StyledComp
40
40
  ref?: import("react").Ref<View> | undefined;
41
41
  }>;
42
42
  declare const StyledSuccessButtonPrimary: import("@emotion/native").StyledComponent<import("../Button/Button").ButtonProps & {
43
- children?: import("react").ReactNode;
44
- } & {
45
43
  theme?: import("@emotion/react").Theme | undefined;
46
44
  as?: import("react").ElementType<any> | undefined;
47
45
  }, {}, {}>;
48
- declare const StyledSuccessModal: import("@emotion/native").StyledComponent<import("react-native").ModalBaseProps & import("react-native").ModalPropsIOS & import("react-native").ModalPropsAndroid & import("react-native").ViewProps & {
46
+ declare const StyledSuccessModal: import("@emotion/native").StyledComponent<import("../Modal").ModalProps & {
49
47
  theme?: import("@emotion/react").Theme | undefined;
50
48
  as?: import("react").ElementType<any> | undefined;
51
- }, {}, {
52
- ref?: import("react").Ref<Modal> | undefined;
53
- }>;
49
+ }, {}, {}>;
54
50
  export { SuccessVariant, StyledSuccessImage, StyledSuccessContainer, StyledSuccessContent, StyledSuccessImageContainer, StyledSuccessTitle, StyledSuccessDescription, StyledSuccessButtonContainer, StyledSuccessButtonPrimary, StyledSuccessModal, };
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import { StyleProp, ViewStyle } from 'react-native';
3
3
  import { ActionIntent } from './StyledSwipeable';
4
4
  export interface SwipeableActionProps {
@@ -23,5 +23,5 @@ export interface SwipeableActionProps {
23
23
  */
24
24
  testID?: string;
25
25
  }
26
- declare const SwipeableAction: ({ intent, onPress, style, children, testID, }: SwipeableActionProps) => JSX.Element;
26
+ declare const SwipeableAction: ({ intent, onPress, style, children, testID, }: SwipeableActionProps) => React.JSX.Element;
27
27
  export default SwipeableAction;
@@ -1,4 +1,4 @@
1
- import { ComponentProps, ReactNode } from 'react';
1
+ import React, { ComponentProps, ReactNode } from 'react';
2
2
  import { RectButton, Swipeable as RnghSwipeable } from 'react-native-gesture-handler';
3
3
  type State = 'closed' | 'leftOpen' | 'rightOpen';
4
4
  type RnghSwipeableProps = ComponentProps<typeof RnghSwipeable>;
@@ -38,8 +38,8 @@ export interface SwipeableProps extends Pick<RnghSwipeableProps, 'enableTrackpad
38
38
  */
39
39
  testID?: string;
40
40
  }
41
- declare const _default: (({ children, state, onStateChange, leftActions, leftActionsWidth, rightActions, rightActionsWidth, ...swipeableProps }: SwipeableProps) => JSX.Element) & {
42
- Action: ({ intent, onPress, style, children, testID, }: import("./SwipeableAction").SwipeableActionProps) => JSX.Element;
41
+ declare const _default: (({ children, state, onStateChange, leftActions, leftActionsWidth, rightActions, rightActionsWidth, ...swipeableProps }: SwipeableProps) => React.JSX.Element) & {
42
+ Action: ({ intent, onPress, style, children, testID, }: import("./SwipeableAction").SwipeableActionProps) => React.JSX.Element;
43
43
  Content: typeof RectButton;
44
44
  };
45
45
  export default _default;
@@ -1,4 +1,5 @@
1
1
  import type { ReactElement } from 'react';
2
+ import React from 'react';
2
3
  import { LayoutChangeEvent } from 'react-native';
3
4
  import type { BadgeConfigType, OptionType } from '.';
4
5
  export declare const OptionContent: ({ content, badge, }: {
@@ -6,7 +7,7 @@ export declare const OptionContent: ({ content, badge, }: {
6
7
  badge?: {
7
8
  type: "status";
8
9
  } | undefined;
9
- }) => JSX.Element;
10
+ }) => React.JSX.Element;
10
11
  declare const Option: <T>({ text, icon, badge, selected, onLayout, index, }: Pick<OptionType<T>, "text" | "icon" | "badge"> & {
11
12
  selected: boolean;
12
13
  onLayout?: ((e: LayoutChangeEvent) => void) | undefined;
@@ -7,20 +7,14 @@ export declare const StyledWrapper: import("@emotion/native").StyledComponent<im
7
7
  ref?: import("react").Ref<View> | undefined;
8
8
  }>;
9
9
  export declare const StyledTextWrapper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
10
- children?: import("react").ReactNode;
11
- } & {
12
10
  theme?: import("@emotion/react").Theme | undefined;
13
11
  as?: import("react").ElementType<any> | undefined;
14
12
  }, {}, {}>;
15
13
  export declare const StyledIconWrapper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
16
- children?: import("react").ReactNode;
17
- } & {
18
14
  theme?: import("@emotion/react").Theme | undefined;
19
15
  as?: import("react").ElementType<any> | undefined;
20
16
  }, {}, {}>;
21
17
  export declare const StyledKnot: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
22
- children?: import("react").ReactNode;
23
- } & {
24
18
  theme?: import("@emotion/react").Theme | undefined;
25
19
  as?: import("react").ElementType<any> | undefined;
26
20
  }, {}, {}>;
@@ -10,8 +10,6 @@ declare const StyledWrapper: import("@emotion/native").StyledComponent<import("r
10
10
  ref?: import("react").Ref<View> | undefined;
11
11
  }>;
12
12
  declare const StyledKnot: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
13
- children?: import("react").ReactNode;
14
- } & {
15
13
  theme?: import("@emotion/react").Theme | undefined;
16
14
  as?: import("react").ElementType<any> | undefined;
17
15
  }, {}, {}>;
@@ -1,8 +1,9 @@
1
+ import React from 'react';
1
2
  import { Animated } from 'react-native';
2
3
  declare const ActiveTabIndicator: ({ scrollOffsetAnimatedValue, positionAnimatedValue, tabsLength, tabsWidth, }: {
3
4
  scrollOffsetAnimatedValue: Animated.Value;
4
5
  positionAnimatedValue: Animated.Value;
5
6
  tabsLength: number;
6
7
  tabsWidth: number;
7
- }) => JSX.Element;
8
+ }) => React.JSX.Element;
8
9
  export default ActiveTabIndicator;
@@ -6,5 +6,5 @@ declare const SceneView: ({ lazy, lazyPreloadDistance, children, index, selected
6
6
  lazy?: boolean | undefined;
7
7
  lazyPreloadDistance?: number | undefined;
8
8
  testID?: string | undefined;
9
- }) => JSX.Element;
9
+ }) => React.JSX.Element;
10
10
  export default SceneView;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import type { TabsProps } from '.';
2
- declare const ScrollableTab: ({ onTabPress, selectedTabKey, tabs, containerStyle, barStyle, lazy, lazyPreloadDistance, swipeEnabled, testID: componentTestID, }: TabsProps) => JSX.Element;
3
+ declare const ScrollableTab: ({ onTabPress, selectedTabKey, tabs, containerStyle, barStyle, lazy, lazyPreloadDistance, swipeEnabled, testID: componentTestID, }: TabsProps) => React.JSX.Element;
3
4
  export default ScrollableTab;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { StyleProp, ViewStyle, ViewProps } from 'react-native';
2
3
  import type { TabType } from '.';
3
4
  export interface ScrollableTabHeaderProps extends ViewProps {
@@ -31,5 +32,5 @@ export interface ScrollableTabHeaderProps extends ViewProps {
31
32
  left: number;
32
33
  };
33
34
  }
34
- declare const ScrollableTabHeader: ({ onTabPress, selectedIndex, tabs, barStyle, testID, insets, }: ScrollableTabHeaderProps) => JSX.Element;
35
+ declare const ScrollableTabHeader: ({ onTabPress, selectedIndex, tabs, barStyle, testID, insets, }: ScrollableTabHeaderProps) => React.JSX.Element;
35
36
  export default ScrollableTabHeader;
@@ -33,8 +33,6 @@ declare const HeaderTabWrapper: import("@emotion/native").StyledComponent<import
33
33
  ref?: import("react").Ref<View> | undefined;
34
34
  }>;
35
35
  declare const HeaderTabItem: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
36
- children?: import("react").ReactNode;
37
- } & {
38
36
  theme?: import("@emotion/react").Theme | undefined;
39
37
  as?: import("react").ElementType<any> | undefined;
40
38
  } & {
@@ -47,8 +45,6 @@ declare const HeaderTabItemOutlineWrapper: import("@emotion/native").StyledCompo
47
45
  ref?: import("react").Ref<View> | undefined;
48
46
  }>;
49
47
  declare const HeaderTabItemOutline: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
50
- children?: import("react").ReactNode;
51
- } & {
52
48
  theme?: import("@emotion/react").Theme | undefined;
53
49
  as?: import("react").ElementType<any> | undefined;
54
50
  } & {
@@ -33,8 +33,6 @@ declare const HeaderTabItem: import("@emotion/native").StyledComponent<import("r
33
33
  ref?: import("react").Ref<View> | undefined;
34
34
  }>;
35
35
  declare const ContentWrapper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native-pager-view").PagerViewProps & import("react").RefAttributes<PagerView>> & {
36
- children?: import("react").ReactNode;
37
- } & {
38
36
  theme?: import("@emotion/react").Theme | undefined;
39
37
  as?: import("react").ElementType<any> | undefined;
40
38
  }, {}, {}>;
@@ -45,8 +43,6 @@ declare const TabScreen: import("@emotion/native").StyledComponent<import("react
45
43
  ref?: import("react").Ref<View> | undefined;
46
44
  }>;
47
45
  declare const StyledIndicator: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
48
- children?: import("react").ReactNode;
49
- } & {
50
46
  theme?: import("@emotion/react").Theme | undefined;
51
47
  as?: import("react").ElementType<any> | undefined;
52
48
  } & {
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  export type StatusBadgeType = {
3
3
  type: 'status';
4
4
  };
@@ -12,5 +12,5 @@ interface TabWithBadgeProps {
12
12
  config?: BadgeConfigType;
13
13
  tabItem: ReactNode;
14
14
  }
15
- declare const TabWithBadge: ({ config, tabItem }: TabWithBadgeProps) => JSX.Element;
15
+ declare const TabWithBadge: ({ config, tabItem }: TabWithBadgeProps) => React.JSX.Element;
16
16
  export default TabWithBadge;
@@ -1,4 +1,5 @@
1
1
  import type { ReactNode } from 'react';
2
+ import React from 'react';
2
3
  import type { StyleProp, ViewProps, ViewStyle } from 'react-native';
3
4
  import { IconName } from '../Icon';
4
5
  import type { BadgeConfigType } from './TabWithBadge';
@@ -55,7 +56,7 @@ export interface TabsProps extends ViewProps {
55
56
  testID?: string;
56
57
  }
57
58
  declare const _default: (({ onTabPress, selectedTabKey, tabs, containerStyle, barStyle, lazy, lazyPreloadDistance, swipeEnabled, testID: componentTestID, }: TabsProps) => JSX.Element) & {
58
- Scroll: ({ onTabPress, selectedTabKey, tabs, containerStyle, barStyle, lazy, lazyPreloadDistance, swipeEnabled, testID: componentTestID, }: TabsProps) => JSX.Element;
59
+ Scroll: ({ onTabPress, selectedTabKey, tabs, containerStyle, barStyle, lazy, lazyPreloadDistance, swipeEnabled, testID: componentTestID, }: TabsProps) => React.JSX.Element;
59
60
  useIsFocused: () => boolean | undefined;
60
61
  };
61
62
  export default _default;
@@ -62,7 +62,7 @@ declare const StyledMaxLengthMessage: import("@emotion/native").StyledComponent<
62
62
  } & {
63
63
  themeState: State;
64
64
  }, {}, {}>;
65
- declare const StyledHelperText: ({ children, fontWeight, intent, allowFontScaling, ...nativeProps }: import("../Typography/Caption").CaptionProps) => JSX.Element;
65
+ declare const StyledHelperText: ({ children, fontWeight, intent, allowFontScaling, ...nativeProps }: import("../Typography/Caption").CaptionProps) => import("react").JSX.Element;
66
66
  declare const StyledTextInput: import("@emotion/native").StyledComponent<import("react-native").TextInputProps & {
67
67
  theme?: import("@emotion/react").Theme | undefined;
68
68
  as?: import("react").ElementType<any> | undefined;
@@ -91,5 +91,5 @@ export declare const getState: ({ disabled, error, editable, loading, isEmptyVal
91
91
  isFocused?: boolean | undefined;
92
92
  isEmptyValue?: boolean | undefined;
93
93
  }) => State;
94
- declare const TextInput: React.ForwardRefExoticComponent<Pick<TextInputProps, "children" | "label" | "style" | "hitSlop" | "onLayout" | "pointerEvents" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "disabled" | "value" | "onBlur" | "onFocus" | "onPressIn" | "onPressOut" | "allowFontScaling" | "numberOfLines" | "maxFontSizeMultiplier" | "selectionColor" | "textBreakStrategy" | "variant" | "loading" | "accessibilityLabelledBy" | "textAlign" | "error" | "textAlignVertical" | "onContentSizeChange" | "onScroll" | "scrollEnabled" | "onChange" | "autoCapitalize" | "autoCorrect" | "autoFocus" | "blurOnSubmit" | "caretHidden" | "contextMenuHidden" | "defaultValue" | "editable" | "keyboardType" | "maxLength" | "multiline" | "onChangeText" | "onEndEditing" | "onSelectionChange" | "onSubmitEditing" | "onTextInput" | "onKeyPress" | "placeholder" | "placeholderTextColor" | "returnKeyType" | "secureTextEntry" | "selectTextOnFocus" | "selection" | "inputAccessoryViewID" | "clearButtonMode" | "clearTextOnFocus" | "dataDetectorTypes" | "enablesReturnKeyAutomatically" | "keyboardAppearance" | "passwordRules" | "rejectResponderTermination" | "selectionState" | "spellCheck" | "textContentType" | "autoComplete" | "importantForAutofill" | "disableFullscreenUI" | "inlineImageLeft" | "inlineImagePadding" | "returnKeyLabel" | "underlineColorAndroid" | "showSoftInputOnFocus" | "prefix" | "suffix" | "textStyle" | "required" | "hideCharacterCount" | "helpText" | "renderInputValue"> & React.RefAttributes<TextInputHandles>>;
94
+ declare const TextInput: React.ForwardRefExoticComponent<Omit<TextInputProps, "ref"> & React.RefAttributes<TextInputHandles>>;
95
95
  export default TextInput;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import type { TimePickerProps } from './types';
2
- declare const TimePickerAndroid: ({ value, label, placeholder, onChange, displayFormat, disabled, required, error, helpText, style, testID, showSuffix, }: TimePickerProps) => JSX.Element;
3
+ declare const TimePickerAndroid: ({ value, label, placeholder, onChange, displayFormat, disabled, required, error, helpText, style, testID, showSuffix, }: TimePickerProps) => React.JSX.Element;
3
4
  export default TimePickerAndroid;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import type { TimePickerProps } from './types';
2
- declare const TimePickerIOS: ({ value, label, placeholder, onChange, confirmLabel, displayFormat, disabled, required, error, helpText, style, testID, showSuffix, }: TimePickerProps) => JSX.Element;
3
+ declare const TimePickerIOS: ({ value, label, placeholder, onChange, confirmLabel, displayFormat, disabled, required, error, helpText, style, testID, showSuffix, }: TimePickerProps) => React.JSX.Element;
3
4
  export default TimePickerIOS;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import type { TimePickerProps } from './types';
2
- declare const TimePicker: (props: TimePickerProps) => JSX.Element;
3
+ declare const TimePicker: (props: TimePickerProps) => React.JSX.Element;
3
4
  export default TimePicker;
@@ -11,8 +11,6 @@ declare const ToastContainerWrapper: import("@emotion/native").StyledComponent<V
11
11
  ref?: import("react").Ref<View> | undefined;
12
12
  }>;
13
13
  declare const Container: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
14
- children?: import("react").ReactNode;
15
- } & {
16
14
  theme?: import("@emotion/react").Theme | undefined;
17
15
  as?: import("react").ElementType<any> | undefined;
18
16
  } & {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { ToastProps } from './types';
2
3
  declare const Toast: ({ content, icon, variant, intent, style, duration, autoDismiss, onAction, actionLabel, onDismiss, distance, }: ToastProps) => JSX.Element;
3
4
  export default Toast;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import type { ReactNode } from 'react';
2
3
  import type { ToastContainerProps } from './types';
3
4
  type ToastProviderProps = {
@@ -6,5 +7,5 @@ type ToastProviderProps = {
6
7
  */
7
8
  children?: ReactNode;
8
9
  } & ToastContainerProps;
9
- declare const ToastProvider: ({ children, displayType, position: _position, }: ToastProviderProps) => JSX.Element;
10
+ declare const ToastProvider: ({ children, displayType, position: _position, }: ToastProviderProps) => React.JSX.Element;
10
11
  export default ToastProvider;
@@ -2,7 +2,7 @@
2
2
  declare const Toast: {
3
3
  Provider: ({ children, displayType, position: _position, }: {
4
4
  children?: import("react").ReactNode;
5
- } & import("./types").ToastContainerProps) => JSX.Element;
5
+ } & import("./types").ToastContainerProps) => import("react").JSX.Element;
6
6
  Container: import("react").ForwardRefExoticComponent<import("./types").ToastContainerProps & import("react").RefAttributes<import("./ToastContext").ToastControllerContextType>>;
7
7
  useToast: () => import("./ToastContext").ToastControllerContextType;
8
8
  };
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import type { ToolbarItemProps } from './ToolbarItem';
2
3
  export interface ToolbarGroupProps {
3
4
  /**
@@ -9,5 +10,5 @@ export interface ToolbarGroupProps {
9
10
  */
10
11
  align: 'left' | 'center' | 'right';
11
12
  }
12
- declare const ToolbarGroup: ({ align, items }: ToolbarGroupProps) => JSX.Element;
13
+ declare const ToolbarGroup: ({ align, items }: ToolbarGroupProps) => React.JSX.Element;
13
14
  export default ToolbarGroup;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { StyleProp, ViewStyle } from 'react-native';
2
3
  import type { IconName } from '../Icon';
3
4
  export interface ToolbarItemProps {
@@ -26,5 +27,5 @@ export interface ToolbarItemProps {
26
27
  */
27
28
  style?: StyleProp<ViewStyle>;
28
29
  }
29
- declare const ToolbarItem: ({ icon, label, onPress, intent, disabled, style, }: ToolbarItemProps) => JSX.Element;
30
+ declare const ToolbarItem: ({ icon, label, onPress, intent, disabled, style, }: ToolbarItemProps) => React.JSX.Element;
30
31
  export default ToolbarItem;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import type { ReactNode } from 'react';
2
3
  import { ViewProps } from 'react-native';
3
4
  export interface ToolbarProps extends Omit<ViewProps, 'style'> {
@@ -6,7 +7,7 @@ export interface ToolbarProps extends Omit<ViewProps, 'style'> {
6
7
  */
7
8
  children?: ReactNode;
8
9
  }
9
- declare const _default: (({ children, ...rest }: ToolbarProps) => JSX.Element) & {
10
- Group: ({ align, items }: import("./ToolbarGroup").ToolbarGroupProps) => JSX.Element;
10
+ declare const _default: (({ children, ...rest }: ToolbarProps) => React.JSX.Element) & {
11
+ Group: ({ align, items }: import("./ToolbarGroup").ToolbarGroupProps) => React.JSX.Element;
11
12
  };
12
13
  export default _default;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import type { ReactNode } from 'react';
2
3
  import type { TextProps as NativeTextProps, StyleProp, TextStyle } from 'react-native';
3
4
  export interface BodyProps extends NativeTextProps {
@@ -28,5 +29,5 @@ export interface BodyProps extends NativeTextProps {
28
29
  * */
29
30
  variant?: 'regular' | 'regular-bold' | 'small' | 'small-bold';
30
31
  }
31
- declare const Body: ({ children, intent, allowFontScaling, typeface, variant, ...nativeProps }: BodyProps) => JSX.Element;
32
+ declare const Body: ({ children, intent, allowFontScaling, typeface, variant, ...nativeProps }: BodyProps) => React.JSX.Element;
32
33
  export default Body;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import type { ReactNode } from 'react';
2
3
  import type { TextProps as NativeTextProps, StyleProp, TextStyle } from 'react-native';
3
4
  export interface CaptionProps extends NativeTextProps {
@@ -22,5 +23,5 @@ export interface CaptionProps extends NativeTextProps {
22
23
  */
23
24
  testID?: string;
24
25
  }
25
- declare const Caption: ({ children, fontWeight, intent, allowFontScaling, ...nativeProps }: CaptionProps) => JSX.Element;
26
+ declare const Caption: ({ children, fontWeight, intent, allowFontScaling, ...nativeProps }: CaptionProps) => React.JSX.Element;
26
27
  export default Caption;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import type { ReactNode } from 'react';
2
3
  import type { TextProps as NativeTextProps, StyleProp, TextStyle } from 'react-native';
3
4
  export interface LabelProps extends NativeTextProps {
@@ -18,5 +19,5 @@ export interface LabelProps extends NativeTextProps {
18
19
  */
19
20
  testID?: string;
20
21
  }
21
- declare const Label: ({ children, intent, allowFontScaling, ...nativeProps }: LabelProps) => JSX.Element;
22
+ declare const Label: ({ children, intent, allowFontScaling, ...nativeProps }: LabelProps) => React.JSX.Element;
22
23
  export default Label;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import type { ReactNode } from 'react';
2
3
  import type { TextProps as NativeTextProps, StyleProp, TextStyle } from 'react-native';
3
4
  export interface TextProps extends NativeTextProps {
@@ -32,5 +33,5 @@ export interface TextProps extends NativeTextProps {
32
33
  */
33
34
  typeface?: 'neutral' | 'playful';
34
35
  }
35
- declare const Text: ({ children, fontSize, fontWeight, intent, typeface, allowFontScaling, ...nativeProps }: TextProps) => JSX.Element;
36
+ declare const Text: ({ children, fontSize, fontWeight, intent, typeface, allowFontScaling, ...nativeProps }: TextProps) => React.JSX.Element;
36
37
  export default Text;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import type { ReactNode } from 'react';
2
3
  import type { TextProps as NativeTextProps, StyleProp, TextStyle } from 'react-native';
3
4
  export interface TitleProps extends NativeTextProps {
@@ -28,5 +29,5 @@ export interface TitleProps extends NativeTextProps {
28
29
  */
29
30
  level?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
30
31
  }
31
- declare const Title: ({ children, intent, allowFontScaling, level, typeface, ...nativeProps }: TitleProps) => JSX.Element;
32
+ declare const Title: ({ children, intent, allowFontScaling, level, typeface, ...nativeProps }: TitleProps) => React.JSX.Element;
32
33
  export default Title;
package/types/index.d.ts CHANGED
@@ -12,6 +12,7 @@ import Button from './components/Button';
12
12
  import Calendar from './components/Calendar';
13
13
  import Carousel from './components/Carousel';
14
14
  import Card from './components/Card';
15
+ import Chip from './components/Chip';
15
16
  import Collapse from './components/Collapse';
16
17
  import Checkbox from './components/Checkbox';
17
18
  import ContentNavigator from './components/ContentNavigator';
@@ -25,7 +26,6 @@ import HeroDesignProvider from './components/HeroDesignProvider';
25
26
  import Icon from './components/Icon';
26
27
  import Image from './components/Image';
27
28
  import List from './components/List';
28
- import Modal from './components/Modal';
29
29
  import PinInput from './components/PinInput';
30
30
  import Progress from './components/Progress';
31
31
  import Slider from './components/Slider';
@@ -49,5 +49,5 @@ import RefreshControl from './components/RefreshControl';
49
49
  import RichTextEditor from './components/RichTextEditor';
50
50
  import PageControl from './components/PageControl';
51
51
  import Portal from './components/Portal';
52
- export { theme, getTheme, useTheme, scale, ThemeProvider, ThemeSwitcher, withTheme, swagSystemPalette, swagDarkSystemPalette, workSystemPalette, jobsSystemPalette, walletSystemPalette, eBensSystemPalette, Accordion, Alert, Attachment, Avatar, useAvatarColors, Badge, BottomNavigation, BottomSheet, Box, Button, Calendar, Card, Carousel, Collapse, Checkbox, ContentNavigator, DatePicker, Divider, Drawer, Empty, Error, FAB, Icon, Image, HeroDesignProvider, List, Modal, PinInput, Progress, Portal, PageControl, Skeleton, Slider, Spinner, Swipeable, Radio, SectionHeading, Select, Success, Switch, Tabs, Tag, TextInput, TimePicker, Toast, Toolbar, Typography, Rate, RefreshControl, RichTextEditor, };
52
+ export { theme, getTheme, useTheme, scale, ThemeProvider, ThemeSwitcher, withTheme, swagSystemPalette, swagDarkSystemPalette, workSystemPalette, jobsSystemPalette, walletSystemPalette, eBensSystemPalette, Accordion, Alert, Attachment, Avatar, useAvatarColors, Badge, BottomNavigation, BottomSheet, Box, Button, Calendar, Card, Carousel, Chip, Collapse, Checkbox, ContentNavigator, DatePicker, Divider, Drawer, Empty, Error, FAB, Icon, Image, HeroDesignProvider, List, PinInput, Progress, Portal, PageControl, Skeleton, Slider, Spinner, Swipeable, Radio, SectionHeading, Select, Success, Switch, Tabs, Tag, TextInput, TimePicker, Toast, Toolbar, Typography, Rate, RefreshControl, RichTextEditor, };
53
53
  export * from './types';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { RenderOptions } from '@testing-library/react-native';
2
3
  declare const renderWithTheme: (ui: JSX.Element, options?: RenderOptions) => import("@testing-library/react-native").RenderAPI;
3
4
  export default renderWithTheme;
@@ -3,6 +3,6 @@ type ThemeName = 'swag' | 'swagDark' | 'work' | 'jobs' | 'wallet' | 'eBens';
3
3
  declare const ThemeSwitcher: ({ name, children, }: {
4
4
  name?: ThemeName | undefined;
5
5
  children: React.ReactNode;
6
- }) => JSX.Element;
7
- export declare const withTheme: <P extends Record<string, unknown>>(C: React.ComponentType<P>, themeName: ThemeName) => (props: React.PropsWithChildren<P>) => JSX.Element;
6
+ }) => React.JSX.Element;
7
+ export declare const withTheme: <P extends Record<string, unknown>>(C: React.ComponentType<P>, themeName: ThemeName) => (props: React.PropsWithChildren<P>) => React.JSX.Element;
8
8
  export default ThemeSwitcher;
@@ -51,7 +51,6 @@ declare const getButtonTheme: (theme: GlobalTheme) => {
51
51
  textButtonPadding: number;
52
52
  iconPadding: number;
53
53
  utilityPadding: number;
54
- loadingIndicatorWrapperVerticalPadding: number;
55
54
  };
56
55
  };
57
56
  type GetButtonThemeReturnType = ReturnType<typeof getButtonTheme>;
@@ -0,0 +1,40 @@
1
+ import type { GlobalTheme } from '../global';
2
+ declare const getChipTheme: (theme: GlobalTheme) => {
3
+ colors: {
4
+ primaryBackground: string;
5
+ secondaryBackground: string;
6
+ filledBackground: string;
7
+ outlinedBackground: string;
8
+ wrapperBorder: string;
9
+ wrapperSelectedBorder: string;
10
+ selectedPrimaryText: string;
11
+ };
12
+ space: {
13
+ wrapperHorizontalPadding: number;
14
+ wrapperVerticalPadding: number;
15
+ iconWrapperMarginRight: number;
16
+ };
17
+ sizes: {
18
+ wrapperBorder: number;
19
+ };
20
+ radii: {
21
+ wrapper: number;
22
+ };
23
+ borderWidths: {
24
+ wrapper: number;
25
+ icon: number;
26
+ };
27
+ shadows: {
28
+ filledWrapper: {
29
+ shadowOffset: {
30
+ width: number;
31
+ height: number;
32
+ };
33
+ shadowColor: string;
34
+ shadowOpacity: number;
35
+ shadowRadius: number;
36
+ elevation: number;
37
+ };
38
+ };
39
+ };
40
+ export default getChipTheme;
@@ -11,6 +11,7 @@ import getCardTheme from './components/card';
11
11
  import { CarouselThemeType } from './components/carousel';
12
12
  import getCardCarouselTheme from './components/cardCarousel';
13
13
  import getCheckboxTheme from './components/checkbox';
14
+ import getChipTheme from './components/chip';
14
15
  import getContentNavigatorTheme from './components/contentNavigator';
15
16
  import getDatePickerTheme from './components/datePicker';
16
17
  import getDividerTheme from './components/divider';
@@ -59,6 +60,7 @@ type Theme = GlobalTheme & {
59
60
  carousel: CarouselThemeType;
60
61
  cardCarousel: ReturnType<typeof getCardCarouselTheme>;
61
62
  checkbox: ReturnType<typeof getCheckboxTheme>;
63
+ chip: ReturnType<typeof getChipTheme>;
62
64
  contentNavigator: ReturnType<typeof getContentNavigatorTheme>;
63
65
  datePicker: ReturnType<typeof getDatePickerTheme>;
64
66
  divider: ReturnType<typeof getDividerTheme>;
File without changes