@react-navigation/drawer 7.0.0-rc.2 → 7.0.0-rc.21

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 (59) hide show
  1. package/lib/commonjs/index.js +10 -10
  2. package/lib/commonjs/navigators/createDrawerNavigator.js +11 -11
  3. package/lib/commonjs/navigators/createDrawerNavigator.js.map +1 -1
  4. package/lib/commonjs/package.json +1 -0
  5. package/lib/commonjs/utils/useDrawerStatus.js +1 -1
  6. package/lib/commonjs/views/DrawerContent.js +12 -12
  7. package/lib/commonjs/views/DrawerContent.js.map +1 -1
  8. package/lib/commonjs/views/DrawerContentScrollView.js +12 -9
  9. package/lib/commonjs/views/DrawerContentScrollView.js.map +1 -1
  10. package/lib/commonjs/views/DrawerItem.js +44 -38
  11. package/lib/commonjs/views/DrawerItem.js.map +1 -1
  12. package/lib/commonjs/views/DrawerItemList.js +4 -4
  13. package/lib/commonjs/views/DrawerItemList.js.map +1 -1
  14. package/lib/commonjs/views/DrawerToggleButton.js +14 -13
  15. package/lib/commonjs/views/DrawerToggleButton.js.map +1 -1
  16. package/lib/commonjs/views/DrawerView.js +126 -113
  17. package/lib/commonjs/views/DrawerView.js.map +1 -1
  18. package/lib/commonjs/views/ScreenFallback.js +18 -11
  19. package/lib/commonjs/views/ScreenFallback.js.map +1 -1
  20. package/lib/module/index.js +10 -10
  21. package/lib/module/index.js.map +1 -1
  22. package/lib/module/navigators/createDrawerNavigator.js +11 -9
  23. package/lib/module/navigators/createDrawerNavigator.js.map +1 -1
  24. package/lib/module/package.json +1 -0
  25. package/lib/module/utils/useDrawerStatus.js +1 -1
  26. package/lib/module/utils/useDrawerStatus.js.map +1 -1
  27. package/lib/module/views/DrawerContent.js +12 -10
  28. package/lib/module/views/DrawerContent.js.map +1 -1
  29. package/lib/module/views/DrawerContentScrollView.js +12 -9
  30. package/lib/module/views/DrawerContentScrollView.js.map +1 -1
  31. package/lib/module/views/DrawerItem.js +44 -38
  32. package/lib/module/views/DrawerItem.js.map +1 -1
  33. package/lib/module/views/DrawerItemList.js +4 -4
  34. package/lib/module/views/DrawerItemList.js.map +1 -1
  35. package/lib/module/views/DrawerToggleButton.js +13 -11
  36. package/lib/module/views/DrawerToggleButton.js.map +1 -1
  37. package/lib/module/views/DrawerView.js +126 -113
  38. package/lib/module/views/DrawerView.js.map +1 -1
  39. package/lib/module/views/ScreenFallback.js +18 -11
  40. package/lib/module/views/ScreenFallback.js.map +1 -1
  41. package/lib/typescript/src/navigators/createDrawerNavigator.d.ts +2 -3
  42. package/lib/typescript/src/navigators/createDrawerNavigator.d.ts.map +1 -1
  43. package/lib/typescript/src/views/DrawerContent.d.ts +1 -2
  44. package/lib/typescript/src/views/DrawerContent.d.ts.map +1 -1
  45. package/lib/typescript/src/views/DrawerContentScrollView.d.ts.map +1 -1
  46. package/lib/typescript/src/views/DrawerItem.d.ts +2 -2
  47. package/lib/typescript/src/views/DrawerItem.d.ts.map +1 -1
  48. package/lib/typescript/src/views/DrawerToggleButton.d.ts +1 -2
  49. package/lib/typescript/src/views/DrawerToggleButton.d.ts.map +1 -1
  50. package/lib/typescript/src/views/DrawerView.d.ts +1 -2
  51. package/lib/typescript/src/views/DrawerView.d.ts.map +1 -1
  52. package/lib/typescript/src/views/ScreenFallback.d.ts +2 -2
  53. package/lib/typescript/src/views/ScreenFallback.d.ts.map +1 -1
  54. package/package.json +32 -16
  55. package/src/navigators/createDrawerNavigator.tsx +1 -4
  56. package/src/views/DrawerContent.tsx +0 -2
  57. package/src/views/DrawerContentScrollView.tsx +6 -4
  58. package/src/views/DrawerItem.tsx +5 -6
  59. package/src/views/DrawerToggleButton.tsx +2 -2
@@ -12,23 +12,25 @@ var _reactNativeDrawerLayout = require("react-native-drawer-layout");
12
12
  var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
13
13
  var _useLatestCallback = _interopRequireDefault(require("use-latest-callback"));
14
14
  var _addCancelListener = require("../utils/addCancelListener");
15
- var _DrawerPositionContext = require("../utils/DrawerPositionContext");
16
- var _DrawerStatusContext = require("../utils/DrawerStatusContext");
17
- var _getDrawerStatusFromState = require("../utils/getDrawerStatusFromState");
18
- var _DrawerContent = require("./DrawerContent");
19
- var _DrawerToggleButton = require("./DrawerToggleButton");
20
- var _ScreenFallback = require("./ScreenFallback");
15
+ var _DrawerPositionContext = require("../utils/DrawerPositionContext.js");
16
+ var _DrawerStatusContext = require("../utils/DrawerStatusContext.js");
17
+ var _getDrawerStatusFromState = require("../utils/getDrawerStatusFromState.js");
18
+ var _DrawerContent = require("./DrawerContent.js");
19
+ var _DrawerToggleButton = require("./DrawerToggleButton.js");
20
+ var _ScreenFallback = require("./ScreenFallback.js");
21
+ var _jsxRuntime = require("react/jsx-runtime");
21
22
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
22
23
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
23
24
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
24
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
25
25
  const DRAWER_BORDER_RADIUS = 16;
