You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@radix-ui/react-toggle-group

Package Overview
Dependencies
Maintainers
6
Versions
254
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@radix-ui/react-toggle-group - npm Package Compare versions

Comparing version

to
1.1.4-rc.1744660991666

14

dist/index.js

@@ -81,5 +81,4 @@ "use strict";

prop: valueProp,
defaultProp: defaultValue ?? "",
onChange: onValueChange,
caller: TOGGLE_GROUP_NAME
defaultProp: defaultValue,
onChange: onValueChange
});

@@ -91,3 +90,3 @@ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(

type: "single",
value: import_react.default.useMemo(() => value ? [value] : [], [value]),
value: value ? [value] : [],
onItemActivate: setValue,

@@ -107,7 +106,6 @@ onItemDeactivate: import_react.default.useCallback(() => setValue(""), [setValue]),

} = props;
const [value, setValue] = (0, import_react_use_controllable_state.useControllableState)({
const [value = [], setValue] = (0, import_react_use_controllable_state.useControllableState)({
prop: valueProp,
defaultProp: defaultValue ?? [],
onChange: onValueChange,
caller: TOGGLE_GROUP_NAME
defaultProp: defaultValue,
onChange: onValueChange
});

@@ -114,0 +112,0 @@ const handleButtonActivate = import_react.default.useCallback(

{
"name": "@radix-ui/react-toggle-group",
"version": "1.1.4-rc.1744574857111",
"version": "1.1.4-rc.1744660991666",
"license": "MIT",

@@ -15,8 +15,8 @@ "source": "./src/index.ts",

"@radix-ui/primitive": "1.1.2",
"@radix-ui/react-context": "1.1.2",
"@radix-ui/react-primitive": "2.1.0-rc.1744660991666",
"@radix-ui/react-direction": "1.1.1",
"@radix-ui/react-context": "1.1.2",
"@radix-ui/react-primitive": "2.1.0-rc.1744574857111",
"@radix-ui/react-roving-focus": "1.1.4-rc.1744574857111",
"@radix-ui/react-toggle": "1.1.4-rc.1744574857111",
"@radix-ui/react-use-controllable-state": "1.2.0-rc.1744574857111"
"@radix-ui/react-toggle": "1.1.4-rc.1744660991666",
"@radix-ui/react-roving-focus": "1.1.4-rc.1744660991666",
"@radix-ui/react-use-controllable-state": "1.2.0-rc.1744660991666"
},

@@ -31,4 +31,4 @@ "devDependencies": {

"@repo/builder": "0.0.0",
"@repo/typescript-config": "0.0.0",
"@repo/eslint-config": "0.0.0"
"@repo/eslint-config": "0.0.0",
"@repo/typescript-config": "0.0.0"
},

@@ -35,0 +35,0 @@ "peerDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet