@hero-design/rn 8.52.0 → 8.52.2-rc2.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 (182) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +26 -0
  3. package/es/index.js +399 -709
  4. package/lib/index.js +397 -708
  5. package/package.json +7 -7
  6. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +0 -4
  7. package/src/components/Accordion/__tests__/__snapshots__/StyledAccordion.spec.tsx.snap +0 -2
  8. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
  9. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +0 -7
  10. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  11. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +0 -2
  12. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  13. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +0 -3
  14. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
  15. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +0 -6
  16. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +0 -2
  17. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +32 -21
  18. package/src/components/BottomSheet/index.tsx +1 -1
  19. package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +0 -21
  20. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +0 -10
  21. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +0 -10
  22. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  23. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +0 -16
  24. package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +0 -1
  25. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +0 -32
  26. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +0 -5
  27. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +0 -7
  28. package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +0 -5
  29. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +0 -1
  30. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +0 -6
  31. package/src/components/Carousel/CardCarousel.tsx +1 -5
  32. package/src/components/Carousel/StyledCardCarousel.tsx +1 -16
  33. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +92 -174
  34. package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +0 -4
  35. package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +0 -1
  36. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +1 -803
  37. package/src/components/Carousel/__tests__/index.spec.tsx +37 -47
  38. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +0 -8
  39. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +0 -6
  40. package/src/components/Checkbox/index.tsx +1 -13
  41. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +0 -12
  42. package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +0 -2
  43. package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  44. package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +0 -1
  45. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
  46. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +0 -15
  47. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +0 -1
  48. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +0 -1
  49. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +309 -329
  50. package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +0 -12
  51. package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  52. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
  53. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  54. package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
  55. package/src/components/Error/index.tsx +3 -20
  56. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  57. package/src/components/FAB/ActionGroup/index.tsx +1 -14
  58. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +0 -2
  59. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +0 -3
  60. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
  61. package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  62. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
  63. package/src/components/Image/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
  64. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +0 -2
  65. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +0 -4
  66. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +0 -4
  67. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +0 -9
  68. package/src/components/Modal/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  69. package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  70. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +0 -5
  71. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
  72. package/src/components/Portal/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  73. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +0 -5
  74. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +0 -2
  75. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +0 -1
  76. package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
  77. package/src/components/RefreshControl/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
  78. package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +0 -1
  79. package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +0 -1
  80. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +0 -2
  81. package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +0 -4
  82. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +0 -6
  83. package/src/components/SectionHeading/__tests__/index.spec.tsx +0 -1
  84. package/src/components/SectionHeading/index.tsx +32 -57
  85. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +0 -1
  86. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +0 -4
  87. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +128 -42
  88. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +0 -1
  89. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +0 -4
  90. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +96 -35
  91. package/src/components/Skeleton/__tests__/__snapshots__/index.spec.tsx.snap +0 -7
  92. package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
  93. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +0 -1
  94. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +0 -24
  95. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  96. package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
  97. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +0 -3
  98. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  99. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +0 -4
  100. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  101. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +0 -5
  102. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  103. package/src/components/Tabs/__tests__/SceneView.spec.tsx +1 -1
  104. package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +0 -4
  105. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +0 -3
  106. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +0 -1
  107. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +0 -2
  108. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
  109. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +0 -10
  110. package/src/components/Tag/index.tsx +0 -12
  111. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +0 -21
  112. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +0 -17
  113. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +0 -2
  114. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +309 -330
  115. package/src/components/Toast/StyledToast.tsx +7 -9
  116. package/src/components/Toast/Toast.tsx +1 -4
  117. package/src/components/Toast/ToastContainer.tsx +2 -6
  118. package/src/components/Toast/ToastContext.ts +2 -5
  119. package/src/components/Toast/ToastProvider.tsx +2 -19
  120. package/src/components/Toast/__tests__/ToastContainer.spec.tsx +12 -15
  121. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +0 -7
  122. package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +6 -14
  123. package/src/components/Toast/types.ts +1 -5
  124. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +0 -3
  125. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +0 -8
  126. package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +0 -16
  127. package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +0 -19
  128. package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +0 -10
  129. package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +0 -13
  130. package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +0 -8
  131. package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +0 -11
  132. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +0 -20
  133. package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +0 -20
  134. package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +0 -23
  135. package/src/index.ts +0 -2
  136. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +0 -112
  137. package/src/theme/components/badge.ts +1 -28
  138. package/src/theme/components/button.ts +0 -24
  139. package/src/theme/components/cardCarousel.ts +1 -8
  140. package/src/theme/components/carousel.ts +1 -28
  141. package/src/theme/components/empty.ts +1 -23
  142. package/src/theme/components/error.ts +1 -32
  143. package/src/theme/components/fab.ts +2 -13
  144. package/src/theme/components/pinInput.ts +0 -32
  145. package/src/theme/components/success.ts +1 -23
  146. package/src/theme/components/tag.ts +1 -28
  147. package/src/theme/components/textInput.ts +0 -5
  148. package/src/theme/getTheme.ts +18 -21
  149. package/src/types.ts +0 -2
  150. package/types/components/Carousel/StyledCardCarousel.d.ts +1 -7
  151. package/types/components/Checkbox/index.d.ts +1 -6
  152. package/types/components/Error/index.d.ts +3 -9
  153. package/types/components/FAB/ActionGroup/index.d.ts +0 -5
  154. package/types/components/SectionHeading/index.d.ts +1 -11
  155. package/types/components/Tag/index.d.ts +1 -6
  156. package/types/components/Toast/StyledToast.d.ts +0 -2
  157. package/types/components/Toast/ToastContext.d.ts +2 -2
  158. package/types/components/Toast/ToastProvider.d.ts +1 -1
  159. package/types/components/Toast/index.d.ts +1 -1
  160. package/types/components/Toast/types.d.ts +1 -5
  161. package/types/index.d.ts +1 -2
  162. package/types/theme/components/badge.d.ts +0 -24
  163. package/types/theme/components/button.d.ts +0 -20
  164. package/types/theme/components/cardCarousel.d.ts +0 -10
  165. package/types/theme/components/carousel.d.ts +0 -24
  166. package/types/theme/components/empty.d.ts +0 -19
  167. package/types/theme/components/error.d.ts +0 -27
  168. package/types/theme/components/fab.d.ts +8 -19
  169. package/types/theme/components/pinInput.d.ts +0 -27
  170. package/types/theme/components/success.d.ts +0 -19
  171. package/types/theme/components/tag.d.ts +0 -24
  172. package/types/theme/components/textInput.d.ts +0 -5
  173. package/types/theme/getTheme.d.ts +18 -20
  174. package/types/types.d.ts +1 -2
  175. package/src/components/BottomNavigation/StyledBottomNavigation.tsx +0 -60
  176. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +0 -413
  177. package/src/components/BottomNavigation/__tests__/index.spec.tsx +0 -97
  178. package/src/components/BottomNavigation/index.tsx +0 -166
  179. package/src/theme/components/bottomNavigation.ts +0 -27
  180. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -52
  181. package/types/components/BottomNavigation/index.d.ts +0 -45
  182. package/types/theme/components/bottomNavigation.d.ts +0 -23
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "8.52.0",
3
+ "version": "8.52.2-rc2.0",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -21,14 +21,14 @@
21
21
  "dependencies": {
22
22
  "@emotion/native": "^11.9.3",
23
23
  "@emotion/react": "^11.9.3",
24
- "@hero-design/colors": "8.42.5",
24
+ "@hero-design/colors": "8.42.6-rc2.0",
25
25
  "date-fns": "^2.16.1",
26
26
  "events": "^3.2.0",
27
27
  "hero-editor": "^1.9.21",
28
28
  "nanoid": "^4.0.2"
29
29
  },
30
30
  "peerDependencies": {
31
- "@hero-design/react-native-month-year-picker": "^8.42.6",
31
+ "@hero-design/react-native-month-year-picker": "^8.42.7-rc2.0",
32
32
  "@react-native-community/datetimepicker": "^3.5.2",
33
33
  "@react-native-community/slider": "4.4.3",
34
34
  "react": "18.2.0",
@@ -47,8 +47,8 @@
47
47
  "@babel/preset-typescript": "^7.20.0",
48
48
  "@babel/runtime": "^7.20.0",
49
49
  "@emotion/jest": "^11.11.0",
50
- "@hero-design/eslint-plugin": "8.42.5",
51
- "@hero-design/react-native-month-year-picker": "^8.42.6",
50
+ "@hero-design/eslint-plugin": "8.42.6-rc2.0",
51
+ "@hero-design/react-native-month-year-picker": "^8.42.7-rc2.0",
52
52
  "@react-native-community/datetimepicker": "3.5.2",
53
53
  "@react-native-community/slider": "4.4.3",
54
54
  "@rollup/plugin-babel": "^5.3.1",
@@ -64,12 +64,12 @@
64
64
  "@types/react-native-vector-icons": "^6.4.10",
65
65
  "babel-plugin-inline-import": "^3.0.0",
66
66
  "core-js": "^3.33.0",
67
- "eslint-config-hd": "8.42.4",
67
+ "eslint-config-hd": "8.42.5-rc2.0",
68
68
  "eslint-plugin-import": "^2.27.5",
69
69
  "jest": "^29.2.1",
70
70
  "jest-environment-jsdom": "^29.2.1",
71
71
  "jest-junit": "^16.0.0",
72
- "prettier-config-hd": "8.42.4",
72
+ "prettier-config-hd": "8.42.5-rc2.0",
73
73
  "react": "18.2.0",
74
74
  "react-native": "0.71.14",
75
75
  "react-native-gesture-handler": "~2.5.0",
@@ -157,7 +157,6 @@ exports[`AccordionItem renders correctly when header is an element 1`] = `
157
157
  </View>
158
158
  <View
159
159
  pointerEvents="box-none"
160
- position="bottom"
161
160
  style={
162
161
  [
163
162
  {
@@ -335,7 +334,6 @@ exports[`AccordionItem renders correctly when header is string 1`] = `
335
334
  </View>
336
335
  <View
337
336
  pointerEvents="box-none"
338
- position="bottom"
339
337
  style={
340
338
  [
341
339
  {
@@ -513,7 +511,6 @@ exports[`AccordionItem renders correctly when open 1`] = `
513
511
  </View>
514
512
  <View
515
513
  pointerEvents="box-none"
516
- position="bottom"
517
514
  style={
518
515
  [
519
516
  {
@@ -691,7 +688,6 @@ exports[`AccordionItem renders correctly when variant is card 1`] = `
691
688
  </View>
692
689
  <View
693
690
  pointerEvents="box-none"
694
- position="bottom"
695
691
  style={
696
692
  [
697
693
  {
@@ -23,7 +23,6 @@ exports[`StyledItemWrapper has correct style when variant is card 1`] = `
23
23
  />
24
24
  <View
25
25
  pointerEvents="box-none"
26
- position="bottom"
27
26
  style={
28
27
  [
29
28
  {
@@ -67,7 +66,6 @@ exports[`StyledItemWrapper has correct style when variant is default 1`] = `
67
66
  />
68
67
  <View
69
68
  pointerEvents="box-none"
70
- position="bottom"
71
69
  style={
72
70
  [
73
71
  {
@@ -313,7 +313,6 @@ exports[`Accordion allows fully controlled 1`] = `
313
313
  </View>
314
314
  <View
315
315
  pointerEvents="box-none"
316
- position="bottom"
317
316
  style={
318
317
  [
319
318
  {
@@ -647,7 +646,6 @@ exports[`Accordion renders correctly 1`] = `
647
646
  </View>
648
647
  <View
649
648
  pointerEvents="box-none"
650
- position="bottom"
651
649
  style={
652
650
  [
653
651
  {
@@ -992,7 +990,6 @@ exports[`Accordion renders correctly when variant is card 1`] = `
992
990
  </View>
993
991
  <View
994
992
  pointerEvents="box-none"
995
- position="bottom"
996
993
  style={
997
994
  [
998
995
  {
@@ -101,7 +101,6 @@ exports[`Alert Icon render custom icon correctly 1`] = `
101
101
  </View>
102
102
  <View
103
103
  pointerEvents="box-none"
104
- position="bottom"
105
104
  style={
106
105
  [
107
106
  {
@@ -295,7 +294,6 @@ exports[`Alert renders correctly when intent is error 1`] = `
295
294
  </View>
296
295
  <View
297
296
  pointerEvents="box-none"
298
- position="bottom"
299
297
  style={
300
298
  [
301
299
  {
@@ -489,7 +487,6 @@ exports[`Alert renders correctly when intent is info 1`] = `
489
487
  </View>
490
488
  <View
491
489
  pointerEvents="box-none"
492
- position="bottom"
493
490
  style={
494
491
  [
495
492
  {
@@ -656,7 +653,6 @@ exports[`Alert renders correctly when intent is notification 1`] = `
656
653
  </View>
657
654
  <View
658
655
  pointerEvents="box-none"
659
- position="bottom"
660
656
  style={
661
657
  [
662
658
  {
@@ -850,7 +846,6 @@ exports[`Alert renders correctly when intent is success 1`] = `
850
846
  </View>
851
847
  <View
852
848
  pointerEvents="box-none"
853
- position="bottom"
854
849
  style={
855
850
  [
856
851
  {
@@ -1044,7 +1039,6 @@ exports[`Alert renders correctly when intent is warning 1`] = `
1044
1039
  </View>
1045
1040
  <View
1046
1041
  pointerEvents="box-none"
1047
- position="bottom"
1048
1042
  style={
1049
1043
  [
1050
1044
  {
@@ -1186,7 +1180,6 @@ exports[`Alert renders correctly without rounded 1`] = `
1186
1180
  </View>
1187
1181
  <View
1188
1182
  pointerEvents="box-none"
1189
- position="bottom"
1190
1183
  style={
1191
1184
  [
1192
1185
  {
@@ -197,7 +197,6 @@ exports[`Attachment renders correctly 1`] = `
197
197
  </View>
198
198
  <View
199
199
  pointerEvents="box-none"
200
- position="bottom"
201
200
  style={
202
201
  [
203
202
  {
@@ -101,7 +101,6 @@ exports[`StyledAvatar renders correctly with $variant 1`] = `
101
101
  </View>
102
102
  <View
103
103
  pointerEvents="box-none"
104
- position="bottom"
105
104
  style={
106
105
  [
107
106
  {
@@ -415,7 +414,6 @@ exports[`StyledWrapper renders correctly with $variant 2`] = `
415
414
  />
416
415
  <View
417
416
  pointerEvents="box-none"
418
- position="bottom"
419
417
  style={
420
418
  [
421
419
  {
@@ -2613,7 +2613,6 @@ exports[`AvatarStack renders correctly when variant is vertical 1`] = `
2613
2613
  </View>
2614
2614
  <View
2615
2615
  pointerEvents="box-none"
2616
- position="bottom"
2617
2616
  style={
2618
2617
  [
2619
2618
  {
@@ -3023,7 +3022,6 @@ exports[`AvatarStack renders correctly with custom props 1`] = `
3023
3022
  </View>
3024
3023
  <View
3025
3024
  pointerEvents="box-none"
3026
- position="bottom"
3027
3025
  style={
3028
3026
  [
3029
3027
  {
@@ -27,7 +27,6 @@ exports[`StyledImage renders correct style 1`] = `
27
27
  />
28
28
  <View
29
29
  pointerEvents="box-none"
30
- position="bottom"
31
30
  style={
32
31
  [
33
32
  {
@@ -97,7 +96,6 @@ exports[`StyledPressable renders correct style 1`] = `
97
96
  />
98
97
  <View
99
98
  pointerEvents="box-none"
100
- position="bottom"
101
99
  style={
102
100
  [
103
101
  {
@@ -161,7 +159,6 @@ exports[`StyledText renders correct style 1`] = `
161
159
  </Text>
162
160
  <View
163
161
  pointerEvents="box-none"
164
- position="bottom"
165
162
  style={
166
163
  [
167
164
  {
@@ -118,7 +118,6 @@ exports[`Avatar fallbacks to title when there image failed to load 1`] = `
118
118
  </View>
119
119
  <View
120
120
  pointerEvents="box-none"
121
- position="bottom"
122
121
  style={
123
122
  [
124
123
  {
@@ -211,7 +210,6 @@ exports[`Avatar prioritizes source over title 1`] = `
211
210
  </View>
212
211
  <View
213
212
  pointerEvents="box-none"
214
- position="bottom"
215
213
  style={
216
214
  [
217
215
  {
@@ -330,7 +328,6 @@ exports[`Avatar shows title when there is no source 1`] = `
330
328
  </View>
331
329
  <View
332
330
  pointerEvents="box-none"
333
- position="bottom"
334
331
  style={
335
332
  [
336
333
  {
@@ -60,7 +60,6 @@ exports[`Badge has danger style when intent is danger 1`] = `
60
60
  </View>
61
61
  <View
62
62
  pointerEvents="box-none"
63
- position="bottom"
64
63
  style={
65
64
  [
66
65
  {
@@ -141,7 +140,6 @@ exports[`Badge has info style when intent is info 1`] = `
141
140
  </View>
142
141
  <View
143
142
  pointerEvents="box-none"
144
- position="bottom"
145
143
  style={
146
144
  [
147
145
  {
@@ -222,7 +220,6 @@ exports[`Badge has info style when intent is primary 1`] = `
222
220
  </View>
223
221
  <View
224
222
  pointerEvents="box-none"
225
- position="bottom"
226
223
  style={
227
224
  [
228
225
  {
@@ -303,7 +300,6 @@ exports[`Badge has success style when intent is success 1`] = `
303
300
  </View>
304
301
  <View
305
302
  pointerEvents="box-none"
306
- position="bottom"
307
303
  style={
308
304
  [
309
305
  {
@@ -384,7 +380,6 @@ exports[`Badge has warning style when intent is warning 1`] = `
384
380
  </View>
385
381
  <View
386
382
  pointerEvents="box-none"
387
- position="bottom"
388
383
  style={
389
384
  [
390
385
  {
@@ -466,7 +461,6 @@ exports[`Badge renders correctly with custom props 1`] = `
466
461
  </View>
467
462
  <View
468
463
  pointerEvents="box-none"
469
- position="bottom"
470
464
  style={
471
465
  [
472
466
  {
@@ -48,7 +48,6 @@ exports[`Status Badge renders correctly 1`] = `
48
48
  </View>
49
49
  <View
50
50
  pointerEvents="box-none"
51
- position="bottom"
52
51
  style={
53
52
  [
54
53
  {
@@ -122,7 +121,6 @@ exports[`Status Badge renders correctly with intent 1`] = `
122
121
  </View>
123
122
  <View
124
123
  pointerEvents="box-none"
125
- position="bottom"
126
124
  style={
127
125
  [
128
126
  {
@@ -8,15 +8,8 @@ exports[`BottomSheet renders correctly with BottomSheet.ScrollView 1`] = `
8
8
  }
9
9
  }
10
10
  >
11
- <Modal
12
- hardwareAccelerated={false}
13
- onRequestClose={[MockFunction]}
14
- transparent={true}
15
- visible={false}
16
- />
17
11
  <View
18
12
  pointerEvents="box-none"
19
- position="bottom"
20
13
  style={
21
14
  [
22
15
  {
@@ -45,15 +38,8 @@ exports[`BottomSheet renders correctly with close state 1`] = `
45
38
  }
46
39
  }
47
40
  >
48
- <Modal
49
- hardwareAccelerated={false}
50
- onRequestClose={[MockFunction]}
51
- transparent={true}
52
- visible={false}
53
- />
54
41
  <View
55
42
  pointerEvents="box-none"
56
- position="bottom"
57
43
  style={
58
44
  [
59
45
  {
@@ -82,11 +68,37 @@ exports[`BottomSheet renders correctly with open state 1`] = `
82
68
  }
83
69
  }
84
70
  >
85
- <Modal
86
- hardwareAccelerated={false}
87
- onRequestClose={[MockFunction]}
88
- transparent={true}
89
- visible={true}
71
+ <View
72
+ collapsable={false}
73
+ style={
74
+ {
75
+ "backgroundColor": "transparent",
76
+ "bottom": 0,
77
+ "left": 0,
78
+ "opacity": 0.4,
79
+ "position": "absolute",
80
+ "right": 0,
81
+ "top": 0,
82
+ }
83
+ }
84
+ />
85
+ <View
86
+ collapsable={false}
87
+ style={
88
+ {
89
+ "bottom": 0,
90
+ "left": 0,
91
+ "opacity": 1,
92
+ "position": "absolute",
93
+ "right": 0,
94
+ "top": 0,
95
+ "transform": [
96
+ {
97
+ "translateY": 0,
98
+ },
99
+ ],
100
+ }
101
+ }
90
102
  >
91
103
  <View
92
104
  pointerEvents="box-none"
@@ -382,10 +394,9 @@ exports[`BottomSheet renders correctly with open state 1`] = `
382
394
  </RCTSafeAreaView>
383
395
  </View>
384
396
  </View>
385
- </Modal>
397
+ </View>
386
398
  <View
387
399
  pointerEvents="box-none"
388
- position="bottom"
389
400
  style={
390
401
  [
391
402
  {
@@ -6,7 +6,6 @@ import {
6
6
  Dimensions,
7
7
  Easing,
8
8
  KeyboardAvoidingViewProps,
9
- Modal,
10
9
  Platform,
11
10
  } from 'react-native';
12
11
  import BottomSheetContext from './BottomSheetContext';
@@ -19,6 +18,7 @@ import {
19
18
  StyledWrapper,
20
19
  } from './StyledBottomSheet';
21
20
  import ScrollView from './ScrollView';
21
+ import Modal from '../Modal';
22
22
 
23
23
  interface BottomSheetProps {
24
24
  /**
@@ -41,7 +41,6 @@ exports[`Box allows flex props 1`] = `
41
41
  />
42
42
  <View
43
43
  pointerEvents="box-none"
44
- position="bottom"
45
44
  style={
46
45
  [
47
46
  {
@@ -97,7 +96,6 @@ exports[`Box map prop to valid property and correct color from theme 1`] = `
97
96
  />
98
97
  <View
99
98
  pointerEvents="box-none"
100
- position="bottom"
101
99
  style={
102
100
  [
103
101
  {
@@ -144,7 +142,6 @@ exports[`Box map prop to valid property and correct color from theme 2`] = `
144
142
  />
145
143
  <View
146
144
  pointerEvents="box-none"
147
- position="bottom"
148
145
  style={
149
146
  [
150
147
  {
@@ -200,7 +197,6 @@ exports[`Box map prop to valid property and correct color from theme 3`] = `
200
197
  />
201
198
  <View
202
199
  pointerEvents="box-none"
203
- position="bottom"
204
200
  style={
205
201
  [
206
202
  {
@@ -247,7 +243,6 @@ exports[`Box map prop to valid property and correct color from theme 4`] = `
247
243
  />
248
244
  <View
249
245
  pointerEvents="box-none"
250
- position="bottom"
251
246
  style={
252
247
  [
253
248
  {
@@ -305,7 +300,6 @@ exports[`Box map prop to valid property and correct radius from theme 1`] = `
305
300
  />
306
301
  <View
307
302
  pointerEvents="box-none"
308
- position="bottom"
309
303
  style={
310
304
  [
311
305
  {
@@ -363,7 +357,6 @@ exports[`Box map prop to valid property and correct radius from theme 2`] = `
363
357
  />
364
358
  <View
365
359
  pointerEvents="box-none"
366
- position="bottom"
367
360
  style={
368
361
  [
369
362
  {
@@ -421,7 +414,6 @@ exports[`Box map prop to valid property and correct radius from theme 3`] = `
421
414
  />
422
415
  <View
423
416
  pointerEvents="box-none"
424
- position="bottom"
425
417
  style={
426
418
  [
427
419
  {
@@ -479,7 +471,6 @@ exports[`Box map prop to valid property and correct radius from theme 4`] = `
479
471
  />
480
472
  <View
481
473
  pointerEvents="box-none"
482
- position="bottom"
483
474
  style={
484
475
  [
485
476
  {
@@ -537,7 +528,6 @@ exports[`Box map prop to valid property and correct radius from theme 5`] = `
537
528
  />
538
529
  <View
539
530
  pointerEvents="box-none"
540
- position="bottom"
541
531
  style={
542
532
  [
543
533
  {
@@ -613,7 +603,6 @@ exports[`Box map prop to valid property and correct space from theme 1`] = `
613
603
  />
614
604
  <View
615
605
  pointerEvents="box-none"
616
- position="bottom"
617
606
  style={
618
607
  [
619
608
  {
@@ -689,7 +678,6 @@ exports[`Box map prop to valid property and correct space from theme 2`] = `
689
678
  />
690
679
  <View
691
680
  pointerEvents="box-none"
692
- position="bottom"
693
681
  style={
694
682
  [
695
683
  {
@@ -765,7 +753,6 @@ exports[`Box map prop to valid property and correct space from theme 3`] = `
765
753
  />
766
754
  <View
767
755
  pointerEvents="box-none"
768
- position="bottom"
769
756
  style={
770
757
  [
771
758
  {
@@ -841,7 +828,6 @@ exports[`Box map prop to valid property and correct space from theme 4`] = `
841
828
  />
842
829
  <View
843
830
  pointerEvents="box-none"
844
- position="bottom"
845
831
  style={
846
832
  [
847
833
  {
@@ -891,7 +877,6 @@ exports[`Box map prop to valid property and correctborderWidth from theme 1`] =
891
877
  />
892
878
  <View
893
879
  pointerEvents="box-none"
894
- position="bottom"
895
880
  style={
896
881
  [
897
882
  {
@@ -941,7 +926,6 @@ exports[`Box map prop to valid property and correctborderWidth from theme 2`] =
941
926
  />
942
927
  <View
943
928
  pointerEvents="box-none"
944
- position="bottom"
945
929
  style={
946
930
  [
947
931
  {
@@ -983,7 +967,6 @@ exports[`Box map prop with shortcut name to valid property and correct color fro
983
967
  />
984
968
  <View
985
969
  pointerEvents="box-none"
986
- position="bottom"
987
970
  style={
988
971
  [
989
972
  {
@@ -1023,7 +1006,6 @@ exports[`Box map prop with shortcut name to valid property and correct color fro
1023
1006
  />
1024
1007
  <View
1025
1008
  pointerEvents="box-none"
1026
- position="bottom"
1027
1009
  style={
1028
1010
  [
1029
1011
  {
@@ -1065,7 +1047,6 @@ exports[`Box map prop with shortcut name to valid property and correct color fro
1065
1047
  />
1066
1048
  <View
1067
1049
  pointerEvents="box-none"
1068
- position="bottom"
1069
1050
  style={
1070
1051
  [
1071
1052
  {
@@ -1105,7 +1086,6 @@ exports[`Box map prop with shortcut name to valid property and correct color fro
1105
1086
  />
1106
1087
  <View
1107
1088
  pointerEvents="box-none"
1108
- position="bottom"
1109
1089
  style={
1110
1090
  [
1111
1091
  {
@@ -1149,7 +1129,6 @@ exports[`Box renders content correctly 1`] = `
1149
1129
  </View>
1150
1130
  <View
1151
1131
  pointerEvents="box-none"
1152
- position="bottom"
1153
1132
  style={
1154
1133
  [
1155
1134
  {
@@ -25,7 +25,6 @@ exports[`StyledLoadingIndicator has basic-transparent style 1`] = `
25
25
  />
26
26
  <View
27
27
  pointerEvents="box-none"
28
- position="bottom"
29
28
  style={
30
29
  [
31
30
  {
@@ -71,7 +70,6 @@ exports[`StyledLoadingIndicator has filled-danger style 1`] = `
71
70
  />
72
71
  <View
73
72
  pointerEvents="box-none"
74
- position="bottom"
75
73
  style={
76
74
  [
77
75
  {
@@ -117,7 +115,6 @@ exports[`StyledLoadingIndicator has filled-primary style 1`] = `
117
115
  />
118
116
  <View
119
117
  pointerEvents="box-none"
120
- position="bottom"
121
118
  style={
122
119
  [
123
120
  {
@@ -163,7 +160,6 @@ exports[`StyledLoadingIndicator has filled-secondary style 1`] = `
163
160
  />
164
161
  <View
165
162
  pointerEvents="box-none"
166
- position="bottom"
167
163
  style={
168
164
  [
169
165
  {
@@ -209,7 +205,6 @@ exports[`StyledLoadingIndicator has outlined-danger style 1`] = `
209
205
  />
210
206
  <View
211
207
  pointerEvents="box-none"
212
- position="bottom"
213
208
  style={
214
209
  [
215
210
  {
@@ -255,7 +250,6 @@ exports[`StyledLoadingIndicator has outlined-primary style 1`] = `
255
250
  />
256
251
  <View
257
252
  pointerEvents="box-none"
258
- position="bottom"
259
253
  style={
260
254
  [
261
255
  {
@@ -301,7 +295,6 @@ exports[`StyledLoadingIndicator has outlined-secondary style 1`] = `
301
295
  />
302
296
  <View
303
297
  pointerEvents="box-none"
304
- position="bottom"
305
298
  style={
306
299
  [
307
300
  {
@@ -347,7 +340,6 @@ exports[`StyledLoadingIndicator has text-danger style 1`] = `
347
340
  />
348
341
  <View
349
342
  pointerEvents="box-none"
350
- position="bottom"
351
343
  style={
352
344
  [
353
345
  {
@@ -393,7 +385,6 @@ exports[`StyledLoadingIndicator has text-primary style 1`] = `
393
385
  />
394
386
  <View
395
387
  pointerEvents="box-none"
396
- position="bottom"
397
388
  style={
398
389
  [
399
390
  {
@@ -439,7 +430,6 @@ exports[`StyledLoadingIndicator has text-secondary style 1`] = `
439
430
  />
440
431
  <View
441
432
  pointerEvents="box-none"
442
- position="bottom"
443
433
  style={
444
434
  [
445
435
  {