@hero-design/rn 7.27.1 → 8.0.0-rc.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 (312) hide show
  1. package/.expo/README.md +15 -0
  2. package/.expo/packager-info.json +10 -0
  3. package/.expo/prebuild/cached-packages.json +4 -0
  4. package/.expo/settings.json +10 -0
  5. package/.expo/xcodebuild-error.log +2 -0
  6. package/.expo/xcodebuild.log +11199 -0
  7. package/.turbo/turbo-build.log +9 -9
  8. package/.turbo/turbo-build:types.log +2 -0
  9. package/.turbo/turbo-build:watch.log +1 -0
  10. package/.turbo/turbo-lint.log +96 -0
  11. package/.turbo/turbo-test.log +909 -0
  12. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  13. package/es/index.js +139 -89
  14. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  15. package/lib/index.js +138 -88
  16. package/package.json +4 -4
  17. package/src/components/Alert/index.tsx +43 -31
  18. package/src/components/BottomSheet/Header.tsx +1 -1
  19. package/src/components/BottomSheet/StyledBottomSheet.tsx +1 -1
  20. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +14 -14
  21. package/src/components/Button/Button.tsx +7 -0
  22. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +7 -7
  23. package/src/components/Empty/StyledEmpty.tsx +1 -1
  24. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +10 -10
  25. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  26. package/src/components/FAB/ActionGroup/index.tsx +1 -1
  27. package/src/components/FAB/__tests__/index.spec.tsx +4 -4
  28. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  29. package/src/components/Icon/IconList.ts +1 -0
  30. package/src/components/Icon/index.tsx +12 -2
  31. package/src/components/List/ListItem.tsx +2 -2
  32. package/src/components/List/StyledListItem.tsx +1 -1
  33. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +2 -2
  34. package/src/components/RichTextEditor/MentionList.tsx +1 -1
  35. package/src/components/RichTextEditor/StyledToolbar.ts +1 -1
  36. package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +1 -1
  37. package/src/components/Select/{StyledOptionList.tsx → BaseOptionList.tsx} +6 -6
  38. package/src/components/Select/MultiSelect/Option.tsx +24 -11
  39. package/src/components/Select/MultiSelect/OptionList.tsx +3 -2
  40. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +3 -2
  41. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +47 -21
  42. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +99 -72
  43. package/src/components/Select/MultiSelect/index.tsx +16 -0
  44. package/src/components/Select/SingleSelect/Option.tsx +12 -12
  45. package/src/components/Select/SingleSelect/OptionList.tsx +3 -2
  46. package/src/components/Select/SingleSelect/StyledSingleSelect.tsx +6 -0
  47. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +0 -1
  48. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +32 -16
  49. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +65 -54
  50. package/src/components/Select/SingleSelect/index.tsx +16 -0
  51. package/src/components/Select/StyledSelect.tsx +12 -2
  52. package/src/components/Select/types.ts +1 -0
  53. package/src/components/Switch/index.tsx +9 -1
  54. package/src/components/Tabs/ScrollableTabs.tsx +1 -1
  55. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +9 -3
  56. package/src/components/Tabs/index.tsx +6 -0
  57. package/src/components/Tag/index.tsx +25 -17
  58. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  59. package/src/components/TextInput/__tests__/index.spec.tsx +1 -1
  60. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +7 -7
  61. package/src/components/Toast/ToastContainer.tsx +1 -1
  62. package/src/components/Toast/ToastProvider.tsx +10 -1
  63. package/src/components/Toast/__tests__/ToastContainer.spec.tsx +5 -5
  64. package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +4 -4
  65. package/src/components/Typography/Text/StyledText.tsx +2 -1
  66. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +1 -1
  67. package/src/components/Typography/Text/index.tsx +2 -1
  68. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +26 -18
  69. package/src/theme/components/avatar.ts +1 -1
  70. package/src/theme/components/bottomSheet.ts +5 -5
  71. package/src/theme/components/empty.ts +6 -5
  72. package/src/theme/components/fab.ts +1 -1
  73. package/src/theme/components/select.ts +3 -1
  74. package/src/theme/components/typography.ts +2 -0
  75. package/src/theme/global/colors/global.ts +1 -0
  76. package/src/theme/global/colors/types.ts +1 -0
  77. package/src/theme/global/scale.ts +1 -1
  78. package/src/theme/global/typography.ts +4 -1
  79. package/src/utils/hooks.ts +3 -1
  80. package/types/components/Accordion/AccordionItem.d.ts +0 -0
  81. package/types/components/Accordion/StyledAccordion.d.ts +0 -0
  82. package/types/components/Accordion/index.d.ts +0 -0
  83. package/types/components/Accordion/utils.d.ts +1 -0
  84. package/types/components/Alert/StyledAlert.d.ts +0 -0
  85. package/types/components/Alert/index.d.ts +2 -1
  86. package/types/components/Attachment/StyledAttachment.d.ts +0 -0
  87. package/types/components/Attachment/index.d.ts +0 -0
  88. package/types/components/Avatar/Avatar.d.ts +0 -0
  89. package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +0 -0
  90. package/types/components/Avatar/AvatarStack/index.d.ts +0 -0
  91. package/types/components/Avatar/AvatarStack/utils.d.ts +0 -0
  92. package/types/components/Avatar/StyledAvatar.d.ts +0 -0
  93. package/types/components/Avatar/index.d.ts +0 -0
  94. package/types/components/Badge/Status.d.ts +0 -0
  95. package/types/components/Badge/StyledBadge.d.ts +0 -0
  96. package/types/components/Badge/index.d.ts +0 -0
  97. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
  98. package/types/components/BottomNavigation/index.d.ts +0 -0
  99. package/types/components/BottomSheet/Footer.d.ts +0 -0
  100. package/types/components/BottomSheet/Header.d.ts +0 -0
  101. package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -0
  102. package/types/components/BottomSheet/index.d.ts +0 -0
  103. package/types/components/Box/StyledBox.d.ts +0 -0
  104. package/types/components/Box/config.d.ts +0 -0
  105. package/types/components/Box/index.d.ts +0 -0
  106. package/types/components/Box/types.d.ts +0 -0
  107. package/types/components/Button/Button.d.ts +0 -0
  108. package/types/components/Button/IconButton.d.ts +0 -0
  109. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
  110. package/types/components/Button/LoadingIndicator/index.d.ts +0 -0
  111. package/types/components/Button/StyledButton.d.ts +0 -0
  112. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +0 -0
  113. package/types/components/Button/UtilityButton/index.d.ts +0 -0
  114. package/types/components/Button/index.d.ts +0 -0
  115. package/types/components/Calendar/CalendarRowItem.d.ts +0 -0
  116. package/types/components/Calendar/StyledCalendar.d.ts +0 -0
  117. package/types/components/Calendar/helpers.d.ts +0 -0
  118. package/types/components/Calendar/index.d.ts +0 -0
  119. package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -0
  120. package/types/components/Card/DataCard/index.d.ts +0 -0
  121. package/types/components/Card/StyledCard.d.ts +0 -0
  122. package/types/components/Card/index.d.ts +0 -0
  123. package/types/components/Checkbox/StyledCheckbox.d.ts +0 -0
  124. package/types/components/Checkbox/index.d.ts +0 -0
  125. package/types/components/Collapse/StyledCollapse.d.ts +0 -0
  126. package/types/components/Collapse/index.d.ts +0 -0
  127. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -0
  128. package/types/components/ContentNavigator/index.d.ts +0 -0
  129. package/types/components/DatePicker/DatePickerAndroid.d.ts +0 -0
  130. package/types/components/DatePicker/DatePickerIOS.d.ts +0 -0
  131. package/types/components/DatePicker/StyledDatePicker.d.ts +0 -0
  132. package/types/components/DatePicker/index.d.ts +0 -0
  133. package/types/components/DatePicker/types.d.ts +0 -0
  134. package/types/components/Divider/StyledDivider.d.ts +0 -0
  135. package/types/components/Divider/index.d.ts +0 -0
  136. package/types/components/Drawer/DragableDrawer/helpers.d.ts +0 -0
  137. package/types/components/Drawer/DragableDrawer/index.d.ts +0 -0
  138. package/types/components/Drawer/StyledDrawer.d.ts +0 -0
  139. package/types/components/Drawer/index.d.ts +0 -0
  140. package/types/components/Empty/StyledEmpty.d.ts +0 -0
  141. package/types/components/Empty/index.d.ts +0 -0
  142. package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
  143. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
  144. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
  145. package/types/components/FAB/ActionGroup/index.d.ts +0 -0
  146. package/types/components/FAB/AnimatedFABIcon.d.ts +0 -0
  147. package/types/components/FAB/FAB.d.ts +0 -0
  148. package/types/components/FAB/StyledFAB.d.ts +0 -0
  149. package/types/components/FAB/index.d.ts +0 -0
  150. package/types/components/Icon/AnimatedIcon.d.ts +0 -0
  151. package/types/components/Icon/HeroIcon/index.d.ts +0 -0
  152. package/types/components/Icon/IconList.d.ts +1 -1
  153. package/types/components/Icon/index.d.ts +1 -1
  154. package/types/components/Icon/utils.d.ts +1 -1
  155. package/types/components/Image/index.d.ts +0 -0
  156. package/types/components/List/BasicListItem.d.ts +0 -0
  157. package/types/components/List/ListItem.d.ts +2 -2
  158. package/types/components/List/StyledBasicListItem.d.ts +0 -0
  159. package/types/components/List/StyledListItem.d.ts +0 -0
  160. package/types/components/List/index.d.ts +0 -0
  161. package/types/components/PinInput/PinCell.d.ts +0 -0
  162. package/types/components/PinInput/StyledPinInput.d.ts +0 -0
  163. package/types/components/PinInput/index.d.ts +0 -0
  164. package/types/components/Progress/ProgressBar.d.ts +0 -0
  165. package/types/components/Progress/ProgressCircle.d.ts +0 -0
  166. package/types/components/Progress/StyledProgressBar.d.ts +0 -0
  167. package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
  168. package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
  169. package/types/components/Progress/constants.d.ts +0 -0
  170. package/types/components/Progress/index.d.ts +0 -0
  171. package/types/components/Progress/types.d.ts +0 -0
  172. package/types/components/Radio/Radio.d.ts +0 -0
  173. package/types/components/Radio/RadioGroup.d.ts +0 -0
  174. package/types/components/Radio/StyledRadio.d.ts +0 -0
  175. package/types/components/Radio/index.d.ts +0 -0
  176. package/types/components/Radio/types.d.ts +0 -0
  177. package/types/components/RefreshControl/index.d.ts +0 -0
  178. package/types/components/RichTextEditor/EditorEvent.d.ts +0 -0
  179. package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -0
  180. package/types/components/RichTextEditor/MentionList.d.ts +0 -0
  181. package/types/components/RichTextEditor/RichTextEditor.d.ts +0 -0
  182. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -0
  183. package/types/components/RichTextEditor/StyledToolbar.d.ts +0 -0
  184. package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -0
  185. package/types/components/RichTextEditor/constants.d.ts +0 -0
  186. package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -0
  187. package/types/components/RichTextEditor/index.d.ts +0 -0
  188. package/types/components/RichTextEditor/types.d.ts +0 -0
  189. package/types/components/RichTextEditor/utils/events.d.ts +0 -0
  190. package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -0
  191. package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
  192. package/types/components/SectionHeading/index.d.ts +0 -0
  193. package/types/components/Select/BaseOptionList.d.ts +12 -0
  194. package/types/components/Select/Footer.d.ts +0 -0
  195. package/types/components/Select/MultiSelect/Option.d.ts +2 -1
  196. package/types/components/Select/MultiSelect/OptionList.d.ts +0 -0
  197. package/types/components/Select/MultiSelect/index.d.ts +0 -0
  198. package/types/components/Select/SingleSelect/Option.d.ts +2 -1
  199. package/types/components/Select/SingleSelect/OptionList.d.ts +0 -0
  200. package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +1 -0
  201. package/types/components/Select/SingleSelect/index.d.ts +0 -0
  202. package/types/components/Select/StyledOptionList.d.ts +0 -0
  203. package/types/components/Select/StyledSelect.d.ts +3 -2
  204. package/types/components/Select/helpers.d.ts +0 -0
  205. package/types/components/Select/index.d.ts +0 -0
  206. package/types/components/Select/types.d.ts +1 -0
  207. package/types/components/Slider/index.d.ts +0 -0
  208. package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
  209. package/types/components/Spinner/StyledSpinner.d.ts +0 -0
  210. package/types/components/Spinner/index.d.ts +0 -0
  211. package/types/components/Swipeable/StyledSwipeable.d.ts +0 -0
  212. package/types/components/Swipeable/SwipeableAction.d.ts +0 -0
  213. package/types/components/Swipeable/index.d.ts +0 -0
  214. package/types/components/Switch/SelectorSwitch/Option.d.ts +0 -0
  215. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -0
  216. package/types/components/Switch/SelectorSwitch/index.d.ts +0 -0
  217. package/types/components/Switch/StyledSwitch.d.ts +0 -0
  218. package/types/components/Switch/index.d.ts +1 -1
  219. package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
  220. package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
  221. package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -0
  222. package/types/components/Tabs/StyledTabs.d.ts +0 -0
  223. package/types/components/Tabs/TabWithBadge.d.ts +0 -0
  224. package/types/components/Tabs/index.d.ts +0 -0
  225. package/types/components/Tabs/utils.d.ts +0 -0
  226. package/types/components/Tag/StyledTag.d.ts +0 -0
  227. package/types/components/Tag/index.d.ts +0 -0
  228. package/types/components/TextInput/StyledTextInput.d.ts +0 -0
  229. package/types/components/TextInput/index.d.ts +0 -0
  230. package/types/components/TimePicker/StyledTimePicker.d.ts +0 -0
  231. package/types/components/TimePicker/TimePickerAndroid.d.ts +0 -0
  232. package/types/components/TimePicker/TimePickerIOS.d.ts +0 -0
  233. package/types/components/TimePicker/index.d.ts +0 -0
  234. package/types/components/TimePicker/types.d.ts +0 -0
  235. package/types/components/Toast/StyledToast.d.ts +0 -0
  236. package/types/components/Toast/Toast.d.ts +0 -0
  237. package/types/components/Toast/ToastContainer.d.ts +0 -0
  238. package/types/components/Toast/ToastContext.d.ts +0 -0
  239. package/types/components/Toast/ToastProvider.d.ts +1 -1
  240. package/types/components/Toast/index.d.ts +1 -1
  241. package/types/components/Toast/types.d.ts +0 -0
  242. package/types/components/Toolbar/StyledToolbar.d.ts +0 -0
  243. package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
  244. package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
  245. package/types/components/Toolbar/index.d.ts +0 -0
  246. package/types/components/Typography/Text/StyledText.d.ts +1 -1
  247. package/types/components/Typography/Text/index.d.ts +1 -1
  248. package/types/components/Typography/index.d.ts +0 -0
  249. package/types/index.d.ts +0 -0
  250. package/types/testHelpers/renderWithTheme.d.ts +0 -0
  251. package/types/theme/ThemeProvider.d.ts +0 -0
  252. package/types/theme/ThemeSwitcher.d.ts +0 -0
  253. package/types/theme/components/accordion.d.ts +0 -0
  254. package/types/theme/components/alert.d.ts +0 -0
  255. package/types/theme/components/attachment.d.ts +0 -0
  256. package/types/theme/components/avatar.d.ts +0 -0
  257. package/types/theme/components/badge.d.ts +0 -0
  258. package/types/theme/components/bottomNavigation.d.ts +0 -0
  259. package/types/theme/components/bottomSheet.d.ts +0 -0
  260. package/types/theme/components/button.d.ts +0 -0
  261. package/types/theme/components/calendar.d.ts +0 -0
  262. package/types/theme/components/card.d.ts +0 -0
  263. package/types/theme/components/checkbox.d.ts +0 -0
  264. package/types/theme/components/contentNavigator.d.ts +0 -0
  265. package/types/theme/components/datePicker.d.ts +0 -0
  266. package/types/theme/components/divider.d.ts +0 -0
  267. package/types/theme/components/drawer.d.ts +0 -0
  268. package/types/theme/components/empty.d.ts +1 -0
  269. package/types/theme/components/fab.d.ts +0 -0
  270. package/types/theme/components/icon.d.ts +0 -0
  271. package/types/theme/components/image.d.ts +0 -0
  272. package/types/theme/components/list.d.ts +0 -0
  273. package/types/theme/components/pinInput.d.ts +0 -0
  274. package/types/theme/components/progress.d.ts +0 -0
  275. package/types/theme/components/radio.d.ts +0 -0
  276. package/types/theme/components/refreshControl.d.ts +0 -0
  277. package/types/theme/components/richTextEditor.d.ts +0 -0
  278. package/types/theme/components/sectionHeading.d.ts +0 -0
  279. package/types/theme/components/select.d.ts +3 -1
  280. package/types/theme/components/slider.d.ts +0 -0
  281. package/types/theme/components/spinner.d.ts +0 -0
  282. package/types/theme/components/swipeable.d.ts +0 -0
  283. package/types/theme/components/switch.d.ts +0 -0
  284. package/types/theme/components/tabs.d.ts +0 -0
  285. package/types/theme/components/tag.d.ts +0 -0
  286. package/types/theme/components/textInput.d.ts +0 -0
  287. package/types/theme/components/timePicker.d.ts +0 -0
  288. package/types/theme/components/toast.d.ts +0 -0
  289. package/types/theme/components/toolbar.d.ts +0 -0
  290. package/types/theme/components/typography.d.ts +2 -0
  291. package/types/theme/getTheme.d.ts +0 -0
  292. package/types/theme/global/borders.d.ts +0 -0
  293. package/types/theme/global/colors/eBens.d.ts +0 -0
  294. package/types/theme/global/colors/global.d.ts +0 -0
  295. package/types/theme/global/colors/jobs.d.ts +0 -0
  296. package/types/theme/global/colors/legacySystemPalette.d.ts +0 -0
  297. package/types/theme/global/colors/swag.d.ts +0 -0
  298. package/types/theme/global/colors/types.d.ts +1 -0
  299. package/types/theme/global/colors/wallet.d.ts +0 -0
  300. package/types/theme/global/colors/work.d.ts +0 -0
  301. package/types/theme/global/index.d.ts +1 -0
  302. package/types/theme/global/scale.d.ts +0 -0
  303. package/types/theme/global/sizes.d.ts +0 -0
  304. package/types/theme/global/space.d.ts +0 -0
  305. package/types/theme/global/typography.d.ts +1 -0
  306. package/types/theme/index.d.ts +0 -0
  307. package/types/theme/utils.d.ts +2 -0
  308. package/types/types.d.ts +0 -0
  309. package/types/utils/functions.d.ts +0 -0
  310. package/types/utils/helpers.d.ts +0 -0
  311. package/types/utils/hooks.d.ts +0 -0
  312. package/types/utils/scale.d.ts +0 -0
@@ -19,7 +19,6 @@ exports[`Option renders correctly 1`] = `
19
19
  "backgroundColor": "#ece8ef",
20
20
  "borderRadius": 4,
21
21
  "flexDirection": "row",
22
- "marginHorizontal": 12,
23
22
  "opacity": 1,
24
23
  "padding": 16,
25
24
  }
@@ -61,7 +61,14 @@ exports[`OptionList render isLoading correctly 1`] = `
61
61
  3,
62
62
  ]
63
63
  }
64
- style={Object {}}
64
+ style={
65
+ Array [
66
+ Object {
67
+ "paddingHorizontal": 12,
68
+ },
69
+ Object {},
70
+ ]
71
+ }
65
72
  >
66
73
  <View>
67
74
  <View
@@ -197,7 +204,6 @@ exports[`OptionList render isLoading correctly 1`] = `
197
204
  "backgroundColor": "#ece8ef",
198
205
  "borderRadius": 4,
199
206
  "flexDirection": "row",
200
- "marginHorizontal": 12,
201
207
  "opacity": 1,
202
208
  "padding": 16,
203
209
  }
@@ -417,7 +423,6 @@ exports[`OptionList render isLoading correctly 1`] = `
417
423
  "backgroundColor": "#ffffff",
418
424
  "borderRadius": 4,
