@hero-design/rn 7.28.1 → 7.29.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 (270) hide show
  1. package/.eslintrc.js +2 -1
  2. package/.turbo/turbo-build.log +9 -9
  3. package/es/index.js +50 -65
  4. package/lib/index.js +49 -64
  5. package/package.json +5 -4
  6. package/src/components/BottomSheet/StyledBottomSheet.tsx +0 -1
  7. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +4 -6
  8. package/src/components/DatePicker/DatePickerIOS.tsx +5 -11
  9. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +1 -0
  10. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +31 -12
  11. package/src/components/Progress/ProgressCircle.tsx +1 -1
  12. package/src/components/Select/Footer.tsx +2 -7
  13. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +120 -50
  14. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +5 -0
  15. package/src/components/Select/StyledSelect.tsx +1 -12
  16. package/src/components/Tag/index.tsx +1 -1
  17. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +12 -0
  18. package/src/components/TextInput/__tests__/index.spec.tsx +4 -2
  19. package/src/components/TextInput/index.tsx +7 -1
  20. package/src/components/TimePicker/TimePickerIOS.tsx +5 -11
  21. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +1 -0
  22. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +31 -12
  23. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +2 -6
  24. package/src/theme/components/bottomSheet.ts +2 -3
  25. package/src/theme/components/select.ts +1 -5
  26. package/types/components/Accordion/AccordionItem.d.ts +0 -0
  27. package/types/components/Accordion/StyledAccordion.d.ts +0 -0
  28. package/types/components/Accordion/index.d.ts +0 -0
  29. package/types/components/Alert/StyledAlert.d.ts +0 -0
  30. package/types/components/Alert/index.d.ts +0 -0
  31. package/types/components/Attachment/StyledAttachment.d.ts +0 -0
  32. package/types/components/Attachment/index.d.ts +0 -0
  33. package/types/components/Avatar/Avatar.d.ts +0 -0
  34. package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +0 -0
  35. package/types/components/Avatar/AvatarStack/index.d.ts +0 -0
  36. package/types/components/Avatar/AvatarStack/utils.d.ts +0 -0
  37. package/types/components/Avatar/StyledAvatar.d.ts +0 -0
  38. package/types/components/Avatar/index.d.ts +0 -0
  39. package/types/components/Badge/Status.d.ts +0 -0
  40. package/types/components/Badge/StyledBadge.d.ts +0 -0
  41. package/types/components/Badge/index.d.ts +0 -0
  42. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
  43. package/types/components/BottomNavigation/index.d.ts +0 -0
  44. package/types/components/BottomSheet/Footer.d.ts +0 -0
  45. package/types/components/BottomSheet/Header.d.ts +0 -0
  46. package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -0
  47. package/types/components/BottomSheet/index.d.ts +0 -0
  48. package/types/components/Box/StyledBox.d.ts +0 -0
  49. package/types/components/Box/config.d.ts +0 -0
  50. package/types/components/Box/index.d.ts +0 -0
  51. package/types/components/Box/types.d.ts +0 -0
  52. package/types/components/Button/Button.d.ts +0 -0
  53. package/types/components/Button/IconButton.d.ts +0 -0
  54. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
  55. package/types/components/Button/LoadingIndicator/index.d.ts +0 -0
  56. package/types/components/Button/StyledButton.d.ts +0 -0
  57. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +0 -0
  58. package/types/components/Button/UtilityButton/index.d.ts +0 -0
  59. package/types/components/Button/index.d.ts +0 -0
  60. package/types/components/Calendar/CalendarRowItem.d.ts +0 -0
  61. package/types/components/Calendar/StyledCalendar.d.ts +0 -0
  62. package/types/components/Calendar/helpers.d.ts +0 -0
  63. package/types/components/Calendar/index.d.ts +0 -0
  64. package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -0
  65. package/types/components/Card/DataCard/index.d.ts +0 -0
  66. package/types/components/Card/StyledCard.d.ts +0 -0
  67. package/types/components/Card/index.d.ts +0 -0
  68. package/types/components/Checkbox/StyledCheckbox.d.ts +0 -0
  69. package/types/components/Checkbox/index.d.ts +0 -0
  70. package/types/components/Collapse/StyledCollapse.d.ts +0 -0
  71. package/types/components/Collapse/index.d.ts +0 -0
  72. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -0
  73. package/types/components/ContentNavigator/index.d.ts +0 -0
  74. package/types/components/DatePicker/DatePickerAndroid.d.ts +0 -0
  75. package/types/components/DatePicker/DatePickerIOS.d.ts +0 -0
  76. package/types/components/DatePicker/StyledDatePicker.d.ts +0 -0
  77. package/types/components/DatePicker/index.d.ts +0 -0
  78. package/types/components/DatePicker/types.d.ts +0 -0
  79. package/types/components/Divider/StyledDivider.d.ts +0 -0
  80. package/types/components/Divider/index.d.ts +0 -0
  81. package/types/components/Drawer/DragableDrawer/helpers.d.ts +0 -0
  82. package/types/components/Drawer/DragableDrawer/index.d.ts +0 -0
  83. package/types/components/Drawer/StyledDrawer.d.ts +0 -0
  84. package/types/components/Drawer/index.d.ts +0 -0
  85. package/types/components/Empty/StyledEmpty.d.ts +0 -0
  86. package/types/components/Empty/index.d.ts +0 -0
  87. package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
  88. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
  89. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
  90. package/types/components/FAB/ActionGroup/index.d.ts +0 -0
  91. package/types/components/FAB/AnimatedFABIcon.d.ts +0 -0
  92. package/types/components/FAB/FAB.d.ts +0 -0
  93. package/types/components/FAB/StyledFAB.d.ts +0 -0
  94. package/types/components/FAB/index.d.ts +0 -0
  95. package/types/components/Icon/AnimatedIcon.d.ts +0 -0
  96. package/types/components/Icon/HeroIcon/index.d.ts +0 -0
  97. package/types/components/Icon/IconList.d.ts +0 -0
  98. package/types/components/Icon/index.d.ts +0 -0
  99. package/types/components/Icon/utils.d.ts +0 -0
  100. package/types/components/Image/index.d.ts +0 -0
  101. package/types/components/List/BasicListItem.d.ts +0 -0
  102. package/types/components/List/ListItem.d.ts +0 -0
  103. package/types/components/List/StyledBasicListItem.d.ts +0 -0
  104. package/types/components/List/StyledListItem.d.ts +0 -0
  105. package/types/components/List/index.d.ts +0 -0
  106. package/types/components/PinInput/PinCell.d.ts +0 -0
  107. package/types/components/PinInput/StyledPinInput.d.ts +0 -0
  108. package/types/components/PinInput/index.d.ts +0 -0
  109. package/types/components/Progress/ProgressBar.d.ts +0 -0
  110. package/types/components/Progress/ProgressCircle.d.ts +0 -0
  111. package/types/components/Progress/StyledProgressBar.d.ts +0 -0
  112. package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
  113. package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
  114. package/types/components/Progress/constants.d.ts +0 -0
  115. package/types/components/Progress/index.d.ts +0 -0
  116. package/types/components/Progress/types.d.ts +0 -0
  117. package/types/components/Radio/Radio.d.ts +0 -0
  118. package/types/components/Radio/RadioGroup.d.ts +0 -0
  119. package/types/components/Radio/StyledRadio.d.ts +0 -0
  120. package/types/components/Radio/index.d.ts +0 -0
  121. package/types/components/Radio/types.d.ts +0 -0
  122. package/types/components/RefreshControl/index.d.ts +0 -0
  123. package/types/components/RichTextEditor/EditorEvent.d.ts +0 -0
  124. package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -0
  125. package/types/components/RichTextEditor/MentionList.d.ts +0 -0
  126. package/types/components/RichTextEditor/RichTextEditor.d.ts +0 -0
  127. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -0
  128. package/types/components/RichTextEditor/StyledToolbar.d.ts +0 -0
  129. package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -0
  130. package/types/components/RichTextEditor/constants.d.ts +0 -0
  131. package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -0
  132. package/types/components/RichTextEditor/index.d.ts +0 -0
  133. package/types/components/RichTextEditor/types.d.ts +0 -0
  134. package/types/components/RichTextEditor/utils/events.d.ts +0 -0
  135. package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -0
  136. package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
  137. package/types/components/SectionHeading/index.d.ts +0 -0
  138. package/types/components/Select/BaseOptionList.d.ts +0 -0
  139. package/types/components/Select/Footer.d.ts +0 -0
  140. package/types/components/Select/MultiSelect/Option.d.ts +0 -0
  141. package/types/components/Select/MultiSelect/OptionList.d.ts +0 -0
  142. package/types/components/Select/MultiSelect/index.d.ts +0 -0
  143. package/types/components/Select/SingleSelect/Option.d.ts +0 -0
  144. package/types/components/Select/SingleSelect/OptionList.d.ts +0 -0
  145. package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +0 -0
  146. package/types/components/Select/SingleSelect/index.d.ts +0 -0
  147. package/types/components/Select/StyledSelect.d.ts +1 -5
  148. package/types/components/Select/helpers.d.ts +0 -0
  149. package/types/components/Select/index.d.ts +0 -0
  150. package/types/components/Select/types.d.ts +0 -0
  151. package/types/components/Slider/index.d.ts +0 -0
  152. package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
  153. package/types/components/Spinner/StyledSpinner.d.ts +0 -0
  154. package/types/components/Spinner/index.d.ts +0 -0
  155. package/types/components/Swipeable/StyledSwipeable.d.ts +0 -0
  156. package/types/components/Swipeable/SwipeableAction.d.ts +0 -0
  157. package/types/components/Swipeable/index.d.ts +0 -0
  158. package/types/components/Switch/SelectorSwitch/Option.d.ts +0 -0
  159. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -0
  160. package/types/components/Switch/SelectorSwitch/index.d.ts +0 -0
  161. package/types/components/Switch/StyledSwitch.d.ts +0 -0
  162. package/types/components/Switch/index.d.ts +0 -0
  163. package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
  164. package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
  165. package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -0
  166. package/types/components/Tabs/StyledTabs.d.ts +0 -0
  167. package/types/components/Tabs/TabWithBadge.d.ts +0 -0
  168. package/types/components/Tabs/index.d.ts +0 -0
  169. package/types/components/Tabs/utils.d.ts +0 -0
  170. package/types/components/Tag/StyledTag.d.ts +0 -0
  171. package/types/components/Tag/index.d.ts +0 -0
  172. package/types/components/TextInput/StyledTextInput.d.ts +0 -0
  173. package/types/components/TextInput/index.d.ts +0 -0
  174. package/types/components/TimePicker/StyledTimePicker.d.ts +0 -0
  175. package/types/components/TimePicker/TimePickerAndroid.d.ts +0 -0
  176. package/types/components/TimePicker/TimePickerIOS.d.ts +0 -0
  177. package/types/components/TimePicker/index.d.ts +0 -0
  178. package/types/components/TimePicker/types.d.ts +0 -0
  179. package/types/components/Toast/StyledToast.d.ts +0 -0
  180. package/types/components/Toast/Toast.d.ts +0 -0
  181. package/types/components/Toast/ToastContainer.d.ts +0 -0
  182. package/types/components/Toast/ToastContext.d.ts +0 -0
  183. package/types/components/Toast/ToastProvider.d.ts +0 -0
  184. package/types/components/Toast/index.d.ts +0 -0
  185. package/types/components/Toast/types.d.ts +0 -0
  186. package/types/components/Toolbar/StyledToolbar.d.ts +0 -0
  187. package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
  188. package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
  189. package/types/components/Toolbar/index.d.ts +0 -0
  190. package/types/components/Typography/Text/StyledText.d.ts +0 -0
  191. package/types/components/Typography/Text/index.d.ts +0 -0
  192. package/types/components/Typography/index.d.ts +0 -0
  193. package/types/index.d.ts +0 -0
  194. package/types/testHelpers/renderWithTheme.d.ts +0 -0
  195. package/types/theme/ThemeProvider.d.ts +0 -0
  196. package/types/theme/ThemeSwitcher.d.ts +0 -0
  197. package/types/theme/components/accordion.d.ts +0 -0
  198. package/types/theme/components/alert.d.ts +0 -0
  199. package/types/theme/components/attachment.d.ts +0 -0
  200. package/types/theme/components/avatar.d.ts +0 -0
  201. package/types/theme/components/badge.d.ts +0 -0
  202. package/types/theme/components/bottomNavigation.d.ts +0 -0
  203. package/types/theme/components/bottomSheet.d.ts +0 -1
  204. package/types/theme/components/button.d.ts +0 -0
  205. package/types/theme/components/calendar.d.ts +0 -0
  206. package/types/theme/components/card.d.ts +0 -0
  207. package/types/theme/components/checkbox.d.ts +0 -0
  208. package/types/theme/components/contentNavigator.d.ts +0 -0
  209. package/types/theme/components/datePicker.d.ts +0 -0
  210. package/types/theme/components/divider.d.ts +0 -0
  211. package/types/theme/components/drawer.d.ts +0 -0
  212. package/types/theme/components/empty.d.ts +0 -0
  213. package/types/theme/components/fab.d.ts +0 -0
  214. package/types/theme/components/icon.d.ts +0 -0
  215. package/types/theme/components/image.d.ts +0 -0
  216. package/types/theme/components/list.d.ts +0 -0
  217. package/types/theme/components/pinInput.d.ts +0 -0
  218. package/types/theme/components/progress.d.ts +0 -0
  219. package/types/theme/components/radio.d.ts +0 -0
  220. package/types/theme/components/refreshControl.d.ts +0 -0
  221. package/types/theme/components/richTextEditor.d.ts +0 -0
  222. package/types/theme/components/sectionHeading.d.ts +0 -0
  223. package/types/theme/components/select.d.ts +0 -3
  224. package/types/theme/components/slider.d.ts +0 -0
  225. package/types/theme/components/spinner.d.ts +0 -0
  226. package/types/theme/components/swipeable.d.ts +0 -0
  227. package/types/theme/components/switch.d.ts +0 -0
  228. package/types/theme/components/tabs.d.ts +0 -0
  229. package/types/theme/components/tag.d.ts +0 -0
  230. package/types/theme/components/textInput.d.ts +0 -0
  231. package/types/theme/components/timePicker.d.ts +0 -0
  232. package/types/theme/components/toast.d.ts +0 -0
  233. package/types/theme/components/toolbar.d.ts +0 -0
  234. package/types/theme/components/typography.d.ts +0 -0
  235. package/types/theme/getTheme.d.ts +0 -0
  236. package/types/theme/global/borders.d.ts +0 -0
  237. package/types/theme/global/colors/eBens.d.ts +0 -0
  238. package/types/theme/global/colors/global.d.ts +0 -0
  239. package/types/theme/global/colors/jobs.d.ts +0 -0
  240. package/types/theme/global/colors/legacySystemPalette.d.ts +0 -0
  241. package/types/theme/global/colors/swag.d.ts +0 -0
  242. package/types/theme/global/colors/types.d.ts +0 -0
  243. package/types/theme/global/colors/wallet.d.ts +0 -0
  244. package/types/theme/global/colors/work.d.ts +0 -0
  245. package/types/theme/global/index.d.ts +0 -0
  246. package/types/theme/global/scale.d.ts +0 -0
  247. package/types/theme/global/sizes.d.ts +0 -0
  248. package/types/theme/global/space.d.ts +0 -0
  249. package/types/theme/global/typography.d.ts +0 -0
  250. package/types/theme/index.d.ts +0 -0
  251. package/types/types.d.ts +0 -0
  252. package/types/utils/functions.d.ts +0 -0
  253. package/types/utils/helpers.d.ts +0 -0
  254. package/types/utils/hooks.d.ts +0 -0
  255. package/types/utils/scale.d.ts +0 -0
  256. package/.expo/README.md +0 -15
  257. package/.expo/packager-info.json +0 -10
  258. package/.expo/prebuild/cached-packages.json +0 -4
  259. package/.expo/settings.json +0 -10
  260. package/.expo/xcodebuild-error.log +0 -2
  261. package/.expo/xcodebuild.log +0 -11199
  262. package/.turbo/turbo-build:types.log +0 -2
  263. package/.turbo/turbo-build:watch.log +0 -1
  264. package/.turbo/turbo-lint.log +0 -96
  265. package/.turbo/turbo-test.log +0 -909
  266. package/src/components/Select/__tests__/StyledSelect.spec.tsx +0 -14
  267. package/src/components/Select/__tests__/__snapshots__/StyledSelect.spec.tsx.snap +0 -29
  268. package/types/components/Accordion/utils.d.ts +0 -1
  269. package/types/components/Select/StyledOptionList.d.ts +0 -12
  270. package/types/theme/utils.d.ts +0 -2
package/.eslintrc.js CHANGED
@@ -4,7 +4,8 @@ module.exports = {
4
4
  tsconfigRootDir: __dirname,
5
5
  project: ['./tsconfig.json'],
6
6
  },
7
- extends: ['hd'],
7
+ extends: ['hd', 'plugin:@hero-design/recommendedRn'],
8
+ plugins: ['@hero-design'],
8
9
  rules: {
9
10
  'no-underscore-dangle': [2, { allow: ['__hd__'] }],
10
11
  },
@@ -1,9 +1,9 @@
1
- @hero-design/rn:build: cache hit, replaying output a03a3fb65bb94b93
2
- @hero-design/rn:build: $ yarn build:js && yarn build:types
3
- @hero-design/rn:build: $ rollup -c
4
- @hero-design/rn:build: 
5
- @hero-design/rn:build: src/index.ts → lib/index.js, es/index.js...
6
- @hero-design/rn:build: (!) Plugin replace: @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.
7
- @hero-design/rn:build: (!) Plugin node-resolve: preferring built-in module 'events' over local alternative at '/Users/hieupham/Documents/workspace/EH/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
8
- @hero-design/rn:build: created lib/index.js, es/index.js in 12.5s
9
- @hero-design/rn:build: $ tsc --noEmit false --emitDeclarationOnly --project tsconfig.prod.json
1
+ @hero-design/rn:build: cache hit, replaying output d9bdf9ebe573456b
2
+ @hero-design/rn:build: $ yarn build:js && yarn build:types
3
+ @hero-design/rn:build: $ rollup -c
4
+ @hero-design/rn:build: 
5
+ @hero-design/rn:build: src/index.ts → lib/index.js, es/index.js...
6
+ @hero-design/rn:build: (!) Plugin replace: @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.
7
+ @hero-design/rn:build: (!) Plugin node-resolve: preferring built-in module 'events' over local alternative at '/root/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
8
+ @hero-design/rn:build: created lib/index.js, es/index.js in 27s
9
+ @hero-design/rn:build: $ tsc --noEmit false --emitDeclarationOnly --project tsconfig.prod.json
package/es/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as reactNative from 'react-native';
2
- import { Platform, Dimensions, StyleSheet as StyleSheet$1, Animated, View, Easing, TouchableOpacity, Text as Text$1, Image as Image$1, TouchableWithoutFeedback, Pressable, SafeAreaView, KeyboardAvoidingView, Modal, TextInput as TextInput$1, PanResponder, TouchableHighlight, InteractionManager, useWindowDimensions, SectionList, Keyboard, FlatList, LayoutAnimation, RefreshControl as RefreshControl$1 } from 'react-native';
2
+ import { Platform, Dimensions, StyleSheet as StyleSheet$1, Animated, View, Easing, TouchableOpacity, Text as Text$1, Image as Image$1, TouchableWithoutFeedback, Pressable, SafeAreaView, KeyboardAvoidingView, Modal, TextInput as TextInput$1, PanResponder, TouchableHighlight, InteractionManager, useWindowDimensions, Keyboard, SectionList, FlatList, LayoutAnimation, RefreshControl as RefreshControl$1 } from 'react-native';
3
3
  import React, { useContext, createContext, createElement, useMemo, forwardRef, useEffect, useCallback, useRef, useState, useLayoutEffect, useImperativeHandle } from 'react';
