@uiw/react-card
Advanced tools
Comparing version 4.21.19 to 4.21.20
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"]; | ||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard")["default"]; | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -11,30 +9,24 @@ value: true | ||
exports["default"] = void 0; | ||
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2")); | ||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties")); | ||
var _react = _interopRequireWildcard(require("react")); | ||
var _jsxRuntime = require("react/jsx-runtime"); | ||
var _excluded = ["prefixCls", "className", "title", "extra", "footer", "bordered", "noHover", "active", "bodyStyle", "bodyClassName", "children"]; | ||
var _default = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) { | ||
var _props$prefixCls = props.prefixCls, | ||
prefixCls = _props$prefixCls === void 0 ? 'w-card' : _props$prefixCls, | ||
className = props.className, | ||
title = props.title, | ||
extra = props.extra, | ||
footer = props.footer, | ||
_props$bordered = props.bordered, | ||
bordered = _props$bordered === void 0 ? true : _props$bordered, | ||
_props$noHover = props.noHover, | ||
noHover = _props$noHover === void 0 ? false : _props$noHover, | ||
_props$active = props.active, | ||
active = _props$active === void 0 ? false : _props$active, | ||
bodyStyle = props.bodyStyle, | ||
bodyClassName = props.bodyClassName, | ||
children = props.children, | ||
resetProps = (0, _objectWithoutProperties2["default"])(props, _excluded); | ||
prefixCls = _props$prefixCls === void 0 ? 'w-card' : _props$prefixCls, | ||
className = props.className, | ||
title = props.title, | ||
extra = props.extra, | ||
footer = props.footer, | ||
_props$bordered = props.bordered, | ||
bordered = _props$bordered === void 0 ? true : _props$bordered, | ||
_props$noHover = props.noHover, | ||
noHover = _props$noHover === void 0 ? false : _props$noHover, | ||
_props$active = props.active, | ||
active = _props$active === void 0 ? false : _props$active, | ||
bodyStyle = props.bodyStyle, | ||
bodyClassName = props.bodyClassName, | ||
children = props.children, | ||
resetProps = (0, _objectWithoutProperties2["default"])(props, _excluded); | ||
var cls = (0, _react.useMemo)(function () { | ||
@@ -65,5 +57,4 @@ return [prefixCls, className, bordered ? "".concat(prefixCls, "-bordered") : null, noHover ? "".concat(prefixCls, "-no-hover") : null, active ? 'active' : null].filter(Boolean).join(' ').trim(); | ||
}); | ||
exports["default"] = _default; | ||
module.exports = exports.default; | ||
//# sourceMappingURL=index.js.map |
@@ -10,16 +10,15 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
var { | ||
prefixCls = 'w-card', | ||
className, | ||
title, | ||
extra, | ||
footer, | ||
bordered = true, | ||
noHover = false, | ||
active = false, | ||
bodyStyle, | ||
bodyClassName, | ||
children | ||
} = props, | ||
resetProps = _objectWithoutPropertiesLoose(props, _excluded); | ||
prefixCls = 'w-card', | ||
className, | ||
title, | ||
extra, | ||
footer, | ||
bordered = true, | ||
noHover = false, | ||
active = false, | ||
bodyStyle, | ||
bodyClassName, | ||
children | ||
} = props, | ||
resetProps = _objectWithoutPropertiesLoose(props, _excluded); | ||
var cls = useMemo(() => [prefixCls, className, bordered ? prefixCls + "-bordered" : null, noHover ? prefixCls + "-no-hover" : null, active ? 'active' : null].filter(Boolean).join(' ').trim(), [prefixCls, className, bordered, noHover]); | ||
@@ -26,0 +25,0 @@ return /*#__PURE__*/_jsxs("div", _extends({}, resetProps, { |
{ | ||
"name": "@uiw/react-card", | ||
"version": "4.21.19", | ||
"version": "4.21.20", | ||
"description": "Card component", | ||
@@ -47,4 +47,4 @@ "author": "Kenny Wong <wowohoo@qq.com>", | ||
"dependencies": { | ||
"@uiw/utils": "^4.21.19" | ||
"@uiw/utils": "^4.21.20" | ||
} | ||
} |
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
24599
Updated@uiw/utils@^4.21.20