419
425
  "flexDirection": "row",
420
- "marginHorizontal": 12,
421
426
  "opacity": 1,
422
427
  "padding": 16,
423
428
  }
@@ -529,7 +534,6 @@ exports[`OptionList render isLoading correctly 1`] = `
529
534
  "backgroundColor": "#ffffff",
530
535
  "borderRadius": 4,
531
536
  "flexDirection": "row",
532
- "marginHorizontal": 12,
533
537
  "opacity": 1,
534
538
  "padding": 16,
535
539
  }
@@ -829,7 +833,14 @@ exports[`OptionList renders correctly 1`] = `
829
833
  3,
830
834
  ]
831
835
  }
832
- style={Object {}}
836
+ style={
837
+ Array [
838
+ Object {
839
+ "paddingHorizontal": 12,
840
+ },
841
+ Object {},
842
+ ]
843
+ }
833
844
  >
834
845
  <View>
835
846
  <View
@@ -965,7 +976,6 @@ exports[`OptionList renders correctly 1`] = `
965
976
  "backgroundColor": "#ece8ef",
966
977
  "borderRadius": 4,
967
978
  "flexDirection": "row",
968
- "marginHorizontal": 12,
969
979
  "opacity": 1,
970
980
  "padding": 16,
971
981
  }
@@ -1185,7 +1195,6 @@ exports[`OptionList renders correctly 1`] = `
1185
1195
  "backgroundColor": "#ffffff",
