react-native-ui-lib 7.44.0-snapshot.7228 → 7.44.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/babel.config.js +0 -12
  2. package/index.js +0 -1
  3. package/lib/android/build.gradle +5 -5
  4. package/lib/android/src/main/java/com/wix/reactnativeuilib/UiLibPackageList.java +2 -0
  5. package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/HighlighterViewManager.java +23 -31
  6. package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/ReactHacks.java +30 -0
  7. package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/ReflectionUtils.java +34 -0
  8. package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/utils/RuntimeUtils.java +1 -1
  9. package/lib/android/src/main/java/com/wix/reactnativeuilib/textinput/DefaultKeyListener.java +33 -0
  10. package/lib/android/src/main/java/com/wix/reactnativeuilib/textinput/KeyListenerProxy.java +53 -0
  11. package/lib/android/src/main/java/com/wix/reactnativeuilib/textinput/TextInputDelKeyHandlerModule.java +54 -0
  12. package/lib/android/src/main/java/com/wix/reactnativeuilib/textinput/TextInputDelKeyHandlerPackage.java +28 -0
  13. package/lib/android/src/main/java/com/wix/reactnativeuilib/textinput/ViewUtils.java +36 -0
  14. package/lib/components/{HighlighterOverlayView/index.d.ts → HighlighterOverlayView.d.ts} +1 -1
  15. package/lib/components/HighlighterOverlayView.js +40 -0
  16. package/lib/components/{HighlighterOverlayView/index.web.d.ts → HighlighterOverlayView.web.d.ts} +1 -1
  17. package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/CustomKeyboardView/CustomKeyboardView.android.d.ts +2 -5
  18. package/lib/components/Keyboard/KeyboardInput/CustomKeyboardView/CustomKeyboardView.android.js +28 -0
  19. package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/CustomKeyboardView/CustomKeyboardView.ios.d.ts +1 -1
  20. package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/CustomKeyboardView/CustomKeyboardView.ios.js +3 -3
  21. package/lib/components/Keyboard/{KeyboardAccessoryView/CustomKeyboardView → KeyboardInput}/CustomKeyboardViewBase.d.ts +0 -3
  22. package/lib/components/Keyboard/{KeyboardAccessoryView/CustomKeyboardView → KeyboardInput}/CustomKeyboardViewBase.js +1 -1
  23. package/lib/components/Keyboard/{KeyboardAccessoryView/index.d.ts → KeyboardInput/KeyboardAccessoryView.d.ts} +1 -11
  24. package/lib/components/Keyboard/{KeyboardAccessoryView/index.js → KeyboardInput/KeyboardAccessoryView.js} +5 -31
  25. package/lib/components/Keyboard/{KeyboardAccessoryView/KeyboardRegistry/index.d.ts → KeyboardInput/KeyboardRegistry.d.ts} +1 -1
  26. package/lib/components/Keyboard/{KeyboardAccessoryView/KeyboardRegistry/index.js → KeyboardInput/KeyboardRegistry.js} +1 -1
  27. package/lib/components/Keyboard/{KeyboardAccessoryView/KeyboardRegistry → KeyboardInput}/__tests__/KeyboardRegistry.spec.js +1 -1
  28. package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/keyboardAccessoryView.api.json +5 -5
  29. package/lib/components/Keyboard/{KeyboardAccessoryView/KeyboardRegistry → KeyboardInput}/keyboardRegistry.api.json +9 -9
  30. package/lib/components/Keyboard/KeyboardInput/utils/KeyboardUtils.d.ts +11 -0
  31. package/lib/components/Keyboard/KeyboardInput/utils/KeyboardUtils.js +17 -0
  32. package/lib/components/Keyboard/{KeyboardAccessoryView/KeyboardRegistry/EventEmitterManager → KeyboardInput/utils}/__tests__/EventEmitterManager.spec.js +1 -1
  33. package/lib/components/Keyboard/{KeyboardAwareInsetsView/index.d.ts → KeyboardTracking/KeyboardAwareInsetsView.d.ts} +1 -1
  34. package/lib/components/Keyboard/{KeyboardAwareInsetsView/index.js → KeyboardTracking/KeyboardAwareInsetsView.js} +1 -1
  35. package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/KeyboardTrackingView.ios.d.ts +4 -1
  36. package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/KeyboardTrackingView.ios.js +8 -5
  37. package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/index.d.ts +2 -2
  38. package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/keyboardTrackingView.api.json +20 -11
  39. package/lib/components/Keyboard/index.d.ts +6 -6
  40. package/lib/components/Keyboard/index.js +6 -6
  41. package/lib/components/SafeArea/SafeAreaInsetsManager.d.ts +3 -8
  42. package/lib/components/SafeArea/SafeAreaInsetsManager.js +24 -87
  43. package/lib/components/SafeArea/SafeAreaSpacerView.d.ts +2 -2
  44. package/lib/components/SafeArea/SafeAreaSpacerView.js +9 -63
  45. package/lib/components/index.d.ts +1 -1
  46. package/lib/components/index.js +1 -1
  47. package/lib/package.json +1 -1
  48. package/lib/react-native.config.js +3 -1
  49. package/metro.config.js +2 -2
  50. package/package.json +23 -23
  51. package/panningViews.d.ts +2 -0
  52. package/panningViews.js +1 -0
  53. package/react-native.config.js +3 -1
  54. package/sharedTransition.d.ts +2 -0
  55. package/sharedTransition.js +1 -0
  56. package/src/commons/Constants.js +2 -7
  57. package/src/components/KeyboardAwareScrollView/KeyboardAwareBase.js +1 -5
  58. package/src/components/actionSheet/index.d.ts +12 -2
  59. package/src/components/actionSheet/index.js +42 -3
  60. package/src/components/badge/index.d.ts +47 -107
  61. package/src/components/button/button.api.json +1 -1
  62. package/src/components/button/index.d.ts +23 -53
  63. package/src/components/button/types.d.ts +1 -0
  64. package/src/components/colorPicker/ColorPickerDialog.d.ts +1 -1
  65. package/src/components/colorPicker/ColorPickerDialog.js +1 -1
  66. package/src/components/dateTimePicker/index.d.ts +5 -186
  67. package/src/components/dateTimePicker/index.js +2 -1
  68. package/src/components/dialog/DialogDismissibleView.d.ts +34 -0
  69. package/src/components/dialog/DialogDismissibleView.js +184 -0
  70. package/src/components/dialog/OverlayFadingBackground.d.ts +14 -0
  71. package/src/components/dialog/OverlayFadingBackground.js +45 -0
  72. package/src/components/dialog/dialog.api.json +37 -31
  73. package/src/components/dialog/index.d.ts +105 -13
  74. package/src/components/dialog/index.js +212 -204
  75. package/src/components/drawer/Swipeable.js +2 -1
  76. package/src/components/drawer/index.js +25 -31
  77. package/src/components/fadedScrollView/index.js +2 -7
  78. package/src/components/featureHighlight/index.d.ts +1 -1
  79. package/src/components/index.js +19 -0
  80. package/src/components/panningViews/asPanViewConsumer.d.ts +3 -0
  81. package/src/components/panningViews/asPanViewConsumer.js +16 -0
  82. package/src/components/panningViews/panDismissibleView.d.ts +51 -0
  83. package/src/components/panningViews/panDismissibleView.js +350 -0
  84. package/src/components/panningViews/panGestureView.d.ts +23 -0
  85. package/src/components/panningViews/panGestureView.js +156 -0
  86. package/src/components/panningViews/panListenerView.d.ts +66 -0
  87. package/src/components/panningViews/panListenerView.js +155 -0
  88. package/src/components/panningViews/panResponderView.d.ts +19 -0
  89. package/src/components/panningViews/panResponderView.js +79 -0
  90. package/src/components/panningViews/panningContext.d.ts +3 -0
  91. package/src/components/panningViews/panningContext.js +4 -0
  92. package/src/components/panningViews/panningProvider.d.ts +73 -0
  93. package/src/components/panningViews/panningProvider.js +101 -0
  94. package/src/components/picker/Picker.driver.new.js +1 -1
  95. package/src/components/picker/PickerItem.js +20 -6
  96. package/src/components/picker/PickerPresenter.d.ts +1 -0
  97. package/src/components/picker/PickerPresenter.js +23 -1
  98. package/src/components/picker/api/picker.api.json +1 -0
  99. package/src/components/picker/api/pickerItem.api.json +5 -0
  100. package/src/components/picker/helpers/useFieldType.d.ts +23 -53
  101. package/src/components/picker/helpers/usePickerLabel.d.ts +1 -1
  102. package/src/components/picker/helpers/usePickerLabel.js +3 -2
  103. package/src/components/picker/helpers/usePickerMigrationWarnings.d.ts +1 -1
  104. package/src/components/picker/helpers/usePickerMigrationWarnings.js +12 -0
  105. package/src/components/picker/helpers/usePickerSearch.d.ts +1 -1
  106. package/src/components/picker/helpers/usePickerSearch.js +8 -4
  107. package/src/components/picker/helpers/usePickerSelection.d.ts +1 -1
  108. package/src/components/picker/helpers/usePickerSelection.js +10 -2
  109. package/src/components/picker/index.js +22 -4
  110. package/src/components/picker/types.d.ts +24 -1
  111. package/src/components/sharedTransition/ShareTransitionContext.js +3 -0
  112. package/src/components/sharedTransition/SharedArea.js +153 -0
  113. package/src/components/sharedTransition/SourceElement.js +44 -0
  114. package/src/components/sharedTransition/TargetElement.js +38 -0
  115. package/src/components/sharedTransition/index.js +9 -0
  116. package/src/components/slider/GradientSlider.d.ts +1 -1
  117. package/src/components/sortableGridList/SortableItem.js +4 -13
  118. package/src/components/sortableList/SortableListItem.js +4 -13
  119. package/src/components/stackAggregator/index.js +11 -16
  120. package/src/components/textField/Input.js +1 -0
  121. package/src/components/textField/presets/outline.d.ts +46 -106
  122. package/src/components/textField/presets/underline.d.ts +46 -106
  123. package/src/components/textField/usePreset.d.ts +44 -72
  124. package/src/incubator/dialog/dialog.api.json +54 -0
  125. package/src/{components → incubator}/dialog/dialogHeader.api.json +2 -2
  126. package/src/incubator/dialog/index.d.ts +15 -0
  127. package/src/incubator/dialog/index.js +218 -0
  128. package/src/{components → incubator}/dialog/types.d.ts +19 -0
  129. package/src/{components → incubator}/dialog/types.js +3 -1
  130. package/src/{components → incubator}/dialog/useDialogContent.d.ts +1 -1
  131. package/src/incubator/expandableOverlay/ExpandableOverlay.driver.js +1 -1
  132. package/src/incubator/expandableOverlay/index.d.ts +3 -42
  133. package/src/incubator/expandableOverlay/index.js +4 -1
  134. package/src/{hooks/useHiddenLocation/index.d.ts → incubator/hooks/useHiddenLocation.d.ts} +1 -1
  135. package/src/{hooks/useHiddenLocation/index.web.d.ts → incubator/hooks/useHiddenLocation.web.d.ts} +1 -1
  136. package/src/incubator/index.d.ts +2 -0
  137. package/src/incubator/index.js +2 -0
  138. package/src/{components → incubator}/panView/index.d.ts +3 -3
  139. package/src/{components → incubator}/panView/index.js +4 -4
  140. package/src/{components → incubator}/panView/usePanGesture.d.ts +1 -1
  141. package/src/incubator/toast/index.js +1 -1
  142. package/src/index.d.ts +10 -3
  143. package/src/index.js +160 -41
  144. package/src/testkit/index.d.ts +1 -1
  145. package/src/testkit/index.js +1 -1
  146. package/lib/components/HighlighterOverlayView/index.js +0 -49
  147. package/lib/components/Keyboard/KeyboardAccessoryView/CustomKeyboardView/CustomKeyboardView.android.js +0 -51
  148. package/lib/components/Keyboard/KeyboardAccessoryView/KeyboardUtils/index.d.ts +0 -26
  149. package/lib/components/Keyboard/KeyboardAccessoryView/KeyboardUtils/index.js +0 -91
  150. package/lib/components/SafeArea/index.d.ts +0 -10
  151. package/lib/components/SafeArea/index.js +0 -11
  152. package/panView.d.ts +0 -2
  153. package/panView.js +0 -1
  154. /package/lib/components/{HighlighterOverlayView/index.web.js → HighlighterOverlayView.web.js} +0 -0
  155. /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/CustomKeyboardView/index.d.ts +0 -0
  156. /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/CustomKeyboardView/index.js +0 -0
  157. /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/CustomKeyboardView/index.web.d.ts +0 -0
  158. /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/CustomKeyboardView/index.web.js +0 -0
  159. /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/TextInputKeyboardManager/TextInputKeyboardManager.android.d.ts +0 -0
  160. /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/TextInputKeyboardManager/TextInputKeyboardManager.android.js +0 -0
  161. /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/TextInputKeyboardManager/TextInputKeyboardManager.ios.d.ts +0 -0
  162. /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/TextInputKeyboardManager/TextInputKeyboardManager.ios.js +0 -0
  163. /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/TextInputKeyboardManager/index.d.ts +0 -0
  164. /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/TextInputKeyboardManager/index.js +0 -0
  165. /package/lib/components/Keyboard/{KeyboardAccessoryView/KeyboardRegistry/EventEmitterManager/index.d.ts → KeyboardInput/utils/EventEmitterManager.d.ts} +0 -0
  166. /package/lib/components/Keyboard/{KeyboardAccessoryView/KeyboardRegistry/EventEmitterManager/index.js → KeyboardInput/utils/EventEmitterManager.js} +0 -0
  167. /package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/KeyboardTrackingView.android.d.ts +0 -0
  168. /package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/KeyboardTrackingView.android.js +0 -0
  169. /package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/index.js +0 -0
  170. /package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/index.web.d.ts +0 -0
  171. /package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/index.web.js +0 -0
  172. /package/lib/components/Keyboard/{KeyboardAwareInsetsView → KeyboardTracking}/keyboardAwareInsetsView.api.json +0 -0
  173. /package/src/{components → incubator}/dialog/Dialog.driver.new.d.ts +0 -0
  174. /package/src/{components → incubator}/dialog/Dialog.driver.new.js +0 -0
  175. /package/src/{components → incubator}/dialog/DialogHeader.d.ts +0 -0
  176. /package/src/{components → incubator}/dialog/DialogHeader.js +0 -0
  177. /package/src/{components → incubator}/dialog/useDialogContent.js +0 -0
  178. /package/src/{hooks/useHiddenLocation/index.js → incubator/hooks/useHiddenLocation.js} +0 -0
  179. /package/src/{hooks/useHiddenLocation/index.web.js → incubator/hooks/useHiddenLocation.web.js} +0 -0
  180. /package/src/{components → incubator}/panView/panningUtil.d.ts +0 -0
  181. /package/src/{components → incubator}/panView/panningUtil.js +0 -0
  182. /package/src/{components → incubator}/panView/usePanGesture.js +0 -0
package/src/index.js CHANGED
@@ -28,6 +28,9 @@ var _exportNames = {
28
28
  ExpandableOverlayMethods: true,
29
29
  ToastProps: true,
30
30
  ToastPresets: true,
31
+ PanViewProps: true,
32
+ PanViewDirections: true,
33
+ PanViewDismissThreshold: true,
31
34
  Incubator: true,
32
35
  Hooks: true,
33
36
  Modifiers: true,
@@ -81,9 +84,6 @@ var _exportNames = {
81
84
  DateTimePickerMode: true,
82
85
  Dialog: true,
83
86
  DialogProps: true,
84
- DialogHeaderProps: true,
85
- DialogStatics: true,
86
- DialogImperativeMethods: true,
87
87
  DialogDirections: true,
88
88
  DialogDirectionsEnum: true,
89
89
  Drawer: true,
@@ -140,6 +140,22 @@ var _exportNames = {
140
140
  OverlayTypes: true,
141
141
  PageControl: true,
142
142
  PageControlProps: true,
143
+ PanDismissibleView: true,
144
+ PanDismissibleViewProps: true,
145
+ DismissibleAnimationProps: true,
146
+ PanGestureView: true,
147
+ PanGestureViewProps: true,
148
+ PanListenerView: true,
149
+ PanListenerViewProps: true,
150
+ PanningContext: true,
151
+ PanningProvider: true,
152
+ PanningDirections: true,
153
+ PanLocationProps: true,
154
+ PanAmountsProps: true,
155
+ PanDirectionsProps: true,
156
+ PanResponderView: true,
157
+ PanResponderViewProps: true,
158
+ asPanViewConsumer: true,
143
159
  Picker: true,
144
160
  PickerProps: true,
145
161
  PickerItemProps: true,
@@ -151,13 +167,6 @@ var _exportNames = {
151
167
  PickerItemsListProps: true,
152
168
  PickerMethods: true,
153
169
  PickerSelectionStatusProps: true,
154
- PanView: true,
155
- PanViewProps: true,
156
- PanningDirections: true,
157
- PanningDirectionsEnum: true,
158
- PanViewDirections: true,
159
- PanViewDirectionsEnum: true,
160
- PanViewDismissThreshold: true,
161
170
  PieChart: true,
162
171
  PieChartSegmentProps: true,
163
172
  ProgressBar: true,
@@ -179,6 +188,7 @@ var _exportNames = {
179
188
  SegmentedControlProps: true,
180
189
  SegmentedControlItemProps: true,
181
190
  SegmentedControlPreset: true,
191
+ SharedTransition: true,
182
192
  SkeletonView: true,
183
193
  SkeletonViewProps: true,
184
194
  SortableGridList: true,
@@ -579,28 +589,16 @@ Object.defineProperty(exports, "DialogDirectionsEnum", {
579
589
  return _dialog().DialogDirectionsEnum;
580
590
  }
581
591
  });
582
- Object.defineProperty(exports, "DialogHeaderProps", {
583
- enumerable: true,
584
- get: function () {
585
- return _dialog().DialogHeaderProps;
586
- }
587
- });
588
- Object.defineProperty(exports, "DialogImperativeMethods", {
589
- enumerable: true,
590
- get: function () {
591
- return _dialog().DialogImperativeMethods;
592
- }
593
- });
594
592
  Object.defineProperty(exports, "DialogProps", {
595
593
  enumerable: true,
596
594
  get: function () {
597
595
  return _dialog().DialogProps;
598
596
  }
599
597
  });
600
- Object.defineProperty(exports, "DialogStatics", {
598
+ Object.defineProperty(exports, "DismissibleAnimationProps", {
601
599
  enumerable: true,
602
600
  get: function () {
603
- return _dialog().DialogStatics;
601
+ return _panDismissibleView().DismissibleAnimationProps;
604
602
  }
605
603
  });
606
604
  Object.defineProperty(exports, "Drawer", {
@@ -966,46 +964,106 @@ Object.defineProperty(exports, "PageControlProps", {
966
964
  return _pageControl().PageControlProps;
967
965
  }
968
966
  });
969
- Object.defineProperty(exports, "PanView", {
967
+ Object.defineProperty(exports, "PanAmountsProps", {
970
968
  enumerable: true,
971
969
  get: function () {
972
- return _panView().default;
970
+ return _panningProvider().PanAmountsProps;
973
971
  }
974
972
  });
975
- Object.defineProperty(exports, "PanViewDirections", {
973
+ Object.defineProperty(exports, "PanDirectionsProps", {
974
+ enumerable: true,
975
+ get: function () {
976
+ return _panningProvider().PanDirectionsProps;
977
+ }
978
+ });
979
+ Object.defineProperty(exports, "PanDismissibleView", {
980
+ enumerable: true,
981
+ get: function () {
982
+ return _panDismissibleView().default;
983
+ }
984
+ });
985
+ Object.defineProperty(exports, "PanDismissibleViewProps", {
986
+ enumerable: true,
987
+ get: function () {
988
+ return _panDismissibleView().PanDismissibleViewProps;
989
+ }
990
+ });
991
+ Object.defineProperty(exports, "PanGestureView", {
992
+ enumerable: true,
993
+ get: function () {
994
+ return _panGestureView().default;
995
+ }
996
+ });
997
+ Object.defineProperty(exports, "PanGestureViewProps", {
998
+ enumerable: true,
999
+ get: function () {
1000
+ return _panGestureView().PanGestureViewProps;
1001
+ }
1002
+ });
1003
+ Object.defineProperty(exports, "PanListenerView", {
1004
+ enumerable: true,
1005
+ get: function () {
1006
+ return _panListenerView().default;
1007
+ }
1008
+ });
1009
+ Object.defineProperty(exports, "PanListenerViewProps", {
1010
+ enumerable: true,
1011
+ get: function () {
1012
+ return _panListenerView().PanListenerViewProps;
1013
+ }
1014
+ });
1015
+ Object.defineProperty(exports, "PanLocationProps", {
1016
+ enumerable: true,
1017
+ get: function () {
1018
+ return _panningProvider().PanLocationProps;
1019
+ }
1020
+ });
1021
+ Object.defineProperty(exports, "PanResponderView", {
1022
+ enumerable: true,
1023
+ get: function () {
1024
+ return _panResponderView().default;
1025
+ }
1026
+ });
1027
+ Object.defineProperty(exports, "PanResponderViewProps", {
976
1028
  enumerable: true,
977
1029
  get: function () {
978
- return _panView().PanViewDirections;
1030
+ return _panResponderView().PanResponderViewProps;
979
1031
  }
980
1032
  });
981
- Object.defineProperty(exports, "PanViewDirectionsEnum", {
1033
+ Object.defineProperty(exports, "PanViewDirections", {
982
1034
  enumerable: true,
983
1035
  get: function () {
984
- return _panView().PanViewDirectionsEnum;
1036
+ return Incubator().PanViewDirections;
985
1037
  }
986
1038
  });
987
1039
  Object.defineProperty(exports, "PanViewDismissThreshold", {
988
1040
  enumerable: true,
989
1041
  get: function () {
990
- return _panView().PanViewDismissThreshold;
1042
+ return Incubator().PanViewDismissThreshold;
991
1043
  }
992
1044
  });
993
1045
  Object.defineProperty(exports, "PanViewProps", {
994
1046
  enumerable: true,
995
1047
  get: function () {
996
- return _panView().PanViewProps;
1048
+ return Incubator().PanViewProps;
1049
+ }
1050
+ });
1051
+ Object.defineProperty(exports, "PanningContext", {
1052
+ enumerable: true,
1053
+ get: function () {
1054
+ return _panningContext().default;
997
1055
  }
998
1056
  });
999
1057
  Object.defineProperty(exports, "PanningDirections", {
1000
1058
  enumerable: true,
1001
1059
  get: function () {
1002
- return _panView().PanningDirections;
1060
+ return _panningProvider().PanningDirections;
1003
1061
  }
1004
1062
  });
1005
- Object.defineProperty(exports, "PanningDirectionsEnum", {
1063
+ Object.defineProperty(exports, "PanningProvider", {
1006
1064
  enumerable: true,
1007
1065
  get: function () {
1008
- return _panView().PanningDirectionsEnum;
1066
+ return _panningProvider().default;
1009
1067
  }
1010
1068
  });
1011
1069
  Object.defineProperty(exports, "Picker", {
@@ -1212,6 +1270,12 @@ Object.defineProperty(exports, "SegmentedControlProps", {
1212
1270
  return _segmentedControl().SegmentedControlProps;
1213
1271
  }
1214
1272
  });
1273
+ Object.defineProperty(exports, "SharedTransition", {
1274
+ enumerable: true,
1275
+ get: function () {
1276
+ return _sharedTransition().default;
1277
+ }
1278
+ });
1215
1279
  Object.defineProperty(exports, "SkeletonView", {
1216
1280
  enumerable: true,
1217
1281
  get: function () {
@@ -1596,6 +1660,12 @@ Object.defineProperty(exports, "asBaseComponent", {
1596
1660
  return _new().asBaseComponent;
1597
1661
  }
1598
1662
  });
1663
+ Object.defineProperty(exports, "asPanViewConsumer", {
1664
+ enumerable: true,
1665
+ get: function () {
1666
+ return _asPanViewConsumer().default;
1667
+ }
1668
+ });
1599
1669
  Object.defineProperty(exports, "forwardRef", {
1600
1670
  enumerable: true,
1601
1671
  get: function () {
@@ -2053,16 +2123,58 @@ function _pageControl() {
2053
2123
  };
2054
2124
  return data;
2055
2125
  }
2056
- function _picker() {
2057
- const data = _interopRequireWildcard(require("./components/picker"));
2058
- _picker = function () {
2126
+ function _panDismissibleView() {
2127
+ const data = _interopRequireWildcard(require("./components/panningViews/panDismissibleView"));
2128
+ _panDismissibleView = function () {
2129
+ return data;
2130
+ };
2131
+ return data;
2132
+ }
2133
+ function _panGestureView() {
2134
+ const data = _interopRequireWildcard(require("./components/panningViews/panGestureView"));
2135
+ _panGestureView = function () {
2136
+ return data;
2137
+ };
2138
+ return data;
2139
+ }
2140
+ function _panListenerView() {
2141
+ const data = _interopRequireWildcard(require("./components/panningViews/panListenerView"));
2142
+ _panListenerView = function () {
2059
2143
  return data;
2060
2144
  };
2061
2145
  return data;
2062
2146
  }
2063
- function _panView() {
2064
- const data = _interopRequireWildcard(require("./components/panView"));
2065
- _panView = function () {
2147
+ function _panningContext() {
2148
+ const data = _interopRequireDefault(require("./components/panningViews/panningContext"));
2149
+ _panningContext = function () {
2150
+ return data;
2151
+ };
2152
+ return data;
2153
+ }
2154
+ function _panningProvider() {
2155
+ const data = _interopRequireWildcard(require("./components/panningViews/panningProvider"));
2156
+ _panningProvider = function () {
2157
+ return data;
2158
+ };
2159
+ return data;
2160
+ }
2161
+ function _panResponderView() {
2162
+ const data = _interopRequireWildcard(require("./components/panningViews/panResponderView"));
2163
+ _panResponderView = function () {
2164
+ return data;
2165
+ };
2166
+ return data;
2167
+ }
2168
+ function _asPanViewConsumer() {
2169
+ const data = _interopRequireDefault(require("./components/panningViews/asPanViewConsumer"));
2170
+ _asPanViewConsumer = function () {
2171
+ return data;
2172
+ };
2173
+ return data;
2174
+ }
2175
+ function _picker() {
2176
+ const data = _interopRequireWildcard(require("./components/picker"));
2177
+ _picker = function () {
2066
2178
  return data;
2067
2179
  };
2068
2180
  return data;
@@ -2130,6 +2242,13 @@ function _segmentedControl() {
2130
2242
  };
2131
2243
  return data;
2132
2244
  }
2245
+ function _sharedTransition() {
2246
+ const data = _interopRequireDefault(require("./components/sharedTransition"));
2247
+ _sharedTransition = function () {
2248
+ return data;
2249
+ };
2250
+ return data;
2251
+ }
2133
2252
  function _skeletonView() {
2134
2253
  const data = _interopRequireWildcard(require("./components/skeletonView"));
2135
2254
  _skeletonView = function () {
@@ -10,7 +10,7 @@ export { TextDriver } from '../components/text/Text.driver.new';
10
10
  export { TextFieldDriver } from '../components/textField/TextField.driver.new';
11
11
  export { ViewDriver } from '../components/view/View.driver.new';
12
12
  export { ModalDriver } from '../components/modal/Modal.driver.new';
13
- export { DialogDriver } from '../components/dialog/Dialog.driver.new';
13
+ export { DialogDriver } from '../incubator/dialog/Dialog.driver.new';
14
14
  export { ButtonDriver } from '../components/button/Button.driver.new';
15
15
  export { ImageDriver } from '../components/image/Image.driver.new';
16
16
  export { SwitchDriver } from '../components/switch/switch.driver';
@@ -10,7 +10,7 @@ export { TextDriver } from "../components/text/Text.driver.new";
10
10
  export { TextFieldDriver } from "../components/textField/TextField.driver.new";
11
11
  export { ViewDriver } from "../components/view/View.driver.new";
12
12
  export { ModalDriver } from "../components/modal/Modal.driver.new";
13
- export { DialogDriver } from "../components/dialog/Dialog.driver.new";
13
+ export { DialogDriver } from "../incubator/dialog/Dialog.driver.new";
14
14
  export { ButtonDriver } from "../components/button/Button.driver.new";
15
15
  export { ImageDriver } from "../components/image/Image.driver.new";
16
16
  export { SwitchDriver } from "../components/switch/switch.driver";
@@ -1,49 +0,0 @@
1
- import React from 'react';
2
- import { processColor, StyleSheet, Modal } from 'react-native';
3
- // Import the Codegen specification for New Architecture
4
- import HighlighterViewNativeComponent from "../../specs/HighlighterViewNativeComponent";
5
- const DefaultOverlayColor = 'rgba(0, 0, 0, 0.5)';
6
- const HighlighterOverlayView = props => {
7
- const {
8
- overlayColor,
9
- borderRadius,
10
- strokeColor,
11
- strokeWidth,
12
- visible,
13
- onRequestClose,
14
- highlightFrame,
15
- style,
16
- children,
17
- highlightViewTag,
18
- highlightViewTagParams,
19
- minimumRectSize,
20
- innerPadding
21
- } = props;
22
-
23
- // Process colors for New Architecture Codegen component
24
- const overlayColorToUse = processColor(overlayColor || DefaultOverlayColor);
25
- const strokeColorToUse = strokeColor ? processColor(strokeColor) : undefined;
26
-
27
- // Convert highlightViewTagParams to match native Codegen spec
28
- let nativeHighlightViewTagParams;
29
- if (highlightViewTagParams) {
30
- const padding = typeof highlightViewTagParams.padding === 'number' ? highlightViewTagParams.padding : 0;
31
- nativeHighlightViewTagParams = {
32
- paddingLeft: padding,
33
- paddingTop: padding,
34
- paddingRight: padding,
35
- paddingBottom: padding,
36
- offsetX: highlightViewTagParams.offset?.x || 0,
37
- offsetY: highlightViewTagParams.offset?.y || 0
38
- };
39
- }
40
- return <Modal visible={!!visible} animationType={'fade'} transparent onRequestClose={() => onRequestClose?.()}>
41
- <HighlighterViewNativeComponent highlightFrame={highlightFrame} style={[style, {
42
- ...StyleSheet.absoluteFillObject,
43
- backgroundColor: 'transparent'
44
- }]} overlayColor={overlayColorToUse} borderRadius={borderRadius} strokeColor={strokeColorToUse} strokeWidth={strokeWidth} highlightViewTag={highlightViewTag} highlightViewTagParams={nativeHighlightViewTagParams} minimumRectSize={minimumRectSize} innerPadding={innerPadding} testID={props.testID} accessible={props.accessible} />
45
- {children}
46
- </Modal>;
47
- };
48
- HighlighterOverlayView.displayName = 'IGNORE';
49
- export default HighlighterOverlayView;
@@ -1,51 +0,0 @@
1
- import React from 'react';
2
- import { Keyboard, View } from 'react-native';
3
- import KeyboardRegistry from "../KeyboardRegistry";
4
- import CustomKeyboardViewBase from "./CustomKeyboardViewBase";
5
- export default class CustomKeyboardView extends CustomKeyboardViewBase {
6
- static displayName = 'IGNORE';
7
- async componentDidUpdate(prevProps) {
8
- const {
9
- component,
10
- inputRef,
11
- shouldFocus,
12
- onKeyboardDismiss
13
- } = this.props;
14
- if (prevProps.component !== component) {
15
- if (!component) {
16
- if (shouldFocus) {
17
- if (inputRef?.current) {
18
- inputRef.current.focus?.();
19
- } else {
20
- inputRef?.focus?.();
21
- }
22
- }
23
- } else {
24
- Keyboard.dismiss();
25
- }
26
- onKeyboardDismiss?.();
27
- }
28
- super.componentDidUpdate(prevProps);
29
- }
30
- getStyle = () => {
31
- const {
32
- keyboardHeight
33
- } = this.props;
34
- return {
35
- height: keyboardHeight
36
- };
37
- };
38
- render() {
39
- const {
40
- component,
41
- initialProps
42
- } = this.props;
43
- const KeyboardComponent = component && KeyboardRegistry.getKeyboard(component);
44
- if (!KeyboardComponent) {
45
- return null;
46
- }
47
- return <View style={this.getStyle()}>
48
- <KeyboardComponent {...initialProps} />
49
- </View>;
50
- }
51
- }
@@ -1,26 +0,0 @@
1
- export default class KeyboardUtils {
2
- static displayName: string;
3
- private static listeners;
4
- private static addListener;
5
- private static removeListener;
6
- /**
7
- * Used to dismiss (close) the keyboard.
8
- */
9
- static dismiss: () => void;
10
- }
11
- interface KeyboardHeightProps {
12
- id: string;
13
- onDismiss: () => void;
14
- }
15
- declare const useKeyboardHeight: ({ id, onDismiss }: KeyboardHeightProps) => {
16
- keyboardHeight: number;
17
- isKeyboardVisible: boolean;
18
- };
19
- export interface KeyboardHeightListenerProps {
20
- id: string;
21
- onDismiss: () => void;
22
- onKeyboardHeightChange?: (height: number) => void;
23
- onKeyboardVisibilityChange?: (isKeyboardVisible: boolean) => void;
24
- }
25
- declare const KeyboardHeightListener: ({ id, onDismiss, onKeyboardHeightChange, onKeyboardVisibilityChange }: KeyboardHeightListenerProps) => null;
26
- export { useKeyboardHeight, KeyboardHeightListener };
@@ -1,91 +0,0 @@
1
- import { useCallback, useEffect, useState } from 'react';
2
- import { Keyboard, Platform } from 'react-native';
3
- import TextInputKeyboardManager from "../TextInputKeyboardManager";
4
- const IS_IOS = Platform.OS === 'ios';
5
- const DEFAULT_KEYBOARD_HEIGHT = IS_IOS ? 216 : 312; // TODO: verify this value for iOS
6
-
7
- export default class KeyboardUtils {
8
- static displayName = 'KeyboardUtils';
9
- static listeners = {};
10
- static addListener = (id, onDismiss) => {
11
- if (id && onDismiss && !KeyboardUtils.listeners[id]) {
12
- KeyboardUtils.listeners[id] = onDismiss;
13
- }
14
- };
15
- static removeListener = id => {
16
- if (id && KeyboardUtils.listeners[id]) {
17
- delete KeyboardUtils.listeners[id];
18
- }
19
- };
20
-
21
- /**
22
- * Used to dismiss (close) the keyboard.
23
- */
24
- static dismiss = () => {
25
- Keyboard.dismiss();
26
- TextInputKeyboardManager.dismissKeyboard();
27
- Object.keys(KeyboardUtils.listeners).forEach(key => {
28
- KeyboardUtils.listeners[key]();
29
- });
30
- };
31
- }
32
- const useKeyboardHeight = ({
33
- id,
34
- onDismiss
35
- }) => {
36
- const [isInitialized, setIsInitialized] = useState(false);
37
- const [keyboardHeight, setKeyboardHeight] = useState(DEFAULT_KEYBOARD_HEIGHT);
38
- const [isVisible, setIsVisible] = useState(false);
39
- const keyboardDidShow = useCallback(e => {
40
- if (!isInitialized) {
41
- setIsInitialized(true);
42
- setKeyboardHeight(e.endCoordinates.height);
43
- }
44
- setIsVisible(true);
45
- // eslint-disable-next-line react-hooks/exhaustive-deps
46
- }, []);
47
- const keyboardDidHide = useCallback(() => {
48
- setIsVisible(false);
49
- }, []);
50
- useEffect(() => {
51
- const keyboardDidShowListener = Keyboard.addListener('keyboardDidShow', keyboardDidShow);
52
- const keyboardDidHideListener = Keyboard.addListener('keyboardDidHide', keyboardDidHide);
53
- // @ts-ignore
54
- KeyboardUtils.addListener(id, onDismiss);
55
- return () => {
56
- keyboardDidShowListener.remove();
57
- keyboardDidHideListener.remove();
58
- // @ts-ignore
59
- KeyboardUtils.removeListener(id);
60
- };
61
- // eslint-disable-next-line react-hooks/exhaustive-deps
62
- }, []);
63
- return {
64
- keyboardHeight,
65
- isKeyboardVisible: isVisible
66
- };
67
- };
68
- const KeyboardHeightListener = ({
69
- id,
70
- onDismiss,
71
- onKeyboardHeightChange,
72
- onKeyboardVisibilityChange
73
- }) => {
74
- const {
75
- keyboardHeight,
76
- isKeyboardVisible
77
- } = useKeyboardHeight({
78
- id,
79
- onDismiss
80
- });
81
- useEffect(() => {
82
- onKeyboardHeightChange?.(keyboardHeight);
83
- // eslint-disable-next-line react-hooks/exhaustive-deps
84
- }, [keyboardHeight]);
85
- useEffect(() => {
86
- onKeyboardVisibilityChange?.(isKeyboardVisible);
87
- // eslint-disable-next-line react-hooks/exhaustive-deps
88
- }, [isKeyboardVisible]);
89
- return null;
90
- };
91
- export { useKeyboardHeight, KeyboardHeightListener };
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { ViewStyle, StyleProp } from 'react-native';
3
- export type SafeAreaSpacerViewProps = {
4
- style?: StyleProp<ViewStyle>;
5
- };
6
- declare const SafeAreaSpacerView: {
7
- ({ style }: SafeAreaSpacerViewProps): React.JSX.Element;
8
- displayName: string;
9
- };
10
- export default SafeAreaSpacerView;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { View, Platform } from 'react-native';
3
- import SafeAreaSpacerViewIos from "./SafeAreaSpacerView";
4
- const isIOS = Platform.OS === 'ios';
5
- const SafeAreaSpacerView = ({
6
- style
7
- }) => {
8
- return isIOS ? <SafeAreaSpacerViewIos style={style} /> : <View style={style} />;
9
- };
10
- SafeAreaSpacerView.displayName = 'SafeAreaSpacerView';
11
- export default SafeAreaSpacerView;
package/panView.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import {PanView} from './src';
2
- export default PanView;
package/panView.js DELETED
@@ -1 +0,0 @@
1
- module.exports = require('./src/components/panView').default;