@react-navigation/drawer 7.3.7 → 7.3.9

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 (125) hide show
  1. package/lib/typescript/src/index.d.ts.map +1 -0
  2. package/lib/typescript/src/navigators/createDrawerNavigator.d.ts.map +1 -0
  3. package/lib/typescript/src/types.d.ts.map +1 -0
  4. package/lib/typescript/src/utils/DrawerPositionContext.d.ts.map +1 -0
  5. package/lib/typescript/src/utils/DrawerStatusContext.d.ts.map +1 -0
  6. package/lib/typescript/src/utils/addCancelListener.d.ts.map +1 -0
  7. package/lib/typescript/src/utils/addCancelListener.native.d.ts.map +1 -0
  8. package/lib/typescript/src/utils/getDrawerStatusFromState.d.ts.map +1 -0
  9. package/lib/typescript/src/utils/useDrawerStatus.d.ts.map +1 -0
  10. package/lib/typescript/src/views/DrawerContent.d.ts.map +1 -0
  11. package/lib/typescript/src/views/DrawerContentScrollView.d.ts.map +1 -0
  12. package/lib/typescript/src/views/DrawerItem.d.ts.map +1 -0
  13. package/lib/typescript/src/views/DrawerItemList.d.ts.map +1 -0
  14. package/lib/typescript/src/views/DrawerToggleButton.d.ts.map +1 -0
  15. package/lib/typescript/src/views/DrawerView.d.ts.map +1 -0
  16. package/lib/typescript/src/views/ScreenFallback.d.ts.map +1 -0
  17. package/package.json +16 -27
  18. package/lib/commonjs/index.js +0 -89
  19. package/lib/commonjs/index.js.map +0 -1
  20. package/lib/commonjs/navigators/createDrawerNavigator.js +0 -53
  21. package/lib/commonjs/navigators/createDrawerNavigator.js.map +0 -1
  22. package/lib/commonjs/package.json +0 -1
  23. package/lib/commonjs/types.js +0 -6
  24. package/lib/commonjs/types.js.map +0 -1
  25. package/lib/commonjs/utils/DrawerPositionContext.js +0 -11
  26. package/lib/commonjs/utils/DrawerPositionContext.js.map +0 -1
  27. package/lib/commonjs/utils/DrawerStatusContext.js +0 -11
  28. package/lib/commonjs/utils/DrawerStatusContext.js.map +0 -1
  29. package/lib/commonjs/utils/addCancelListener.js +0 -19
  30. package/lib/commonjs/utils/addCancelListener.js.map +0 -1
  31. package/lib/commonjs/utils/addCancelListener.native.js +0 -15
  32. package/lib/commonjs/utils/addCancelListener.native.js.map +0 -1
  33. package/lib/commonjs/utils/getDrawerStatusFromState.js +0 -14
  34. package/lib/commonjs/utils/getDrawerStatusFromState.js.map +0 -1
  35. package/lib/commonjs/utils/useDrawerStatus.js +0 -22
  36. package/lib/commonjs/utils/useDrawerStatus.js.map +0 -1
  37. package/lib/commonjs/views/DrawerContent.js +0 -33
  38. package/lib/commonjs/views/DrawerContent.js.map +0 -1
  39. package/lib/commonjs/views/DrawerContentScrollView.js +0 -47
  40. package/lib/commonjs/views/DrawerContentScrollView.js.map +0 -1
  41. package/lib/commonjs/views/DrawerItem.js +0 -121
  42. package/lib/commonjs/views/DrawerItem.js.map +0 -1
  43. package/lib/commonjs/views/DrawerItemList.js +0 -73
  44. package/lib/commonjs/views/DrawerItemList.js.map +0 -1
  45. package/lib/commonjs/views/DrawerToggleButton.js +0 -41
  46. package/lib/commonjs/views/DrawerToggleButton.js.map +0 -1
  47. package/lib/commonjs/views/DrawerView.js +0 -290
  48. package/lib/commonjs/views/DrawerView.js.map +0 -1
  49. package/lib/commonjs/views/ScreenFallback.js +0 -53
  50. package/lib/commonjs/views/ScreenFallback.js.map +0 -1
  51. package/lib/commonjs/views/assets/toggle-drawer-icon.png +0 -0
  52. package/lib/commonjs/views/assets/toggle-drawer-icon@1x.android.png +0 -0
  53. package/lib/commonjs/views/assets/toggle-drawer-icon@1x.ios.png +0 -0
  54. package/lib/commonjs/views/assets/toggle-drawer-icon@2x.android.png +0 -0
  55. package/lib/commonjs/views/assets/toggle-drawer-icon@2x.ios.png +0 -0
  56. package/lib/commonjs/views/assets/toggle-drawer-icon@3x.android.png +0 -0
  57. package/lib/commonjs/views/assets/toggle-drawer-icon@3x.ios.png +0 -0
  58. package/lib/commonjs/views/assets/toggle-drawer-icon@4x.android.png +0 -0
  59. package/lib/commonjs/views/assets/toggle-drawer-icon@4x.ios.png +0 -0
  60. package/lib/typescript/commonjs/package.json +0 -1
  61. package/lib/typescript/commonjs/src/index.d.ts.map +0 -1
  62. package/lib/typescript/commonjs/src/navigators/createDrawerNavigator.d.ts.map +0 -1
  63. package/lib/typescript/commonjs/src/types.d.ts.map +0 -1
  64. package/lib/typescript/commonjs/src/utils/DrawerPositionContext.d.ts.map +0 -1
  65. package/lib/typescript/commonjs/src/utils/DrawerStatusContext.d.ts.map +0 -1
  66. package/lib/typescript/commonjs/src/utils/addCancelListener.d.ts.map +0 -1
  67. package/lib/typescript/commonjs/src/utils/addCancelListener.native.d.ts.map +0 -1
  68. package/lib/typescript/commonjs/src/utils/getDrawerStatusFromState.d.ts.map +0 -1
  69. package/lib/typescript/commonjs/src/utils/useDrawerStatus.d.ts.map +0 -1
  70. package/lib/typescript/commonjs/src/views/DrawerContent.d.ts.map +0 -1
  71. package/lib/typescript/commonjs/src/views/DrawerContentScrollView.d.ts.map +0 -1
  72. package/lib/typescript/commonjs/src/views/DrawerItem.d.ts.map +0 -1
  73. package/lib/typescript/commonjs/src/views/DrawerItemList.d.ts.map +0 -1
  74. package/lib/typescript/commonjs/src/views/DrawerToggleButton.d.ts.map +0 -1
  75. package/lib/typescript/commonjs/src/views/DrawerView.d.ts.map +0 -1
  76. package/lib/typescript/commonjs/src/views/ScreenFallback.d.ts.map +0 -1
  77. package/lib/typescript/module/src/index.d.ts +0 -25
  78. package/lib/typescript/module/src/index.d.ts.map +0 -1
  79. package/lib/typescript/module/src/navigators/createDrawerNavigator.d.ts +0 -16
  80. package/lib/typescript/module/src/navigators/createDrawerNavigator.d.ts.map +0 -1
  81. package/lib/typescript/module/src/types.d.ts +0 -280
  82. package/lib/typescript/module/src/types.d.ts.map +0 -1
  83. package/lib/typescript/module/src/utils/DrawerPositionContext.d.ts +0 -3
  84. package/lib/typescript/module/src/utils/DrawerPositionContext.d.ts.map +0 -1
  85. package/lib/typescript/module/src/utils/DrawerStatusContext.d.ts +0 -4
  86. package/lib/typescript/module/src/utils/DrawerStatusContext.d.ts.map +0 -1
  87. package/lib/typescript/module/src/utils/addCancelListener.d.ts +0 -2
  88. package/lib/typescript/module/src/utils/addCancelListener.d.ts.map +0 -1
  89. package/lib/typescript/module/src/utils/addCancelListener.native.d.ts +0 -2
  90. package/lib/typescript/module/src/utils/addCancelListener.native.d.ts.map +0 -1
  91. package/lib/typescript/module/src/utils/getDrawerStatusFromState.d.ts +0 -3
  92. package/lib/typescript/module/src/utils/getDrawerStatusFromState.d.ts.map +0 -1
  93. package/lib/typescript/module/src/utils/useDrawerStatus.d.ts +0 -7
  94. package/lib/typescript/module/src/utils/useDrawerStatus.d.ts.map +0 -1
  95. package/lib/typescript/module/src/views/DrawerContent.d.ts +0 -3
  96. package/lib/typescript/module/src/views/DrawerContent.d.ts.map +0 -1
  97. package/lib/typescript/module/src/views/DrawerContentScrollView.d.ts +0 -6
  98. package/lib/typescript/module/src/views/DrawerContentScrollView.d.ts.map +0 -1
  99. package/lib/typescript/module/src/views/DrawerItem.d.ts +0 -92
  100. package/lib/typescript/module/src/views/DrawerItem.d.ts.map +0 -1
  101. package/lib/typescript/module/src/views/DrawerItemList.d.ts +0 -14
  102. package/lib/typescript/module/src/views/DrawerItemList.d.ts.map +0 -1
  103. package/lib/typescript/module/src/views/DrawerToggleButton.d.ts +0 -11
  104. package/lib/typescript/module/src/views/DrawerToggleButton.d.ts.map +0 -1
  105. package/lib/typescript/module/src/views/DrawerView.d.ts +0 -11
  106. package/lib/typescript/module/src/views/DrawerView.d.ts.map +0 -1
  107. package/lib/typescript/module/src/views/ScreenFallback.d.ts +0 -18
  108. package/lib/typescript/module/src/views/ScreenFallback.d.ts.map +0 -1
  109. /package/lib/typescript/{module/package.json → package.json} +0 -0
  110. /package/lib/typescript/{commonjs/src → src}/index.d.ts +0 -0
  111. /package/lib/typescript/{commonjs/src → src}/navigators/createDrawerNavigator.d.ts +0 -0
  112. /package/lib/typescript/{commonjs/src → src}/types.d.ts +0 -0
  113. /package/lib/typescript/{commonjs/src → src}/utils/DrawerPositionContext.d.ts +0 -0
  114. /package/lib/typescript/{commonjs/src → src}/utils/DrawerStatusContext.d.ts +0 -0
  115. /package/lib/typescript/{commonjs/src → src}/utils/addCancelListener.d.ts +0 -0
  116. /package/lib/typescript/{commonjs/src → src}/utils/addCancelListener.native.d.ts +0 -0
  117. /package/lib/typescript/{commonjs/src → src}/utils/getDrawerStatusFromState.d.ts +0 -0
  118. /package/lib/typescript/{commonjs/src → src}/utils/useDrawerStatus.d.ts +0 -0
  119. /package/lib/typescript/{commonjs/src → src}/views/DrawerContent.d.ts +0 -0
  120. /package/lib/typescript/{commonjs/src → src}/views/DrawerContentScrollView.d.ts +0 -0
  121. /package/lib/typescript/{commonjs/src → src}/views/DrawerItem.d.ts +0 -0
  122. /package/lib/typescript/{commonjs/src → src}/views/DrawerItemList.d.ts +0 -0
  123. /package/lib/typescript/{commonjs/src → src}/views/DrawerToggleButton.d.ts +0 -0
  124. /package/lib/typescript/{commonjs/src → src}/views/DrawerView.d.ts +0 -0
  125. /package/lib/typescript/{commonjs/src → src}/views/ScreenFallback.d.ts +0 -0
