New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@elliemae/ds-shared

Package Overview
Dependencies
Maintainers
2
Versions
2499
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elliemae/ds-shared - npm Package Compare versions

Comparing version 0.2.7 to 0.2.8

11

CheckableGroup.js

@@ -30,3 +30,4 @@ "use strict";

activeProp = _ref.active,
multi = _ref.multi;
multi = _ref.multi,
onCheck = _ref.onCheck;

@@ -38,6 +39,8 @@ var _useState = (0, _react.useState)(activeProp),

var onCheck = (0, _react.useCallback)(function (_ref2) {
var handleCheck = (0, _react.useCallback)(function (_ref2, item) {
var value = _ref2.target.value;
setActive(function (prevActive) {
return multi ? (0, _utils.addOrRemove)(prevActive, value) : value;
var nextActive = multi ? (0, _utils.addOrRemove)(prevActive, value) : value;
onCheck(nextActive, item);
return nextActive;
});

@@ -50,3 +53,3 @@ }, [active, children]);

checked: checked,
onClick: (0, _utils.runAll)(onCheck, props.onClick)
onClick: (0, _utils.runAll)(handleCheck, props.onClick)
}));

@@ -53,0 +56,0 @@ });

{
"name": "@elliemae/ds-shared",
"version": "0.2.7",
"version": "0.2.8",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "Ellie Mae - Dim Sum - Shared components and utilities",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc