@radix-ui/react-switch 1.3.4 → 1.3.5-rc.1784603841447
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 +1 -2
- package/dist/index.d.ts +1 -2
- package/package.json +8 -8
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as _radix_ui_react_context from '@radix-ui/react-context';
|
|
3
2
|
import { Scope } from '@radix-ui/react-context';
|
|
4
3
|
import * as React from 'react';
|
|
@@ -19,7 +18,7 @@ interface SwitchProviderProps {
|
|
|
19
18
|
value?: string | number | readonly string[];
|
|
20
19
|
children?: React.ReactNode;
|
|
21
20
|
}
|
|
22
|
-
declare function SwitchProvider(props: ScopedProps<SwitchProviderProps>):
|
|
21
|
+
declare function SwitchProvider(props: ScopedProps<SwitchProviderProps>): React.JSX.Element;
|
|
23
22
|
interface SwitchTriggerProps extends Omit<React.ComponentPropsWithoutRef<typeof Primitive.button>, keyof SwitchProviderProps> {
|
|
24
23
|
children?: React.ReactNode;
|
|
25
24
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as _radix_ui_react_context from '@radix-ui/react-context';
|
|
3
2
|
import { Scope } from '@radix-ui/react-context';
|
|
4
3
|
import * as React from 'react';
|
|
@@ -19,7 +18,7 @@ interface SwitchProviderProps {
|
|
|
19
18
|
value?: string | number | readonly string[];
|
|
20
19
|
children?: React.ReactNode;
|
|
21
20
|
}
|
|
22
|
-
declare function SwitchProvider(props: ScopedProps<SwitchProviderProps>):
|
|
21
|
+
declare function SwitchProvider(props: ScopedProps<SwitchProviderProps>): React.JSX.Element;
|
|
23
22
|
interface SwitchTriggerProps extends Omit<React.ComponentPropsWithoutRef<typeof Primitive.button>, keyof SwitchProviderProps> {
|
|
24
23
|
children?: React.ReactNode;
|
|
25
24
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@radix-ui/react-switch",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.5-rc.1784603841447",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"source": "./src/index.ts",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -11,18 +11,18 @@
|
|
|
11
11
|
],
|
|
12
12
|
"sideEffects": false,
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@radix-ui/primitive": "1.1.6",
|
|
15
14
|
"@radix-ui/react-compose-refs": "1.1.3",
|
|
16
15
|
"@radix-ui/react-context": "1.2.0",
|
|
17
|
-
"@radix-ui/
|
|
16
|
+
"@radix-ui/primitive": "1.1.6",
|
|
17
|
+
"@radix-ui/react-primitive": "2.1.8-rc.1784603841447",
|
|
18
18
|
"@radix-ui/react-use-controllable-state": "1.2.4",
|
|
19
|
-
"@radix-ui/react-use-size": "1.1.
|
|
19
|
+
"@radix-ui/react-use-size": "1.1.3-rc.1784603841447"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@types/react": "^19.2.
|
|
23
|
-
"@types/react-dom": "^19.2.
|
|
24
|
-
"react": "^19.2.
|
|
25
|
-
"react-dom": "^19.2.
|
|
22
|
+
"@types/react": "^19.2.17",
|
|
23
|
+
"@types/react-dom": "^19.2.3",
|
|
24
|
+
"react": "^19.2.7",
|
|
25
|
+
"react-dom": "^19.2.7",
|
|
26
26
|
"typescript": "^5.9.3",
|
|
27
27
|
"@repo/builder": "0.0.0",
|
|
28
28
|
"@repo/typescript-config": "0.0.0"
|