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

@s-ui/react-atom-checkbox

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@s-ui/react-atom-checkbox - npm Package Compare versions

Comparing version 2.16.0 to 2.17.0

lib/config.js

9

CHANGELOG.md
# CHANGELOG
# 2.17.0 (2022-04-05)
### Bug Fixes
* **components/atom/checkbox:** resolve linting errors ([0b4d331](https://github.com/SUI-Components/sui-components/commit/0b4d3311706e9cb5b76cdf4717ebfd8edf0775d6))
# 2.16.0 (2021-10-19)

@@ -4,0 +13,0 @@

16

lib/index.js

@@ -7,14 +7,5 @@ import _extends from "@babel/runtime/helpers/esm/extends";

import cx from 'classnames';
import { BASE_CLASS, CHECKBOX_STATUS, CHECKBOX_SIZES } from './config.js';
import { jsx as _jsx } from "react/jsx-runtime";
import { jsxs as _jsxs } from "react/jsx-runtime";
var BASE_CLASS = 'sui-AtomCheckbox';
var CHECKBOX_STATUS = {
ERROR: 'error',
SUCCESS: 'success',
ALERT: 'alert'
};
var CHECKBOX_SIZES = {
SMALL: 'small',
MEDIUM: 'medium'
};

@@ -35,4 +26,3 @@ var AtomCheckbox = function AtomCheckbox(_ref) {

name = _ref.name,
_ref$onChange = _ref.onChange,
onChangeFromProps = _ref$onChange === void 0 ? function () {} : _ref$onChange,
onChangeFromProps = _ref.onChange,
status = _ref.status,

@@ -60,3 +50,3 @@ _ref$size = _ref.size,

name = _ev$target.name;
if (!disabled) onChangeFromProps(ev, {
if (!disabled && typeof onChangeFromProps === 'function') onChangeFromProps(ev, {
name: name,

@@ -63,0 +53,0 @@ value: checked

{
"name": "@s-ui/react-atom-checkbox",
"version": "2.16.0",
"version": "2.17.0",
"description": "",
"main": "lib/index.js",
"scripts": {
"prepare": "npm run build:js && npm run build:styles",
"prepare": "rimraf ./lib && npm run build:js && npm run build:styles",
"build:js": "babel --presets sui ./src --out-dir ./lib",

@@ -9,0 +9,0 @@ "build:styles": "cpx './src/**/*.scss' ./lib"

Sorry, the diff of this file is not supported yet

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