@radix-ui/react-form 0.1.0-rc.7 → 0.1.1-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 +4 -14
- package/dist/index.d.ts +4 -14
- package/package.json +8 -8
package/dist/index.d.mts
CHANGED
|
@@ -1,24 +1,14 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as _radix_ui_react_context from '@radix-ui/react-context';
|
|
3
|
+
import { Scope } from '@radix-ui/react-context';
|
|
2
4
|
import * as React from 'react';
|
|
3
5
|
import { Label as Label$1 } from '@radix-ui/react-label';
|
|
4
6
|
import { Primitive } from '@radix-ui/react-primitive';
|
|
5
|
-
import { Scope as Scope$1 } from '@radix-ui/react-context';
|
|
6
|
-
|
|
7
|
-
type Scope<C = any> = {
|
|
8
|
-
[scopeName: string]: React.Context<C>[];
|
|
9
|
-
} | undefined;
|
|
10
|
-
type ScopeHook = (scope: Scope) => {
|
|
11
|
-
[__scopeProp: string]: Scope;
|
|
12
|
-
};
|
|
13
|
-
interface CreateScope {
|
|
14
|
-
scopeName: string;
|
|
15
|
-
(): ScopeHook;
|
|
16
|
-
}
|
|
17
7
|
|
|
18
8
|
type ScopedProps<P> = P & {
|
|
19
|
-
__scopeForm?: Scope
|
|
9
|
+
__scopeForm?: Scope;
|
|
20
10
|
};
|
|
21
|
-
declare const createFormScope: CreateScope;
|
|
11
|
+
declare const createFormScope: _radix_ui_react_context.CreateScope;
|
|
22
12
|
type PrimitiveFormProps = React.ComponentPropsWithoutRef<typeof Primitive.form>;
|
|
23
13
|
interface FormProps extends PrimitiveFormProps {
|
|
24
14
|
onClearServerErrors?(): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,24 +1,14 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as _radix_ui_react_context from '@radix-ui/react-context';
|
|
3
|
+
import { Scope } from '@radix-ui/react-context';
|
|
2
4
|
import * as React from 'react';
|
|
3
5
|
import { Label as Label$1 } from '@radix-ui/react-label';
|
|
4
6
|
import { Primitive } from '@radix-ui/react-primitive';
|
|
5
|
-
import { Scope as Scope$1 } from '@radix-ui/react-context';
|
|
6
|
-
|
|
7
|
-
type Scope<C = any> = {
|
|
8
|
-
[scopeName: string]: React.Context<C>[];
|
|
9
|
-
} | undefined;
|
|
10
|
-
type ScopeHook = (scope: Scope) => {
|
|
11
|
-
[__scopeProp: string]: Scope;
|
|
12
|
-
};
|
|
13
|
-
interface CreateScope {
|
|
14
|
-
scopeName: string;
|
|
15
|
-
(): ScopeHook;
|
|
16
|
-
}
|
|
17
7
|
|
|
18
8
|
type ScopedProps<P> = P & {
|
|
19
|
-
__scopeForm?: Scope
|
|
9
|
+
__scopeForm?: Scope;
|
|
20
10
|
};
|
|
21
|
-
declare const createFormScope: CreateScope;
|
|
11
|
+
declare const createFormScope: _radix_ui_react_context.CreateScope;
|
|
22
12
|
type PrimitiveFormProps = React.ComponentPropsWithoutRef<typeof Primitive.form>;
|
|
23
13
|
interface FormProps extends PrimitiveFormProps {
|
|
24
14
|
onClearServerErrors?(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@radix-ui/react-form",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1-rc.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"version": "yarn version"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@radix-ui/primitive": "1.1.
|
|
32
|
-
"@radix-ui/react-compose-refs": "1.1.
|
|
33
|
-
"@radix-ui/react-context": "1.1.
|
|
34
|
-
"@radix-ui/react-id": "1.1.0
|
|
35
|
-
"@radix-ui/react-label": "2.1.
|
|
36
|
-
"@radix-ui/react-primitive": "2.0.
|
|
31
|
+
"@radix-ui/primitive": "1.1.1-rc.1",
|
|
32
|
+
"@radix-ui/react-compose-refs": "1.1.1-rc.1",
|
|
33
|
+
"@radix-ui/react-context": "1.1.1",
|
|
34
|
+
"@radix-ui/react-id": "1.1.0",
|
|
35
|
+
"@radix-ui/react-label": "2.1.1-rc.1",
|
|
36
|
+
"@radix-ui/react-primitive": "2.0.1-rc.1"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"@types/react": "*",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"bugs": {
|
|
58
58
|
"url": "https://github.com/radix-ui/primitives/issues"
|
|
59
59
|
},
|
|
60
|
-
"stableVersion": "0.0
|
|
60
|
+
"stableVersion": "0.1.0"
|
|
61
61
|
}
|