26
26
  function DrawerViewBase({
27
27
  state,
28
28
  navigation,
29
29
  descriptors,
30
30
  defaultStatus,
31
- drawerContent = props => /*#__PURE__*/React.createElement(_DrawerContent.DrawerContent, props),
31
+ drawerContent = props => /*#__PURE__*/(0, _jsxRuntime.jsx)(_DrawerContent.DrawerContent, {
32
+ ...props
33
+ }),
32
34
  detachInactiveScreens = _reactNative.Platform.OS === 'web' || _reactNative.Platform.OS === 'android' || _reactNative.Platform.OS === 'ios'
33
35
  }) {
34
36
  const {
@@ -147,121 +149,132 @@ function DrawerViewBase({
147
149
  return (0, _addCancelListener.addCancelListener)(handleHardwareBack);
148
150
  }, [defaultStatus, drawerStatus, drawerType, handleDrawerClose, handleDrawerOpen, navigation]);
149
151
  const renderDrawerContent = () => {
150
- return /*#__PURE__*/React.createElement(_DrawerPositionContext.DrawerPositionContext.Provider, {
151
- value: drawerPosition
152
- }, drawerContent({
153
- state: state,
154
- navigation: navigation,
155
- descriptors: descriptors
156
- }));
152
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_DrawerPositionContext.DrawerPositionContext.Provider, {
153
+ value: drawerPosition,
154
+ children: drawerContent({
155
+ state: state,
156
+ navigation: navigation,
157
+ descriptors: descriptors
158
+ })
159
+ });
157
160
  };
158
161
  const renderSceneContent = () => {
159
- return /*#__PURE__*/React.createElement(_ScreenFallback.MaybeScreenContainer, {
162
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenFallback.MaybeScreenContainer, {
160
163
  enabled: detachInactiveScreens,
161
164
  hasTwoStates: true,
162
- style: styles.content
163
- }, state.routes.map((route, index) => {
164
- const descriptor = descriptors[route.key];
165
- const {
166
- lazy = true
167
- } = descriptor.options;
168
- const isFocused = state.index === index;
169
- if (lazy && !loaded.includes(route.key) && !isFocused && !state.preloadedRouteKeys.includes(route.key)) {
170
- // Don't render a lazy screen if we've never navigated to it or it wasn't preloaded
171
- return null;
172
- }
173
- const {
174
- freezeOnBlur,
175
- header = ({
176
- layout,
177
- options
178
- }) => /*#__PURE__*/React.createElement(_elements.Header, _extends({}, options, {
179
- layout: layout,
180
- title: (0, _elements.getHeaderTitle)(options, route.name),
181
- headerLeft: options.headerLeft ?? (props => /*#__PURE__*/React.createElement(_DrawerToggleButton.DrawerToggleButton, props))
182
- })),
183
- headerShown,
184
- headerStatusBarHeight,
185
- headerTransparent,
186
- sceneContainerStyle
187
- } = descriptor.options;
188
- return /*#__PURE__*/React.createElement(_ScreenFallback.MaybeScreen, {
189
- key: route.key,
190
- style: [_reactNative.StyleSheet.absoluteFill, {
191
- zIndex: isFocused ? 0 : -1
192
- }],
193
- visible: isFocused,
194
- enabled: detachInactiveScreens,
195
- freezeOnBlur: freezeOnBlur
196
- }, /*#__PURE__*/React.createElement(_elements.Screen, {
197
- focused: isFocused,
198
- route: descriptor.route,
199
- navigation: descriptor.navigation,
200
- headerShown: headerShown,
201
- headerStatusBarHeight: headerStatusBarHeight,
202
- headerTransparent: headerTransparent,
203
- header: header({
204
- layout: dimensions,
205
- route: descriptor.route,
206
- navigation: descriptor.navigation,
207
- options: descriptor.options
208
- }),
209
- style: sceneContainerStyle
210
- }, descriptor.render()));
211
- }));
165
+ style: styles.content,
166
+ children: state.routes.map((route, index) => {
167
+ const descriptor = descriptors[route.key];
168
+ const {
169
+ lazy = true
170
+ } = descriptor.options;
171
+ const isFocused = state.index === index;
172
+ if (lazy && !loaded.includes(route.key) && !isFocused && !state.preloadedRouteKeys.includes(route.key)) {
173
+ // Don't render a lazy screen if we've never navigated to it or it wasn't preloaded
174
+ return null;
175
+ }
176
+ const {
177
+ freezeOnBlur,
178
+ header = ({
179
+ layout,
180
+ options
181
+ }) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_elements.Header, {
182
+ ...options,
183
+ layout: layout,
184
+ title: (0, _elements.getHeaderTitle)(options, route.name),
185
+ headerLeft: options.headerLeft ?? (props => /*#__PURE__*/(0, _jsxRuntime.jsx)(_DrawerToggleButton.DrawerToggleButton, {
186
+ ...props
187
+ }))
188
+ }),
189
+ headerShown,
190
+ headerStatusBarHeight,
191
+ headerTransparent,
192
+ sceneContainerStyle
193
+ } = descriptor.options;
194
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenFallback.MaybeScreen, {
195
+ style: [_reactNative.StyleSheet.absoluteFill, {
196
+ zIndex: isFocused ? 0 : -1
197
+ }],
198
+ visible: isFocused,
199
+ enabled: detachInactiveScreens,
200
+ freezeOnBlur: freezeOnBlur,
201
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_elements.Screen, {
202
+ focused: isFocused,
203
+ route: descriptor.route,
204
+ navigation: descriptor.navigation,
205
+ headerShown: headerShown,
206
+ headerStatusBarHeight: headerStatusBarHeight,
207
+ headerTransparent: headerTransparent,
208
+ header: header({
209
+ layout: dimensions,
210
+ route: descriptor.route,
211
+ navigation: descriptor.navigation,
212
+ options: descriptor.options
213
+ }),
214
+ style: sceneContainerStyle,
215
+ children: descriptor.render()
216
+ })
217
+ }, route.key);
218
+ })
219
+ });
212
220
  };
213
- return /*#__PURE__*/React.createElement(_DrawerStatusContext.DrawerStatusContext.Provider, {
214
- value: drawerStatus
215
- }, /*#__PURE__*/React.createElement(_reactNativeDrawerLayout.Drawer, {
216
- open: drawerStatus !== 'closed',
217
- onOpen: handleDrawerOpen,
218
- onClose: handleDrawerClose,
219
- onGestureStart: handleGestureStart,
220
- onGestureEnd: handleGestureEnd,
221
- onGestureCancel: handleGestureCancel,
222
- onTransitionStart: handleTransitionStart,
223
- onTransitionEnd: handleTransitionEnd,
224
- layout: dimensions,
225
- direction: direction,
226
- configureGestureHandler: configureGestureHandler,
227
- swipeEnabled: swipeEnabled,
228
- swipeEdgeWidth: swipeEdgeWidth,
229
- swipeMinDistance: swipeMinDistance,
230
- hideStatusBarOnOpen: drawerHideStatusBarOnOpen,
231
- statusBarAnimation: drawerStatusBarAnimation,
232
- keyboardDismissMode: keyboardDismissMode,
233
- drawerType: drawerType,
234
- overlayAccessibilityLabel: overlayAccessibilityLabel,
235
- drawerPosition: drawerPosition,
236
- drawerStyle: [{
237
- backgroundColor: colors.card,
238
- width: (0, _elements.getDefaultSidebarWidth)(dimensions)
239
- }, drawerType === 'permanent' && ((_reactNative.Platform.OS === 'web' ? drawerPosition === 'right' : direction === 'rtl' && drawerPosition !== 'right' || direction !== 'rtl' && drawerPosition === 'right') ? {
240
- borderLeftColor: colors.border,
241
- borderLeftWidth: _reactNative.StyleSheet.hairlineWidth
242
- } : {
243
- borderRightColor: colors.border,
244
- borderRightWidth: _reactNative.StyleSheet.hairlineWidth
245
- }), drawerType === 'front' && (drawerPosition === 'left' ? {
246
- borderTopRightRadius: DRAWER_BORDER_RADIUS,
247
- borderBottomRightRadius: DRAWER_BORDER_RADIUS
248
- } : {
249
- borderTopLeftRadius: DRAWER_BORDER_RADIUS,
250
- borderBottomLeftRadius: DRAWER_BORDER_RADIUS
251
- }), drawerStyle],
252
- overlayStyle: {
253
- backgroundColor: overlayColor
254
- },
255
- renderDrawerContent: renderDrawerContent
256
- }, renderSceneContent()));
221
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_DrawerStatusContext.DrawerStatusContext.Provider, {
222
+ value: drawerStatus,
223
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeDrawerLayout.Drawer, {
224
+ open: drawerStatus !== 'closed',
225
+ onOpen: handleDrawerOpen,
226
+ onClose: handleDrawerClose,
227
+ onGestureStart: handleGestureStart,
228
+ onGestureEnd: handleGestureEnd,
229
+ onGestureCancel: handleGestureCancel,
230
+ onTransitionStart: handleTransitionStart,
231
+ onTransitionEnd: handleTransitionEnd,
232
+ layout: dimensions,
233
+ direction: direction,
234
+ configureGestureHandler: configureGestureHandler,
235
+ swipeEnabled: swipeEnabled,
236
+ swipeEdgeWidth: swipeEdgeWidth,
237
+ swipeMinDistance: swipeMinDistance,
238
+ hideStatusBarOnOpen: drawerHideStatusBarOnOpen,
239
+ statusBarAnimation: drawerStatusBarAnimation,
240
+ keyboardDismissMode: keyboardDismissMode,
241
+ drawerType: drawerType,
242
+ overlayAccessibilityLabel: overlayAccessibilityLabel,
243
+ drawerPosition: drawerPosition,
244
+ drawerStyle: [{
245
+ backgroundColor: colors.card,
246
+ width: (0, _elements.getDefaultSidebarWidth)(dimensions)
247
+ }, drawerType === 'permanent' && ((_reactNative.Platform.OS === 'web' ? drawerPosition === 'right' : direction === 'rtl' && drawerPosition !== 'right' || direction !== 'rtl' && drawerPosition === 'right') ? {
248
+ borderLeftColor: colors.border,
249
+ borderLeftWidth: _reactNative.StyleSheet.hairlineWidth
250
+ } : {
251
+ borderRightColor: colors.border,
252
+ borderRightWidth: _reactNative.StyleSheet.hairlineWidth
253
+ }), drawerType === 'front' && (drawerPosition === 'left' ? {
254
+ borderTopRightRadius: DRAWER_BORDER_RADIUS,
255
+ borderBottomRightRadius: DRAWER_BORDER_RADIUS
256
+ } : {
257
+ borderTopLeftRadius: DRAWER_BORDER_RADIUS,
258
+ borderBottomLeftRadius: DRAWER_BORDER_RADIUS
259
+ }), drawerStyle],
260
+ overlayStyle: {
261
+ backgroundColor: overlayColor
262
+ },
263
+ renderDrawerContent: renderDrawerContent,
264
+ children: renderSceneContent()
265
+ })
266
+ });
257
267
  }
258
268
  function DrawerView({
259
269
  navigation,
260
270
  ...rest
261
271
  }) {
262
- return /*#__PURE__*/React.createElement(_elements.SafeAreaProviderCompat, null, /*#__PURE__*/React.createElement(DrawerViewBase, _extends({
263
- navigation: navigation
264
- }, rest)));
272
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_elements.SafeAreaProviderCompat, {
273
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(DrawerViewBase, {
274
+ navigation: navigation,
275
+ ...rest
276
+ })
277
+ });
265
278
  }