1186
1196
  "borderRadius": 4,
1187
1197
  "flexDirection": "row",
1188
- "marginHorizontal": 12,
1189
1198
  "opacity": 1,
1190
1199
  "padding": 16,
1191
1200
  }
@@ -1297,7 +1306,6 @@ exports[`OptionList renders correctly 1`] = `
1297
1306
  "backgroundColor": "#ffffff",
1298
1307
  "borderRadius": 4,
1299
1308
  "flexDirection": "row",
1300
- "marginHorizontal": 12,
1301
1309
  "opacity": 1,
1302
1310
  "padding": 16,
1303
1311
  }
@@ -1437,7 +1445,14 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
1437
1445
  3,
1438
1446
  ]
1439
1447
  }
1440
- style={Object {}}
1448
+ style={
1449
+ Array [
1450
+ Object {
1451
+ "paddingHorizontal": 12,
1452
+ },
1453
+ Object {},
1454
+ ]
1455
+ }
1441
1456
  >
1442
1457
  <View>
1443
1458
  <View
@@ -1573,7 +1588,6 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
1573
1588
  "backgroundColor": "#ece8ef",
1574
1589
  "borderRadius": 4,
1575
1590
  "flexDirection": "row",
1576
- "marginHorizontal": 12,
1577
1591
  "opacity": 1,
1578
1592
  "padding": 16,
1579
1593
  }
@@ -1793,7 +1807,6 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
1793
1807
  "backgroundColor": "#ffffff",
1794
1808
  "borderRadius": 4,
1795
1809
  "flexDirection": "row",
1796
- "marginHorizontal": 12,
1797
1810
  "opacity": 1,
1798
1811
  "padding": 16,
1799
1812
  }
@@ -1905,7 +1918,6 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
1905
1918
  "backgroundColor": "#ffffff",
1906
1919
  "borderRadius": 4,
1907
1920
  "flexDirection": "row",
1908
- "marginHorizontal": 12,
1909
1921
  "opacity": 1,
1910
1922
  "padding": 16,
1911
1923
  }
@@ -2045,7 +2057,14 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
2045
2057
  3,
2046
2058
  ]
2047
2059
  }
2048
- style={Object {}}
2060
+ style={
2061
+ Array [
2062
+ Object {
2063
+ "paddingHorizontal": 12,
2064
+ },
2065
+ Object {},
2066
+ ]
2067
+ }
2049
2068
  >
2050
2069
  <View>
2051
2070
  <View
@@ -2181,7 +2200,6 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
2181
2200
  "backgroundColor": "#ece8ef",
2182
2201
  "borderRadius": 4,
2183
2202
  "flexDirection": "row",
2184
- "marginHorizontal": 12,
2185
2203
  "opacity": 1,
2186
2204
  "padding": 16,
2187
2205
  }
@@ -2401,7 +2419,6 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
2401
2419
  "backgroundColor": "#ffffff",
2402
2420
  "borderRadius": 4,
2403
2421
  "flexDirection": "row",
2404
- "marginHorizontal": 12,
2405
2422
  "opacity": 1,
2406
2423
  "padding": 16,
2407
2424
  }
@@ -2513,7 +2530,6 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
2513
2530
  "backgroundColor": "#ffffff",
2514
2531
  "borderRadius": 4,
2515
2532
  "flexDirection": "row",
2516
- "marginHorizontal": 12,
2517
2533
  "opacity": 1,
2518
2534
  "padding": 16,
2519
2535
  }
@@ -257,7 +257,7 @@ Array [
257
257
  onStartShouldSetResponder={[Function]}
258
258
  style={
259
259
  Object {
260
- "backgroundColor": "#001f23",
260
+ "backgroundColor": "#000000",
261
261
  "bottom": 0,
262
262
  "left": 0,
263
263
  "opacity": 0.48,
@@ -282,8 +282,8 @@ Array [
282
282
  "height": 3,
283
283
  "width": 0,
284
284
  },
285
- "shadowOpacity": 0.27,
286
- "shadowRadius": 4.65,
285
+ "shadowOpacity": 0.4,
286
+ "shadowRadius": 16,
287
287
  "transform": Array [
288
288
  Object {
289
289
  "scaleY": 1,
@@ -377,13 +377,13 @@ Array [
377
377
  Array [
378
378
  Object {
379
379
  "color": "#001f23",
380
- "fontSize": 20,
380
+ "fontSize": 16,
381
381
  },
382
382
  undefined,
383
383
  ]
384
384
  }
385
385
  themeIntent="text"
386
- themeSize="small"
386
+ themeSize="xsmall"
387
387
  />
388
388
  </View>
389
389
  </View>
@@ -456,7 +456,14 @@ Array [
456
456
  4,
457
457
  ]
458
458
  }
459
- style={Object {}}
459
+ style={
460
+ Array [
461
+ Object {
462
+ "paddingHorizontal": 12,
463
+ },
464
+ Object {},
465
+ ]
466
+ }
460
467
  >
461
468
  <View>
462
469
  <View
@@ -1512,7 +1519,7 @@ Array [
1512
1519
  onStartShouldSetResponder={[Function]}
1513
1520
  style={
1514
1521
  Object {
1515
- "backgroundColor": "#001f23",
1522
+ "backgroundColor": "#000000",
1516
1523
  "bottom": 0,
1517
1524
  "left": 0,
1518
1525
  "opacity": 0.48,
@@ -1539,8 +1546,8 @@ Array [
1539
1546
  "height": 3,
1540
1547
  "width": 0,
1541
1548
  },
1542
- "shadowOpacity": 0.27,
1543
- "shadowRadius": 4.65,
1549
+ "shadowOpacity": 0.4,
1550
+ "shadowRadius": 16,
1544
1551
  "transform": Array [
1545
1552
  Object {
1546
1553
  "scaleY": 1,
@@ -1636,13 +1643,13 @@ Array [
1636
1643
  Array [
1637
1644
  Object {
1638
1645
  "color": "#001f23",
1639
- "fontSize": 20,
1646
+ "fontSize": 16,
1640
1647
  },
1641
1648
  undefined,
1642
1649
  ]
1643
1650
  }
1644
1651
  themeIntent="text"
1645
- themeSize="small"
1652
+ themeSize="xsmall"
1646
1653
  />
1647
1654
  </View>
1648
1655
  </View>
@@ -1718,7 +1725,14 @@ Array [
1718
1725
  0,
1719
1726
  ]
1720
1727
  }
1721
- style={Object {}}
1728
+ style={
1729
+ Array [
1730
+ Object {
1731
+ "paddingHorizontal": 12,
1732
+ },
1733
+ Object {},
1734
+ ]
1735
+ }
1722
1736
  >
1723
1737
  <View>
1724
1738
  <View
@@ -1801,7 +1815,6 @@ Array [
1801
1815
  "backgroundColor": "#ece8ef",
1802
1816
  "borderRadius": 4,
1803
1817
  "flexDirection": "row",
1804
- "marginHorizontal": 12,
1805
1818
  "opacity": 1,
1806
1819
  "padding": 16,
1807
1820
  }
@@ -1923,7 +1936,6 @@ Array [
1923
1936
  "backgroundColor": "#ffffff",
1924
1937
  "borderRadius": 4,
1925
1938
  "flexDirection": "row",
1926
- "marginHorizontal": 12,
1927
1939
  "opacity": 1,
1928
1940
  "padding": 16,
1929
1941
  }
@@ -2045,7 +2057,6 @@ Array [
2045
2057
  "backgroundColor": "#ffffff",
2046
2058
  "borderRadius": 4,
2047
2059
  "flexDirection": "row",
2048
- "marginHorizontal": 12,
2049
2060
  "opacity": 1,
2050
2061
  "padding": 16,
2051
2062
  }
@@ -2167,7 +2178,6 @@ Array [
2167
2178
  "backgroundColor": "#ffffff",
2168
2179
  "borderRadius": 4,
2169
2180
  "flexDirection": "row",
2170
- "marginHorizontal": 12,
2171
2181
  "opacity": 1,
2172
2182
  "padding": 16,
2173
2183
  }
@@ -2289,7 +2299,6 @@ Array [
2289
2299
  "backgroundColor": "#ffffff",
2290
2300
  "borderRadius": 4,
2291
2301
  "flexDirection": "row",
2292
- "marginHorizontal": 12,
2293
2302
  "opacity": 1,
2294
2303
  "padding": 16,
2295
2304
  }
@@ -2411,7 +2420,6 @@ Array [
2411
2420
  "backgroundColor": "#ffffff",
2412
2421
  "borderRadius": 4,
2413
2422
  "flexDirection": "row",
2414
- "marginHorizontal": 12,
2415
2423
  "opacity": 1,
2416
2424
  "padding": 16,
2417
2425
  }
@@ -2534,7 +2542,6 @@ Array [
2534
2542
  "backgroundColor": "#ffffff",
2535
2543
  "borderRadius": 4,
2536
2544
  "flexDirection": "row",
2537
- "marginHorizontal": 12,
2538
2545
  "opacity": 0.38,
2539
2546
  "padding": 16,
2540
2547
  }
@@ -2894,7 +2901,7 @@ Array [
2894
2901
  onStartShouldSetResponder={[Function]}
2895
2902
  style={
2896
2903
  Object {
2897
- "backgroundColor": "#001f23",
2904
+ "backgroundColor": "#000000",
2898
2905
  "bottom": 0,
2899
2906
  "left": 0,
2900
2907
  "opacity": 0.48,
@@ -2919,8 +2926,8 @@ Array [
2919
2926
  "height": 3,
2920
2927
  "width": 0,
2921
2928
  },
2922
- "shadowOpacity": 0.27,
2923
- "shadowRadius": 4.65,
2929
+ "shadowOpacity": 0.4,
2930
+ "shadowRadius": 16,
2924
2931
  "transform": Array [
2925
2932
  Object {
2926
2933
  "scaleY": 1,
@@ -3014,13 +3021,13 @@ Array [
3014
3021
  Array [
3015
3022
  Object {
3016
3023
  "color": "#001f23",
3017
- "fontSize": 20,
3024
+ "fontSize": 16,
3018
3025
  },
3019
3026
  undefined,
3020
3027
  ]
3021
3028
  }
3022
3029
  themeIntent="text"
3023
- themeSize="small"
3030
+ themeSize="xsmall"
3024
3031
  />
3025
3032
  </View>
3026
3033
  </View>
@@ -3096,7 +3103,14 @@ Array [
3096
3103
  0,
3097
3104
  ]
3098
3105
  }
3099
- style={Object {}}
3106
+ style={
3107
+ Array [
3108
+ Object {
3109
+ "paddingHorizontal": 12,
3110
+ },
3111
+ Object {},
3112
+ ]
3113
+ }
3100
3114
  >
3101
3115
  <View>
3102
3116
  <View
@@ -3177,7 +3191,6 @@ Array [
3177
3191
  "backgroundColor": "#ece8ef",
3178
3192
  "borderRadius": 4,
3179
3193
  "flexDirection": "row",
3180
- "marginHorizontal": 12,
3181
3194
  "opacity": 1,
3182
3195
  "padding": 16,
3183
3196
  }
@@ -3297,7 +3310,6 @@ Array [
3297
3310
  "backgroundColor": "#ffffff",
3298
3311
  "borderRadius": 4,
3299
3312
  "flexDirection": "row",
3300
- "marginHorizontal": 12,
3301
3313
  "opacity": 1,
3302
3314
  "padding": 16,
3303
3315
  }
@@ -3417,7 +3429,6 @@ Array [
3417
3429
  "backgroundColor": "#ffffff",
3418
3430
  "borderRadius": 4,
3419
3431
  "flexDirection": "row",
3420
- "marginHorizontal": 12,
3421
3432
  "opacity": 1,
3422
3433
  "padding": 16,
3423
3434
  }
@@ -3537,7 +3548,6 @@ Array [
3537
3548
  "backgroundColor": "#ffffff",
3538
3549
  "borderRadius": 4,
3539
3550
  "flexDirection": "row",
3540
- "marginHorizontal": 12,
3541
3551
  "opacity": 1,
3542
3552
  "padding": 16,
3543
3553
  }
@@ -3657,7 +3667,6 @@ Array [
3657
3667
  "backgroundColor": "#ffffff",
3658
3668
  "borderRadius": 4,
3659
3669
  "flexDirection": "row",
3660
- "marginHorizontal": 12,
3661
3670
  "opacity": 1,
3662
3671
  "padding": 16,
3663
3672
  }
@@ -3777,7 +3786,6 @@ Array [
3777
3786
  "backgroundColor": "#ffffff",
3778
3787
  "borderRadius": 4,
3779
3788
  "flexDirection": "row",
3780
- "marginHorizontal": 12,
3781
3789
  "opacity": 1,
3782
3790
  "padding": 16,
3783
3791
  }
@@ -3898,7 +3906,6 @@ Array [
3898
3906
  "backgroundColor": "#ffffff",
3899
3907
  "borderRadius": 4,
3900
3908
  "flexDirection": "row",
3901
- "marginHorizontal": 12,
3902
3909
  "opacity": 0.38,
3903
3910
  "padding": 16,
3904
3911
  }
@@ -4275,7 +4282,7 @@ Array [
4275
4282
  onStartShouldSetResponder={[Function]}
4276
4283
  style={
4277
4284
  Object {
4278
- "backgroundColor": "#001f23",
4285
+ "backgroundColor": "#000000",
4279
4286
  "bottom": 0,
4280
4287
  "left": 0,
4281
4288
  "opacity": 0.48,
@@ -4302,8 +4309,8 @@ Array [
4302
4309
  "height": 3,
4303
4310
  "width": 0,
4304
4311
  },
4305
- "shadowOpacity": 0.27,
4306
- "shadowRadius": 4.65,
4312
+ "shadowOpacity": 0.4,
4313
+ "shadowRadius": 16,
4307
4314
  "transform": Array [
4308
4315
  Object {
4309
4316
  "scaleY": 1,
@@ -4399,13 +4406,13 @@ Array [
4399
4406
  Array [
4400
4407
  Object {
4401
4408
  "color": "#001f23",
4402
- "fontSize": 20,
4409
+ "fontSize": 16,
4403
4410
  },
4404
4411
  undefined,
4405
4412
  ]
4406
4413
  }
4407
4414
  themeIntent="text"
4408
- themeSize="small"
4415
+ themeSize="xsmall"
4409
4416
  />
4410
4417
  </View>
4411
4418
  </View>
@@ -4481,7 +4488,14 @@ Array [
4481
4488
  0,
4482
4489
  ]
4483
4490
  }
4484
- style={Object {}}
4491
+ style={
4492
+ Array [
4493
+ Object {
4494
+ "paddingHorizontal": 12,
4495
+ },
4496
+ Object {},
4497
+ ]
4498
+ }
4485
4499
  >
4486
4500
  <View>
4487
4501
  <View
@@ -4564,7 +4578,6 @@ Array [
4564
4578
  "backgroundColor": "#ece8ef",
4565
4579
  "borderRadius": 4,
4566
4580
  "flexDirection": "row",
4567
- "marginHorizontal": 12,
4568
4581
  "opacity": 1,
4569
4582
  "padding": 16,
4570
4583
  }
@@ -4686,7 +4699,6 @@ Array [
4686
4699
  "backgroundColor": "#ffffff",
4687
4700
  "borderRadius": 4,
4688
4701
  "flexDirection": "row",
4689
- "marginHorizontal": 12,
4690
4702
  "opacity": 1,
4691
4703
  "padding": 16,
4692
4704
  }
@@ -4808,7 +4820,6 @@ Array [
4808
4820
  "backgroundColor": "#ffffff",
4809
4821
  "borderRadius": 4,
4810
4822
  "flexDirection": "row",
4811
- "marginHorizontal": 12,
4812
4823
  "opacity": 1,
4813
4824
  "padding": 16,
4814
4825
  }
@@ -4930,7 +4941,6 @@ Array [
4930
4941
  "backgroundColor": "#ffffff",
4931
4942
  "borderRadius": 4,
4932
4943
  "flexDirection": "row",
4933
- "marginHorizontal": 12,
4934
4944
  "opacity": 1,
4935
4945
  "padding": 16,
4936
4946
  }
@@ -5052,7 +5062,6 @@ Array [
5052
5062
  "backgroundColor": "#ffffff",
5053
5063
  "borderRadius": 4,
5054
5064
  "flexDirection": "row",
5055
- "marginHorizontal": 12,
5056
5065
  "opacity": 1,
5057
5066
  "padding": 16,
5058
5067
  }
@@ -5174,7 +5183,6 @@ Array [
5174
5183
  "backgroundColor": "#ffffff",
5175
5184
  "borderRadius": 4,
5176
5185
  "flexDirection": "row",
5177
- "marginHorizontal": 12,
5178
5186
  "opacity": 1,
5179
5187
  "padding": 16,
5180
5188
  }
@@ -5297,7 +5305,6 @@ Array [
5297
5305
  "backgroundColor": "#ffffff",
5298
5306
  "borderRadius": 4,
5299
5307
  "flexDirection": "row",
5300
- "marginHorizontal": 12,
5301
5308
  "opacity": 0.38,
5302
5309
  "padding": 16,
5303
5310
  }
@@ -5657,7 +5664,7 @@ Array [
5657
5664
  onStartShouldSetResponder={[Function]}
5658
5665
  style={
5659
5666
  Object {
5660
- "backgroundColor": "#001f23",
5667
+ "backgroundColor": "#000000",
5661
5668
  "bottom": 0,
5662
5669
  "left": 0,
5663
5670
  "opacity": 0.48,
@@ -5682,8 +5689,8 @@ Array [
5682
5689
  "height": 3,
5683
5690
  "width": 0,
5684
5691
  },
5685
- "shadowOpacity": 0.27,
5686
- "shadowRadius": 4.65,
5692
+ "shadowOpacity": 0.4,
5693
+ "shadowRadius": 16,
5687
5694
  "transform": Array [
5688
5695
  Object {
5689
5696
  "scaleY": 1,
@@ -5777,13 +5784,13 @@ Array [
5777
5784
  Array [
5778
5785
  Object {
5779
5786
  "color": "#001f23",
5780
- "fontSize": 20,
5787
+ "fontSize": 16,
5781
5788
  },
5782
5789
  undefined,
5783
5790
  ]
5784
5791
  }
5785
5792
  themeIntent="text"
5786
- themeSize="small"
5793
+ themeSize="xsmall"
5787
5794
  />
5788
5795
  </View>
5789
5796
  </View>
@@ -5848,7 +5855,14 @@ Array [
5848
5855
  3,
5849
5856
  ]
5850
5857
  }
5851
- style={Object {}}
5858
+ style={
5859
+ Array [
5860
+ Object {
5861
+ "paddingHorizontal": 12,
5862
+ },
5863
+ Object {},
5864
+ ]
5865
+ }
5852
5866
  >
5853
5867
  <View>
5854
5868
  <View
@@ -5982,7 +5996,6 @@ Array [
5982
5996
  "backgroundColor": "#ece8ef",
5983
5997
  "borderRadius": 4,
5984
5998
  "flexDirection": "row",
5985
- "marginHorizontal": 12,
5986
5999
  "opacity": 1,
5987
6000
  "padding": 16,
5988
6001
  }
@@ -6200,7 +6213,6 @@ Array [
6200
6213
  "backgroundColor": "#ffffff",
6201
6214
  "borderRadius": 4,
6202
6215
  "flexDirection": "row",
6203
- "marginHorizontal": 12,
6204
6216
  "opacity": 1,
6205
6217
  "padding": 16,
6206
6218
  }
@@ -6310,7 +6322,6 @@ Array [
6310
6322
  "backgroundColor": "#ffffff",
6311
6323
  "borderRadius": 4,
6312
6324
  "flexDirection": "row",
6313
- "marginHorizontal": 12,
6314
6325
  "opacity": 1,
6315
6326
  "padding": 16,
6316
6327
  }
@@ -15,6 +15,7 @@ import {
15
15
  useKeyboard,
16
16
  } from '../helpers';
17
17
  import type { OptionType, SectionType, SelectProps } from '../types';
18
+ import { useDeprecation } from '../../../utils/hooks';
18
19
 
19
20
  export interface SingleSelectProps<V, T extends OptionType<V> = OptionType<V>>
20
21
  extends SelectProps<V, T> {
@@ -64,6 +65,21 @@ const SingleSelect = <V, T extends OptionType<V>>({
64
65
  const flatOptions = toFlatOptions(options);
65
66
  const displayedValue = flatOptions.find((opt) => value === opt.value)?.text;
66
67
 
68
+ useDeprecation(
69
+ "Select's onDimiss is deprecated and will be removed in the next major release. Please use onDismiss instead.",
70
+ onDimiss !== undefined
71
+ );
72
+
73
+ useDeprecation(
74
+ "Select's numberOfLines is deprecated and will be removed in the next major release. Please use inputProps.numberOfLines instead.",
75
+ numberOfLines !== undefined
76
+ );
77
+
78
+ useDeprecation(
79
+ "Select's inputProps.required is deprecated and will be removed in the next major release. Please use Select's required prop instead.",
80
+ inputProps?.required !== undefined
81
+ );
82
+
67
83
  return (
68
84
  <>
69
85
  <View
@@ -1,4 +1,4 @@
1
- import { View } from 'react-native';
1
+ import { SectionList, View } from 'react-native';
2
2
  import styled from '@emotion/native';
3
3
  import Typography from '../Typography';
4
4
 
@@ -20,4 +20,14 @@ const StyledSearchBar = styled(View)(({ theme }) => ({
20
20
  paddingBottom: theme.__hd__.select.space.searchBarBottomSpacing,
21
21
  }));
22
22
 
23
- export { SectionSpacer, OptionSpacer, FooterText, StyledSearchBar };
23
+ const StyledSectionList = styled(SectionList)(({ theme }) => ({
24
+ paddingHorizontal: theme.__hd__.select.space.optionListHorizontalPadding,
25
+ })) as unknown as typeof SectionList;
26
+
27
+ export {
28
+ SectionSpacer,
29
+ OptionSpacer,
30
+ FooterText,
31
+ StyledSearchBar,
32
+ StyledSectionList,
33
+ };
@@ -13,6 +13,7 @@ export type OptionType<V> = {
13
13
  text: string;
14
14
  key?: string;
15
15
  disabled?: boolean;
16
+ highlighted?: boolean;
16
17
  };
17
18
 
18
19
  export type SectionType = { category: string };