4
4
  import { createIconSet } from 'react-native-vector-icons';
5
5
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
@@ -76,7 +76,7 @@ function _defineProperty(obj, key, value) {
76
76
  return obj;
77
77
  }
78
78
  function _extends$1() {
79
- _extends$1 = Object.assign || function (target) {
79
+ _extends$1 = Object.assign ? Object.assign.bind() : function (target) {
80
80
  for (var i = 1; i < arguments.length; i++) {
81
81
  var source = arguments[i];
82
82
  for (var key in source) {
@@ -1712,15 +1712,14 @@ var getBottomSheetTheme = function getBottomSheetTheme(theme) {
1712
1712
  backdrop: theme.colors.overlayGlobalSurface
1713
1713
  };
1714
1714
  var sizes = {
1715
- sectionHeight: theme.sizes.xxxxxlarge,
1716
1715
  closeIcon: theme.sizes.xxxlarge
1717
1716
  };
1718
1717
  var space = {
1719
1718
  headerWrapperVerticalPadding: theme.space.small,
1720
1719
  headerWrapperHorizontalPadding: theme.space.medium,
1721
1720
  closeIconMargin: theme.space.smallMedium,
1722
- footerVerticalPadding: theme.space.medium,
1723
- footerHorizontalPadding: theme.space.large
1721
+ footerVerticalPadding: theme.space.xxsmall,
1722
+ footerHorizontalPadding: theme.space.smallMedium
1724
1723
  };
1725
1724
  var shadows = {
1726
1725
  offset: {
@@ -2307,9 +2306,6 @@ var getSectionHeadingTheme = function getSectionHeadingTheme(theme) {
2307
2306
  };
2308
2307
 
2309
2308
  var getSelectTheme = function getSelectTheme(theme) {
2310
- var colors = {
2311
- footerText: theme.colors.secondary
2312
- };
2313
2309
  var space = {
2314
2310
  minimumOptionListHeight: theme.space.xxxxlarge * 5,
2315
2311
  sectionSpacing: theme.space.smallMedium,
@@ -2326,7 +2322,6 @@ var getSelectTheme = function getSelectTheme(theme) {
2326
2322
  };
2327
2323
  return {
2328
2324
  space: space,
2329
- colors: colors,
2330
2325
  radii: radii
2331
2326
  };
2332
2327
  };
@@ -7072,7 +7067,6 @@ var StyledFooter = index$a(View)(function (_ref4) {
7072
7067
  return {
7073
7068
  paddingHorizontal: theme.__hd__.bottomSheet.space.footerHorizontalPadding,
7074
7069
  paddingVertical: theme.__hd__.bottomSheet.space.footerVerticalPadding,
7075
- minHeight: theme.__hd__.bottomSheet.sizes.sectionHeight,
7076
7070
  alignItems: 'center',
7077
7071
  justifyContent: 'flex-end',
7078
7072
  flexDirection: 'row'
@@ -10803,6 +10797,9 @@ var getVariant$1 = function getVariant(_ref) {
10803
10797
  }
10804
10798
  return 'default';
10805
10799
  };
10800
+ // Fix issue: Placeholder is not shown on iOS when multiline is true
10801
+ // https://github.com/callstack/react-native-paper/pull/3331
10802
+ var EMPTY_PLACEHOLDER_VALUE = ' ';
10806
10803
  var TextInput = function TextInput(_ref2) {
10807
10804
  var _ref3;
10808
10805
  var label = _ref2.label,
@@ -10888,7 +10885,7 @@ var TextInput = function TextInput(_ref2) {
10888
10885
  (_nativeProps$onChange = nativeProps.onChangeText) === null || _nativeProps$onChange === void 0 ? void 0 : _nativeProps$onChange.call(nativeProps, text);
10889
10886
  },
10890
10887
  defaultValue: defaultValue,
10891
- placeholder: isFocused || label === undefined ? nativeProps.placeholder : undefined
10888
+ placeholder: isFocused || label === undefined ? nativeProps.placeholder : EMPTY_PLACEHOLDER_VALUE
10892
10889
  });
10893
10890
  return /*#__PURE__*/React.createElement(StyledContainer$3, {
10894
10891
  style: style,
@@ -11050,18 +11047,16 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
11050
11047
  return setOpen(false);
11051
11048
  },
11052
11049
  header: label,
11053
- footer: /*#__PURE__*/React.createElement(TouchableOpacity, {
11050
+ footer: /*#__PURE__*/React.createElement(CompoundButton, {
11051
+ variant: "text",
11052
+ text: confirmLabel,
11054
11053
  onPress: function onPress() {
11055
11054
  if (selectingDate) {
11056
11055
  onChange(selectingDate);
11057
11056
  }
11058
11057
  setOpen(false);
11059
11058
  }
11060
- }, /*#__PURE__*/React.createElement(Typography.Text, {
11061
- fontSize: "large",
11062
- fontWeight: "semi-bold",
11063
- intent: "primary"
11064
- }, confirmLabel))
11059
+ })
11065
11060
  }, /*#__PURE__*/React.createElement(StyledPickerWrapper$1, null, /*#__PURE__*/React.createElement(DateTimePicker, {
11066
11061
  testID: "datePickerIOS",
11067
11062
  value: selectingDate,
@@ -11175,7 +11170,7 @@ var calculateSnapPointsData = function calculateSnapPointsData(minimumHeight, he
11175
11170
  var uniqSnapPointOffsetValues = Array.from(new Set([].concat(_toConsumableArray(snapPointsOffsetValues), [0])));
11176
11171
  return {
11177
11172
  list: uniqSnapPointOffsetValues,
11178
- minHeightOffset: Math.max.apply(Math, _toConsumableArray(uniqSnapPointOffsetValues)),
11173
+ minHeightOffset: Math.max.apply(Math, uniqSnapPointOffsetValues),
11179
11174
  maxHeightOffset: 0 // Max height
11180
11175
  };
11181
11176
  };
@@ -12826,48 +12821,14 @@ var SectionHeading = function SectionHeading(_ref) {
12826
12821
  }, text)), rightChildren);
12827
12822
  };
12828
12823
 
12829
- var SectionSpacer = index$a(View)(function (_ref) {
12830
- var theme = _ref.theme;
12831
- return {
12832
- marginTop: theme.__hd__.select.space.sectionSpacing
12833
- };
12834
- });
12835
- var OptionSpacer = index$a(View)(function (_ref2) {
12836
- var theme = _ref2.theme;
12837
- return {
12838
- marginTop: theme.__hd__.select.space.optionSpacing
12839
- };
12840
- });
12841
- var FooterText = index$a(Typography.Text)(function (_ref3) {
12842
- var theme = _ref3.theme;
12843
- return {
12844
- color: theme.__hd__.select.colors.footerText
12845
- };
12846
- });
12847
- var StyledSearchBar = index$a(View)(function (_ref4) {
12848
- var theme = _ref4.theme;
12849
- return {
12850
- marginTop: theme.__hd__.select.space.searchBarMarginTopSpacing,
12851
- paddingHorizontal: theme.__hd__.select.space.searchBarHorizontalSpacing,
12852
- paddingBottom: theme.__hd__.select.space.searchBarBottomSpacing
12853
- };
12854
- });
12855
- var StyledSectionList = index$a(SectionList)(function (_ref5) {
12856
- var theme = _ref5.theme;
12857
- return {
12858
- paddingHorizontal: theme.__hd__.select.space.optionListHorizontalPadding
12859
- };
12860
- });
12861
-
12862
12824
  var Footer = function Footer(_ref) {
12863
12825
  var label = _ref.label,
12864
12826
  onPress = _ref.onPress;
12865
- return /*#__PURE__*/React.createElement(TouchableOpacity, {
12827
+ return /*#__PURE__*/React.createElement(CompoundButton, {
12828
+ variant: "text",
12829
+ text: label,
12866
12830
  onPress: onPress
12867
- }, /*#__PURE__*/React.createElement(FooterText, {
12868
- fontSize: "large",
12869
- fontWeight: "semi-bold"
12870
- }, label));
12831
+ });
12871
12832
  };
12872
12833
 
12873
12834
  var isSections = function isSections(options) {
@@ -12932,6 +12893,33 @@ var useKeyboard = function useKeyboard() {
12932
12893
  };
12933
12894
  };
12934
12895
 
12896
+ var SectionSpacer = index$a(View)(function (_ref) {
12897
+ var theme = _ref.theme;
12898
+ return {
12899
+ marginTop: theme.__hd__.select.space.sectionSpacing
12900
+ };
12901
+ });
12902
+ var OptionSpacer = index$a(View)(function (_ref2) {
12903
+ var theme = _ref2.theme;
12904
+ return {
12905
+ marginTop: theme.__hd__.select.space.optionSpacing
12906
+ };
12907
+ });
12908
+ var StyledSearchBar = index$a(View)(function (_ref3) {
12909
+ var theme = _ref3.theme;
12910
+ return {
12911
+ marginTop: theme.__hd__.select.space.searchBarMarginTopSpacing,
12912
+ paddingHorizontal: theme.__hd__.select.space.searchBarHorizontalSpacing,
12913
+ paddingBottom: theme.__hd__.select.space.searchBarBottomSpacing
12914
+ };
12915
+ });
12916
+ var StyledSectionList = index$a(SectionList)(function (_ref4) {
12917
+ var theme = _ref4.theme;
12918
+ return {
12919
+ paddingHorizontal: theme.__hd__.select.space.optionListHorizontalPadding
12920
+ };
12921
+ });
12922
+
12935
12923
  var BaseOptionList = function BaseOptionList(_ref) {
12936
12924
  var keyExtractor = _ref.keyExtractor,
12937
12925
  loading = _ref.loading,
@@ -14051,7 +14039,7 @@ var Tag = function Tag(_ref) {
14051
14039
  style = _ref.style,
14052
14040
  testID = _ref.testID,
14053
14041
  nativeProps = _objectWithoutProperties(_ref, _excluded);
14054
- useDeprecation("Tag's default intent is deprecated and will be removed in the next major release.\nPlease use primary intent instead.", intent !== 'default');
14042
+ useDeprecation("Tag's default intent is deprecated and will be removed in the next major release.\nPlease use primary intent instead.", intent === 'default');
14055
14043
  return /*#__PURE__*/React.createElement(StyledView, _extends$1({}, nativeProps, {
14056
14044
  themeIntent: intent,
14057
14045
  themeVariant: variant,
@@ -14175,18 +14163,16 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
14175
14163
  return setOpen(false);
14176
14164
  },
14177
14165
  header: label,
14178
- footer: /*#__PURE__*/React.createElement(TouchableOpacity, {
14166
+ footer: /*#__PURE__*/React.createElement(CompoundButton, {
14167
+ variant: "text",
14168
+ text: confirmLabel,
14179
14169
  onPress: function onPress() {
14180
14170
  if (selectingDate) {
14181
14171
  onChange(selectingDate);
14182
14172
  }
14183
14173
  setOpen(false);
14184
14174
  }
14185
- }, /*#__PURE__*/React.createElement(Typography.Text, {
14186
- fontSize: "large",
14187
- fontWeight: "semi-bold",
14188
- intent: "primary"
14189
- }, confirmLabel))
14175
+ })
14190
14176
  }, /*#__PURE__*/React.createElement(StyledPickerWrapper, null, /*#__PURE__*/React.createElement(DateTimePicker, {
14191
14177
  testID: "timePickerIOS",
14192
14178
  value: selectingDate,
@@ -25658,8 +25644,7 @@ function checkDCE() {
25658
25644
  voids: a
25659
25645
  }));
25660
25646
  if (v.length > 0) if ("continue" === function () {
25661
- var _v = _slicedToArray(v, 1),
25662
- r = _v[0],
25647
+ var r = v[0],
25663
25648
  n = v[v.length - 1],
25664
25649
  _r4 = _slicedToArray(r, 2),
25665
25650
  o = _r4[1],
package/lib/index.js CHANGED
@@ -105,7 +105,7 @@ function _defineProperty(obj, key, value) {
105
105
  return obj;
106
106
  }
107
107
  function _extends$1() {
108
- _extends$1 = Object.assign || function (target) {
108
+ _extends$1 = Object.assign ? Object.assign.bind() : function (target) {
109
109
  for (var i = 1; i < arguments.length; i++) {
110
110
  var source = arguments[i];
111
111
  for (var key in source) {
@@ -1741,15 +1741,14 @@ var getBottomSheetTheme = function getBottomSheetTheme(theme) {
1741
1741
  backdrop: theme.colors.overlayGlobalSurface
1742
1742
  };
1743
1743
  var sizes = {
1744
- sectionHeight: theme.sizes.xxxxxlarge,
1745
1744
  closeIcon: theme.sizes.xxxlarge
1746
1745
  };
1747
1746
  var space = {
1748
1747
  headerWrapperVerticalPadding: theme.space.small,
1749
1748
  headerWrapperHorizontalPadding: theme.space.medium,
1750
1749
  closeIconMargin: theme.space.smallMedium,
1751
- footerVerticalPadding: theme.space.medium,
1752
- footerHorizontalPadding: theme.space.large
1750
+ footerVerticalPadding: theme.space.xxsmall,
1751
+ footerHorizontalPadding: theme.space.smallMedium
1753
1752
  };
1754
1753
  var shadows = {
1755
1754
  offset: {
@@ -2336,9 +2335,6 @@ var getSectionHeadingTheme = function getSectionHeadingTheme(theme) {
2336
2335
  };
2337
2336
 
2338
2337
  var getSelectTheme = function getSelectTheme(theme) {
2339
- var colors = {
2340
- footerText: theme.colors.secondary
2341
- };
2342
2338
  var space = {
2343
2339
  minimumOptionListHeight: theme.space.xxxxlarge * 5,
2344
2340
  sectionSpacing: theme.space.smallMedium,
@@ -2355,7 +2351,6 @@ var getSelectTheme = function getSelectTheme(theme) {
2355
2351
  };
2356
2352
  return {
2357
2353
  space: space,
2358
- colors: colors,
2359
2354
  radii: radii
2360
2355
  };
2361
2356
  };
@@ -7101,7 +7096,6 @@ var StyledFooter = index$a(reactNative.View)(function (_ref4) {
7101
7096
  return {
7102
7097
  paddingHorizontal: theme.__hd__.bottomSheet.space.footerHorizontalPadding,
7103
7098
  paddingVertical: theme.__hd__.bottomSheet.space.footerVerticalPadding,
7104
- minHeight: theme.__hd__.bottomSheet.sizes.sectionHeight,
7105
7099
  alignItems: 'center',
7106
7100
  justifyContent: 'flex-end',
7107
7101
  flexDirection: 'row'
@@ -10832,6 +10826,9 @@ var getVariant$1 = function getVariant(_ref) {
10832
10826
  }
10833
10827
  return 'default';
10834
10828
  };
10829
+ // Fix issue: Placeholder is not shown on iOS when multiline is true
10830
+ // https://github.com/callstack/react-native-paper/pull/3331
10831
+ var EMPTY_PLACEHOLDER_VALUE = ' ';
10835
10832
  var TextInput = function TextInput(_ref2) {
10836
10833
  var _ref3;
10837
10834
  var label = _ref2.label,
@@ -10917,7 +10914,7 @@ var TextInput = function TextInput(_ref2) {
10917
10914
  (_nativeProps$onChange = nativeProps.onChangeText) === null || _nativeProps$onChange === void 0 ? void 0 : _nativeProps$onChange.call(nativeProps, text);
10918
10915
  },
10919
10916
  defaultValue: defaultValue,
10920
- placeholder: isFocused || label === undefined ? nativeProps.placeholder : undefined
10917
+ placeholder: isFocused || label === undefined ? nativeProps.placeholder : EMPTY_PLACEHOLDER_VALUE
10921
10918
  });
10922
10919
  return /*#__PURE__*/React__default["default"].createElement(StyledContainer$3, {
10923
10920
  style: style,
@@ -11079,18 +11076,16 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
11079
11076
  return setOpen(false);
11080
11077
  },
11081
11078
  header: label,
11082
- footer: /*#__PURE__*/React__default["default"].createElement(reactNative.TouchableOpacity, {
11079
+ footer: /*#__PURE__*/React__default["default"].createElement(CompoundButton, {
11080
+ variant: "text",
11081
+ text: confirmLabel,
11083
11082
  onPress: function onPress() {
11084
11083
  if (selectingDate) {
11085
11084
  onChange(selectingDate);
11086
11085
  }
11087
11086
  setOpen(false);
11088
11087
  }
11089
- }, /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
11090
- fontSize: "large",
11091
- fontWeight: "semi-bold",
11092
- intent: "primary"
11093
- }, confirmLabel))
11088
+ })
11094
11089
  }, /*#__PURE__*/React__default["default"].createElement(StyledPickerWrapper$1, null, /*#__PURE__*/React__default["default"].createElement(DateTimePicker__default["default"], {
11095
11090
  testID: "datePickerIOS",
11096
11091
  value: selectingDate,
@@ -11204,7 +11199,7 @@ var calculateSnapPointsData = function calculateSnapPointsData(minimumHeight, he
11204
11199
  var uniqSnapPointOffsetValues = Array.from(new Set([].concat(_toConsumableArray(snapPointsOffsetValues), [0])));
11205
11200
  return {
11206
11201
  list: uniqSnapPointOffsetValues,
11207
- minHeightOffset: Math.max.apply(Math, _toConsumableArray(uniqSnapPointOffsetValues)),
11202
+ minHeightOffset: Math.max.apply(Math, uniqSnapPointOffsetValues),
11208
11203
  maxHeightOffset: 0 // Max height
11209
11204
  };
11210
11205
  };
@@ -12855,48 +12850,14 @@ var SectionHeading = function SectionHeading(_ref) {
12855
12850
  }, text)), rightChildren);
12856
12851
  };
12857
12852
 
12858
- var SectionSpacer = index$a(reactNative.View)(function (_ref) {
12859
- var theme = _ref.theme;
12860
- return {
12861
- marginTop: theme.__hd__.select.space.sectionSpacing
12862
- };
12863
- });
12864
- var OptionSpacer = index$a(reactNative.View)(function (_ref2) {
12865
- var theme = _ref2.theme;
12866
- return {
12867
- marginTop: theme.__hd__.select.space.optionSpacing
12868
- };
12869
- });
12870
- var FooterText = index$a(Typography.Text)(function (_ref3) {
12871
- var theme = _ref3.theme;
12872
- return {
12873
- color: theme.__hd__.select.colors.footerText
12874
- };
12875
- });
12876
- var StyledSearchBar = index$a(reactNative.View)(function (_ref4) {
12877
- var theme = _ref4.theme;
12878
- return {
12879
- marginTop: theme.__hd__.select.space.searchBarMarginTopSpacing,
12880
- paddingHorizontal: theme.__hd__.select.space.searchBarHorizontalSpacing,
12881
- paddingBottom: theme.__hd__.select.space.searchBarBottomSpacing
12882
- };
12883
- });
12884
- var StyledSectionList = index$a(reactNative.SectionList)(function (_ref5) {
12885
- var theme = _ref5.theme;
12886
- return {
12887
- paddingHorizontal: theme.__hd__.select.space.optionListHorizontalPadding
12888
- };
12889
- });
12890
-
12891
12853
  var Footer = function Footer(_ref) {
12892
12854
  var label = _ref.label,
12893
12855
  onPress = _ref.onPress;
12894
- return /*#__PURE__*/React__default["default"].createElement(reactNative.TouchableOpacity, {
12856
+ return /*#__PURE__*/React__default["default"].createElement(CompoundButton, {
12857
+ variant: "text",
12858
+ text: label,
12895
12859
  onPress: onPress
12896
- }, /*#__PURE__*/React__default["default"].createElement(FooterText, {
12897
- fontSize: "large",
12898
- fontWeight: "semi-bold"
12899
- }, label));
12860
+ });
12900
12861
  };
12901
12862
 
12902
12863
  var isSections = function isSections(options) {
@@ -12961,6 +12922,33 @@ var useKeyboard = function useKeyboard() {
12961
12922
  };
12962
12923
  };
12963
12924
 
12925
+ var SectionSpacer = index$a(reactNative.View)(function (_ref) {
12926
+ var theme = _ref.theme;
12927
+ return {
12928
+ marginTop: theme.__hd__.select.space.sectionSpacing
12929
+ };
12930
+ });
12931
+ var OptionSpacer = index$a(reactNative.View)(function (_ref2) {
12932
+ var theme = _ref2.theme;
12933
+ return {
12934
+ marginTop: theme.__hd__.select.space.optionSpacing
12935
+ };
12936
+ });
12937
+ var StyledSearchBar = index$a(reactNative.View)(function (_ref3) {
12938
+ var theme = _ref3.theme;
12939
+ return {
12940
+ marginTop: theme.__hd__.select.space.searchBarMarginTopSpacing,
12941
+ paddingHorizontal: theme.__hd__.select.space.searchBarHorizontalSpacing,
12942
+ paddingBottom: theme.__hd__.select.space.searchBarBottomSpacing
12943
+ };
12944
+ });
12945
+ var StyledSectionList = index$a(reactNative.SectionList)(function (_ref4) {
12946
+ var theme = _ref4.theme;
12947
+ return {
12948
+ paddingHorizontal: theme.__hd__.select.space.optionListHorizontalPadding
12949
+ };
12950
+ });
12951
+
12964
12952
  var BaseOptionList = function BaseOptionList(_ref) {
12965
12953
  var keyExtractor = _ref.keyExtractor,
12966
12954
  loading = _ref.loading,
@@ -14080,7 +14068,7 @@ var Tag = function Tag(_ref) {
14080
14068
  style = _ref.style,
14081
14069
  testID = _ref.testID,
14082
14070
  nativeProps = _objectWithoutProperties(_ref, _excluded);
14083
- useDeprecation("Tag's default intent is deprecated and will be removed in the next major release.\nPlease use primary intent instead.", intent !== 'default');
14071
+ useDeprecation("Tag's default intent is deprecated and will be removed in the next major release.\nPlease use primary intent instead.", intent === 'default');
14084
14072
  return /*#__PURE__*/React__default["default"].createElement(StyledView, _extends$1({}, nativeProps, {
14085
14073
  themeIntent: intent,
14086
14074
  themeVariant: variant,
@@ -14204,18 +14192,16 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
14204
14192
  return setOpen(false);
14205
14193
  },
14206
14194
  header: label,
14207
- footer: /*#__PURE__*/React__default["default"].createElement(reactNative.TouchableOpacity, {
14195
+ footer: /*#__PURE__*/React__default["default"].createElement(CompoundButton, {
14196
+ variant: "text",
14197
+ text: confirmLabel,
14208
14198
  onPress: function onPress() {
14209
14199
  if (selectingDate) {
14210
14200
  onChange(selectingDate);
14211
14201
  }
14212
14202
  setOpen(false);
14213
14203
  }
14214
- }, /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
14215
- fontSize: "large",
14216
- fontWeight: "semi-bold",
14217
- intent: "primary"
14218
- }, confirmLabel))
14204
+ })
14219
14205
  }, /*#__PURE__*/React__default["default"].createElement(StyledPickerWrapper, null, /*#__PURE__*/React__default["default"].createElement(DateTimePicker__default["default"], {
14220
14206
  testID: "timePickerIOS",
14221
14207
  value: selectingDate,
@@ -25687,8 +25673,7 @@ function checkDCE() {
25687
25673
  voids: a
25688
25674
  }));
25689
25675
  if (v.length > 0) if ("continue" === function () {
25690
- var _v = _slicedToArray(v, 1),
25691
- r = _v[0],
25676
+ var r = v[0],
25692
25677
  n = v[v.length - 1],
25693
25678
  _r4 = _slicedToArray(r, 2),
25694
25679
  o = _r4[1],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "7.28.1",
3
+ "version": "7.29.0",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "@emotion/native": "^11.9.3",
22
22
  "@emotion/react": "^11.9.3",
23
- "@hero-design/colors": "7.28.1",
23
+ "@hero-design/colors": "7.29.0",
24
24
  "date-fns": "^2.16.1",
25
25
  "events": "^3.2.0",
26
26
  "hero-editor": "^1.9.12"
@@ -43,6 +43,7 @@
43
43
  "@babel/preset-typescript": "^7.17.12",
44
44
  "@babel/runtime": "^7.18.9",
45
45
  "@emotion/jest": "^11.9.3",
46
+ "@hero-design/eslint-plugin": "7.29.0",
46
47
  "@react-native-community/datetimepicker": "^3.5.2",
47
48
  "@react-native-community/slider": "4.1.12",
48
49
  "@rollup/plugin-babel": "^5.3.1",
@@ -58,7 +59,7 @@
58
59
  "@types/react-native": "^0.67.7",
59
60
  "@types/react-native-vector-icons": "^6.4.10",
60
61
  "babel-plugin-inline-import": "^3.0.0",
61
- "eslint-config-hd": "7.28.1",
62
+ "eslint-config-hd": "7.29.0",
62
63
  "jest": "^27.3.1",
63
64
  "react": "17.0.2",
64
65
  "react-native": "0.65.1",
@@ -72,7 +73,7 @@
72
73
  "rollup-plugin-copy": "^3.4.0",
73
74
  "rollup-plugin-flow": "^1.1.1",
74
75
  "ts-jest": "^27.0.7",
75
- "prettier-config-hd": "7.28.1",
76
+ "prettier-config-hd": "7.29.0",
76
77
  "rn-7-23-0": "npm:@hero-design/rn@7.23.0"
77
78
  },
78
79
  "prettier": "prettier-config-hd"
@@ -64,7 +64,6 @@ const StyledHeader = styled(View)<ViewProps>({
64
64
  const StyledFooter = styled(View)<ViewProps>(({ theme }) => ({
65
65
  paddingHorizontal: theme.__hd__.bottomSheet.space.footerHorizontalPadding,
66
66
  paddingVertical: theme.__hd__.bottomSheet.space.footerVerticalPadding,
67
- minHeight: theme.__hd__.bottomSheet.sizes.sectionHeight,
68
67
  alignItems: 'center',
69
68
  justifyContent: 'flex-end',
70
69
  flexDirection: 'row',
@@ -225,9 +225,8 @@ exports[`BottomSheet renders correctly with close state 1`] = `
225
225
  "alignItems": "center",
226
226
  "flexDirection": "row",
227
227
  "justifyContent": "flex-end",
228
- "minHeight": 64,
229
- "paddingHorizontal": 24,
230
- "paddingVertical": 16,
228
+ "paddingHorizontal": 12,
229
+ "paddingVertical": 2,
231
230
  },
232
231
  undefined,
233
232
  ]
@@ -508,9 +507,8 @@ exports[`BottomSheet renders correctly with open state 1`] = `
508
507
  "alignItems": "center",
509
508
  "flexDirection": "row",
510
509
  "justifyContent": "flex-end",
511
- "minHeight": 64,
512
- "paddingHorizontal": 24,
513
- "paddingVertical": 16,
510
+ "paddingHorizontal": 12,
511
+ "paddingVertical": 2,
514
512
  },
515
513
  undefined,
516
514
  ]
@@ -5,7 +5,7 @@ import formatDate from 'date-fns/fp/format';
5
5
 
6
6
  import BottomSheet from '../BottomSheet';
7
7
  import TextInput from '../TextInput';
8
- import Typography from '../Typography';
8
+ import Button from '../Button';
9
9
  import { StyledPickerWrapper } from './StyledDatePicker';
10
10
  import type { DatePickerProps } from './types';
11
11
 
@@ -49,22 +49,16 @@ const DatePickerIOS = ({
49
49
  onRequestClose={() => setOpen(false)}
50
50
  header={label}
51
51
  footer={
52
- <TouchableOpacity
52
+ <Button
53
+ variant="text"
54
+ text={confirmLabel}
53
55
  onPress={() => {
54
56
  if (selectingDate) {
55
57
  onChange(selectingDate);
56
58
  }
57
59
  setOpen(false);
58
60
  }}
59
- >
60
- <Typography.Text
61
- fontSize="large"
62
- fontWeight="semi-bold"
63
- intent="primary"
64
- >
65
- {confirmLabel}
66
- </Typography.Text>
67
- </TouchableOpacity>
61
+ />
68
62
  }
69
63
  >
70
64
  <StyledPickerWrapper>
@@ -133,6 +133,7 @@ exports[`DatePickerAndroid renders correctly 1`] = `
133
133
  onBlur={[Function]}
134
134
  onChangeText={[Function]}
135
135
  onFocus={[Function]}
136
+ placeholder=" "
136
137
  style={
137
138
  Array [
138
139
  Object {