Socket
Socket
Sign inDemoInstall

@uiw/react-button

Package Overview
Dependencies
Maintainers
1
Versions
172
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uiw/react-button - npm Package Compare versions

Comparing version 4.9.6 to 4.9.7

14

cjs/index.js

@@ -5,8 +5,10 @@ "use strict";

exports.__esModule = true;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));

@@ -43,5 +45,5 @@ var _react = _interopRequireDefault(require("react"));

children = props.children,
others = (0, _objectWithoutPropertiesLoose2["default"])(props, _excluded);
var cls = [className, prefixCls, size ? prefixCls + "-size-" + size : null, type ? prefixCls + "-" + type : null, basic ? prefixCls + "-basic" : null, loading ? prefixCls + "-loading" : null, disabled || loading ? 'disabled' : null, active ? 'active' : null, block ? 'block' : null].filter(Boolean).join(' ').trim();
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("button", (0, _extends2["default"])({}, others, {
others = (0, _objectWithoutProperties2["default"])(props, _excluded);
var cls = [className, prefixCls, size ? "".concat(prefixCls, "-size-").concat(size) : null, type ? "".concat(prefixCls, "-").concat(type) : null, basic ? "".concat(prefixCls, "-basic") : null, loading ? "".concat(prefixCls, "-loading") : null, disabled || loading ? 'disabled' : null, active ? 'active' : null, block ? 'block' : null].filter(Boolean).join(' ').trim();
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("button", (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, others), {}, {
ref: ref,

@@ -48,0 +50,0 @@ type: htmlType,

@@ -1,3 +0,3 @@

import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["prefixCls", "disabled", "active", "loading", "block", "basic", "htmlType", "type", "size", "icon", "className", "children"];

@@ -9,24 +9,17 @@ import React from 'react';

import { jsxs as _jsxs } from "react/jsx-runtime";
export default /*#__PURE__*/React.forwardRef(function (props, ref) {
var _props$prefixCls = props.prefixCls,
prefixCls = _props$prefixCls === void 0 ? 'w-btn' : _props$prefixCls,
_props$disabled = props.disabled,
disabled = _props$disabled === void 0 ? false : _props$disabled,
_props$active = props.active,
active = _props$active === void 0 ? false : _props$active,
_props$loading = props.loading,
loading = _props$loading === void 0 ? false : _props$loading,
_props$block = props.block,
block = _props$block === void 0 ? false : _props$block,
_props$basic = props.basic,
basic = _props$basic === void 0 ? false : _props$basic,
_props$htmlType = props.htmlType,
htmlType = _props$htmlType === void 0 ? 'button' : _props$htmlType,
_props$type = props.type,
type = _props$type === void 0 ? 'light' : _props$type,
_props$size = props.size,
size = _props$size === void 0 ? 'default' : _props$size,
icon = props.icon,
className = props.className,
children = props.children,
export default /*#__PURE__*/React.forwardRef((props, ref) => {
var {
prefixCls = 'w-btn',
disabled = false,
active = false,
loading = false,
block = false,
basic = false,
htmlType = 'button',
type = 'light',
size = 'default',
icon,
className,
children
} = props,
others = _objectWithoutPropertiesLoose(props, _excluded);

@@ -42,3 +35,3 @@

type: icon
}), children && React.Children.map(children, function (child) {
}), children && React.Children.map(children, child => {
if (!child) return child;

@@ -45,0 +38,0 @@ if ( /*#__PURE__*/React.isValidElement(child)) return child;

{
"name": "@uiw/react-button",
"version": "4.9.6",
"version": "4.9.7",
"description": "Button component",

@@ -47,9 +47,9 @@ "author": "Kenny Wong <wowohoo@qq.com>",

"dependencies": {
"@uiw/react-icon": "^4.9.6",
"@uiw/utils": "^4.9.6"
"@uiw/react-icon": "^4.9.7",
"@uiw/utils": "^4.9.7"
},
"devDependencies": {
"@babel/runtime": "7.15.3",
"@babel/runtime": "7.15.4",
"@types/jest": "27.0.1",
"@types/react": "17.0.19",
"@types/react": "17.0.20",
"@types/react-dom": "17.0.9",

@@ -56,0 +56,0 @@ "@types/react-test-renderer": "17.0.1",

Sorry, the diff of this file is not supported yet

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