@radix-ui/react-menu 2.1.2-rc.9 → 2.1.3-rc.1
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.
- package/dist/index.d.mts +2 -12
- package/dist/index.d.ts +2 -12
- package/package.json +16 -16
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as _radix_ui_react_context from '@radix-ui/react-context';
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import { DismissableLayer } from '@radix-ui/react-dismissable-layer';
|
|
3
4
|
import { FocusScope } from '@radix-ui/react-focus-scope';
|
|
@@ -6,19 +7,8 @@ import { Portal as Portal$1 } from '@radix-ui/react-portal';
|
|
|
6
7
|
import { Primitive } from '@radix-ui/react-primitive';
|
|
7
8
|
import * as RovingFocusGroup from '@radix-ui/react-roving-focus';
|
|
8
9
|
|
|
9
|
-
type Scope<C = any> = {
|
|
10
|
-
[scopeName: string]: React.Context<C>[];
|
|
11
|
-
} | undefined;
|
|
12
|
-
type ScopeHook = (scope: Scope) => {
|
|
13
|
-
[__scopeProp: string]: Scope;
|
|
14
|
-
};
|
|
15
|
-
interface CreateScope {
|
|
16
|
-
scopeName: string;
|
|
17
|
-
(): ScopeHook;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
10
|
type Direction = 'ltr' | 'rtl';
|
|
21
|
-
declare const createMenuScope: CreateScope;
|
|
11
|
+
declare const createMenuScope: _radix_ui_react_context.CreateScope;
|
|
22
12
|
interface MenuProps {
|
|
23
13
|
children?: React.ReactNode;
|
|
24
14
|
open?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as _radix_ui_react_context from '@radix-ui/react-context';
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import { DismissableLayer } from '@radix-ui/react-dismissable-layer';
|
|
3
4
|
import { FocusScope } from '@radix-ui/react-focus-scope';
|
|
@@ -6,19 +7,8 @@ import { Portal as Portal$1 } from '@radix-ui/react-portal';
|
|
|
6
7
|
import { Primitive } from '@radix-ui/react-primitive';
|
|
7
8
|
import * as RovingFocusGroup from '@radix-ui/react-roving-focus';
|
|
8
9
|
|
|
9
|
-
type Scope<C = any> = {
|
|
10
|
-
[scopeName: string]: React.Context<C>[];
|
|
11
|
-
} | undefined;
|
|
12
|
-
type ScopeHook = (scope: Scope) => {
|
|
13
|
-
[__scopeProp: string]: Scope;
|
|
14
|
-
};
|
|
15
|
-
interface CreateScope {
|
|
16
|
-
scopeName: string;
|
|
17
|
-
(): ScopeHook;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
10
|
type Direction = 'ltr' | 'rtl';
|
|
21
|
-
declare const createMenuScope: CreateScope;
|
|
11
|
+
declare const createMenuScope: _radix_ui_react_context.CreateScope;
|
|
22
12
|
interface MenuProps {
|
|
23
13
|
children?: React.ReactNode;
|
|
24
14
|
open?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@radix-ui/react-menu",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3-rc.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -28,24 +28,24 @@
|
|
|
28
28
|
"version": "yarn version"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@radix-ui/primitive": "1.1.
|
|
32
|
-
"@radix-ui/react-collection": "1.1.
|
|
33
|
-
"@radix-ui/react-compose-refs": "1.1.
|
|
34
|
-
"@radix-ui/react-context": "1.1.1
|
|
31
|
+
"@radix-ui/primitive": "1.1.1-rc.1",
|
|
32
|
+
"@radix-ui/react-collection": "1.1.1-rc.1",
|
|
33
|
+
"@radix-ui/react-compose-refs": "1.1.1-rc.1",
|
|
34
|
+
"@radix-ui/react-context": "1.1.1",
|
|
35
35
|
"@radix-ui/react-direction": "1.1.0",
|
|
36
|
-
"@radix-ui/react-dismissable-layer": "1.1.
|
|
37
|
-
"@radix-ui/react-focus-guards": "1.1.
|
|
38
|
-
"@radix-ui/react-focus-scope": "1.1.
|
|
36
|
+
"@radix-ui/react-dismissable-layer": "1.1.2-rc.1",
|
|
37
|
+
"@radix-ui/react-focus-guards": "1.1.1",
|
|
38
|
+
"@radix-ui/react-focus-scope": "1.1.1-rc.1",
|
|
39
39
|
"@radix-ui/react-id": "1.1.0",
|
|
40
|
-
"@radix-ui/react-popper": "1.2.
|
|
41
|
-
"@radix-ui/react-portal": "1.1.
|
|
42
|
-
"@radix-ui/react-presence": "1.1.
|
|
43
|
-
"@radix-ui/react-primitive": "2.0.
|
|
44
|
-
"@radix-ui/react-roving-focus": "1.1.
|
|
45
|
-
"@radix-ui/react-slot": "1.1.
|
|
40
|
+
"@radix-ui/react-popper": "1.2.1-rc.1",
|
|
41
|
+
"@radix-ui/react-portal": "1.1.3-rc.1",
|
|
42
|
+
"@radix-ui/react-presence": "1.1.2-rc.1",
|
|
43
|
+
"@radix-ui/react-primitive": "2.0.1-rc.1",
|
|
44
|
+
"@radix-ui/react-roving-focus": "1.1.1-rc.1",
|
|
45
|
+
"@radix-ui/react-slot": "1.1.1-rc.1",
|
|
46
46
|
"@radix-ui/react-use-callback-ref": "1.1.0",
|
|
47
47
|
"aria-hidden": "^1.1.1",
|
|
48
|
-
"react-remove-scroll": "2.
|
|
48
|
+
"react-remove-scroll": "2.6.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@types/react": "*",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"bugs": {
|
|
70
70
|
"url": "https://github.com/radix-ui/primitives/issues"
|
|
71
71
|
},
|
|
72
|
-
"stableVersion": "2.1.
|
|
72
|
+
"stableVersion": "2.1.2"
|
|
73
73
|
}
|