🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@radix-ui/react-toggle-group

Package Overview
Dependencies
Maintainers
6
Versions
249
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.1744661316162

14

dist/index.js

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

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

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

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

@@ -106,6 +107,7 @@ 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
defaultProp: defaultValue ?? [],
onChange: onValueChange,
caller: TOGGLE_GROUP_NAME
});

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

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

@@ -16,7 +16,7 @@ "source": "./src/index.ts",

"@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-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"
"@radix-ui/react-primitive": "2.1.0-rc.1744661316162",
"@radix-ui/react-roving-focus": "1.1.4-rc.1744661316162",
"@radix-ui/react-toggle": "1.1.4-rc.1744661316162",
"@radix-ui/react-use-controllable-state": "1.2.0-rc.1744661316162"
},

@@ -23,0 +23,0 @@ "devDependencies": {

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