@uiw/react-card
Advanced tools
Comparing version 4.6.9 to 4.6.10
@@ -14,4 +14,2 @@ "use strict"; | ||
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); | ||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties")); | ||
@@ -21,4 +19,2 @@ | ||
var _classnames2 = _interopRequireDefault(require("classnames")); | ||
function InternalCard() { | ||
@@ -50,5 +46,3 @@ var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
var cls = (0, _react.useMemo)(function () { | ||
var _classnames; | ||
return (0, _classnames2.default)(prefixCls, className, (_classnames = {}, (0, _defineProperty2.default)(_classnames, "".concat(prefixCls, "-bordered"), bordered), (0, _defineProperty2.default)(_classnames, "".concat(prefixCls, "-no-hover"), noHover), (0, _defineProperty2.default)(_classnames, "active", active), _classnames)); | ||
return [prefixCls, className, bordered ? "".concat(prefixCls, "-bordered") : null, noHover ? "".concat(prefixCls, "-no-hover") : null, active ? 'active' : null].filter(Boolean).join(' ').trim(); | ||
}, [prefixCls, className, bordered, noHover]); | ||
@@ -65,3 +59,3 @@ return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, resetProps, { | ||
}, extra)), children && /*#__PURE__*/_react.default.createElement("div", { | ||
className: (0, _classnames2.default)("".concat(prefixCls, "-body"), bodyClassName), | ||
className: ["".concat(prefixCls, "-body"), bodyClassName].filter(Boolean).join(' ').trim(), | ||
style: bodyStyle | ||
@@ -68,0 +62,0 @@ }, children), footer && /*#__PURE__*/_react.default.createElement("div", { |
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, { useMemo, useImperativeHandle } from 'react'; | ||
import classnames from 'classnames'; | ||
import "./style/index.css"; | ||
@@ -34,5 +32,3 @@ | ||
var cls = useMemo(function () { | ||
var _classnames; | ||
return classnames(prefixCls, className, (_classnames = {}, _defineProperty(_classnames, "".concat(prefixCls, "-bordered"), bordered), _defineProperty(_classnames, "".concat(prefixCls, "-no-hover"), noHover), _defineProperty(_classnames, "active", active), _classnames)); | ||
return [prefixCls, className, bordered ? "".concat(prefixCls, "-bordered") : null, noHover ? "".concat(prefixCls, "-no-hover") : null, active ? 'active' : null].filter(Boolean).join(' ').trim(); | ||
}, [prefixCls, className, bordered, noHover]); | ||
@@ -49,3 +45,3 @@ return /*#__PURE__*/React.createElement("div", _extends({}, resetProps, { | ||
}, extra)), children && /*#__PURE__*/React.createElement("div", { | ||
className: classnames("".concat(prefixCls, "-body"), bodyClassName), | ||
className: ["".concat(prefixCls, "-body"), bodyClassName].filter(Boolean).join(' ').trim(), | ||
style: bodyStyle | ||
@@ -52,0 +48,0 @@ }, children), footer && /*#__PURE__*/React.createElement("div", { |
{ | ||
"name": "@uiw/react-card", | ||
"version": "4.6.9", | ||
"version": "4.6.10", | ||
"description": "Card component", | ||
@@ -45,8 +45,6 @@ "author": "Kenny Wong <wowohoo@qq.com>", | ||
"dependencies": { | ||
"@uiw/utils": "^4.6.9", | ||
"classnames": "2.2.6" | ||
"@uiw/utils": "^4.6.10" | ||
}, | ||
"devDependencies": { | ||
"@babel/runtime": "7.10.4", | ||
"@types/classnames": "2.2.10", | ||
"@types/react": "16.9.41", | ||
@@ -57,3 +55,3 @@ "@types/react-dom": "16.9.8", | ||
}, | ||
"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
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
26761
3
5
- Removedclassnames@2.2.6
- Removedclassnames@2.2.6(transitive)
Updated@uiw/utils@^4.6.10