@uiw/react-button
Advanced tools
Comparing version 4.6.9 to 4.6.10
@@ -12,4 +12,2 @@ "use strict"; | ||
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); | ||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties")); | ||
@@ -19,9 +17,5 @@ | ||
var _classnames2 = _interopRequireDefault(require("classnames")); | ||
var _reactIcon = _interopRequireDefault(require("@uiw/react-icon")); | ||
var _default = function _default() { | ||
var _classnames; | ||
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
@@ -50,3 +44,3 @@ var _props$prefixCls = props.prefixCls, | ||
others = (0, _objectWithoutProperties2.default)(props, ["prefixCls", "disabled", "active", "loading", "block", "basic", "htmlType", "type", "size", "icon", "className", "children"]); | ||
var cls = (0, _classnames2.default)(className, prefixCls, (_classnames = {}, (0, _defineProperty2.default)(_classnames, "".concat(prefixCls, "-size-").concat(size), size), (0, _defineProperty2.default)(_classnames, "".concat(prefixCls, "-").concat(type), type), (0, _defineProperty2.default)(_classnames, "".concat(prefixCls, "-basic"), basic), (0, _defineProperty2.default)(_classnames, "".concat(prefixCls, "-loading"), loading), (0, _defineProperty2.default)(_classnames, "disabled", disabled || loading), (0, _defineProperty2.default)(_classnames, "active", active), (0, _defineProperty2.default)(_classnames, "block", block), _classnames)); | ||
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__*/_react.default.createElement("button", (0, _extends2.default)({}, others, { | ||
@@ -53,0 +47,0 @@ type: htmlType, |
import _extends from "@babel/runtime/helpers/esm/extends"; | ||
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; | ||
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; | ||
import React from 'react'; | ||
import classnames from 'classnames'; | ||
import Icon from '@uiw/react-icon'; | ||
import "./style/index.css"; | ||
export default (function () { | ||
var _classnames; | ||
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
@@ -36,3 +32,3 @@ | ||
var cls = classnames(className, prefixCls, (_classnames = {}, _defineProperty(_classnames, "".concat(prefixCls, "-size-").concat(size), size), _defineProperty(_classnames, "".concat(prefixCls, "-").concat(type), type), _defineProperty(_classnames, "".concat(prefixCls, "-basic"), basic), _defineProperty(_classnames, "".concat(prefixCls, "-loading"), loading), _defineProperty(_classnames, "disabled", disabled || loading), _defineProperty(_classnames, "active", active), _defineProperty(_classnames, "block", block), _classnames)); | ||
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__*/React.createElement("button", _extends({}, others, { | ||
@@ -39,0 +35,0 @@ type: htmlType, |
{ | ||
"name": "@uiw/react-button", | ||
"version": "4.6.9", | ||
"version": "4.6.10", | ||
"description": "Button component", | ||
@@ -45,9 +45,7 @@ "author": "Kenny Wong <wowohoo@qq.com>", | ||
"dependencies": { | ||
"@uiw/react-icon": "^4.6.9", | ||
"@uiw/utils": "^4.6.9", | ||
"classnames": "2.2.6" | ||
"@uiw/react-icon": "^4.6.10", | ||
"@uiw/utils": "^4.6.10" | ||
}, | ||
"devDependencies": { | ||
"@babel/runtime": "7.10.4", | ||
"@types/classnames": "2.2.10", | ||
"@types/jest": "25.2.1", | ||
@@ -61,3 +59,3 @@ "@types/react": "16.9.41", | ||
}, | ||
"gitHead": "aff63672294a768b0730a6eaed73463c3b5b3ace" | ||
"gitHead": "dd796bd87132b68aee9dfe1faeb73eccc378bc60" | ||
} |
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
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4
8
61361
697
- Removedclassnames@2.2.6
- Removedclassnames@2.2.6(transitive)
Updated@uiw/react-icon@^4.6.10
Updated@uiw/utils@^4.6.10