266
279
  const styles = _reactNative.StyleSheet.create({
267
280
  content: {
@@ -1 +1 @@
1
- {"version":3,"names":["_elements","require","_native","React","_interopRequireWildcard","_reactNative","_reactNativeDrawerLayout","_reactNativeSafeAreaContext","_useLatestCallback","_interopRequireDefault","_addCancelListener","_DrawerPositionContext","_DrawerStatusContext","_getDrawerStatusFromState","_DrawerContent","_DrawerToggleButton","_ScreenFallback","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","DRAWER_BORDER_RADIUS","DrawerViewBase","state","navigation","descriptors","defaultStatus","drawerContent","props","createElement","DrawerContent","detachInactiveScreens","Platform","OS","direction","useLocale","focusedRouteKey","routes","index","key","drawerHideStatusBarOnOpen","drawerPosition","drawerStatusBarAnimation","drawerStyle","drawerType","select","ios","configureGestureHandler","keyboardDismissMode","overlayColor","swipeEdgeWidth","swipeEnabled","swipeMinDistance","overlayAccessibilityLabel","options","loaded","setLoaded","useState","includes","previousRouteKeyRef","useRef","useEffect","previousRouteKey","current","popToTopOnBlur","prevRoute","find","route","type","dispatch","StackActions","popToTop","target","dimensions","useSafeAreaFrame","colors","useTheme","drawerStatus","getDrawerStatusFromState","handleDrawerOpen","useLatestCallback","DrawerActions","openDrawer","handleDrawerClose","closeDrawer","handleGestureStart","emit","handleGestureEnd","handleGestureCancel","handleTransitionStart","closing","data","handleTransitionEnd","handleHardwareBack","isFocused","addCancelListener","renderDrawerContent","DrawerPositionContext","Provider","value","renderSceneContent","MaybeScreenContainer","enabled","hasTwoStates","style","styles","content","map","descriptor","lazy","preloadedRouteKeys","freezeOnBlur","header","layout","Header","title","getHeaderTitle","name","headerLeft","DrawerToggleButton","headerShown","headerStatusBarHeight","headerTransparent","sceneContainerStyle","MaybeScreen","StyleSheet","absoluteFill","zIndex","visible","Screen","focused","render","DrawerStatusContext","Drawer","open","onOpen","onClose","onGestureStart","onGestureEnd","onGestureCancel","onTransitionStart","onTransitionEnd","hideStatusBarOnOpen","statusBarAnimation","backgroundColor","card","width","getDefaultSidebarWidth","borderLeftColor","border","borderLeftWidth","hairlineWidth","borderRightColor","borderRightWidth","borderTopRightRadius","borderBottomRightRadius","borderTopLeftRadius","borderBottomLeftRadius","overlayStyle","DrawerView","rest","SafeAreaProviderCompat","create","flex"],"sourceRoot":"../../../src","sources":["views/Dr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Ac,KAAK,OAAQ,IAErD;MACE2G,eAAe,EAAEzE,MAAM,CAAC0E,MAAM;MAC9BC,eAAe,EAAEzB,uBAAU,CAAC0B;IAC9B,CAAC,GACD;MACEC,gBAAgB,EAAE7E,MAAM,CAAC0E,MAAM;MAC/BI,gBAAgB,EAAE5B,uBAAU,CAAC0B;IAC/B,CAAC,CAAC,EAER3G,UAAU,KAAK,OAAO,KACnBH,cAAc,KAAK,MAAM,GACtB;MACEiH,oBAAoB,EAAErI,oBAAoB;MAC1CsI,uBAAuB,EAAEtI;IAC3B,CAAC,GACD;MACEuI,mBAAmB,EAAEvI,oBAAoB;MACzCwI,sBAAsB,EAAExI;IAC1B,CAAC,CAAC,EACRsB,WAAW,CACX;IACFmH,YAAY,EAAE;MAAEd,eAAe,EAAE/F;IAAa,CAAE;IAChD+C,mBAAmB,EAAEA;EAAoB,GAExCI,kBAAkB,CAAC,CACd,CACoB,CAAC;AAEnC;AAEO,SAAS2D,UAAUA,CAAC;EAAEvI,UAAU;EAAE,GAAGwI;AAAY,CAAC,EAAE;EACzD,oBACEnL,KAAA,CAAAgD,aAAA,CAACnD,SAAA,CAAAuL,sBAAsB,qBACrBpL,KAAA,CAAAgD,aAAA,CAACP,cAAc,EAAAP,QAAA;IAACS,UAAU,EAAEA;EAAW,GAAKwI,IAAI,CAAG,CAC7B,CAAC;AAE7B;AAEA,MAAMvD,MAAM,GAAGoB,uBAAU,CAACqC,MAAM,CAAC;EAC/BxD,OAAO,EAAE;IACPyD,IAAI,EAAE;EACR;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_elements","require","_native","React","_interopRequireWildcard","_reactNative","_reactNativeDrawerLayout","_reactNativeSafeAreaContext","_useLatestCallback","_interopRequireDefault","_addCancelListener","_DrawerPositionContext","_DrawerStatusContext","_getDrawerStatusFromState","_DrawerContent","_DrawerToggleButton","_ScreenFallback","_jsxRuntime","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","DRAWER_BORDER_RADIUS","DrawerViewBase","state","navigation","descriptors","defaultStatus","drawerContent","props","jsx","DrawerContent","detachInactiveScreens","Platform","OS","direction","useLocale","focusedRouteKey","routes","index","key","drawerHideStatusBarOnOpen","drawerPosition","drawerStatusBarAnimation","drawerStyle","drawerType","select","ios","configureGestureHandler","keyboardDismissMode","overlayColor","swipeEdgeWidth","swipeEnabled","swipeMinDistance","overlayAccessibilityLabel","options","loaded","setLoaded","useState","includes","previousRouteKeyRef","useRef","useEffect","previousRouteKey","current","popToTopOnBlur","prevRoute","find","route","type","dispatch","StackActions","popToTop","target","dimensions","useSafeAreaFrame","colors","useTheme","drawerStatus","getDrawerStatusFromState","handleDrawerOpen","useLatestCallback","DrawerActions","openDrawer","handleDrawerClose","closeDrawer","handleGestureStart","emit","handleGestureEnd","handleGestureCancel","handleTransitionStart","closing","data","handleTransitionEnd","handleHardwareBack","isFocused","addCancelListener","renderDrawerContent","DrawerPositionContext","Provider","value","children","renderSceneContent","MaybeScreenContainer","enabled","hasTwoStates","style","styles","content","map","descriptor","lazy","preloadedRouteKeys","freezeOnBlur","header","layout","Header","title","getHeaderTitle","name","headerLeft","DrawerToggleButton","headerShown","headerStatusBarHeight","headerTransparent","sceneContainerStyle","MaybeScreen","StyleSheet","absoluteFill","zIndex","visible","Screen","focused","render","DrawerStatusContext","Drawer","open","onOpen","onClose","onGestureStart","onGestureEnd","onGestureCancel","onTransitionStart","onTransitionEnd","hideStatusBarOnOpen","statusBarAnimation","backgroundColor","card","width","getDefaultSidebarWidth","borderLeftColor","border","borderLeftWidth","hairlineWidth","borderRightColor","borderRightWidth","borderTopRightRadius","borderBottomRightRadius","borderTopLeftRadius","borderBottomLeftRadius","overlayStyle","DrawerView","rest","SafeAreaProviderCompat","create","flex"],"sourceRoot":"../../../src","sources":["views/DrawerView.tsx"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAOA,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H,oBAAoB,EAAEtI,oBAAoB;QAC1CuI,uBAAuB,EAAEvI;MAC3B,CAAC,GACD;QACEwI,mBAAmB,EAAExI,oBAAoB;QACzCyI,sBAAsB,EAAEzI;MAC1B,CAAC,CAAC,EACRsB,WAAW,CACX;MACFoH,YAAY,EAAE;QAAEd,eAAe,EAAEhG;MAAa,CAAE;MAChD+C,mBAAmB,EAAEA,mBAAoB;MAAAI,QAAA,EAExCC,kBAAkB,CAAC;IAAC,CACf;EAAC,CACmB,CAAC;AAEnC;AAEO,SAAS2D,UAAUA,CAAC;EAAExI,UAAU;EAAE,GAAGyI;AAAY,CAAC,EAAE;EACzD,oBACE,IAAAjK,WAAA,CAAA6B,GAAA,EAAC9C,SAAA,CAAAmL,sBAAsB;IAAA9D,QAAA,eACrB,IAAApG,WAAA,CAAA6B,GAAA,EAACP,cAAc;MAACE,UAAU,EAAEA,UAAW;MAAA,GAAKyI;IAAI,CAAG;EAAC,CAC9B,CAAC;AAE7B;AAEA,MAAMvD,MAAM,GAAGoB,uBAAU,CAACqC,MAAM,CAAC;EAC/BxD,OAAO,EAAE;IACPyD,IAAI,EAAE;EACR;AACF,CAAC,CAAC","ignoreList":[]}
@@ -8,9 +8,9 @@ exports.MaybeScreenContainer = void 0;
8
8
  var _elements = require("@react-navigation/elements");
9
9
  var React = _interopRequireWildcard(require("react"));
10
10
  var _reactNative = require("react-native");
11
+ var _jsxRuntime = require("react/jsx-runtime");
11
12
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
12
13
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
13
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
14
14
  let Screens;
15
15
  try {
16
16
  Screens = require('react-native-screens');
@@ -22,11 +22,14 @@ const MaybeScreenContainer = ({
22
22
  ...rest
23
23
  }) => {
24
24
  if (Screens?.screensEnabled?.()) {
25
- return /*#__PURE__*/React.createElement(Screens.ScreenContainer, _extends({
26
- enabled: enabled
27
- }, rest));
25
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(Screens.ScreenContainer, {
26
+ enabled: enabled,
27
+ ...rest
28
+ });
28
29
  }
29
- return /*#__PURE__*/React.createElement(_reactNative.View, rest);
30
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
31
+ ...rest
32
+ });
30
33
  };
31
34
  exports.MaybeScreenContainer = MaybeScreenContainer;
32
35
  function MaybeScreen({
@@ -35,12 +38,16 @@ function MaybeScreen({
35
38
  ...rest
36
39
  }) {
37
40
  if (Screens?.screensEnabled?.()) {
38
- return /*#__PURE__*/React.createElement(Screens.Screen, _extends({
39
- activityState: visible ? 2 : 0
40
- }, rest), children);
41
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(Screens.Screen, {
42
+ activityState: visible ? 2 : 0,
43
+ ...rest,
44
+ children: children
45
+ });
41
46
  }
42
- return /*#__PURE__*/React.createElement(_elements.ResourceSavingView, _extends({
43
- visible: visible
44
- }, rest), children);
47
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_elements.ResourceSavingView, {
48
+ visible: visible,
49
+ ...rest,
50
+ children: children
51
+ });
45
52
  }
46
53
  //# sourceMappingURL=ScreenFallback.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_elements","require","React","_interopRequireWildcard","_reactNative","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","Screens","MaybeScreenContainer","enabled","rest","screensEnabled","createElement","ScreenContainer","View","exports","MaybeScreen","visible","children","Screen","activityState","ResourceSavingView"],"sourceRoot":"../../../src","sources":["views/ScreenFallback.tsx"],"mappings":";;;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAKsB,SAAAI,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAH,wBAAAG,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,C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AO;EAAEC,QAAQ;EAAE,GAAGR;AAAY,CAAC,EAAE;EACjE,IAAIH,OAAO,EAAEI,cAAc,GAAG,CAAC,EAAE;IAC/B,oBACEjC,KAAA,CAAAkC,aAAA,CAACL,OAAO,CAACY,MAAM,EAAAlB,QAAA;MAACmB,aAAa,EAAEH,OAAO,GAAG,CAAC,GAAG;IAAE,GAAKP,IAAI,GACrDQ,QACa,CAAC;EAErB;EAEA,oBACExC,KAAA,CAAAkC,aAAA,CAACpC,SAAA,CAAA6C,kBAAkB,EAAApB,QAAA;IAACgB,OAAO,EAAEA;EAAQ,GAAKP,IAAI,GAC3CQ,QACiB,CAAC;AAEzB","ignoreList":[]}
1
+ {"version":3,"names":["_elements","require","React","_interopRequireWildcard","_reactNative","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","Screens","MaybeScreenContainer","enabled","rest","screensEnabled","jsx","ScreenContainer","View","exports","MaybeScreen","visible","children","Screen","activityState","ResourceSavingView"],"sourceRoot":"../../../src","sources":["views/ScreenFallback.tsx"],"mappings":";;;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAKsB,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAK,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAJ,wBAAAI,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAA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OAAA,CAAAP,oBAAA,GAAAA,oBAAA;AAEK,SAASQ,WAAWA,CAAC;EAAEC,OAAO;EAAEC,QAAQ;EAAE,GAAGR;AAAY,CAAC,EAAE;EACjE,IAAIH,OAAO,EAAEI,cAAc,GAAG,CAAC,EAAE;IAC/B,oBACE,IAAAzB,WAAA,CAAA0B,GAAA,EAACL,OAAO,CAACY,MAAM;MAACC,aAAa,EAAEH,OAAO,GAAG,CAAC,GAAG,CAAE;MAAA,GAAKP,IAAI;MAAAQ,QAAA,EACrDA;IAAQ,CACK,CAAC;EAErB;EAEA,oBACE,IAAAhC,WAAA,CAAA0B,GAAA,EAAC/B,SAAA,CAAAwC,kBAAkB;IAACJ,OAAO,EAAEA,OAAQ;IAAA,GAAKP,IAAI;IAAAQ,QAAA,EAC3CA;EAAQ,CACS,CAAC;AAEzB","ignoreList":[]}
@@ -1,24 +1,24 @@
1
1
  /**
2
2
  * Navigators
3
3
  */
4
- export { createDrawerNavigator } from './navigators/createDrawerNavigator';
4
+ export { createDrawerNavigator } from "./navigators/createDrawerNavigator.js";
5
5
 
6
6
  /**
7
7
  * Views
8
8
  */
9
- export { DrawerContent } from './views/DrawerContent';
10
- export { DrawerContentScrollView } from './views/DrawerContentScrollView';
11
- export { DrawerItem } from './views/DrawerItem';
12
- export { DrawerItemList } from './views/DrawerItemList';
13
- export { DrawerToggleButton } from './views/DrawerToggleButton';
14
- export { DrawerView } from './views/DrawerView';
9
+ export { DrawerContent } from "./views/DrawerContent.js";
10
+ export { DrawerContentScrollView } from "./views/DrawerContentScrollView.js";
11
+ export { DrawerItem } from "./views/DrawerItem.js";
12
+ export { DrawerItemList } from "./views/DrawerItemList.js";
13
+ export { DrawerToggleButton } from "./views/DrawerToggleButton.js";
14
+ export { DrawerView } from "./views/DrawerView.js";
15
15
 
16
16
  /**
17
17
  * Utilities
18
18
  */
19
- export { DrawerStatusContext } from './utils/DrawerStatusContext';
20
- export { getDrawerStatusFromState } from './utils/getDrawerStatusFromState';
21
- export { useDrawerStatus } from './utils/useDrawerStatus';
19
+ export { DrawerStatusContext } from "./utils/DrawerStatusContext.js";
20
+ export { getDrawerStatusFromState } from "./utils/getDrawerStatusFromState.js";
21
+ export { useDrawerStatus } from "./utils/useDrawerStatus.js";
22
22
  export { DrawerProgressContext, useDrawerProgress } from 'react-native-drawer-layout';
23
23
 
24
24
  /**
@@ -1 +1 @@
1
- {"version":3,"names":["createDrawerNavigator","DrawerContent","DrawerContentScrollView","DrawerItem","DrawerItemList","DrawerToggleButton","DrawerView","DrawerStatusContext","getDrawerStatusFromState","useDrawerStatus","DrawerProgressContext","useDrawerProgress"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,qBAAqB,QAAQ,oCAAoC;;AAE1E;AACA;AACA;AACA,SAASC,aAAa,QAAQ,uBAAuB;AACrD,SAASC,uBAAuB,QAAQ,iCAAiC;AACzE,SAASC,UAAU,QAAQ,oBAAoB;AAC/C,SAASC,cAAc,QAAQ,wBAAwB;AACvD,SAASC,kBAAkB,QAAQ,4BAA4B;AAC/D,SAASC,UAAU,QAAQ,oBAAoB;;AAE/C;AACA;AACA;AACA,SAASC,mBAAmB,QAAQ,6BAA6B;AACjE,SAASC,wBAAwB,QAAQ,kCAAkC;AAC3E,SAASC,eAAe,QAAQ,yBAAyB;AACzD,SACEC,qBAAqB,EACrBC,iBAAiB,QACZ,4BAA4B;;AAEnC;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"names":["createDrawerNavigator","DrawerContent","DrawerContentScrollView","DrawerItem","DrawerItemList","DrawerToggleButton","DrawerView","DrawerStatusContext","getDrawerStatusFromState","useDrawerStatus","DrawerProgressContext","useDrawerProgress"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,qBAAqB,QAAQ,uCAAoC;;AAE1E;AACA;AACA;AACA,SAASC,aAAa,QAAQ,0BAAuB;AACrD,SAASC,uBAAuB,QAAQ,oCAAiC;AACzE,SAASC,UAAU,QAAQ,uBAAoB;AAC/C,SAASC,cAAc,QAAQ,2BAAwB;AACvD,SAASC,kBAAkB,QAAQ,+BAA4B;AAC/D,SAASC,UAAU,QAAQ,uBAAoB;;AAE/C;AACA;AACA;AACA,SAASC,mBAAmB,QAAQ,gCAA6B;AACjE,SAASC,wBAAwB,QAAQ,qCAAkC;AAC3E,SAASC,eAAe,QAAQ,4BAAyB;AACzD,SACEC,qBAAqB,EACrBC,iBAAiB,QACZ,4BAA4B;;AAEnC;AACA;AACA","ignoreList":[]}
@@ -1,7 +1,6 @@
1
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
1
  import { createNavigatorFactory, DrawerRouter, useNavigationBuilder } from '@react-navigation/native';
3
- import * as React from 'react';
4
- import { DrawerView } from '../views/DrawerView';
2
+ import { DrawerView } from "../views/DrawerView.js";
3
+ import { jsx as _jsx } from "react/jsx-runtime";
5
4
  function DrawerNavigator({
6
5
  id,
7
6
  initialRouteName,
@@ -32,12 +31,15 @@ function DrawerNavigator({
32
31
  screenLayout,
33
32
  UNSTABLE_getStateForRouteNamesChange
34
33
  });
35
- return /*#__PURE__*/React.createElement(NavigationContent, null, /*#__PURE__*/React.createElement(DrawerView, _extends({}, rest, {
36
- defaultStatus: defaultStatus,
37
- state: state,
38
- descriptors: descriptors,
39
- navigation: navigation
40
- })));
34
+ return /*#__PURE__*/_jsx(NavigationContent, {
35
+ children: /*#__PURE__*/_jsx(DrawerView, {
36
+ ...rest,
37
+ defaultStatus: defaultStatus,
38
+ state: state,
39
+ descriptors: descriptors,
40
+ navigation: navigation
41
+ })
42
+ });
41
43
  }
42
44
  export function createDrawerNavigator(config) {
43
45
  return createNavigatorFactory(DrawerNavigator)(config);
@@ -1 +1 @@
1
- {"version":3,"names":["createNavigatorFactory","DrawerRouter","useNavigationBuilder","React","DrawerView","DrawerNavigator","id","initialRouteName","defaultStatus","backBehavior","children","layout","screenListeners","screenOptions","screenLayout","UNSTABLE_getStateForRouteNamesChange","rest","state","descriptors","navigation","NavigationContent","createElement","_extends","createDrawerNavigator","config"],"sourceRoot":"../../../src","sources":["navigators/createDrawerNavigator.tsx"],"mappings":";AAAA,SACEA,sBAAsB,EAItBC,YAAY,EAMZC,oBAAoB,QACf,0BAA0B;AACjC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAQ9B,SAASC,UAAU,QAAQ,qBAAqB;AAahD,SAASC,eAAeA,CAAC;EACvBC,EAAE;EACFC,gBAAgB;EAChBC,aAAa,GAAG,QAAQ;EACxBC,YAAY;EACZC,QAAQ;EACRC,MAAM;EACNC,eAAe;EACfC,aAAa;EACbC,YAAY;EACZC,oCAAoC;EACpC,GAAGC;AACE,CAAC,EAAE;EACR,MAAM;IAAEC,KAAK;IAAEC,WAAW;IAAEC,UAAU;IAAEC;EAAkB,CAAC,GACzDlB,oBAAoB,CAMlBD,YAAY,EAAE;IACdK,EAAE;IACFC,gBAAgB;IAChBC,aAAa;IACbC,YAAY;IACZC,QAAQ;IACRC,MAAM;IACNC,eAAe;IACfC,aAAa;IACbC,YAAY;IACZC;EACF,CAAC,CAAC;EAEJ,oBACEZ,KAAA,CAAAkB,aAAA,CAACD,iBAAiB,qBAChBjB,KAAA,CAAAkB,aAAA,CAACjB,UAAU,EAAAkB,QAAA,KACLN,IAAI;IACRR,aAAa,EAAEA,aAAc;IAC7BS,KAAK,EAAEA,KAAM;IACbC,WAAW,EAAEA,WAAY;IACzBC,UAAU,EAAEA;EAAW,EACxB,CACgB,CAAC;AAExB;AAEA,OAAO,SAASI,qBAAqBA,CAqBnCC,MAAe,EAAmC;EAClD,OAAOxB,sBAAsB,CAACK,eAAe,CAAC,CAACmB,MAAM,CAAC;AACxD","ignoreList":[]}
1
+ {"version":3,"names":["createNavigatorFactory","DrawerRouter","useNavigationBuilder","DrawerView","jsx","_jsx","DrawerNavigator","id","initialRouteName","defaultStatus","backBehavior","children","layout","screenListeners","screenOptions","screenLayout","UNSTABLE_getStateForRouteNamesChange","rest","state","descriptors","navigation","NavigationContent","createDrawerNavigator","config"],"sourceRoot":"../../../src","sources":["navigators/createDrawerNavigator.tsx"],"mappings":"AAAA,SACEA,sBAAsB,EAItBC,YAAY,EAMZC,oBAAoB,QACf,0BAA0B;AAQjC,SAASC,UAAU,QAAQ,wBAAqB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAajD,SAASC,eAAeA,CAAC;EACvBC,EAAE;EACFC,gBAAgB;EAChBC,aAAa,GAAG,QAAQ;EACxBC,YAAY;EACZC,QAAQ;EACRC,MAAM;EACNC,eAAe;EACfC,aAAa;EACbC,YAAY;EACZC,oCAAoC;EACpC,GAAGC;AACE,CAAC,EAAE;EACR,MAAM;IAAEC,KAAK;IAAEC,WAAW;IAAEC,UAAU;IAAEC;EAAkB,CAAC,GACzDnB,oBAAoB,CAMlBD,YAAY,EAAE;IACdM,EAAE;IACFC,gBAAgB;IAChBC,aAAa;IACbC,YAAY;IACZC,QAAQ;IACRC,MAAM;IACNC,eAAe;IACfC,aAAa;IACbC,YAAY;IACZC;EACF,CAAC,CAAC;EAEJ,oBACEX,IAAA,CAACgB,iBAAiB;IAAAV,QAAA,eAChBN,IAAA,CAACF,UAAU;MAAA,GACLc,IAAI;MACRR,aAAa,EAAEA,aAAc;MAC7BS,KAAK,EAAEA,KAAM;MACbC,WAAW,EAAEA,WAAY;MACzBC,UAAU,EAAEA;IAAW,CACxB;EAAC,CACe,CAAC;AAExB;AAEA,OAAO,SAASE,qBAAqBA,CAmBnCC,MAAe,EAAmC;EAClD,OAAOvB,sBAAsB,CAACM,eAAe,CAAC,CAACiB,MAAM,CAAC;AACxD","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { DrawerStatusContext } from './DrawerStatusContext';
2
+ import { DrawerStatusContext } from "./DrawerStatusContext.js";
3
3
 
4
4
  /**
5
5
  * Hook to detect if the drawer's status in a parent navigator.
@@ -1 +1 @@
1
- {"version":3,"names":["React","DrawerStatusContext","useDrawerStatus","drawerStatus","useContext","undefined","Error"],"sourceRoot":"../../../src","sources":["utils/useDrawerStatus.tsx"],"mappings":"AACA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAE9B,SAASC,mBAAmB,QAAQ,uBAAuB;;AAE3D;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAAA,EAAiB;EAC9C,MAAMC,YAAY,GAAGH,KAAK,CAACI,UAAU,CAACH,mBAAmB,CAAC;EAE1D,IAAIE,YAAY,KAAKE,SAAS,EAAE;IAC9B,MAAM,IAAIC,KAAK,CACb,sEACF,CAAC;EACH;EAEA,OAAOH,YAAY;AACrB","ignoreList":[]}
1
+ {"version":3,"names":["React","DrawerStatusContext","useDrawerStatus","drawerStatus","useContext","undefined","Error"],"sourceRoot":"../../../src","sources":["utils/useDrawerStatus.tsx"],"mappings":"AACA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAE9B,SAASC,mBAAmB,QAAQ,0BAAuB;;AAE3D;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAAA,EAAiB;EAC9C,MAAMC,YAAY,GAAGH,KAAK,CAACI,UAAU,CAACH,mBAAmB,CAAC;EAE1D,IAAIE,YAAY,KAAKE,SAAS,EAAE;IAC9B,MAAM,IAAIC,KAAK,CACb,sEACF,CAAC;EACH;EAEA,OAAOH,YAAY;AACrB","ignoreList":[]}
@@ -1,7 +1,6 @@
1
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
- import * as React from 'react';
3
- import { DrawerContentScrollView } from './DrawerContentScrollView';
4
- import { DrawerItemList } from './DrawerItemList';
1
+ import { DrawerContentScrollView } from "./DrawerContentScrollView.js";
2
+ import { DrawerItemList } from "./DrawerItemList.js";
3
+ import { jsx as _jsx } from "react/jsx-runtime";
5
4
  export function DrawerContent({
6
5
  descriptors,
7
6
  state,
@@ -14,12 +13,15 @@ export function DrawerContent({
14
13
  drawerContentStyle,
15
14
  drawerContentContainerStyle
16
15
  } = focusedOptions;
17
- return /*#__PURE__*/React.createElement(DrawerContentScrollView, _extends({}, rest, {
16
+ return /*#__PURE__*/_jsx(DrawerContentScrollView, {
17
+ ...rest,
18
18
  contentContainerStyle: drawerContentContainerStyle,
19
- style: drawerContentStyle
20
- }), /*#__PURE__*/React.createElement(DrawerItemList, _extends({
21
- descriptors: descriptors,
22
- state: state
23
- }, rest)));
19
+ style: drawerContentStyle,
20
+ children: /*#__PURE__*/_jsx(DrawerItemList, {
21
+ descriptors: descriptors,
22
+ state: state,
23
+ ...rest
24
+ })
25
+ });
24
26
  }
25
27
  //# sourceMappingURL=DrawerContent.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","DrawerContentScrollView","DrawerItemList","DrawerContent","descriptors","state","rest","focusedRoute","routes","index","focusedDescriptor","key","focusedOptions","options","drawerContentStyle","drawerContentContainerStyle","createElement","_extends","contentContainerStyle","style"],"sourceRoot":"../../../src","sources":["views/DrawerContent.tsx"],"mappings":";AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAG9B,SAASC,uBAAuB,QAAQ,2BAA2B;AACnE,SAASC,cAAc,QAAQ,kBAAkB;AAEjD,OAAO,SAASC,aAAaA,CAAC;EAC5BC,WAAW;EACXC,KAAK;EACL,GAAGC;AACwB,CAAC,EAAE;EAC9B,MAAMC,YAAY,GAAGF,KAAK,CAACG,MAAM,CAACH,KAAK,CAACI,KAAK,CAAC;EAC9C,MAAMC,iBAAiB,GAAGN,WAAW,CAACG,YAAY,CAACI,GAAG,CAAC;EACvD,MAAMC,cAAc,GAAGF,iBAAiB,CAACG,OAAO;EAEhD,MAAM;IAAEC,kBAAkB;IAAEC;EAA4B,CAAC,GAAGH,cAAc;EAE1E,oBACEZ,KAAA,CAAAgB,aAAA,CAACf,uBAAuB,EAAAgB,QAAA,KAClBX,IAAI;IACRY,qBAAqB,EAAEH,2BAA4B;IACnDI,KAAK,EAAEL;EAAmB,iBAE1Bd,KAAA,CAAAgB,aAAA,CAACd,cAAc,EAAAe,QAAA;IAACb,WAAW,EAAEA,WAAY;IAACC,KAAK,EAAEA;EAAM,GAAKC,IAAI,CAAG,CAC5C,CAAC;AAE9B","ignoreList":[]}
1
+ {"version":3,"names":["DrawerContentScrollView","DrawerItemList","jsx","_jsx","DrawerContent","descriptors","state","rest","focusedRoute","routes","index","focusedDescriptor","key","focusedOptions","options","drawerContentStyle","drawerContentContainerStyle","contentContainerStyle","style","children"],"sourceRoot":"../../../src","sources":["views/DrawerContent.tsx"],"mappings":"AACA,SAASA,uBAAuB,QAAQ,8BAA2B;AACnE,SAASC,cAAc,QAAQ,qBAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAElD,OAAO,SAASC,aAAaA,CAAC;EAC5BC,WAAW;EACXC,KAAK;EACL,GAAGC;AACwB,CAAC,EAAE;EAC9B,MAAMC,YAAY,GAAGF,KAAK,CAACG,MAAM,CAACH,KAAK,CAACI,KAAK,CAAC;EAC9C,MAAMC,iBAAiB,GAAGN,WAAW,CAACG,YAAY,CAACI,GAAG,CAAC;EACvD,MAAMC,cAAc,GAAGF,iBAAiB,CAACG,OAAO;EAEhD,MAAM;IAAEC,kBAAkB;IAAEC;EAA4B,CAAC,GAAGH,cAAc;EAE1E,oBACEV,IAAA,CAACH,uBAAuB;IAAA,GAClBO,IAAI;IACRU,qBAAqB,EAAED,2BAA4B;IACnDE,KAAK,EAAEH,kBAAmB;IAAAI,QAAA,eAE1BhB,IAAA,CAACF,cAAc;MAACI,WAAW,EAAEA,WAAY;MAACC,KAAK,EAAEA,KAAM;MAAA,GAAKC;IAAI,CAAG;EAAC,CAC7C,CAAC;AAE9B","ignoreList":[]}
@@ -1,9 +1,10 @@
1
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
1
  import { useLocale } from '@react-navigation/native';
3
2
  import * as React from 'react';
4
3
  import { ScrollView, StyleSheet } from 'react-native';
5
4
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
6
- import { DrawerPositionContext } from '../utils/DrawerPositionContext';
5
+ import { DrawerPositionContext } from "../utils/DrawerPositionContext.js";
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ const SPACING = 12;
7
8
  function DrawerContentScrollViewInner({
8
9
  contentContainerStyle,
9
10
  style,
@@ -16,16 +17,18 @@ function DrawerContentScrollViewInner({
16
17
  direction
17
18
  } = useLocale();
18
19
  const isRight = direction === 'rtl' ? drawerPosition === 'left' : drawerPosition === 'right';
19
- return /*#__PURE__*/React.createElement(ScrollView, _extends({}, rest, {
20
+ return /*#__PURE__*/_jsx(ScrollView, {
21
+ ...rest,
20
22
  ref: ref,
21
23
  contentContainerStyle: [{
22
- paddingTop: insets.top + 10,
23
- paddingBottom: insets.bottom + 10,
24
- paddingStart: !isRight ? insets.left : 0,
25
- paddingEnd: isRight ? insets.right : 0
24
+ paddingTop: SPACING + insets.top,
25
+ paddingBottom: SPACING + insets.bottom,
26
+ paddingStart: SPACING + (!isRight ? insets.left : 0),
27
+ paddingEnd: SPACING + (isRight ? insets.right : 0)
26
28
  }, contentContainerStyle],
27
- style: [styles.container, style]
28
- }), children);
29
+ style: [styles.container, style],
30
+ children: children
31
+ });
29
32
  }
30
33
  export const DrawerContentScrollView = /*#__PURE__*/React.forwardRef(DrawerContentScrollViewInner);
31
34
  const styles = StyleSheet.create({
@@ -1 +1 @@
1
- {"version":3,"names":["useLocale","React","ScrollView","StyleSheet","useSafeAreaInsets","DrawerPositionContext","DrawerContentScrollViewInner","contentContainerStyle","style","children","rest","ref","drawerPosition","useContext","insets","direction","isRight","createElement","_extends","paddingTop","top","paddingBottom","bottom","paddingStart","left","paddingEnd","right","styles","container","DrawerContentScrollView","forwardRef","create","flex"],"sourceRoot":"../../../src","sources":["views/DrawerContentScrollView.tsx"],"mappings":";AAAA,SAASA,SAAS,QAAQ,0BAA0B;AACpD,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,EAAwBC,UAAU,QAAQ,cAAc;AAC3E,SAASC,iBAAiB,QAAQ,gCAAgC;AAElE,SAASC,qBAAqB,QAAQ,gCAAgC;AAMtE,SAASC,4BAA4BA,CACnC;EAAEC,qBAAqB;EAAEC,KAAK;EAAEC,QAAQ;EAAE,GAAGC;AAAY,CAAC,EAC1DC,GAA2B,EAC3B;EACA,MAAMC,cAAc,GAAGX,KAAK,CAACY,UAAU,CAACR,qBAAqB,CAAC;EAC9D,MAAMS,MAAM,GAAGV,iBAAiB,CAAC,CAAC;EAClC,MAAM;IAAEW;EAAU,CAAC,GAAGf,SAAS,CAAC,CAAC;EAEjC,MAAMgB,OAAO,GACXD,SAAS,KAAK,KAAK,GACfH,cAAc,KAAK,MAAM,GACzBA,cAAc,KAAK,OAAO;EAEhC,oBACEX,KAAA,CAAAgB,aAAA,CAACf,UAAU,EAAAgB,QAAA,KACLR,IAAI;IACRC,GAAG,EAAEA,GAAI;IACTJ,qBAAqB,EAAE,CACrB;MACEY,UAAU,EAAEL,MAAM,CAACM,GAAG,GAAG,EAAE;MAC3BC,aAAa,EAAEP,MAAM,CAACQ,MAAM,GAAG,EAAE;MACjCC,YAAY,EAAE,CAACP,OAAO,GAAGF,MAAM,CAACU,IAAI,GAAG,CAAC;MACxCC,UAAU,EAAET,OAAO,GAAGF,MAAM,CAACY,KAAK,GAAG;IACvC,CAAC,EACDnB,qBAAqB,CACrB;IACFC,KAAK,EAAE,CAACmB,MAAM,CAACC,SAAS,EAAEpB,KAAK;EAAE,IAEhCC,QACS,CAAC;AAEjB;AAEA,OAAO,MAAMoB,uBAAuB,gBAAG5B,KAAK,CAAC6B,UAAU,CACrDxB,4BACF,CAAC;AAED,MAAMqB,MAAM,GAAGxB,UAAU,CAAC4B,MAAM,CAAC;EAC/BH,SAAS,EAAE;IACTI,IAAI,EAAE;EACR;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["useLocale","React","ScrollView","StyleSheet","useSafeAreaInsets","DrawerPositionContext","jsx","_jsx","SPACING","DrawerContentScrollViewInner","contentContainerStyle","style","children","rest","ref","drawerPosition","useContext","insets","direction","isRight","paddingTop","top","paddingBottom","bottom","paddingStart","left","paddingEnd","right","styles","container","DrawerContentScrollView","forwardRef","create","flex"],"sourceRoot":"../../../src","sources":["views/DrawerContentScrollView.tsx"],"mappings":"AAAA,SAASA,SAAS,QAAQ,0BAA0B;AACpD,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,EAAwBC,UAAU,QAAQ,cAAc;AAC3E,SAASC,iBAAiB,QAAQ,gCAAgC;AAElE,SAASC,qBAAqB,QAAQ,mCAAgC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAMvE,MAAMC,OAAO,GAAG,EAAE;AAElB,SAASC,4BAA4BA,CACnC;EAAEC,qBAAqB;EAAEC,KAAK;EAAEC,QAAQ;EAAE,GAAGC;AAAY,CAAC,EAC1DC,GAA2B,EAC3B;EACA,MAAMC,cAAc,GAAGd,KAAK,CAACe,UAAU,CAACX,qBAAqB,CAAC;EAC9D,MAAMY,MAAM,GAAGb,iBAAiB,CAAC,CAAC;EAClC,MAAM;IAAEc;EAAU,CAAC,GAAGlB,SAAS,CAAC,CAAC;EAEjC,MAAMmB,OAAO,GACXD,SAAS,KAAK,KAAK,GACfH,cAAc,KAAK,MAAM,GACzBA,cAAc,KAAK,OAAO;EAEhC,oBACER,IAAA,CAACL,UAAU;IAAA,GACLW,IAAI;IACRC,GAAG,EAAEA,GAAI;IACTJ,qBAAqB,EAAE,CACrB;MACEU,UAAU,EAAE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