@radix-ui/react-radio-group 1.2.1 → 1.2.2-rc.2

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 CHANGED
@@ -1,18 +1,8 @@
1
+ import * as _radix_ui_react_context from '@radix-ui/react-context';
1
2
  import * as React from 'react';
2
3
  import { Primitive } from '@radix-ui/react-primitive';
3
4
  import * as RovingFocusGroup from '@radix-ui/react-roving-focus';
4
5
 
5
- type Scope<C = any> = {
6
- [scopeName: string]: React.Context<C>[];
7
- } | undefined;
8
- type ScopeHook = (scope: Scope) => {
9
- [__scopeProp: string]: Scope;
10
- };
11
- interface CreateScope {
12
- scopeName: string;
13
- (): ScopeHook;
14
- }
15
-
16
6
  type PrimitiveButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button>;
17
7
  interface RadioProps$1 extends PrimitiveButtonProps {
18
8
  checked?: boolean;
@@ -30,7 +20,7 @@ interface RadioIndicatorProps$1 extends PrimitiveSpanProps {
30
20
  }
31
21
  declare const RadioIndicator: React.ForwardRefExoticComponent<RadioIndicatorProps$1 & React.RefAttributes<HTMLSpanElement>>;
32
22
 
33
- declare const createRadioGroupScope: CreateScope;
23
+ declare const createRadioGroupScope: _radix_ui_react_context.CreateScope;
34
24
  type RadioGroupContextValue = {
35
25
  name?: string;
36
26
  required: boolean;
package/dist/index.d.ts CHANGED
@@ -1,18 +1,8 @@
1
+ import * as _radix_ui_react_context from '@radix-ui/react-context';
1
2
  import * as React from 'react';
2
3
  import { Primitive } from '@radix-ui/react-primitive';
3
4
  import * as RovingFocusGroup from '@radix-ui/react-roving-focus';
4
5
 
5
- type Scope<C = any> = {
6
- [scopeName: string]: React.Context<C>[];
7
- } | undefined;
8
- type ScopeHook = (scope: Scope) => {
9
- [__scopeProp: string]: Scope;
10
- };
11
- interface CreateScope {
12
- scopeName: string;
13
- (): ScopeHook;
14
- }
15
-
16
6
  type PrimitiveButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button>;
17
7
  interface RadioProps$1 extends PrimitiveButtonProps {
18
8
  checked?: boolean;
@@ -30,7 +20,7 @@ interface RadioIndicatorProps$1 extends PrimitiveSpanProps {
30
20
  }
31
21
  declare const RadioIndicator: React.ForwardRefExoticComponent<RadioIndicatorProps$1 & React.RefAttributes<HTMLSpanElement>>;
32
22
 
33
- declare const createRadioGroupScope: CreateScope;
23
+ declare const createRadioGroupScope: _radix_ui_react_context.CreateScope;
34
24
  type RadioGroupContextValue = {
35
25
  name?: string;
36
26
  required: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@radix-ui/react-radio-group",
3
- "version": "1.2.1",
3
+ "version": "1.2.2-rc.2",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": {
@@ -28,13 +28,13 @@
28
28
  "version": "yarn version"
29
29
  },
30
30
  "dependencies": {
31
- "@radix-ui/primitive": "1.1.0",
32
- "@radix-ui/react-compose-refs": "1.1.0",
31
+ "@radix-ui/primitive": "1.1.1-rc.2",
32
+ "@radix-ui/react-compose-refs": "1.1.1-rc.2",
33
33
  "@radix-ui/react-context": "1.1.1",
34
34
  "@radix-ui/react-direction": "1.1.0",
35
- "@radix-ui/react-presence": "1.1.1",
36
- "@radix-ui/react-primitive": "2.0.0",
37
- "@radix-ui/react-roving-focus": "1.1.0",
35
+ "@radix-ui/react-presence": "1.1.2-rc.2",
36
+ "@radix-ui/react-primitive": "2.0.1-rc.2",
37
+ "@radix-ui/react-roving-focus": "1.1.1-rc.2",
38
38
  "@radix-ui/react-use-controllable-state": "1.1.0",
39
39
  "@radix-ui/react-use-previous": "1.1.0",
40
40
  "@radix-ui/react-use-size": "1.1.0"
@@ -60,5 +60,6 @@
60
60
  },
61
61
  "bugs": {
62
62
  "url": "https://github.com/radix-ui/primitives/issues"
63
- }
63
+ },
64
+ "stableVersion": "1.2.1"
64
65
  }