@@ -1,11 +0,0 @@
1
- import { type ImageSourcePropType } from 'react-native';
2
- type Props = {
3
- accessibilityLabel?: string;
4
- pressColor?: string;
5
- pressOpacity?: number;
6
- tintColor?: string;
7
- imageSource?: ImageSourcePropType;
8
- };
9
- export declare function DrawerToggleButton({ tintColor, accessibilityLabel, imageSource, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
10
- export {};
11
- //# sourceMappingURL=DrawerToggleButton.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DrawerToggleButton.d.ts","sourceRoot":"","sources":["../../../../../src/views/DrawerToggleButton.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAS,KAAK,mBAAmB,EAAc,MAAM,cAAc,CAAC;AAK3E,KAAK,KAAK,GAAG;IACX,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,mBAAmB,CAAC;CACnC,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,EACjC,SAAS,EACT,kBAA2C,EAC3C,WAA8B,EAC9B,GAAG,IAAI,EACR,EAAE,KAAK,2CAkBP"}
@@ -1,11 +0,0 @@
1
- import { type DrawerNavigationState, type DrawerStatus, type ParamListBase } from '@react-navigation/native';
2
- import type { DrawerDescriptorMap, DrawerNavigationConfig, DrawerNavigationHelpers } from '../types';
3
- type Props = DrawerNavigationConfig & {
4
- defaultStatus: DrawerStatus;
5
- state: DrawerNavigationState<ParamListBase>;
6
- navigation: DrawerNavigationHelpers;
7
- descriptors: DrawerDescriptorMap;
8
- };
9
- export declare function DrawerView({ navigation, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
10
- export {};
11
- //# sourceMappingURL=DrawerView.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DrawerView.d.ts","sourceRoot":"","sources":["../../../../../src/views/DrawerView.tsx"],"names":[],"mappings":"AAOA,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,YAAY,EACjB,KAAK,aAAa,EAInB,MAAM,0BAA0B,CAAC;AAOlC,OAAO,KAAK,EAEV,mBAAmB,EAEnB,sBAAsB,EACtB,uBAAuB,EAExB,MAAM,UAAU,CAAC;AASlB,KAAK,KAAK,GAAG,sBAAsB,GAAG;IACpC,aAAa,EAAE,YAAY,CAAC;IAC5B,KAAK,EAAE,qBAAqB,CAAC,aAAa,CAAC,CAAC;IAC5C,UAAU,EAAE,uBAAuB,CAAC;IACpC,WAAW,EAAE,mBAAmB,CAAC;CAClC,CAAC;AA8TF,wBAAgB,UAAU,CAAC,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,EAAE,KAAK,2CAMxD"}
@@ -1,18 +0,0 @@
1
- import * as React from 'react';
2
- import { type StyleProp, type ViewProps, type ViewStyle } from 'react-native';
3
- type Props = {
4
- visible: boolean;
5
- children: React.ReactNode;
6
- enabled: boolean;
7
- freezeOnBlur?: boolean;
8
- shouldFreeze: boolean;
9
- style?: StyleProp<ViewStyle>;
10
- };
11
- export declare const MaybeScreenContainer: ({ enabled, ...rest }: ViewProps & {
12
- enabled: boolean;
13
- hasTwoStates: boolean;
14
- children: React.ReactNode;
15
- }) => import("react/jsx-runtime").JSX.Element;
16
- export declare function MaybeScreen({ visible, children, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
17
- export {};
18
- //# sourceMappingURL=ScreenFallback.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ScreenFallback.d.ts","sourceRoot":"","sources":["../../../../../src/views/ScreenFallback.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,KAAK,SAAS,EAEd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC;AAUF,eAAO,MAAM,oBAAoB,yBAG9B,SAAS,GAAG;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,4CAMA,CAAC;AAEF,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,KAAK,2CAchE"}
File without changes
File without changes